/* ============================================================
   Rayspex Innovations LLP — Single page website
   Theme derived from brand logo: lime green #b3cf32 + gray
   ============================================================ */

:root {
  --green: #b3cf32;
  --green-deep: #96b021;
  --green-soft: rgba(179, 207, 50, 0.14);
  --ink: #1e2415;
  --body-c: #5a614b;
  --dark: #10150a;
  --dark-2: #1a210f;
  --dark-3: #232b16;
  --paper: #ffffff;
  --tint: #f6f9ea;
  --line: #e4e8d4;
  --muted-on-dark: #b7c19c;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(24, 32, 8, 0.09);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.section { padding: 96px 0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--ink); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.light h2 { color: #f4f7e8; }
.section-sub { margin-top: 14px; color: var(--body-c); font-size: 1.05rem; }
.section-head.light .section-sub { color: var(--muted-on-dark); }
.section-sub strong { color: var(--green); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
  position: relative;
  padding-left: 26px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 3px;
  border-radius: 4px;
  background: var(--green);
  transform: translateY(-50%);
}
.section-head.light .eyebrow { color: var(--green); }

/* ============================ Buttons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn .ic { width: 18px; height: 18px; }

.btn-solid { background: var(--green); color: #1a2007; box-shadow: 0 10px 26px rgba(179, 207, 50, 0.28); }
.btn-solid:hover { background: var(--green-deep); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(179, 207, 50, 0.4); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #f4f7e8; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-3px); background: rgba(179, 207, 50, 0.07); }

.btn-ghost-dark { border-color: rgba(255, 255, 255, 0.22); color: #f4f7e8; }
.btn-ghost-dark:hover { border-color: var(--green); background: var(--green); color: #1a2007; transform: translateY(-3px); }

.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: #1fa855;
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  width: 100%;
}
.btn-whatsapp:hover { background: #189147; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 168, 85, 0.3); }
.btn-whatsapp .ic { width: 20px; height: 20px; }

.ic { width: 20px; height: 20px; flex: none; }

/* ============================ Scroll progress ============================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
}

/* ============================ Header ============================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(20, 26, 10, 0.08);
  padding: 9px 0;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { flex: none; }
.rayspex-logo { width: 190px; height: auto; transition: width 0.3s ease; }
.rayspex-logo .lg-a { fill: #ffffff; transition: fill 0.35s ease; }
.rayspex-logo .lg-b { fill: var(--green); }
.site-header.scrolled .rayspex-logo { width: 172px; }
.site-header.scrolled .rayspex-logo .lg-a { fill: #767c70; }

.main-nav { display: flex; align-items: center; gap: 30px; }

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.97rem;
  color: #eef2dd;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.site-header.scrolled .nav-link { color: var(--ink); }
.site-header.scrolled .nav-link:hover, .site-header.scrolled .nav-link.active { color: var(--green-deep); }

.nav-cta { padding: 11px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1002;
}
.nav-toggle span {
  width: 24px;
  height: 2.6px;
  border-radius: 3px;
  background: #f2f5e3;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--green); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ============================ Hero ============================ */

.hero {
  position: relative;
  background: var(--dark);
  color: #eef2dd;
  padding: 170px 0 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 14%, rgba(179, 207, 50, 0.17), transparent 62%),
    radial-gradient(560px 420px at 6% 90%, rgba(179, 207, 50, 0.1), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: auto, auto, 54px 54px, 54px 54px;
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(179, 207, 50, 0.4);
  background: rgba(179, 207, 50, 0.08);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-badge .ic { width: 16px; height: 16px; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  font-weight: 700;
  color: #f7faec;
  margin-bottom: 22px;
}

.hl {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 10px;
  background: rgba(179, 207, 50, 0.22);
  border-radius: 6px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: sweep 0.9s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes sweep { to { transform: scaleX(1); } }

.hero-sub {
  color: var(--muted-on-dark);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-sub strong { color: #e9f0c8; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #d6dfb4;
}
.hero-chips .ic { width: 16px; height: 16px; color: var(--green); }

/* Hero art */

.hero-art { position: relative; }
.art-wrap { position: relative; max-width: 560px; margin-inline: auto; }
.scene { width: 100%; height: auto; }

.sun-rays {
  transform-box: view-box;
  transform-origin: 430px 110px;
  animation: spinSlow 36s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.sun-ring { fill: none; opacity: 0.5; transform-box: view-box; transform-origin: 430px 110px; animation: ringPulse 4.5s ease-in-out infinite; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.14); opacity: 0.15; }
}

.flow { animation: dashFlow 1.6s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -34; } }

.pulse-dot { transform-box: fill-box; transform-origin: center; animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: 0.45; }
}

.win { animation: winGlow 5s ease-in-out infinite; }
@keyframes winGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(23, 29, 11, 0.82);
  border: 1px solid rgba(179, 207, 50, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e9f0c8;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.chip .ic { width: 16px; height: 16px; color: var(--green); }
.chip-1 { top: 4%; left: -4%; animation: floatA 6s ease-in-out infinite; }
.chip-2 { top: 34%; right: -6%; animation: floatB 7s ease-in-out infinite; }
.chip-3 { bottom: 6%; left: 6%; animation: floatA 8s 1s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0.6deg); }
  50% { transform: translateY(9px) rotate(-0.6deg); }
}

