/* ==========================================================================
   Genius Ecosystem — shared stylesheet
   Base: proposition3 (editorial gold) + proposition1 dynamics (aurora, cursor, iris)
   Per-product accent tokens: Ivory (GT), Slate (Cortex), Coral (Revius)
   ========================================================================== */

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

:root {
  /* Shared gold identity */
  --gold: #D4A574;
  --gold-soft: #E5BF8E;
  --gold-deep: #B88655;

  /* Base surface */
  --bg: #0F0F0F;
  --surface: #161616;
  --surface-2: #1C1C1C;

  /* Text */
  --text: #E8E4DF;
  --muted: rgba(232, 228, 223, 0.55);
  --muted-2: rgba(232, 228, 223, 0.35);

  /* Per-product secondary accents (cohérent mais distinct) */
  --team-accent: #F5F0EB;        /* ivoire doux — chaleur humaine */
  --team-accent-rgb: 245, 240, 235;
  --cortex-accent: #6B8CAE;      /* bleu ardoise clair — clarté architecturale */
  --cortex-accent-rgb: 107, 140, 174;
  --revius-accent: #E8825F;      /* corail tiède — œil alerte */
  --revius-accent-rgb: 232, 130, 95;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Container width */
  --container: 1100px;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--gold); color: #000; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 50%;
  transform: translateX(-50%);
  background: var(--gold); color: #000;
  padding: .6rem 1.2rem; border-radius: 8px;
  font-weight: 700; font-size: .85rem; z-index: 10002;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ===== Focus-visible ring for keyboard users ===== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav__links a:focus-visible,
.lang-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
*:focus:not(:focus-visible) { outline: none; }

/* Noise grain + vignette (prop3 feel) */
.noise {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none; opacity: .03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/></svg>");
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 55%, rgba(0,0,0,.35));
  pointer-events: none; z-index: 9996;
}

/* ===== Enhanced cursor (ring + snap dot + ambient glow + trail canvas) ===== */
@media (hover: hover) and (pointer: fine) {
  html { cursor: none; }
  a, button, input, textarea, select, [role="button"], [tabindex], .lang-toggle { cursor: none; }
}

.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .2s var(--ease-out), height .2s var(--ease-out), border-color .2s, opacity .2s, transform .2s;
  will-change: transform, left, top;
}
.cursor-ring.is-hover {
  width: 52px; height: 52px;
  border-color: var(--gold-soft);
}
.cursor-ring.is-click { transform: translate(-50%, -50%) scale(.8); }

.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  pointer-events: none; z-index: 10001;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: left, top;
}

.cursor-glow {
  position: fixed; width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,.08), transparent 65%);
  pointer-events: none; z-index: 9995;
  transform: translate(-50%, -50%);
  will-change: transform, left, top;
}

.cursor-trail {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9994;
  mix-blend-mode: screen;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  html, a, button, input, textarea, select { cursor: auto; }
  .cursor-ring, .cursor-dot, .cursor-glow, .cursor-trail { display: none; }
}

/* Scroll progress bar (top) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  width: 0%; z-index: 10001;
  pointer-events: none;
  transform-origin: left;
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(15,15,15,.72);
  border-bottom: 1px solid rgba(212,165,116,.06);
}
.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
}
.nav__brand svg { width: 26px; height: 26px; }
.nav__brand-text { color: var(--text); }
.nav__brand-text small {
  display: block; font-weight: 400;
  font-size: .62rem; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 2px;
}
.nav__links {
  display: flex; gap: 2rem; align-items: center;
}
.nav__links a {
  font-size: .85rem; font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1.5px; background: var(--gold);
  border-radius: 1px;
}
.nav__actions { display: flex; gap: .6rem; align-items: center; }

.lang-toggle {
  background: transparent; border: 1px solid rgba(212,165,116,.2);
  color: var(--muted); padding: .45rem .8rem;
  border-radius: 8px; font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; transition: all .2s;
  min-height: 34px;
  display: inline-flex; align-items: center;
}
.lang-toggle:hover { color: var(--gold); border-color: var(--gold); }
.lang-toggle .lang-active { color: var(--gold); }
.lang-toggle .lang-sep { opacity: .25; margin: 0 .3rem; }

@media (max-width: 860px) {
  .nav { padding: .9rem 1.2rem; }
  .nav__links { display: none; }
  .nav__brand-text small { display: none; }
  .lang-toggle { padding: .6rem .9rem; min-height: 44px; }
}

/* ===== Mobile burger button (3-line icon) ===== */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(212,165,116,.2);
  border-radius: 8px;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  transition: border-color .2s, background .2s;
}
.nav__burger:hover { border-color: var(--gold); background: rgba(212,165,116,.05); }
.nav__burger-line {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .3s var(--ease-out), opacity .2s, background .2s;
  transform-origin: center;
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
  background: var(--gold);
}
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
  background: var(--gold);
}
@media (max-width: 860px) {
  .nav__burger { display: inline-flex; }
}

