/* ==========================================================
   Sarvatra Solar Solutions — Coming Soon
   Themes: light (default) + dark, via [data-theme] on <html>
   ========================================================== */

/* ---------- brand constants (theme independent) ---------- */
:root {
  --sun-1: #ffe08a;
  --sun-2: #ffb703;
  --sun-3: #ff7a18;
  --sun-4: #ff3d68;
  --grad-sun: linear-gradient(100deg, #ffd166 0%, #ffb703 35%, #ff8a1f 70%, #ff6a3d 100%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
}

/* ---------- light theme (default) ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-2: #f5f2ec;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f7f5f0;
  --ink: #0d1526;
  --ink-2: #26324a;
  --muted: #5a6476;
  --subtle: #8b93a3;
  --line: rgba(13, 21, 38, .08);
  --line-strong: rgba(13, 21, 38, .14);
  --accent-ink: #c2410c;
  --grad-text: linear-gradient(100deg, #f59e0b 0%, #ea580c 55%, #dc2f55 100%);
  --nav-bg: rgba(251, 250, 247, .82);
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .04), 0 2px 6px rgba(13, 21, 38, .04);
  --shadow-md: 0 1px 2px rgba(13, 21, 38, .04), 0 12px 32px -12px rgba(13, 21, 38, .14);
  --shadow-hover: 0 2px 4px rgba(13, 21, 38, .04), 0 24px 48px -20px rgba(234, 88, 12, .30);
  --page-bg:
    radial-gradient(900px 560px at 85% -8%, rgba(255, 183, 3, .16), transparent 62%),
    radial-gradient(700px 480px at -8% 30%, rgba(56, 189, 248, .07), transparent 62%),
    var(--bg);
  --chip-bg: #ffffff;
  --input-bg: #ffffff;
  --spec-bg: #f5f2ec;
  --spec-ink: #4b5565;
  --icon-bg: #fff7ec;
  --icon-border: rgba(245, 158, 11, .22);
  --icon-stroke: #f59e0b;
  --icon-line: #ea580c;
  --icon-fill: rgba(255, 183, 3, .16);
  --badge-bg: #fff4e0;
  --badge-ink: #b45309;
  --badge-border: rgba(245, 158, 11, .3);
  --badge2-bg: #e7f8f3;
  --badge2-ink: #047857;
  --badge2-border: rgba(16, 185, 129, .25);
  --orbit: rgba(180, 83, 9, .75);
  --sun-glow: 0 0 60px 10px rgba(255, 160, 30, .35), 0 0 160px 50px rgba(255, 170, 60, .18);
  --rays: rgba(245, 158, 11, .32);
  --panel-shadow: 0 24px 40px -16px rgba(13, 21, 38, .35);
  --marquee-ink: #0d1526;
  --marquee-stroke: rgba(13, 21, 38, .35);
  --range-track: #e8e3da;
  --result-bg: #f7f5f0;
  --hero-result-bg: linear-gradient(120deg, #fff3dc, #ffe6dc);
  --notify-bg: linear-gradient(180deg, #ffffff 0%, #fff8ee 100%);
  --notify-border: rgba(245, 158, 11, .28);
  --notify-sun-opacity: .35;
  --footer-bg: #f3f0e9;
  --ok: #047857;
  --err: #c81e48;
  --focus: #ea580c;
  --dot: #10b981;
}

/* ---------- dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b1a;
  --bg-2: #04060f;
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #0e1430;
  --surface-2: rgba(255, 255, 255, .03);
  --ink: #eef1ff;
  --ink-2: #d5daf0;
  --muted: #9aa3c7;
  --subtle: #7d86ab;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --accent-ink: #ffb703;
  --grad-text: linear-gradient(100deg, #ffe08a 0%, #ffb703 35%, #ff7a18 70%, #ff3d68 100%);
  --nav-bg: rgba(7, 11, 26, .72);
  --shadow-sm: none;
  --shadow-md: 0 20px 40px -24px rgba(0, 0, 0, .6);
  --shadow-hover: 0 30px 60px -24px rgba(255, 122, 24, .35);
  --page-bg:
    radial-gradient(1100px 650px at 82% -10%, rgba(255, 122, 24, .17), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(76, 201, 240, .09), transparent 60%),
    linear-gradient(180deg, #070b1a 0%, #04060f 100%);
  --chip-bg: rgba(255, 255, 255, .04);
  --input-bg: rgba(255, 255, 255, .06);
  --spec-bg: rgba(255, 255, 255, .06);
  --spec-ink: #c9cfe8;
  --icon-bg: rgba(255, 183, 3, .08);
  --icon-border: rgba(255, 183, 3, .18);
  --icon-stroke: #ffb703;
  --icon-line: #ffe08a;
  --icon-fill: rgba(255, 183, 3, .18);
  --badge-bg: rgba(255, 183, 3, .14);
  --badge-ink: #ffe08a;
  --badge-border: rgba(255, 183, 3, .3);
  --badge2-bg: rgba(94, 234, 212, .12);
  --badge2-ink: #5eead4;
  --badge2-border: rgba(94, 234, 212, .3);
  --orbit: rgba(255, 224, 138, .7);
  --sun-glow: 0 0 80px 20px rgba(255, 150, 20, .45), 0 0 200px 60px rgba(255, 90, 30, .25);
  --rays: rgba(255, 196, 70, .35);
  --panel-shadow: 0 30px 60px -10px rgba(0, 0, 0, .8);
  --marquee-ink: #eef1ff;
  --marquee-stroke: rgba(255, 255, 255, .45);
  --range-track: rgba(255, 255, 255, .12);
  --result-bg: rgba(0, 0, 0, .25);
  --hero-result-bg: linear-gradient(120deg, rgba(255, 183, 3, .18), rgba(255, 61, 104, .12));
  --notify-bg: linear-gradient(180deg, rgba(13, 20, 48, .92), rgba(7, 11, 26, .96));
  --notify-border: rgba(255, 183, 3, .25);
  --notify-sun-opacity: .55;
  --footer-bg: rgba(0, 0, 0, .25);
  --ok: #5eead4;
  --err: #ff8fa6;
  --focus: #ffb703;
  --dot: #5eead4;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page-bg);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.theme-anim body, html.theme-anim body * { transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease) !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
::selection { background: var(--sun-2); color: #1a0d00; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun-2); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- ambient layers ---------- */
#photons { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { opacity: .05; animation: grain 8s steps(8) infinite; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }
.glow-cursor {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0; display: none;
  background: radial-gradient(circle, rgba(255, 183, 3, .12), transparent 60%);
  transform: translate3d(var(--mx, 50vw), var(--my, 30vh), 0);
  transition: transform .25s var(--ease);
}
[data-theme="dark"] .glow-cursor { display: block; }
header, main, footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark .rays-g { transform-origin: 24px 24px; animation: spin 24s linear infinite; }
.brand-text { white-space: nowrap; }
.brand-text b { font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--grad-sun); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px; flex-shrink: 0; padding: 0;
  display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--sun-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.theme-toggle svg { transition: transform .5s var(--ease); }
.theme-toggle:active svg { transform: rotate(60deg) scale(.85); }
.menu-toggle { display: none; }
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-toggle .bar { width: 18px; height: 2px; border-radius: 2px; background: currentColor; display: block; transition: transform .3s var(--ease), opacity .2s; }
.nav.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px var(--gutter) 20px;
  background: var(--surface-solid); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: none; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-menu a { padding: 14px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { margin-top: 12px; border-bottom: 0; padding: 15px 26px; }
.nav.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }

/* ---------- buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15.5px; line-height: 1.2; letter-spacing: .005em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s, background-color .3s, border-color .3s;
}
.btn-sm { --pad: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sun {
  color: #1f1000; background: var(--grad-sun); background-size: 180% 100%;
  box-shadow: 0 8px 22px -8px rgba(234, 88, 12, .55), inset 0 1px 0 rgba(255,255,255,.45);
  animation: sheen 6s ease-in-out infinite;
}
.btn-sun:hover { box-shadow: 0 14px 34px -10px rgba(234, 88, 12, .7), inset 0 1px 0 rgba(255,255,255,.45); }
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--sun-2); }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font); line-height: 1.1; letter-spacing: -.03em; margin: 0; color: var(--ink); }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.gradient-text { background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s ease-in-out infinite; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.lede { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 620px; margin-top: 18px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-inner {
  min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(32px, 6vh, 72px) clamp(72px, 10vh, 110px);
}
.hero-copy { min-width: 0; }
.hero-title { font-size: clamp(44px, 6.8vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.hero-title .line { display: block; }
.kern-dot { margin-left: -.06em; }
.hero-title .gradient-text { width: fit-content; padding-right: .08em; margin-right: -.08em; }
@media (max-width: 1023px) { .hero-title .gradient-text { margin-inline: auto; } }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); max-width: 540px; margin: 24px 0 34px; }
.hero-sub em { font-style: normal; color: var(--ink); font-weight: 700; }
.hero-sub strong { color: var(--accent-ink); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0; }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: center; }
.hero-visual::before { content: ""; position: absolute; inset: 4% 4% 14%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(255, 196, 90, .22), transparent 62%); }
.sun-wrap { position: absolute; left: 50%; top: 42%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); animation: rise 2.2s var(--ease) both; }
@keyframes rise { from { transform: translate(-50%, -20%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
.sun-core {
  position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d6 0%, var(--sun-1) 18%, var(--sun-2) 45%, var(--sun-3) 78%, #ff5a4a 100%);
  box-shadow: var(--sun-glow);
  animation: breathe 5s ease-in-out infinite;
}
.sun-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle at 60% 60%, rgba(255,255,255,.08) 0 2px, transparent 2px 9px);
  mix-blend-mode: overlay; animation: spin 40s linear infinite;
}
@keyframes breathe { 50% { transform: scale(1.035); } }
.sun-rays {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--rays) 0deg 2deg, transparent 2deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 34%, transparent 70%);
          mask: radial-gradient(circle, transparent 30%, #000 34%, transparent 70%);
  animation: spin 60s linear infinite;
}
.orbit-text { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; overflow: visible; animation: spin 30s linear infinite reverse; }
.orbit-text text { fill: var(--orbit); font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 4.6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel-array {
  position: absolute; left: 50%; bottom: 6%; width: 94%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%;
  transform: translateX(-50%) perspective(700px) rotateX(58deg);
  transform-origin: bottom center;
  animation: panels-in 1.6s .4s var(--ease) both;
}
@keyframes panels-in { from { opacity: 0; transform: translateX(-50%) perspective(700px) rotateX(80deg) translateY(40px); } }
.panel {
  position: relative; aspect-ratio: 1 / 1.35; border-radius: 6px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(170, 196, 255, .35) 1px, transparent 1px) 0 0 / 16.66% 100%,
    linear-gradient(0deg, rgba(170, 196, 255, .35) 1px, transparent 1px) 0 0 / 100% 12.5%,
    linear-gradient(160deg, #20368a 0%, #0d1846 60%, #08102e 100%);
  border: 2px solid #b9c5e2;
  box-shadow: var(--panel-shadow), inset 0 0 30px rgba(76, 201, 240, .15);
}
.panel i {
  position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 224, 138, .5) 48%, rgba(255,255,255,.75) 50%, rgba(255, 183, 3, .38) 52%, transparent 60%);
  animation: glint 4.5s ease-in-out infinite;
}
.panel:nth-child(2) i { animation-delay: .35s; }
.panel:nth-child(3) i { animation-delay: .7s; }
@keyframes glint { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sun-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- trust strip ---------- */
.trust { position: relative; z-index: 2; border-block: 1px solid var(--line); background: var(--surface-2); }
.trust-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 20px; min-width: 0; }
.trust-item:first-child { padding-left: 0; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: var(--icon-line); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item b { display: block; font-size: 15px; line-height: 1.3; }
.trust-item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 20px 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 45s linear infinite; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: var(--marquee-ink); }
.marquee-track span:nth-child(4n+1) { -webkit-text-stroke: 1px var(--marquee-stroke); color: transparent; }
.marquee-track span:nth-child(2n) { color: var(--sun-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vh, 128px); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.grid { display: grid; gap: 20px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--chip-bg); font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--muted); transition: all .25s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--sun-2); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="dark"] .chip.is-active { background: var(--grad-sun); color: #1a0d00; border-color: transparent; }

/* product cards */
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, opacity .8s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 65%, var(--sun-2), var(--sun-3), transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s; animation: border-spin 4s linear infinite; pointer-events: none;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --ang: 360deg; } }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--shadow-hover); }
.card-glow { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.card-glow::before { content: ""; position: absolute; width: 260px; height: 260px; left: var(--gx, 50%); top: var(--gy, 0%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 183, 3, .16), transparent 65%); opacity: 0; transition: opacity .3s; }
.card:hover .card-glow::before { opacity: 1; }
.card.is-hidden { display: none; }
.badge { position: absolute; top: 20px; right: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); border: 1px solid var(--badge-border); line-height: 1.2; }
.badge-alt { background: var(--badge2-bg); color: var(--badge2-ink); border-color: var(--badge2-border); }
.card-icon { width: 56px; height: 56px; padding: 10px; border-radius: 14px; background: var(--icon-bg); border: 1px solid var(--icon-border); margin-bottom: 8px; }
.card-icon svg { width: 100%; height: 100%; overflow: visible; }
.ic-fill { fill: var(--icon-fill); stroke: var(--icon-stroke); stroke-width: 2.5; stroke-linejoin: round; }
.ic-line { fill: none; stroke: var(--icon-line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 0; }
.ic-panel { fill: none; stroke: #0ea5e9; stroke-width: 3; stroke-linecap: round; }
.ic-ray { fill: none; stroke: var(--icon-line); stroke-width: 2.5; stroke-linecap: round; animation: flicker 2s infinite; }
.ic-drop { fill: #0ea5e9; animation: drip 2.2s infinite; }
.ic-charge { fill: #10b981; transform-origin: 18px 43px; animation: charge 2.4s ease-in-out infinite; }
.card:hover .ic-line { animation: draw 1.2s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 200; } }
@keyframes flicker { 50% { opacity: .3; } }
@keyframes drip { 0% { transform: translateY(-4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
@keyframes charge { 0% { transform: scaleX(.15); } 70%, 100% { transform: scaleX(1); } }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0 10px; }
.specs li { font-size: 12px; font-weight: 600; line-height: 1.3; padding: 5px 10px; border-radius: 8px; background: var(--spec-bg); color: var(--spec-ink); }
.card-cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; background: none; border: 0; font-weight: 700; font-size: 14.5px; color: var(--accent-ink); }
.card-cta span { transition: transform .3s var(--ease); }
.card-cta:hover span { transform: translateX(5px); }

/* ---------- calculator ---------- */
.calc {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 5vw, 56px); border-radius: var(--radius-lg);
  background: radial-gradient(600px 400px at 100% 0%, rgba(255, 160, 40, .12), transparent 70%), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.field { display: block; margin-top: 28px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; margin-bottom: 14px; }
.field output { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-ink); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sun-2) var(--fill, 10%), var(--range-track) var(--fill, 10%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--sun-2) 55%, var(--sun-3)); border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(255, 183, 3, .22), 0 4px 12px rgba(0,0,0,.25); cursor: grab; transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: var(--sun-2); box-shadow: 0 0 0 5px rgba(255, 183, 3, .22); }
.fine { margin-top: 24px; font-size: 13px; line-height: 1.55; color: var(--subtle); }
.calc-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center; }
.result { padding: 16px 18px; border-radius: 16px; background: var(--result-bg); border: 1px solid var(--line); min-width: 0; }
.result-hero { grid-column: 1 / -1; background: var(--hero-result-bg); border-color: rgba(245, 158, 11, .35); }
.r-label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.r-val { display: block; margin-top: 6px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-hero .r-val { font-size: clamp(32px, 3.6vw, 46px); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-cta { grid-column: 1 / -1; margin-top: 4px; }

/* ---------- why ---------- */
.why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.why-item { padding: 8px 28px 8px 24px; border-left: 1px solid var(--line); position: relative; }
.why-item::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--grad-sun); transition: height .9s var(--ease); }
.why-item.is-in::before { height: 56%; }
.why-num { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-bottom: 18px; -webkit-text-stroke: 1.2px var(--sun-3); color: transparent; }
.why-item p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ---------- notify ---------- */
.notify {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 80px);
  border-radius: 32px; border: 1px solid var(--notify-border);
  background: var(--notify-bg); box-shadow: var(--shadow-md);
}
.notify > * { position: relative; }
.notify .lede { margin-inline: auto; }
.notify-sun { position: absolute !important; left: 50%; bottom: -400px; width: 640px; height: 640px; margin-left: -320px; border-radius: 50%; background: radial-gradient(circle, var(--sun-2) 0%, var(--sun-3) 30%, rgba(255, 61, 104, .35) 55%, transparent 70%); filter: blur(24px); opacity: var(--notify-sun-opacity); animation: breathe2 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe2 { 50% { transform: translateY(-16px) scale(1.04); } }
.notify-form { max-width: 620px; margin: 34px auto 0; display: grid; gap: 12px; text-align: left; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.notify-form input, .notify-form select {
  display: block; width: 100%; height: 54px; padding: 0 18px; border-radius: 14px;
  background-color: var(--input-bg); border: 1px solid var(--line-strong); color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.notify-form select { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--sun-3) 50%), linear-gradient(135deg, var(--sun-3) 50%, transparent 50%); background-position: calc(100% - 24px) 52%, calc(100% - 18px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.notify-form select option { background: var(--surface-solid); color: var(--ink); }
.notify-form input::placeholder { color: var(--subtle); }
.notify-form input:focus, .notify-form select:focus { outline: none; border-color: var(--sun-3); box-shadow: 0 0 0 4px rgba(255, 138, 31, .16); }
.notify-form input.invalid { border-color: var(--err); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.notify-form .btn { height: 54px; }
.hp { position: absolute !important; left: -9999px; opacity: 0; }
.form-msg { min-height: 24px; margin-top: 4px; font-weight: 600; font-size: 14.5px; text-align: center; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.form-msg a { text-decoration: underline; }
.privacy { font-size: 12.5px; color: var(--subtle); text-align: center; }
.btn.is-loading .btn-label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid #1f1000; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 22px; box-shadow: var(--shadow-sm); transition: border-color .3s; }
.faq details[open] { border-color: rgba(245, 158, 11, .45); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 700; font-size: 16px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--accent-ink), var(--accent-ink)) center / 100% 2px no-repeat, linear-gradient(var(--accent-ink), var(--accent-ink)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px 28px; background: var(--footer-bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer-tag { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--accent-ink); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.socials a:hover { border-color: var(--sun-2); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials .dot { fill: var(--ink); }
.copyright { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; padding: 14px 22px; border-radius: 14px; background: var(--surface-solid); color: var(--ink); border: 1px solid var(--notify-border); font-weight: 600; box-shadow: 0 20px 40px rgba(0,0,0,.2); transition: transform .45s var(--ease), visibility .45s; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- reveal ---------- */
/* hold hero entrance until the loader has gone */
.js:not(.loaded) .sun-wrap, .js:not(.loaded) .panel-array { animation-play-state: paused; }
.js:not(.loaded) .hero .reveal.is-in { opacity: 0; transform: translateY(22px); }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in, .static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.static .loader { display: none; }

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

/* laptop (≤1199): 3 product columns; the featured card spans 2 → three even rows */
@media (max-width: 1199px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-wide { grid-column: span 2; }
  .nav-links { gap: 24px; }
  .trust-item { padding-inline: 16px; }
}

/* tablet (≤1023): stacked hero, hamburger menu */
@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-menu { display: grid; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; min-height: 0; padding-top: 12px; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; max-width: 440px; margin-bottom: -48px; }
  .hero-sub, .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .section-head { text-align: center; margin-inline: auto; }
  .filters { justify-content: center; }
  .scroll-cue { display: none; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: auto; }
  .trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item, .trust-item:first-child { padding: 20px 16px; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-head { position: static; margin-bottom: 0; }
  .faq { max-width: 760px; margin-inline: auto; width: 100%; }
}

/* mobile (≤639) */
@media (max-width: 639px) {
  :root { --nav-h: 64px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-actions { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero-title { font-size: clamp(40px, 12.2vw, 64px); }
  .hero-visual { max-width: 340px; margin-bottom: -36px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .trust-inner { grid-template-columns: minmax(0, 1fr); }
  .trust-item, .trust-item:first-child { padding: 16px 0; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .calc { border-radius: 22px; }
  .notify { border-radius: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* very small phones (≤374) */
@media (max-width: 374px) {
  .brand-text span { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; gap: 8px; }
  .hero-visual { margin-bottom: -16px; }
  .calc-results { grid-template-columns: minmax(0, 1fr); }
}

/* large desktop (≥1600) */
@media (min-width: 1600px) {
  :root { --container: 1360px; }
}

@media (hover: none) { .glow-cursor { display: none !important; } }

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