.float-a { animation: floatA 6.5s ease-in-out infinite; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(238, 242, 221, 0.55);
  animation: cueBob 2s ease-in-out infinite;
}
.scroll-cue .ic { width: 26px; height: 26px; }
.scroll-cue:hover { color: var(--green); }
@keyframes cueBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================ Marquee ============================ */

.marquee {
  background: var(--green);
  overflow: hidden;
  padding: 16px 0;
  border-block: 3px solid var(--dark);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #20260c;
  white-space: nowrap;
}
.marquee-track .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20260c;
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ Stats band ============================ */

.stats-band { background: var(--paper); padding: 64px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat { text-align: center; position: relative; padding: 10px 8px; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 12%;
  height: 76%;
  width: 1px;
  background: var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stat-num .rupee, .stat-num .unit { color: var(--green-deep); font-size: 0.62em; font-weight: 700; }
.stat-label { margin-top: 8px; color: var(--body-c); font-size: 0.92rem; }

/* ============================ About ============================ */

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }

.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: var(--body-c); margin-bottom: 16px; }

.check-list { margin-top: 22px; display: grid; gap: 13px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--ink);
}
.check-list .ic {
  width: 21px;
  height: 21px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green);
  color: #1a2007;
  margin-top: 2px;
}

.about-cards { position: relative; display: grid; gap: 22px; }
.mv-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mv-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--ink); }
.mv-card p { color: var(--body-c); font-size: 0.97rem; }
.mv-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--green);
  color: #1a2007;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.about-badge {
  position: absolute;
  right: -14px;
  bottom: -34px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: #f2f5e3;
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(16, 21, 10, 0.3);
}
.about-badge .ic { width: 30px; height: 30px; color: var(--green); }
.about-badge strong { display: block; font-size: 0.95rem; }
.about-badge span { font-size: 0.8rem; color: var(--muted-on-dark); }

/* ============================ Services ============================ */

.services { background: var(--tint); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(179, 207, 50, 0.5); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.service-icon .ic { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--green); color: #1a2007; transform: scale(1.06) rotate(-4deg); }

.service-card h3 { font-size: 1.16rem; margin-bottom: 12px; color: var(--ink); }
.service-card p { color: var(--body-c); font-size: 0.95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--body-c);
}

/* ============================ Process ============================ */

.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-6px); border-color: rgba(179, 207, 50, 0.55); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--body-c); font-size: 0.93rem; }

/* ============================ Subsidy (dark) ============================ */

.subsidy {
  position: relative;
  background: var(--dark);
  color: #eef2dd;
  overflow: hidden;
}
.subsidy-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 460px at 90% 8%, rgba(179, 207, 50, 0.14), transparent 60%),
    radial-gradient(600px 400px at 4% 92%, rgba(179, 207, 50, 0.09), transparent 60%);
}