/* ===== Mobile drawer ===== */
.nav-drawer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 10002;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: 4rem 1.6rem 2rem;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav-drawer.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.nav-drawer__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(212,165,116,.2);
  border-radius: 10px;
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.nav-drawer__close:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,165,116,.05);
}
.nav-drawer__links {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.4rem;
}
.nav-drawer__links a {
  font-size: 1.4rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  padding: .5rem 1rem;
  transition: color .2s;
}
.nav-drawer__links a:hover,
.nav-drawer__links a[aria-current="page"] { color: var(--gold); }
.nav-drawer__actions {
  display: flex; gap: .7rem; align-items: center;
  margin-top: 1.2rem;
}
body.nav-drawer-open { overflow: hidden; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.3rem; border-radius: 10px;
  font-weight: 700; font-size: .85rem;
  letter-spacing: .005em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .2s, border-color .2s, color .2s;
  gap: .45rem;
}
.btn--primary {
  background: var(--gold);
  color: #0F0F0F;
  position: relative; overflow: hidden;
}
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: btnShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShimmer { 0%, 100% { left: -100%; } 50% { left: 100%; } }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,165,116,.22); }

.btn--ghost {
  border-color: rgba(212,165,116,.22);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,165,116,.05);
}

.btn--sm { padding: .5rem 1rem; font-size: .78rem; border-radius: 8px; }

/* ===== Layout ===== */
section { padding: 5rem 2rem; position: relative; }
.container { max-width: var(--container); margin: 0 auto; }
@media (max-width: 720px) {
  section { padding: 3.5rem 1.2rem; }
}

/* Section intro */
.section-label {
  font-size: .66rem; text-transform: uppercase;
  letter-spacing: .14em; font-weight: 700;
  color: var(--gold); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -.02em;
  line-height: 1.15; margin-bottom: .9rem;
}
.section-title em { font-style: normal; color: var(--gold); }
.section-desc {
  color: var(--muted); font-size: .95rem;
  line-height: 1.7; max-width: 620px;
}

/* ===== Reveal variants ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-up   { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-down { opacity: 0; transform: translateY(-30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-right{ opacity: 0; transform: translateX(60px);  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-zoom { opacity: 0; transform: scale(.86); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-tilt { opacity: 0; transform: perspective(900px) rotateX(14deg) translateY(40px); transform-origin: center top; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-up.is-visible,
.reveal-down.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible { opacity: 1; transform: none; }
.reveal-zoom.is-visible { opacity: 1; transform: scale(1); }
.reveal-tilt.is-visible { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }

/* Stagger helper */
.stagger > * { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 60ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 180ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 300ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 420ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 540ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 660ms; }

/* Word-by-word title reveal */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotate(6deg);
  filter: blur(8px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out);
}
.hero__title.is-visible .word { opacity: 1; transform: none; filter: blur(0); }
.hero__title.is-visible .word:nth-child(1) { transition-delay: 60ms; }
.hero__title.is-visible .word:nth-child(2) { transition-delay: 130ms; }
.hero__title.is-visible .word:nth-child(3) { transition-delay: 200ms; }
.hero__title.is-visible .word:nth-child(4) { transition-delay: 270ms; }
.hero__title.is-visible .word:nth-child(5) { transition-delay: 340ms; }
.hero__title.is-visible .word:nth-child(6) { transition-delay: 410ms; }
.hero__title.is-visible .word:nth-child(7) { transition-delay: 480ms; }
.hero__title.is-visible .word:nth-child(8) { transition-delay: 550ms; }
.hero__title.is-visible .word:nth-child(9) { transition-delay: 620ms; }
.hero__title.is-visible .word:nth-child(10) { transition-delay: 690ms; }
.hero__title.is-visible .word:nth-child(11) { transition-delay: 760ms; }
.hero__title.is-visible .word:nth-child(12) { transition-delay: 830ms; }

