/* ==========================================================================
   Fyrasat Electronics — design system
   White theme · Metropolis type · GSAP + Lenis motion (see assets/js/main.js)
   ========================================================================== */

/* ---------- Fonts (self-hosted for speed) ---------- */
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/metropolis-400.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/metropolis-500.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/metropolis-600.woff2") format("woff2"); }
@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/metropolis-700.woff2") format("woff2"); }

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- Tokens ---------- */
:root {
  --font: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink: #0f1012;
  --text: #2c2e33;
  --muted: #6b6f77;
  --line: #e6e7ea;
  --soft: #f7f7f8;
  --gray: #f1f2f4;
  --white: #fff;
  --blue: #0047ff;
  --blue-2: #0a8cff;
  --orange: #ff4d00;
  --orange-2: #ffa400;
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--blue-2) 100%);
  --grad-warm: linear-gradient(100deg, var(--orange) 0%, var(--orange-2) 100%);
  --r-xl: 32px;
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --hh: 72px;
  --wrap: 1360px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 60px -30px rgba(15, 16, 18, .28);
  --shadow-sm: 0 10px 30px -14px rgba(15, 16, 18, .22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hh); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

main { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 28px; height: 28px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Type ---------- */
.display { font-size: clamp(36px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -.035em; }
.h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -.03em; }
.h3 { font-size: clamp(22px, 2vw, 30px); }
.lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 0 0 4px rgba(255, 77, 0, .14); }

/* Split-word headline masks (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--blue); color: #fff; }
.btn--dark:hover { background: #0037c7; box-shadow: 0 14px 30px -14px rgba(0, 71, 255, .6); }
.btn--blue { background: var(--grad); color: #fff; }
.btn--blue:hover { box-shadow: 0 14px 34px -12px rgba(0, 71, 255, .55); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--sm { --h: 40px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); font-size: 15px; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header (Sticky Navigation) ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100; height: var(--hh);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  border-bottom-color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 20px -2px rgba(11, 15, 25, 0.06), 0 1px 3px rgba(11, 15, 25, 0.03);
}
.header.mega-open { background: #fff; border-bottom-color: var(--line); box-shadow: 0 10px 30px -10px rgba(11, 15, 25, 0.08); }
.header__inner { height: 100%; display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.header__logo { flex: none; display: block; }
.header__logo img { height: 38px; width: auto; }
.nav { flex: 1; height: 100%; }
.nav__list { display: flex; height: 100%; gap: clamp(18px, 2.2vw, 36px); }
.nav__item { display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 100%;
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__item:hover .nav__link::after, .nav__link[aria-current="page"]::after, .nav__item.is-open .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link .ico { transition: transform .35s var(--ease); }
.nav__item.is-open .nav__link .ico { transform: rotate(180deg); }
.header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .3s; }
.icon-btn:hover { background: var(--gray); }
.burger { display: none; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .35s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-block: 36px 44px; }
.mega__intro h3 { font-size: 24px; margin-bottom: 10px; }
.mega__intro p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mega__card { display: block; border-radius: var(--r); background: var(--soft); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.mega__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.mega__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mega__card img[src*="gan-ii"] { object-fit: contain; background: #fff; padding: 6px; }
.mega__card span { display: block; padding: 12px 16px 14px; font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.3; }
.mega__card small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 3px; }

/* Drawer (mobile nav) */
.drawer {
  position: fixed; inset: 0; z-index: 120; background: #fff;
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.drawer__top { height: var(--hh); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer__top img { height: 30px; width: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding-block: 18px 32px; }
.drawer__link, .drawer__group summary {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.02em;
  padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none;
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary .ico { transition: transform .3s var(--ease); }
.drawer__group[open] summary .ico { transform: rotate(180deg); }
.drawer__sub { padding: 6px 0 12px; }
.drawer__sub a { display: block; padding: 9px 0; color: var(--muted); font-size: 17px; font-weight: 500; }
.drawer__foot { padding-block: 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer .drawer__body > .wrap > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.drawer.is-open .drawer__body > .wrap > * { opacity: 1; transform: none; }
.drawer.is-open .drawer__body > .wrap > *:nth-child(2) { transition-delay: .06s; }
.drawer.is-open .drawer__body > .wrap > *:nth-child(3) { transition-delay: .12s; }
.drawer.is-open .drawer__body > .wrap > *:nth-child(4) { transition-delay: .18s; }
.drawer.is-open .drawer__body > .wrap > *:nth-child(5) { transition-delay: .24s; }
.drawer.is-open .drawer__body > .wrap > *:nth-child(6) { transition-delay: .3s; }

/* Search */
.search {
  position: fixed; inset: 0; z-index: 130; background: rgba(15, 16, 18, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.search.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.search__panel { background: #fff; padding-block: 22px 30px; transform: translateY(-30px); transition: transform .5s var(--ease); box-shadow: var(--shadow); }
.search.is-open .search__panel { transform: none; }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.search__bar input { flex: 1; border: 0; outline: 0; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; background: transparent; min-width: 0; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; max-height: 60vh; overflow-y: auto; }
.search__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-sm); text-align: left; width: 100%; transition: background .25s; }
.search__item:hover, .search__item:focus-visible { background: var(--soft); }
.search__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--gray); }
.search__item b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; }
.search__item small { color: var(--muted); font-size: 13px; }
.search__hint { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ---------- Ambient motion background ---------- */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.ambient__orb--blue { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(10, 140, 255, .55), transparent 65%); top: -18%; right: -8%; }
.ambient__orb--warm { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(255, 164, 0, .45), transparent 65%); bottom: -20%; left: -6%; animation-duration: 22s; animation-delay: -6s; }
.ambient__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 16, 18, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 16, 18, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6vw, 5vh, 0) scale(1.08); }
  100% { transform: translate3d(4vw, -4vh, 0) scale(.95); }
}