.slab-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 46px; }
.slab {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.slab:hover { transform: translateY(-6px); border-color: rgba(179, 207, 50, 0.5); background: rgba(179, 207, 50, 0.06); }
.slab.featured {
  border: 2px solid var(--green);
  background: rgba(179, 207, 50, 0.09);
  box-shadow: 0 18px 44px rgba(179, 207, 50, 0.14);
}
.slab-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #1a2007;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.slab-size { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #d9e2b6; }
.slab-amt {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
  color: var(--green);
  margin: 6px 0 2px;
}
.slab-note { color: var(--muted-on-dark); font-size: 0.88rem; }

.subsidy-lower { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: start; }

.apply-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 34px;
}
.apply-card h3 { font-size: 1.3rem; margin-bottom: 22px; color: #f4f7e8; }
.apply-steps { display: grid; gap: 18px; }
.apply-steps li { display: flex; gap: 16px; align-items: flex-start; }
.apply-steps span {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #1a2007;
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.apply-steps div { color: var(--muted-on-dark); font-size: 0.96rem; padding-top: 4px; }
.apply-steps strong { color: #f0f4dc; font-weight: 600; }

.benefits-stack { display: grid; gap: 18px; }
.benefit {
  display: flex;
  gap: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.benefit:hover { transform: translateX(6px); border-color: rgba(179, 207, 50, 0.45); }
.benefit .ic { width: 34px; height: 34px; color: var(--green); flex: none; margin-top: 2px; }
.benefit h4 { font-size: 1.05rem; margin-bottom: 6px; color: #f0f4dc; }
.benefit p { color: var(--muted-on-dark); font-size: 0.93rem; }

.subsidy-cta { margin-top: 10px; }

/* ============================ Calculator ============================ */

.calc { background: var(--tint); }
.calc-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: start; }

.calc-inputs {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.calc-label { font-weight: 600; color: var(--ink); font-size: 1rem; }
.bill-display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--green-deep);
  margin: 10px 0 20px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--green) var(--pct, 8%), #e6e9d6 var(--pct, 8%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--green);
  box-shadow: 0 5px 16px rgba(150, 176, 33, 0.5);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--green);
  box-shadow: 0 5px 16px rgba(150, 176, 33, 0.5);
}

.range-ends { display: flex; justify-content: space-between; color: var(--body-c); font-size: 0.82rem; margin-top: 10px; }

.preset-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 26px; }
.preset {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--body-c);
  transition: all 0.25s ease;
}
.preset:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }
.preset.active { background: var(--green); border-color: var(--green); color: #1a2007; }

.bill-bars { display: grid; gap: 14px; margin-bottom: 26px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 74px; align-items: center; gap: 12px; }
.bar-tag { font-size: 0.85rem; font-weight: 600; color: var(--body-c); }
.bar-track { height: 14px; border-radius: 99px; background: #edf0dd; overflow: hidden; }
.bar { height: 100%; border-radius: 99px; width: 0; transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.bar-before { background: linear-gradient(90deg, #9aa57e, #6f7857); }
.bar-after { background: linear-gradient(90deg, var(--green-deep), var(--green)); }
.bar-val { font-size: 0.85rem; font-weight: 700; text-align: right; color: var(--ink); white-space: nowrap; }

.calc-assumption {
  font-size: 0.82rem;
  color: var(--body-c);
  background: var(--tint);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.calc-results {
  background: var(--dark);
  border-radius: 22px;
  padding: 34px 32px;
  color: #eef2dd;
  box-shadow: 0 24px 60px rgba(16, 21, 10, 0.28);
}

.result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}
.result-kicker { color: var(--muted-on-dark); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.result-size { font-family: var(--font-display); font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 700; color: var(--green); line-height: 1.05; }
.result-size .kw { font-size: 0.45em; color: #d9e2b6; }
.result-gen { color: var(--muted-on-dark); font-size: 0.94rem; }
.sun-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 207, 50, 0.12);
  border: 1.5px solid rgba(179, 207, 50, 0.4);
  color: var(--green);
  animation: spinSlow 22s linear infinite;
}
.sun-badge .ic { width: 36px; height: 36px; }

.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.r-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.r-tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.08); }
.r-label { font-size: 0.78rem; color: var(--muted-on-dark); margin-bottom: 7px; line-height: 1.35; }
.r-value { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: #f4f7e8; }
.r-tile.highlight { background: var(--green); border-color: var(--green); }
.r-tile.highlight .r-label { color: rgba(26, 32, 7, 0.75); }
.r-tile.highlight .r-value { color: #1a2007; }
.r-tile.strong { border-color: rgba(179, 207, 50, 0.55); background: rgba(179, 207, 50, 0.09); }
.r-tile.strong .r-value { color: var(--green); }

.cap-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #f3d88f;
  background: rgba(224, 179, 65, 0.12);
  border: 1px solid rgba(224, 179, 65, 0.35);
  border-radius: 12px;
  padding: 13px 16px;
}

.calc-cta { margin-top: 24px; }

/* ============================ FAQ ============================ */

.faq { background: var(--paper); }
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] { border-color: rgba(179, 207, 50, 0.6); box-shadow: var(--shadow); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--green-deep);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}
.faq-icon::before { width: 12px; height: 2.4px; }
.faq-icon::after { width: 2.4px; height: 12px; }
.faq-item[open] .faq-icon { transform: rotate(135deg); background: var(--green); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #1a2007; }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--body-c);
  font-size: 0.97rem;
  animation: faqIn 0.35s ease;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================ Contact ============================ */

.contact { background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 34px; align-items: start; }

.contact-info { display: grid; gap: 18px; }
.c-card {
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.c-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.c-icon .ic { width: 25px; height: 25px; }
.c-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.c-card p { color: var(--body-c); font-size: 0.95rem; line-height: 1.6; }
.c-card a { color: var(--ink); font-weight: 600; transition: color 0.25s ease; }
.c-card a:hover { color: var(--green-deep); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(179, 207, 50, 0.18);
}
.field input.invalid { border-color: #d65a4a; box-shadow: 0 0 0 4px rgba(214, 90, 74, 0.12); }

.form-note { margin-top: 14px; font-size: 0.84rem; color: var(--body-c); text-align: center; }
.form-note a { color: var(--green-deep); font-weight: 600; }

.map-wrap {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(0.9); }

/* ============================ Footer ============================ */

.site-footer { background: var(--dark); color: var(--muted-on-dark); padding-top: 72px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 54px;
}

.footer-logo { width: 200px; margin-bottom: 18px; }
.footer-logo .lg-a { fill: #ffffff; }
.f-brand p { font-size: 0.94rem; max-width: 320px; }

.f-col h4 {
  color: #f4f7e8;
  font-size: 1rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.f-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}
.f-col ul { display: grid; gap: 10px; }
.f-col ul a { font-size: 0.94rem; transition: color 0.25s ease, padding-left 0.25s ease; }
.f-col ul a:hover { color: var(--green); padding-left: 4px; }
.f-contact li { font-size: 0.92rem; line-height: 1.6; }
.f-contact li a:hover { color: var(--green); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 0.86rem;
}

/* ============================ Utilities ============================ */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #1a2007;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(179, 207, 50, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--green-deep); }
.to-top .ic { width: 22px; height: 22px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--dark);
  color: #f2f5e3;
  border: 1px solid rgba(179, 207, 50, 0.5);
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 1100;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ Reveal animations ============================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

html.no-js .reveal { opacity: 1; transform: none; }

/* ============================ Responsive ============================ */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .hero { padding: 140px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { order: -1; }
  .art-wrap { max-width: 480px; }

  .about-grid, .subsidy-lower, .calc-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-cards { margin-top: 10px; }
  .about-badge { right: 6px; bottom: -18px; }
  .stats-grid { grid-template-columns: repeat(1, 1fr); gap: 34px; }
  .stat + .stat::before { display: none; }
  .slab-row { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .slab.featured { transform: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .site-header {
    background: rgba(16, 21, 10, 0.55);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.94);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 82vw);
    height: 100dvh;
    overflow-y: auto;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 30px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    /* box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45); */
    z-index: 1001;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  /* Override .scrolled link colors inside the dark mobile drawer */
  .site-header .main-nav .nav-link,
  .site-header.scrolled .main-nav .nav-link {
    color: #f4f7e8;
    font-size: 1.12rem;
    width: 100%;
    padding: 12px 0;
  }

  .site-header .main-nav .nav-link:hover,
  .site-header .main-nav .nav-link.active,
  .site-header.scrolled .main-nav .nav-link:hover,
  .site-header.scrolled .main-nav .nav-link.active {
    color: var(--green);
  }

  .main-nav .nav-cta {
    margin-top: 16px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .rayspex-logo { width: 158px; }
  .site-header.scrolled .rayspex-logo { width: 146px; }

  .services-grid, .steps, .result-grid { grid-template-columns: 1fr; }
  /* .stats-grid { grid-template-columns: 1fr 1fr; } */
  .form-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 92px 1fr 66px; }
  .hero-cta .btn { width: 100%; }
  .marquee-track { gap: 22px; }
  .marquee-track span { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .calc-inputs, .calc-results, .contact-form { padding: 26px 22px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ============================ Reduced motion ============================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
