/* =====================================================================
   REX Simulations — Cinematic dark design system
   Pure CSS. Brand: #009cff on near-black. No frameworks.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:        #070809;
  --bg-1:      #0a0c0f;
  --bg-2:      #0d1015;
  --bg-3:      #12161c;
  --glass:     rgba(255, 255, 255, 0.035);
  --glass-2:   rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #eaf0f6;
  --text-dim:  #9aa7b6;
  --text-mut:  #6b7787;

  --accent:    #009cff;
  --accent-2:  #4fc3ff;
  --accent-3:  #0066d6;
  --glow:      rgba(0, 156, 255, 0.45);
  --glow-soft: rgba(0, 156, 255, 0.16);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --maxw:      1240px;
  --gut:       clamp(20px, 5vw, 48px);

  --ease:      cubic-bezier(.22, 1, .36, 1);
  --shadow:    0 24px 60px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -30px var(--glow-soft);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient backdrop glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(0,156,255,.10), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(0,102,214,.08), transparent 55%),
    var(--bg);
  pointer-events: none;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { color: var(--text-dim); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2);
  padding: .4rem .85rem;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: var(--glow-soft);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.gradient-text {
  background: linear-gradient(110deg, #fff 0%, var(--accent-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.accent { color: var(--accent-2); }
/* White→blue gradient on in-page headings (product pages opt in via body class) */
.gradient-headings main h2,
.gradient-headings main .feature-row h3,
.gradient-headings main .card h3 {
  background: linear-gradient(110deg, #fff 0%, var(--accent-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(18px, 2.2vw, 38px); position: relative; }
.section--tight { padding-block: clamp(12px, 1.6vw, 26px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.1rem; font-size: 1.12rem; }
.lead { font-size: 1.18rem; color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 100px; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  white-space: nowrap; cursor: pointer; position: relative;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #021019; box-shadow: 0 10px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px var(--glow); }
.btn-buy { background: linear-gradient(180deg, #3ee08d, #14b866); color: #042914; box-shadow: 0 10px 30px -8px rgba(20,184,102,.5), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-buy:hover { transform: translateY(-3px); box-shadow: 0 18px 46px -10px rgba(20,184,102,.65); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--border-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); background: var(--glass-2); border-color: var(--accent); color: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }

/* ===================================================================
   NAVBAR
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #000;
  transition: border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: #000;
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 1.1rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: padding .4s var(--ease);
}
.nav.scrolled .nav__inner { padding-block: .7rem; }
.nav__logo img { height: 56px; transition: height .4s var(--ease), filter .35s var(--ease), transform .35s var(--ease); }
.nav.scrolled .nav__logo img { height: 44px; }
.nav__logo:hover img { filter: drop-shadow(0 0 8px rgba(0,156,255,.85)) drop-shadow(0 0 18px rgba(0,156,255,.5)); transform: translateY(-1px); }

.nav__menu { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--text-dim);
  padding: .55rem .85rem; border-radius: 10px; transition: color .25s, background .25s; position: relative;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px;
  background: var(--accent); border-radius: 2px; box-shadow: 0 0 10px var(--accent);
}
.nav__actions { display: flex; align-items: center; gap: .8rem; }

/* Dropdown */
.nav__item { position: relative; }
.nav__dd-toggle { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; color: inherit; }
.nav__dd-toggle svg { width: .8em; transition: transform .3s; }
.nav__item:hover .nav__dd-toggle svg, .nav__item:focus-within .nav__dd-toggle svg { transform: rotate(180deg); }
.nav__dd {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 320px; padding: .6rem; border-radius: var(--radius);
  background: rgba(12,15,20,.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.nav__item:hover .nav__dd, .nav__item:focus-within .nav__dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Transparent bridge across the gap so hover doesn't drop between button and panel */
.nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__dd a { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .85rem; border-radius: 10px; transition: background .2s; }
.nav__dd a:hover { background: var(--glow-soft); }
/* Active product highlight when on that page */
.nav__dd a[aria-current="page"] { background: var(--glow-soft); box-shadow: inset 3px 0 0 var(--accent); }
.nav__dd a[aria-current="page"] strong { color: var(--accent-2); }
.mobile-menu a[aria-current="page"] { color: var(--accent-2); }
.nav__dd a strong { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .96rem; }
.nav__dd a span { font-size: .82rem; color: var(--text-mut); }

/* Mobile toggle */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; z-index: 110; }
.nav__burger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 105; background: rgba(7,8,9,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 6rem var(--gut) 3rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text-dim); padding: .55rem 0; border-bottom: 1px solid var(--border); transition: color .2s, padding-left .25s; }
.mobile-menu a:hover { color: #fff; padding-left: .5rem; }
.mobile-menu .mm-sub { font-size: 1.05rem; color: var(--accent-2); padding-left: 1rem; border: 0; }
.mobile-menu .mm-label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mut); margin-top: 1.2rem; border: 0; padding-bottom: .2rem; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; display: flex; align-items: center; padding: clamp(112px, 13vh, 144px) 0 clamp(52px, 6vw, 84px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%; left: 0; will-change: transform; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,8,9,.55) 0%, rgba(7,8,9,.35) 35%, rgba(7,8,9,.85) 80%, var(--bg) 100%),
    radial-gradient(80% 60% at 20% 40%, rgba(0,102,214,.22), transparent 70%);
}
/* Lighter overlay for the homepage hero only (keeps the sky brighter) */
.hero--home .hero__bg::after {
  background:
    linear-gradient(180deg, rgba(7,8,9,.40) 0%, rgba(7,8,9,.20) 38%, rgba(7,8,9,.72) 82%, var(--bg) 100%),
    radial-gradient(80% 60% at 20% 40%, rgba(0,102,214,.13), transparent 70%);
}
/* More opaque eyebrow pill so it reads clearly over the hero image */
.hero .eyebrow { background: rgba(2,18,38,.72); border-color: rgba(0,156,255,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #cfeaff; }
/* Tighten the gap between the homepage hero and the Collection */
.hero--home { padding-bottom: clamp(20px, 2.5vw, 40px); }
#products { padding-top: clamp(8px, 1.5vw, 22px); }
.hero__inner { position: relative; max-width: 880px; }
.hero h1 { margin: 1.4rem 0 0; }
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text); max-width: 620px; margin-top: 1.4rem; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.4rem; padding-top: 2.2rem; border-top: 1px solid var(--border); }
.hero__stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: #fff; }
.hero__stat .lbl { font-size: .85rem; color: var(--text-mut); letter-spacing: .04em; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--text-mut); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid var(--border-2); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--accent-2); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%, 10px); } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Page hero (interior) */
.phero { position: relative; padding: clamp(116px, 13vh, 160px) 0 clamp(18px, 2.2vw, 38px); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: -1; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,9,.62), rgba(7,8,9,.55) 40%, rgba(7,8,9,.92) 85%, var(--bg)); }
/* Product hero: content pushed down + lighter overlay so more of the hero photo shows */
.phero--bright { padding-top: clamp(170px, 20vh, 248px); }
.phero--bright h1 { color: #fff; }
.phero--bright .eyebrow { background: rgba(2,18,38,.72); border-color: rgba(0,156,255,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #cfeaff; }
.phero--bright .phero__bg::after { background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(7,8,9,.12) 56%, rgba(7,8,9,.74) 87%, var(--bg) 100%); }
.phero__inner { max-width: 820px; }
.phero h1 { margin-top: 1.2rem; }
.phero p { font-size: 1.18rem; color: var(--text); margin-top: 1.2rem; max-width: 640px; }
.phero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: var(--text-mut); margin-bottom: .4rem; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span { color: var(--border-2); }

/* ===================================================================
   CARDS / GRIDS
   =================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--glass-2); box-shadow: var(--shadow-glow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--glow-soft); border: 1px solid var(--border-2); color: var(--accent-2);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { color: #fff; margin-bottom: .6rem; font-size: 1.25rem; }
.card p { font-size: .98rem; }

/* Feature with top accent line on hover */
.card.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .4s;
}
.card.feature:hover::before { opacity: 1; }

/* Product cards (homepage) */
.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-2);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.pcard:hover { transform: translateY(-8px); border-color: var(--border-2); box-shadow: var(--shadow-glow); }
.pcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13,16,21,.95)); }
.pcard__tag { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 100px; background: rgba(2,16,34,.82); border: 1px solid rgba(0,156,255,.45); color: #cfeaff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pcard__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
.pcard__body h3 { color: #fff; margin-bottom: .35rem; }
.pcard__plat { font-size: .8rem; color: var(--accent-2); font-family: var(--font-display); font-weight: 500; margin-bottom: .8rem; }
.pcard__body p { font-size: .96rem; flex: 1; }
.pcard__foot { display: flex; gap: .7rem; margin-top: 1.4rem; }
.pcard__foot .btn { flex: 1; }
/* Learn More (ghost) hover -> solid blue, matching the Explore Products button */
.pcard__foot .btn-ghost:hover { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #021019; border-color: transparent; box-shadow: 0 10px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.4); }

/* Alternating feature blocks */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(4rem, 7vw, 7rem); }
/* Alternating full-bleed bands (e.g. Atmos CORE feature sections) */
.feature-band { padding-block: clamp(20px, 2.4vw, 40px); }
.feature-band--alt { background: #0b0f16; border-block: 1px solid rgba(255,255,255,.04); }
.feature-row--flip .feature-row__media { order: 2; }
.feature-row__media { overflow: hidden; box-shadow: var(--shadow); position: relative; }
.feature-row__media img { width: 100%; height: auto; display: block; }
.showcase { margin-top: clamp(1.8rem, 3.2vw, 3rem); overflow: hidden; box-shadow: var(--shadow); }
.showcase img { width: 100%; height: auto; display: block; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 3vw, 2.6rem); }
.video-embed { aspect-ratio: 16 / 9; overflow: hidden; box-shadow: var(--shadow); background: #000; border: 1px solid var(--border); }
.video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-item h3 { color: #fff; margin: 1.1rem 0 .5rem; font-size: 1.25rem; }
.video-item p { color: var(--text-dim); font-size: .98rem; }
@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } }
.feature-list { columns: 2; column-gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.feature-list li { break-inside: avoid; margin-bottom: .85rem; }
@media (max-width: 720px) { .feature-list { columns: 1; } }
.height-card { margin: 0; }
.height-card figcaption { text-align: center; margin-top: .7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.feature-row h2 { margin-bottom: 1.1rem; }
.feature-row ul.ticks { margin-top: 1.4rem; display: grid; gap: .7rem; }
ul.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-dim); }
ul.ticks li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: .2rem; }

/* ===================================================================
   GALLERY + LIGHTBOX
   =================================================================== */
/* Masonry-style galleries: full uncropped images, no border, no hover animation. */
.gallery { columns: 3; column-gap: 1rem; }
.gallery--4 { columns: 4; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; cursor: pointer; position: relative; display: block; }
.gallery__item img { width: 100%; height: auto; display: block; }
.gallery__item::after { content: "⤢"; position: absolute; top: .55rem; right: .55rem; width: 32px; height: 32px; display: grid; place-items: center; font-size: .95rem; color: #fff; background: rgba(0,156,255,.6); border-radius: 8px; pointer-events: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,156,255,.35), 0 4px 12px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s, box-shadow .25s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-2); box-shadow: 0 10px 30px rgba(0,156,255,.5), 0 4px 12px rgba(0,0,0,.4); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .3s, visibility .3s; } .to-top:hover { transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3,4,5,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s; padding: 4vw; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 30px 90px rgba(0,0,0,.8); border: 1px solid var(--border-2); }
.lightbox__close, .lightbox__nav { position: absolute; background: var(--glass-2); border: 1px solid var(--border-2); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; transition: background .25s, transform .25s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); transform: scale(1.08); }
.lightbox__close { top: 4vw; right: 4vw; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav.prev { left: 3vw; }
.lightbox__nav.next { right: 3vw; }
.lightbox__cap { position: absolute; bottom: 4vw; left: 50%; transform: translateX(-50%); color: var(--text-dim); font-size: .9rem; max-width: 80vw; text-align: center; }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; background: var(--glass); overflow: hidden; transition: border-color .3s, background .3s; }
.faq__item[open] { border-color: var(--border-2); background: var(--glass-2); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: #fff; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform .35s var(--ease); }
.faq__item summary .plus::before, .faq__item summary .plus::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--accent-2); border-radius: 2px; }
.faq__item summary .plus::before { width: 14px; height: 2px; }
.faq__item summary .plus::after { width: 2px; height: 14px; transition: transform .35s var(--ease); }
.faq__item[open] summary .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq__body { padding: 0 1.5rem 1.4rem; color: var(--text-dim); }
.faq__body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.faq__body p + p { margin-top: .8rem; }

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.tcard { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: transform .4s var(--ease), border-color .4s; display: flex; flex-direction: column; }
.tcard:hover { transform: translateY(-5px); border-color: var(--border-2); }
.tcard .stars { color: var(--accent-2); letter-spacing: 2px; margin-bottom: 1rem; font-size: .95rem; }
.tcard blockquote { color: var(--text); font-size: 1.02rem; line-height: 1.65; flex: 1; }
.tcard .who { margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.tcard .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-3)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #021019; }
.tcard .who strong { display: block; color: #fff; font-size: .95rem; }
.tcard .who span { font-size: .82rem; color: var(--text-mut); }

/* ===================================================================
   RETAILERS
   =================================================================== */
.retailers { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.retailer {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.5rem; border-radius: 100px;
  border: 1px solid var(--border); background: var(--glass); font-family: var(--font-display); font-weight: 600; color: var(--text);
  transition: transform .3s var(--ease), border-color .3s, background .3s, color .3s;
}
.retailer:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--glow-soft); color: #fff; }
.retailer .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ===================================================================
   CTA BAND
   =================================================================== */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; border: 1px solid var(--border-2); }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,9,.78), rgba(4,12,22,.82)); }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; font-size: 1.12rem; }