/* Product stage: rounded media with an animated light trace along its border */
.stage { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #eceef1; isolation: isolate; box-shadow: var(--shadow); }
.stage > img { width: 100%; height: 100%; object-fit: cover; }
.stage--trace::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0deg 250deg, rgba(10, 140, 255, .9) 300deg, rgba(255, 164, 0, .95) 335deg, transparent 360deg);
  -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);
  animation: trace 6s linear infinite;
}
@keyframes trace { to { --a: 360deg; } }

/* Floating glass chips */
.chip-float {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 18px 40px -18px rgba(15, 16, 18, .35);
}
.chip-float > div { animation: none; }
.chip-float__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); flex: none; }
.chip-float__icon--warm { background: var(--grad-warm); }
.chip-float b { display: block; color: var(--ink); font-size: 22px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chip-float small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 4px; white-space: nowrap; }
.bob { animation: bob 6s ease-in-out infinite; }
.bob--2 { animation-delay: -2s; }
.bob--3 { animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px; padding-top: var(--hh); background: var(--soft); overflow: hidden; }
.hero__slides { position: relative; z-index: 1; height: calc(100% - 96px); }
.hero__slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  visibility: hidden;
}
.hero__slide.is-active { visibility: visible; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2.2vh, 24px); }
.hero__copy .lead { max-width: 36ch; }
.hero__stage { height: min(70vh, 660px); max-height: 100%; }
.hero__stage > img { transform-origin: 60% 60%; }
.hero__stage .chip-float--a { left: 24px; bottom: 26px; }
.hero__stage .chip-float--b { right: 24px; top: 26px; }
.hero__stage .chip-float--c { right: 24px; bottom: 26px; }
.hero__nav { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 96px; }
.hero__nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.hero__tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(10px, 2vw, 28px); }
.hero__tab { text-align: left; padding: 10px 0; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .3s; min-width: 0; }
.hero__tab:hover, .hero__tab.is-active { color: var(--ink); }
.hero__tab span { display: block; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__bar { display: block; height: 3px; border-radius: 3px; background: rgba(15, 16, 18, .12); overflow: hidden; }
.hero__bar i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-done .hero__bar i { transform: scaleX(1); }
.hero__arrows { display: flex; gap: 8px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid rgba(15, 16, 18, .16); color: var(--ink); background: rgba(255, 255, 255, .6);
  transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn--prev .ico { transform: rotate(180deg); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; letter-spacing: .02em; }
.ticker__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-warm); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 11vh, 128px); }
.screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.bg-soft { background: var(--soft); }
.bg-gray { background: var(--gray); }
.section__head { text-align: center; max-width: 780px; margin: 0 auto clamp(28px, 5vh, 60px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section__head--left { text-align: left; align-items: flex-start; margin-left: 0; }
.section__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vh, 44px); flex-wrap: wrap; }
.section__row .section__head { margin: 0; }