/* ===== Parallax data-hooks ===== */
[data-parallax] { will-change: transform; }

/* ===== Scroll-velocity typography reactivity ===== */
.hero__title, .section-title {
  transition: letter-spacing .3s var(--ease-out), transform .25s var(--ease-out);
  will-change: transform, letter-spacing;
}
.is-scrolling .hero__title,
.is-scrolling .section-title { letter-spacing: -.035em; }

/* ===== Number counter pop ===== */
.stat-num {
  transition: transform .5s var(--ease-out), text-shadow .5s;
  display: inline-block;
}
.stat-num.is-popped {
  transform: scale(1.12);
  text-shadow: 0 0 38px rgba(212,165,116,.45);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 8rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }

/* Aurora mesh (prop1 vibe, softer gold-toned) */
.hero__aurora {
  position: absolute; inset: -10%; width: 120%; height: 120%;
  background:
    radial-gradient(ellipse 45% 40% at 25% 30%, rgba(212,165,116,.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 75% 45%, rgba(232,130,95,.08), transparent 50%),
    radial-gradient(ellipse 35% 45% at 50% 75%, rgba(107,140,174,.07), transparent 45%);
  animation: auroraShift 18s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
  will-change: transform, opacity;
}
@keyframes auroraShift {
  0%   { transform: translate(0,0) scale(1); opacity: .7; }
  50%  { transform: translate(3%,-2%) scale(1.04); opacity: .95; }
  100% { transform: translate(-2%,3%) scale(.98); opacity: .8; }
}
/* Gold sweep (prop3) layered on top */
.hero__sweep {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(212,165,116,.06) 42%,
    rgba(212,165,116,.12) 50%,
    rgba(212,165,116,.06) 58%,
    transparent 70%);
  background-size: 260% 100%;
  animation: goldSweep 7s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes goldSweep { 0%, 100% { background-position: 250% 0; } 50% { background-position: -150% 0; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem 1rem; border-radius: 100px;
  border: 1px solid rgba(212,165,116,.2);
  background: rgba(212,165,116,.04);
  font-size: .68rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1.2rem; letter-spacing: .1em; text-transform: uppercase;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212,165,116,.6);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(212,165,116,.4); }
  50%      { box-shadow: 0 0 22px rgba(212,165,116,.7); }
}

.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -.03em; margin-bottom: 1.1rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted); line-height: 1.65;
  max-width: 560px; margin: 0 auto 2.2rem;
}
.hero__actions {
  display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.hero__trust {
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: .35rem; }
.hero__trust svg { width: 14px; height: 14px; color: var(--gold); opacity: .8; }

/* ===== Product spotlights grid ===== */
.spotlights {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 3rem;
}
.spotlight {
  background: rgba(255,255,255,.015);
  border: 1px solid rgba(212,165,116,.08);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.spotlight::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent, var(--gold)), transparent);
  opacity: .7;
}
.spotlight::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--gold)), transparent);
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover {
  transform: translateY(-4px);
  border-color: rgba(212,165,116,.2);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.spotlight:hover::after { opacity: .5; }
.spotlight--team { --accent: var(--team-accent); }
.spotlight--cortex { --accent: var(--cortex-accent); }
.spotlight--revius { --accent: var(--revius-accent); }

.spotlight__logo {
  width: 40px; height: 40px; margin-bottom: 1rem;
}
.spotlight__logo svg { width: 100%; height: 100%; }
.spotlight__eyebrow {
  font-size: .64rem; text-transform: uppercase;
  letter-spacing: .14em; font-weight: 700;
  color: var(--gold); margin-bottom: .6rem;
}
.spotlight__title {
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: .5rem;
}
.spotlight__desc {
  font-size: .82rem; color: var(--muted);
  line-height: 1.65; margin-bottom: 1.1rem;
}
.spotlight__tag {
  display: inline-flex; align-items: center;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .26rem .7rem; border-radius: 100px;
  background: rgba(var(--accent-rgb, 212, 165, 116), .1);
  color: var(--accent, var(--gold));
  border: 1px solid rgba(var(--accent-rgb, 212, 165, 116), .2);
}
.spotlight--team .spotlight__tag { --accent-rgb: var(--team-accent-rgb); }
.spotlight--cortex .spotlight__tag { --accent-rgb: var(--cortex-accent-rgb); }
.spotlight--revius .spotlight__tag { --accent-rgb: var(--revius-accent-rgb); }
.spotlight__link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--gold); font-weight: 600; font-size: .85rem;
  margin-top: 1rem;
  transition: gap .2s;
}
.spotlight__link:hover { gap: .7rem; }
.spotlight__link svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .spotlights { grid-template-columns: 1fr; }
}