.cta-band .hero__cta { justify-content: center; margin-top: 0; }

/* ===================================================================
   STATS STRIP
   =================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--bg-2); padding: 2rem 1.5rem; text-align: center; }
.stats .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; color: #fff; }
.stats .num .accent { -webkit-text-fill-color: var(--accent-2); }
.stats .lbl { color: var(--text-mut); font-size: .9rem; margin-top: .3rem; }

/* ===================================================================
   NEWS
   =================================================================== */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 880px; margin-inline: auto; }
.ncard { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-2); transition: transform .4s var(--ease), box-shadow .4s; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ncard__media { overflow: hidden; }
.ncard__media img { width: 100%; height: auto; display: block; }
.ncard__body { padding: 1.5rem 1.7rem 1.8rem; display: flex; flex-direction: column; }
.ncard__date { font-family: var(--font-display); font-size: .8rem; color: var(--accent-2); letter-spacing: .05em; margin-bottom: .6rem; }
.ncard h3 { color: #fff; font-size: 1.25rem; margin-bottom: .6rem; }
.ncard p { font-size: .96rem; }
.ncard__body p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.news-changelog { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .55rem; }
.news-changelog li { color: var(--text-dim); font-size: .92rem; line-height: 1.55; padding-left: 1rem; position: relative; }
.news-changelog li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ncard__link { margin-top: 1.2rem; font-family: var(--font-display); font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: .4rem; transition: gap .25s; }
.ncard:hover .ncard__link { gap: .7rem; }

/* ===================================================================
   PROSE (privacy)
   =================================================================== */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; color: #fff; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--accent-2); }
.prose p, .prose li { color: var(--text-dim); margin-bottom: .9rem; }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose ul li { margin-bottom: .4rem; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 72px) 2rem; margin-top: clamp(40px, 6vw, 80px); position: relative; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand img { height: 46px; margin-bottom: 1.2rem; }
.footer__brand p { font-size: .96rem; max-width: 320px; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-dim); transition: transform .3s var(--ease), border-color .3s, color .3s, background .3s; }
.footer__social a:hover { transform: translateY(-3px); border-color: var(--accent); color: #fff; background: var(--glow-soft); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 1.1rem; font-weight: 600; }
.footer__col a { display: block; color: var(--text-dim); padding: .35rem 0; font-size: .95rem; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: var(--accent-2); padding-left: .3rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--border); color: var(--text-mut); font-size: .87rem; }
.footer__bottom a { color: var(--text-mut); }
.footer__bottom a:hover { color: var(--accent-2); }

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
/* Scroll-reveal disabled — all content is visible immediately, no on-scroll animation. */
[data-reveal], [data-reveal].in { opacity: 1; transform: none; transition: none; }

/* Divider glow */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); margin-block: 0; }

/* Badge row */
.badge-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.badge { font-family: var(--font-display); font-size: .82rem; font-weight: 500; padding: .45rem .9rem; border-radius: 100px; border: 1px solid var(--border); background: var(--glass); color: var(--text-dim); }
.badge.on { color: var(--accent-2); border-color: rgba(0,156,255,.35); background: var(--glow-soft); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }
  .feature-row, .feature-row--flip { grid-template-columns: 1fr; }
  .feature-row--flip .feature-row__media { order: 0; }
  .feature-row__media { order: -1; }
  .ncard { flex-direction: column; }
  .ncard__media { flex: none; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery, .gallery--4 { columns: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pcard__foot { flex-direction: column; }
}
@media (max-width: 460px) {
  .hero__stats { gap: 1.5rem; }
  .gallery, .gallery--4 { columns: 1; }
}