/* Signature series bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; height: clamp(460px, calc(100svh - 300px), 760px); }
.bento .series-card--lg { grid-row: 1 / 3; }
.series-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: #eceef1; isolation: isolate; color: var(--ink); }
.series-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.series-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .4) 30%, transparent 52%); }
.series-card:hover > img { transform: scale(1.06); }
.series-card--sm { background: #f1f2f4; }
.series-card--sm::before { display: none; }
.series-card--sm > img { left: 34%; width: 66%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); }
.series-card--sm .series-card__body { max-width: 48%; height: 100%; justify-content: center; }
.series-card__body { padding: clamp(22px, 2.6vw, 40px); max-width: 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.series-card__body h3 { font-size: clamp(22px, 2.3vw, 34px); }
.series-card--lg .series-card__body h3 { font-size: clamp(28px, 3vw, 46px); }
.series-card__body p { color: var(--muted); font-size: 15px; }
.series-card__body .link-arrow { margin-top: 4px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .18); }
.tag--blue { background: var(--grad); color: #fff; }
.tag--warm { background: var(--grad-warm); color: #fff; }

/* GaN story (pinned on scroll) */
.story { background: #fff; }
.story__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; min-height: 100vh; min-height: 100svh; padding-block: calc(var(--hh) + 2vh) 4vh; }
.story__visual { height: min(72vh, 640px); }
.rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.rings i { position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(10, 140, 255, .55); animation: ring 3.6s var(--ease) infinite; opacity: 0; }
.rings i:nth-child(2) { animation-delay: 1.2s; border-color: rgba(255, 164, 0, .6); }
.rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.story__meter { position: absolute; z-index: 4; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.story__meter b { font-size: 14px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.story__meter span { flex: 1; height: 4px; border-radius: 4px; background: rgba(15, 16, 18, .1); overflow: hidden; }
.story__meter span i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(.33); }
.story__copy { display: flex; flex-direction: column; gap: 18px; }
.steps { position: relative; display: grid; gap: 4px; margin-top: 10px; padding-left: 26px; border-left: 2px solid var(--line); }
.step { padding: clamp(8px, 1.4vh, 12px) 0; transition: opacity .5s var(--ease); }
.step__num { display: block; font-size: clamp(34px, min(4.4vw, 7vh), 64px); font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.step h3 { font-size: clamp(16px, 2.4vh, 19px); margin-top: 6px; }
.step__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease); }
.step__body > p { overflow: hidden; min-height: 0; color: var(--muted); font-size: 15px; max-width: 42ch; padding-top: 6px; }
.story.is-pinned .step:not(.is-active) .step__body { grid-template-rows: 0fr; }
.steps__fill { position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: var(--grad); transform-origin: top; transform: scaleY(0); }
.story.is-pinned .step { opacity: .28; }
.story.is-pinned .step.is-active { opacity: 1; }

/* Smart display spotlight */
.spot { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.spot__stage { height: min(74vh, 680px); }
.live {
  position: absolute; z-index: 4; left: 22px; bottom: 22px; width: min(320px, calc(100% - 44px));
  padding: 18px; border-radius: 20px;
  background: rgba(12, 16, 26, .84); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
}
.stage--dark { background: #0b0f1a; display: grid; place-items: center; padding: 24px; }
.stage--dark .ambient__grid { background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); }
.live--static { position: relative; left: auto; bottom: auto; z-index: 1; width: min(400px, 100%); padding: 26px; background: rgba(16, 22, 36, .9); border: 1px solid rgba(255, 255, 255, .08); }
.live--static .live__watts b { font-size: clamp(56px, 6vw, 80px); }
.live__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .14em; font-weight: 600; color: rgba(255, 255, 255, .6); }
.live__dot { display: inline-flex; align-items: center; gap: 8px; color: #49e08b; }
.live__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #49e08b; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live__watts { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 2px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.live__watts b { font-size: 52px; line-height: 1; background: linear-gradient(90deg, #5bc4ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live__watts span { font-size: 22px; color: rgba(255, 255, 255, .7); }
.live__mode { font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 12px; }
.live__ports { display: grid; gap: 8px; }
.live__port { display: grid; grid-template-columns: 26px 1fr 44px; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.live__port span { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.live__port span i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), #5bc4ff); transition: width .9s var(--ease); }
.live__port em { font-style: normal; text-align: right; }
.live__temp { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .7); }
.live__temp b { color: var(--orange-2); }
.spot__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-block: 6px; }
.feature-list li { display: flex; gap: 12px; }
.feature-list .ico { color: var(--blue); margin-top: 2px; }
.feature-list b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--gray); position: relative; }
.toggle button { position: relative; z-index: 1; height: 40px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .35s; }
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle__pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.specs { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; padding-block: 16px; border-block: 1px solid var(--line); width: 100%; }
.specs dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.specs dd { color: var(--ink); font-weight: 600; font-size: 15px; }
.specs div { display: flex; flex-direction: column; gap: 4px; }