/* ===== Horizontal scroll showcase (preview reel) ===== */
.showcase {
  position: relative; padding: 4rem 0 5rem;
  overflow: hidden;
}
.showcase__inner {
  display: flex; gap: 1.2rem;
  padding: 1rem 2rem 2rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.showcase__inner::-webkit-scrollbar { display: none; }
.showcase__card {
  flex: 0 0 auto; width: 560px; max-width: 90vw;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(212,165,116,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color .3s, transform .3s;
}
.showcase__card:hover {
  border-color: rgba(212,165,116,.2);
  transform: translateY(-3px);
}
.showcase__card-media {
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
}
.showcase__card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
/* Browser chrome for product screenshots */
.showcase__chrome {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem;
  background: rgba(0,0,0,.5);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.showcase__chrome-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.showcase__chrome-dot:nth-child(1) { background: rgba(232,130,95,.5); }
.showcase__chrome-dot:nth-child(2) { background: rgba(212,165,116,.5); }
.showcase__chrome-dot:nth-child(3) { background: rgba(107,140,174,.5); }
.showcase__chrome-url {
  flex: 1; margin-left: .6rem;
  font-size: .62rem; color: var(--muted-2);
  font-family: 'DM Sans', monospace;
  letter-spacing: .04em;
}
.showcase__card-body { padding: 1.2rem 1.4rem 1.4rem; }
.showcase__card-tag {
  display: inline-block;
  font-size: .6rem; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 700;
  color: var(--accent, var(--gold));
  margin-bottom: .5rem;
}
.showcase__card--team .showcase__card-tag { --accent: var(--team-accent); }
.showcase__card--cortex .showcase__card-tag { --accent: var(--cortex-accent); }
.showcase__card--revius .showcase__card-tag { --accent: var(--revius-accent); }
.showcase__card h3 {
  font-size: .95rem; font-weight: 700;
  margin-bottom: .35rem; letter-spacing: .005em;
}
.showcase__card p {
  font-size: .78rem; color: var(--muted); line-height: 1.6;
}

/* ===== The loop (idea → build → review → iterate) ===== */
.loop-section {
  background: var(--surface);
  padding: 6rem 2rem;
  position: relative; overflow: hidden;
}
.loop-section::before {
  content: ''; position: absolute; top: 20%; right: 8%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(212,165,116,.05), transparent 60%);
  pointer-events: none;
}
.loop-intro { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.loop-intro .section-desc { margin: 0 auto; }
.loop {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.loop__step {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.loop__step:hover {
  border-color: rgba(212,165,116,.15);
  transform: translateY(-3px);
}
.loop__step-num {
  font-size: .6rem; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 700;
  color: var(--gold); margin-bottom: .55rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.loop__step-num::before {
  content: ''; width: 16px; height: 1px;
  background: var(--gold);
}
.loop__step h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: .45rem;
}
.loop__step p {
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}
.loop__step-product {
  font-size: .68rem; font-weight: 600;
  color: var(--accent, var(--gold));
  margin-top: .8rem; letter-spacing: .04em;
}
.loop__step--team { --accent: var(--team-accent); }
.loop__step--cortex { --accent: var(--cortex-accent); }
.loop__step--revius { --accent: var(--revius-accent); }

@media (max-width: 720px) {
  .loop { grid-template-columns: 1fr; }
}

/* ===== Philosophy (wrong vs right) ===== */
.philosophy {
  padding: 5rem 2rem;
}
.philosophy__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.4rem; margin-top: 2.2rem;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.phil-card {
  border-radius: var(--r-lg); padding: 1.8rem;
  transition: border-color .3s;
}
.phil-card.wrong {
  background: rgba(232,130,95,.03);
  border: 1px solid rgba(232,130,95,.12);
}
.phil-card.right {
  background: rgba(212,165,116,.03);
  border: 1px solid rgba(212,165,116,.14);
}
.phil-card__label {
  font-size: .62rem; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 800;
  margin-bottom: 1rem;
}
.phil-card.wrong .phil-card__label { color: var(--revius-accent); }
.phil-card.right .phil-card__label { color: var(--gold); }
.phil-card__list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.phil-card__list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .85rem; line-height: 1.55;
  color: var(--muted);
}
.phil-card__list li::before {
  content: ''; flex-shrink: 0;
  margin-top: .55rem;
  width: 14px; height: 1.5px;
}
.phil-card.wrong .phil-card__list li::before { background: var(--revius-accent); opacity: .65; }
.phil-card.right .phil-card__list li::before { background: var(--gold); opacity: .65; }
@media (max-width: 720px) {
  .philosophy__grid { grid-template-columns: 1fr; }
}

/* ===== Stats strip ===== */
.stats {
  padding: 4rem 2rem;
  display: flex; justify-content: center; gap: 3rem;
  flex-wrap: wrap; text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.4rem; font-weight: 800;
  color: var(--gold);
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
  margin-top: .3rem;
}

/* ===== CTA ===== */
.cta {
  padding: 6rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background:
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(212,165,116,.08), transparent 50%),
    radial-gradient(ellipse 30% 25% at 40% 60%, rgba(232,130,95,.05), transparent);
  pointer-events: none;
}
.cta__inner {
  position: relative; z-index: 2;
  max-width: 580px; margin: 0 auto;
}
.cta__title {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.cta__title em { color: var(--gold); font-style: normal; }
.cta__desc {
  color: var(--muted); font-size: .95rem;
  margin-bottom: 1.8rem; line-height: 1.7;
}
.cta__actions {
  display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 2rem; border-top: 1px solid rgba(212,165,116,.06);
  color: var(--muted); font-size: .78rem;
}
.footer__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.2rem;
}
.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { display: flex; align-items: center; gap: .5rem; }
.footer__copy svg { width: 16px; height: 16px; }

/* ===== Per-product page hero variants ===== */
.hero--team .hero__aurora {
  background:
    radial-gradient(ellipse 45% 40% at 25% 30%, rgba(212,165,116,.18), transparent 55%),
    radial-gradient(ellipse 40% 35% at 75% 45%, rgba(245,240,235,.06), transparent 50%);
}
.hero--cortex .hero__aurora {
  background:
    radial-gradient(ellipse 45% 40% at 30% 30%, rgba(212,165,116,.13), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 45%, rgba(107,140,174,.12), transparent 50%);
}
.hero--revius .hero__aurora {
  background:
    radial-gradient(ellipse 45% 40% at 30% 30%, rgba(212,165,116,.13), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 45%, rgba(232,130,95,.12), transparent 50%);
}

/* Pricing pill (for Cortex + Revius beta) */
.price-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem; border-radius: 100px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.price-pill--free {
  background: rgba(212,165,116,.08);
  color: var(--gold);
  border: 1px solid rgba(212,165,116,.18);
}
.price-pill--beta {
  background: rgba(107,140,174,.08);
  color: var(--cortex-accent);
  border: 1px solid rgba(107,140,174,.2);
}
.price-pill--revius {
  background: rgba(232,130,95,.08);
  color: var(--revius-accent);
  border: 1px solid rgba(232,130,95,.2);
}

/* ===== Feature grid (used on product pages) ===== */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 2.5rem;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.feature {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-md);
  padding: 1.5rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature:hover {
  border-color: rgba(212,165,116,.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.feature__icon {
  width: 32px; height: 32px; margin-bottom: .9rem;
  color: var(--accent, var(--gold));
}
.feature h3 {
  font-size: .92rem; font-weight: 700;
  margin-bottom: .35rem;
}
.feature p {
  font-size: .8rem; color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

/* ===== Code block (for pricing, install, etc.) ===== */
.code-block {
  background: #0A0A0A;
  border: 1px solid rgba(212,165,116,.1);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  font-family: 'DM Mono', 'SF Mono', Consolas, monospace;
  font-size: .78rem;
  color: var(--text);
  overflow-x: auto;
  margin: 1rem 0;
}
.code-block code { color: var(--gold); }
.code-block .comment { color: var(--muted-2); }

/* Utility */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.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;
}

/* ===== Pinned horizontal scroll =====
   Height is computed dynamically by ecosystem.js based on the track width
   so the horizontal animation always outlasts the vertical scroll distance.
   Fallback value (~500vh) covers the default track width. */
.pin-section {
  position: relative;
  height: 500vh;
}
.pin-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center;
}
.pin-track {
  display: flex; gap: 1.4rem;
  padding: 0 2rem;
  will-change: transform;
}
.pin-intro {
  position: absolute; top: 6rem; left: 50%;
  transform: translateX(-50%);
  text-align: center; z-index: 3;
  pointer-events: none;
  max-width: 640px; padding: 0 1rem;
}
.pin-progress {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 2px;
  background: rgba(212,165,116,.1);
  border-radius: 1px; overflow: hidden;
}
.pin-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .1s linear;
}
.pin-card {
  flex: 0 0 auto; width: 640px; max-width: 92vw;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(212,165,116,.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.pin-card:hover {
  border-color: rgba(212,165,116,.25);
  transform: translateY(-4px);
}
.pin-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  overflow: hidden;
  position: relative;
}
.pin-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.pin-card__chrome {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem;
  background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.pin-card__chrome-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.pin-card__chrome-dot:nth-child(1) { background: rgba(232,130,95,.5); }
.pin-card__chrome-dot:nth-child(2) { background: rgba(212,165,116,.5); }
.pin-card__chrome-dot:nth-child(3) { background: rgba(107,140,174,.5); }
.pin-card__chrome-url {
  flex: 1; margin-left: .6rem;
  font-size: .62rem; color: var(--muted-2);
  letter-spacing: .04em;
}
.pin-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.pin-card__tag {
  display: inline-block;
  font-size: .6rem; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 700;
  color: var(--accent, var(--gold));
  margin-bottom: .55rem;
}
.pin-card--team   { --accent: var(--team-accent); }
.pin-card--cortex { --accent: var(--cortex-accent); }
.pin-card--revius { --accent: var(--revius-accent); }
.pin-card--terminal { --accent: var(--gold); }
.pin-card__body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .45rem; }
.pin-card__body p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .pin-section { height: auto; }
  .pin-sticky { position: relative; height: auto; padding: 2rem 0; }
  .pin-track {
    flex-direction: column; align-items: center;
    gap: 1.2rem; padding: 1rem;
    transform: none !important;
  }
  .pin-card { width: 100%; max-width: 560px; }
  .pin-intro { position: relative; top: auto; left: auto; transform: none; margin: 0 auto 1rem; }
  .pin-progress { display: none; }
}

/* ===== Zoom section — big media grows as you scroll ===== */
.zoom-section {
  height: 260vh; position: relative;
  padding: 0;
}
.zoom-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.zoom-frame {
  width: 62vw; max-width: 900px; aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  border: 1px solid rgba(212,165,116,.15);
  overflow: hidden;
  will-change: transform, border-radius;
  transition: border-color .4s;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.zoom-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.zoom-label {
  position: absolute; top: 2rem; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 3; max-width: 560px; padding: 0 1rem;
  pointer-events: none;
}
.zoom-label .section-label { margin-bottom: .5rem; }
@media (max-width: 860px) {
  .zoom-section { height: auto; }
  .zoom-sticky { position: relative; height: auto; padding: 3rem 1rem; }
  .zoom-frame { width: 100%; }
}

/* ===== Feature card icon accents ===== */
.feature__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(212,165,116,.08);
  color: var(--gold);
  margin-bottom: .9rem;
}
.feature__icon svg { width: 18px; height: 18px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow, .cursor-dot { display: none; }
}