/* Product cards */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { height: 42px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--text); transition: all .3s var(--ease); }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* The rail clips its overflow, so it carries extra padding (cancelled by negative margins)
   to leave room for the hover lift and shadow of each card. */
.rail {
  --bleed: 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: var(--bleed) var(--bleed) 40px; margin: calc(var(--bleed) * -1) calc(var(--bleed) * -1) -24px; scroll-padding-inline: var(--bleed);
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail__foot { position: relative; display: flex; align-items: center; gap: 24px; margin-top: clamp(16px, 3vh, 30px); }
.bento__foot { display: none; }
.rail__progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail__progress i { display: block; height: 100%; background: var(--ink); width: 100%; transform-origin: left; transform: scaleX(.25); transition: transform .2s linear; }
.rail__arrows { display: flex; gap: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pcard {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(15, 16, 18, .28), 0 2px 8px -4px rgba(15, 16, 18, .08); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 5 / 4; width: 100%; background: var(--gray); overflow: hidden; }
.rail .pcard__media { aspect-ratio: auto; height: min(30vh, 280px); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard__media--dark { background: #0c1220; }
.pcard__media--dark img, .pcard__media--contain img { object-fit: contain; }
.pcard__media--contain { background: #fff; }
.pcard__media--contain img { mix-blend-mode: multiply; padding: 6%; }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__media .tag { position: absolute; top: 14px; left: 14px; }
.pcard__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.pcard__series { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.pcard__name { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.pcard__desc { color: var(--muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; font-weight: 600; color: var(--text); background: var(--gray); padding: 5px 10px; border-radius: 999px; }
.pcard__actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard.is-filtered { display: none; }

/* Scale-to-full lifestyle banner */
.expand { position: relative; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; background: #fff; }
.expand__media { position: relative; width: 100%; height: 100%; overflow: hidden; }
.js-motion .expand__media { width: 74%; height: 72%; border-radius: var(--r-xl); }
.expand__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.expand__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, .78) 0%, rgba(8, 10, 14, .3) 48%, transparent 75%), linear-gradient(90deg, rgba(8, 10, 14, .45) 0%, transparent 60%); }
.expand__copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 8vh, 80px); color: #fff; }
.expand__copy h2 { color: #fff; max-width: 14ch; }
.expand__copy p { color: rgba(255, 255, 255, .85); max-width: 44ch; margin-top: 14px; font-size: clamp(15px, 1.2vw, 18px); }
.expand__copy .actions { margin-top: 22px; }

/* Stats + reasons */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: clamp(22px, 4vh, 40px) clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: flex; align-items: baseline; gap: 4px; font-size: clamp(40px, 4.6vw, 72px); font-weight: 700; color: var(--ink); letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .4em; letter-spacing: -.01em; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats + .cards4 { margin-top: clamp(24px, 5vh, 56px); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icard { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--soft); border: 1px solid transparent; transition: background .45s var(--ease), border-color .45s, transform .45s var(--ease), box-shadow .45s; }
.icard:hover { background: #fff; border-color: var(--line); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.icard__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--blue); margin-bottom: 18px; box-shadow: 0 8px 20px -12px rgba(0, 71, 255, .5); transition: background .45s, color .45s; }
.icard:hover .icard__ico { background: var(--grad); color: #fff; }
.icard h3 { font-size: 18px; margin-bottom: 8px; }
.icard p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.bg-soft .icard { background: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact__list { display: grid; gap: 12px; width: 100%; margin-top: 8px; }
.contact__list > * { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.contact__list a:hover { border-color: var(--ink); transform: translateX(4px); }
.contact__list .icard__ico { margin: 0; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.contact__list b { display: block; color: var(--ink); font-size: 15px; }
.contact__list small { color: var(--muted); font-size: 13px; }
.form { background: #fff; border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--soft);
  padding: 13px 16px; font-size: 15px; outline: 0; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 71, 255, .1); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #e5484d; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); }

/* ---------- Footer (Modern Luxury Tech Aesthetic) ---------- */
.footer {
  background: #071233;
  color: rgba(255, 255, 255, 0.68);
  padding-top: clamp(64px, 8vh, 96px);
  font-size: 14.5px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer a {
  transition: color 0.25s ease, transform 0.25s ease;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.footer a:hover {
  color: #ffffff;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.35fr 2fr;
  gap: clamp(36px, 6vw, 92px);
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__logo-link {
  display: inline-block;
  margin-bottom: 18px;
  transition: opacity 0.25s ease;
}
.footer__logo-link:hover {
  opacity: 0.9;
}
.footer__brand img {
  height: 38px;
  width: auto;
  display: block;
}
.footer__desc {
  max-width: 44ch;
  margin-bottom: 22px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.footer__trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.ft-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s;
}
.ft-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 82, 255, 0.45);
}
.ft-tag .ico {
  width: 14px;
  height: 14px;
  color: var(--blue-light, #0A8CFF);
}
.footer__brand-action {
  margin-top: 6px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer__cols h3 {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer__cols ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer__cols li a {
  display: inline-block;
  font-size: 14px;
}
.footer__cols li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}
.footer__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.footer__parent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.footer__parent-card:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(10, 140, 255, 0.4);
  transform: translateY(-2px);
}
.footer__parent-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer__parent-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.footer__parent-title {
  font-size: 14.5px;
  color: #ffffff;
  font-weight: 500;
}
.footer__parent-title strong {
  color: #ffffff;
  font-weight: 700;
}
.footer__parent-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.footer__parent-badge {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.footer__parent-badge img {
  height: 72px;
  width: auto;
  display: block;
}
.footer__parent-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 140, 255, 0.15);
  border: 1px solid rgba(10, 140, 255, 0.35);
  color: #4da3ff;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}
.footer__parent-card:hover .footer__parent-url-chip {
  background: #0A8CFF;
  color: #ffffff;
  border-color: #0A8CFF;
  box-shadow: 0 4px 12px rgba(10, 140, 255, 0.35);
}
.footer__copy-parent {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.footer__copy-parent:hover {
  color: #ffffff;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}
.footer__tech-pills {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.footer__dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
}
.footer__dev-link {
  color: #0A8CFF !important;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.25s ease !important;
}
.footer__dev-link:hover {
  color: #FFA400 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Page hero (sub-pages) ---------- */
.phero { position: relative; overflow: hidden; background: var(--soft); padding-top: var(--hh); min-height: 100vh; min-height: 100svh; max-height: 980px; display: flex; align-items: center; }
.phero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(24px, 5vh, 56px); width: 100%; }
.phero__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.phero__copy .display { font-size: clamp(36px, 4.6vw, 68px); }
.phero__stage { height: min(68vh, 620px); }
.phero--compact { min-height: min(80svh, 720px); }
.phero--compact .phero__inner { grid-template-columns: 1fr; max-width: 860px; text-align: left; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.badges .ico { width: 16px; height: 16px; color: var(--blue); }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { height: min(72vh, 620px); }
.split__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.split__copy p { color: var(--muted); }
.checks { display: grid; gap: 12px; margin-block: 4px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat, var(--grad); }

/* Power allocation / capacity cards */
.alloc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.alloc__head { display: flex; align-items: center; justify-content: space-between; }
.alloc__head b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.alloc__devices { display: flex; gap: 4px; }
.alloc__devices i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-warm); }
.alloc h3 { font-size: 20px; }
.alloc > p { color: var(--muted); font-size: 14.5px; }
.meter { display: grid; gap: 6px; }
.meter__label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text); }
.meter__track { height: 8px; border-radius: 8px; background: var(--gray); overflow: hidden; }
.meter__track i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: var(--v, 0%); transform-origin: left; }
.meter--warm .meter__track i { background: var(--grad-warm); }
.alloc__total { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); }
.big-num { font-size: clamp(40px, 4vw, 60px); font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.compare thead th:nth-child(2) { color: var(--blue); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 30%; }
.compare td:nth-child(2) { color: var(--ink); font-weight: 600; background: rgba(0, 71, 255, .03); }
.compare td:nth-child(3) { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cert { aspect-ratio: 1; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; transition: transform .45s var(--ease), box-shadow .45s; }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cert b { font-size: clamp(20px, 2vw, 28px); color: var(--ink); letter-spacing: -.02em; }
.cert small { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* FAQ */
.faq { max-width: 900px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); }

/* Trust strip */
.trust { border-top: 1px solid var(--line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; gap: 14px; align-items: center; padding: 28px 20px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item .ico { color: var(--blue); width: 30px; height: 30px; }
.trust__item b { display: block; color: var(--ink); font-size: 15px; }
.trust__item small { color: var(--muted); font-size: 13px; }

/* Simulator + figures (smart display page) */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.sim button { text-align: left; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; transition: border-color .3s, background .3s; }
.sim button b { display: block; font-size: 15px; color: var(--ink); }
.sim button small { color: var(--muted); font-size: 13px; }
.sim button[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.figure { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.figure img { width: 100%; border-radius: var(--r-sm); }
.figure figcaption { font-size: 14px; color: var(--muted); font-weight: 500; }
.banner-img { border-radius: var(--r-lg); overflow: hidden; background: #0c1220; box-shadow: var(--shadow); }
.banner-img img { width: 100%; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: rgba(255, 255, 255, .75); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta-band > :not(.ambient) { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 14px; max-width: 48ch; }
.cta-band .actions { justify-content: flex-end; }
.cta-band .ambient__orb { opacity: .5; }

/* Quick view dialog */
.qv { border: 0; padding: 0; margin: auto; border-radius: var(--r-xl); width: min(980px, calc(100% - 32px)); max-height: calc(100svh - 32px); background: #fff; color: var(--text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.qv::backdrop { background: rgba(15, 16, 18, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qv[open] { animation: qv-in .55s var(--ease); }
@keyframes qv-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.qv__grid { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100svh - 32px); }
.qv__media { background: var(--gray); min-height: 320px; }
.qv__media img { width: 100%; height: 100%; object-fit: cover; }
.qv__media.is-dark { background: #0c1220; }
.qv__media.is-dark img, .qv__media.is-contain img { object-fit: contain; }
.qv__media.is-contain { background: #fff; }
.qv__media.is-contain img { mix-blend-mode: multiply; padding: 8%; }
.qv__body { padding: clamp(24px, 3vw, 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.qv__body h2 { font-size: clamp(24px, 2.4vw, 32px); }
.qv__specs { display: grid; gap: 8px; width: 100%; padding-block: 14px; border-block: 1px solid var(--line); }
.qv__specs li { padding-left: 18px; position: relative; font-size: 14.5px; }
.qv__specs li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.qv__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; box-shadow: var(--shadow-sm); }

/* To top + progress */
.to-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ico { transform: rotate(-90deg); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 105; background: var(--grad-orange); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Floating WhatsApp Button */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #25D366;
}
.wa-float__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.wa-float__icon svg {
  width: 26px;
  height: 26px;
}
.wa-float__icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.wa-float__label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-float__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 6px #25D366;
}
.wa-float__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wa-float__text small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 600;
}
.wa-float__text b {
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 600px) {
  .wa-float {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 18px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    border: none;
  }
  .wa-float__icon {
    width: 52px;
    height: 52px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  .wa-float__icon svg {
    width: 30px;
    height: 30px;
  }
  .wa-float__label {
    display: none;
  }
}

/* ---------- Motion initial states (only while the JS animation layer is active) ---------- */
.js-motion [data-reveal], .js-motion [data-stagger] > *, .js-motion [data-split] { opacity: 0; }
.js-motion .hero__slide:not(.is-active) { opacity: 0; }

/* ---------- Client catalogue additions ---------- */
.footer__logo-link { background: #fff; padding: 10px 16px; border-radius: 14px; }
.stage--contain { background: #fff; }
.stage--contain > img { object-fit: contain; padding: 3%; }
.mega__blank { display: grid !important; place-items: center; aspect-ratio: 4 / 3; padding: 0 !important; background: var(--gray); color: var(--muted); }
.watt-links { display: flex; gap: 8px; margin-bottom: 18px; }
.watt-links a { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); transition: border-color .3s, color .3s; }
.watt-links a:hover { border-color: var(--blue); color: var(--blue); }
#series .section__head { max-width: none; }
.cat-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cat-links a { padding: 8px 16px; border-radius: 999px; background: var(--gray); font-size: 14px; font-weight: 600; color: var(--ink); transition: background .3s, color .3s; }
.cat-links a:hover { background: var(--blue); color: #fff; }
.contact__list > .contact__phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; background: none; border: 0; }
.contact__phones a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .3s; min-width: 0; }
.contact__phones a:hover { border-color: var(--blue); }
.contact__phones small { white-space: nowrap; }
.tabs--center { justify-content: center; margin-bottom: clamp(20px, 3.5vh, 36px); }
.filter-empty { text-align: center; padding: clamp(40px, 8vh, 80px) 20px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.filter-empty p { color: var(--muted); }
.soon-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(4, 1fr); }
  .mega__grid { grid-template-columns: repeat(3, 1fr); }
  .mega__grid > :nth-child(4) { display: none; }
}

@media (max-width: 1024px) {
  :root { --hh: 64px; }
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
  .header__logo img { height: 34px; }
  .hero__slide { grid-template-columns: 1fr 1.1fr; }
  .story__inner, .spot, .split, .contact, .phero__inner { gap: 32px; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 860px) {
  .hero { min-height: 560px; max-height: none; }
  .hero__slides { height: calc(100% - 76px); }
  .hero__slide { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 18px; padding-top: 20px; padding-bottom: 4px; }
  .hero__copy { gap: 12px; }
  .hero__copy .display { font-size: clamp(32px, 8.6vw, 48px); }
  .hero__copy .lead { font-size: 15px; }
  .hero__stage { height: 100%; min-height: 0; border-radius: var(--r-lg); }
  .hero__stage .chip-float--b { display: none; }
  .hero__stage .chip-float--a { left: 12px; bottom: 12px; }
  .hero__stage .chip-float--c { right: 12px; bottom: 12px; }
  .chip-float { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 14px; }
  .chip-float__icon { width: 32px; height: 32px; border-radius: 10px; }
  .chip-float__icon .ico { width: 18px; height: 18px; }
  .chip-float b { font-size: 17px; }
  .chip-float small { font-size: 11px; }
  .hero__nav { height: 76px; }
  .hero__arrows { display: none; }
  .hero__tab { font-size: 12px; }
  .hero__tab span { margin-bottom: 8px; }

  .bento { display: flex; height: min(64svh, 560px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .bento::-webkit-scrollbar { display: none; }
  /* Mobile series cards: text panel on top, product photo fades in below — no overlap */
  .bento { height: min(66svh, 540px); gap: 14px; }
  .bento .series-card { flex: 0 0 min(82%, 340px); scroll-snap-align: start; display: flex; flex-direction: column; background: #f1f2f4; box-shadow: inset 0 0 0 1px var(--line); }
  .series-card::before, .series-card--sm::before { display: none; }
  .series-card > img, .series-card--sm > img {
    position: relative; inset: auto; z-index: 0; order: 2; flex: 1; min-height: 0; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  }
  .series-card__body, .series-card--sm .series-card__body { order: 1; max-width: none; height: auto; justify-content: flex-start; padding: 22px 22px 6px; gap: 6px; }
  .series-card__body h3, .series-card--lg .series-card__body h3 { font-size: 24px; }
  .series-card__body p { font-size: 14px; line-height: 1.5; }
  .series-card:hover > img { transform: none; }
  .bento__foot { display: flex; margin-top: 18px; }

  .story__inner { grid-template-columns: 1fr; align-content: center; gap: 22px; padding-block: calc(var(--hh) + 12px) 24px; }
  .story__visual { height: 34svh; border-radius: var(--r-lg); }
  .story__meter { left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; }
  .story__copy { gap: 12px; }
  .story.is-pinned .step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
  .story.is-pinned .step.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

  .spot { grid-template-columns: 1fr; }
  .spot__stage { height: 46svh; border-radius: var(--r-lg); }
  .spot__stage { height: 40svh; }
  .live { left: 12px; bottom: 12px; padding: 12px 14px; width: min(190px, calc(100% - 24px)); border-radius: 16px; }
  .live:not(.live--static) .live__ports, .live:not(.live--static) .live__temp { display: none; }
  .live:not(.live--static) .live__mode { margin-bottom: 0; font-size: 12px; }
  .live__watts b { font-size: 34px; }

  .rail { grid-auto-columns: 74%; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .pcard:hover { transform: none; }
  .rail .pcard__media { height: 30svh; }
  .rail__arrows { display: none; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pgrid .pcard__body { padding: 14px; }
  .pgrid .pcard__name { font-size: 15px; }
  .pgrid .pcard__desc { display: none; }
  .pgrid .chips li:nth-child(n+3) { display: none; }
  .pgrid .pcard__actions { flex-direction: column; align-items: stretch; }

  .js-motion .expand__media { width: 88%; height: 70%; border-radius: var(--r-lg); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .phero { min-height: 0; max-height: none; }
  .phero__inner { grid-template-columns: 1fr; padding-block: 24px 40px; }
  .phero__stage { height: 42svh; border-radius: var(--r-lg); }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media { height: 44svh; border-radius: var(--r-lg); }
  .cards3 { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .trust__item { border-left: 0; padding-left: 0; padding-block: 18px; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .figure-row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__parent-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__parent-action { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .qv__grid { grid-template-columns: 1fr; overflow-y: auto; }
  .qv__media { min-height: 0; aspect-ratio: 4 / 3; }
  .qv__body { overflow: visible; }
}

@media (max-width: 560px) {
  .contact__list > .contact__phones { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .btn { --h: 46px; padding: 0 22px; }
  .hero__copy .actions { width: 100%; flex-wrap: nowrap; }
  .hero__copy .actions .btn { flex: 1; padding: 0 12px; }
  .cards4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cards4 .icard { padding: 18px; }
  .cards4 .icard__ico { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; }
  .cards4 .icard h3 { font-size: 15px; }
  .cards4 .icard p { font-size: 13px; }
  .sim { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .cert { aspect-ratio: auto; padding: 18px 12px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__trust-tags { gap: 6px; }
  .footer__parent-action { flex-direction: column; align-items: stretch; gap: 12px; }
  .footer__parent-badge { width: 100%; justify-content: center; }
  .footer__parent-url-chip { width: 100%; justify-content: center; }
  .faq summary { font-size: 15.5px; padding: 16px 18px; }
  .faq__a { padding: 0 18px 18px; }
  .trust__item { gap: 10px; }
  .trust__item .ico { width: 24px; height: 24px; }
}

/* Shorter laptop screens (e.g. 1366×768, 1536×864 with browser bars): tighten so each section fits one screen */
@media (min-width: 861px) and (max-height: 900px) {
  .section { padding-block: clamp(56px, 8vh, 80px); }
  .display { font-size: clamp(34px, min(5.2vw, 9.4vh), 78px); }
  .h2 { font-size: clamp(28px, min(3.6vw, 6vh), 54px); }
  .section__head { gap: 10px; margin-bottom: clamp(20px, 3.6vh, 40px); }
  .bento { height: clamp(380px, calc(100svh - 250px), 760px); }
  .story__inner { padding-block: calc(var(--hh) + 1vh) 3vh; }
  .story__copy, .spot__copy { gap: clamp(10px, 1.8vh, 18px); }
  .story__visual { height: min(70vh, 600px); }
  .feature-list { gap: 12px 24px; }
  .specs { padding-block: 12px; }
  .rail .pcard__media { height: min(24vh, 260px); }
  .rail .pcard__desc { display: none; }
  .rail .pcard__body { padding: 16px 18px 18px; gap: 6px; }
  .stats + .cards4 { margin-top: 3vh; }
  .icard { padding: 22px; }
  .icard__ico { margin-bottom: 12px; }
  .form { gap: 10px; padding: 24px 28px; }
  .field textarea { min-height: 80px; }
  .phero__stage, .split__media { height: min(64vh, 600px); }
}

@media (max-width: 860px) and (max-height: 720px) {
  .hero__copy .lead { display: none; }
}

@media (max-width: 360px) {
  .pgrid { grid-template-columns: 1fr; }
  .hero__tab { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
