/* ==========================================================================
   CodeBridgeAI — "Periwinkle Aurora" design language
   All assets local. No CDN, no hotlinks. Runs fully offline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS (self-hosted, relative paths)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Outfit Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans KR Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/noto-sans-kr-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Hangul subsets live in fonts-kr.css (loaded separately, lazy per unicode-range). */

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --paper-warm: #fffbf3;
  --paper-blush: #fcefef;
  --surface: #fbfaf9;

  --periwinkle: #92a0e1;
  --lavender: #c2a0e1;
  --aurora-1: #c2a0e1;
  --aurora-2: #92a0e1;
  --aurora-3: #a8b5f0;
  --aurora-4: #d4c5f0;

  --ink: #111111;
  --true-black: #000000;
  --body: #525252;
  --muted: #4f5465;
  --line: #ebebeb;
  --line-dark: #454545;
  --green: #4ade80;

  --aurora: linear-gradient(-78deg, #c2a0e1cc, #92a0e1cc, #a8b5f0cc, #d4c5f0cc);
  --aurora-solid: linear-gradient(-78deg, #c2a0e1, #92a0e1, #a8b5f0, #d4c5f0);

  --font-display: 'Outfit Variable', 'Noto Sans KR Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans Variable', 'Noto Sans KR Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  --shell: 1200px;
  --gutter: 20px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .04), 0 4px 14px rgba(17, 17, 17, .04);
  --shadow-md: 0 2px 6px rgba(17, 17, 17, .05), 0 24px 60px -20px rgba(17, 17, 17, .18);
  --shadow-lift: 0 10px 26px -10px rgba(17, 17, 17, .28);
}

/* --------------------------------------------------------------------------
   3. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 400; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 88px; position: relative; }
.section--surface { background: var(--surface); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. SHARED TYPE
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--periwinkle); display: block;
}
.eyebrow--center { justify-content: center; }
.h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 400;
}
.h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.9rem); line-height: 1.15; letter-spacing: -.035em; }
.lead { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); color: var(--body); line-height: 1.7; }
.accent { font-style: italic; color: var(--periwinkle); }
.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 20px; }

/* --------------------------------------------------------------------------
   5. BUTTONS / PILLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); background: var(--true-black); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--periwinkle); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.btn--outline-light { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}

/* --------------------------------------------------------------------------
   6. AURORA MOTIF
   -------------------------------------------------------------------------- */
.aurora-blob {
  position: absolute; border-radius: 999px;
  background: var(--aurora);
  filter: blur(100px);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}
.aurora-tile { background: var(--aurora-solid); }

/* --------------------------------------------------------------------------
   7. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247, 249, 252, .64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.wordmark__glyph { width: 30px; height: 30px; border-radius: 9px; background: var(--aurora-solid); display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(146, 160, 225, .8); }
.wordmark__glyph svg { width: 17px; height: 17px; }
.nav { display: none; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; color: var(--muted); position: relative; transition: color .2s ease; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--periwinkle); transition: right .3s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.header__cta { display: none; }

.burger { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.burger span {
  position: absolute; left: 50%; top: 50%; width: 17px; height: 1.5px; margin-left: -8.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
.burger span:nth-child(1) { transform: translateY(-5.5px); }
.burger span:nth-child(3) { transform: translateY(5.5px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 99;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}
.mobile-menu.is-open { max-height: 560px; }
.mobile-menu ul { padding: 12px var(--gutter) 26px; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu ul a { display: block; padding: 15px 2px; font-size: 16px; color: var(--ink); }
.mobile-menu .btn { width: 100%; margin-top: 18px; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 90px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff 46%, var(--paper-warm) 78%, var(--paper-blush) 100%);
}
.hero__stage { position: relative; }
.hero__blob { width: min(1280px, 142vw); height: 96%; left: 50%; top: -8%; transform: translateX(-50%) rotate(-12deg); opacity: .9; }
.hero__inner { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(146, 160, 225, .2);
  border: 1px solid rgba(146, 160, 225, .28);
  color: #3f4670; border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 500;
  transition: transform .3s ease, background-color .3s ease;
}
.badge:hover { transform: scale(1.05); background: rgba(146, 160, 225, .3); }
.hero h1 {
  margin: 26px auto 0;
  font-size: clamp(2.9rem, 1.6rem + 6.2vw, 6rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 400;
  max-width: 14ch;
}
.hero__sub { margin: 26px auto 0; max-width: 640px; }
.hero__ctas { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.hero__note { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* --- product mockup ------------------------------------------------------ */
.tray {
  margin: 56px auto 0; max-width: 1060px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #f7f7f8; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.urlbar {
  flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 7px; overflow: hidden;
}
.urlbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.console { background: #0d0d0f; padding: 16px; display: grid; gap: 14px; grid-template-columns: 1fr; text-align: left; }
.console__panel { border: 1px solid #23232a; border-radius: 16px; background: #131317; padding: 14px; }
.console__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #7c7f92; }
.console__title { font-family: var(--font-display); color: #fff; font-size: 17px; letter-spacing: -.02em; margin-top: 4px; }
.pulse-badge {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 5px 11px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(146, 160, 225, .16); color: #b9c2f2; border: 1px solid rgba(146, 160, 225, .3);
}
.pulse-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--periwinkle); animation: pulse 1.8s ease-in-out infinite; }
.pulse-badge--alert { background: rgba(194, 160, 225, .14); color: #dcc6f4; border-color: rgba(194, 160, 225, .32); }
.pulse-badge--alert i { background: var(--lavender); }
.console__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.signal { margin-top: 14px; border-radius: 12px; background: #0a0a0c; border: 1px solid #1e1e25; padding: 12px; }
.signal svg { width: 100%; height: 84px; }
.meter { margin-top: 12px; }
.meter__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7c7f92; }
.meter__track { margin-top: 7px; height: 6px; border-radius: 999px; background: #232430; overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; background: var(--aurora-solid); width: 0; transition: width 1.4s cubic-bezier(.22, 1, .36, 1); }
.is-revealed .meter__fill { width: var(--w, 75%); }

.console__side { display: grid; gap: 14px; }
.stat { border: 1px solid #23232a; border-radius: 16px; background: #131317; padding: 14px; }
.stat__num { font-family: var(--font-display); font-size: 30px; color: #fff; letter-spacing: -.04em; line-height: 1; }
.stat__delta { font-family: var(--font-mono); font-size: 10px; color: var(--green); letter-spacing: .08em; }
.stat__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.stat__chips span { font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; border-radius: 6px; background: #1c1c22; color: #a9adc2; border: 1px solid #26262f; }
.stat__chips span.is-on { background: rgba(146, 160, 225, .16); color: #c3caf5; border-color: rgba(146, 160, 225, .34); }

.timeline { display: grid; gap: 14px; margin-top: 12px; }
.tl { display: grid; grid-template-columns: 16px 1fr; gap: 12px; position: relative; }
.tl::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: -14px; width: 1px; background: #26262f; }
.tl:last-child::before { display: none; }
.tl__dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #2e2e38; margin-top: 2px; }
.tl--done .tl__dot { background: var(--green); border-color: rgba(74, 222, 128, .35); }
.tl--live .tl__dot { background: var(--periwinkle); border-color: rgba(146, 160, 225, .35); animation: pulse 1.8s ease-in-out infinite; }
.tl__name { display: block; color: #e8e8ee; font-size: 13.5px; }
.tl__meta { display: block; margin-top: 1px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6f7285; }

/* --------------------------------------------------------------------------
   9. MARQUEE (shared)
   -------------------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.marquee--light::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.marquee--light::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.marquee--dark::before { left: 0; background: linear-gradient(90deg, #0b0b0d, rgba(11, 11, 13, 0)); }
.marquee--dark::after { right: 0; background: linear-gradient(270deg, #0b0b0d, rgba(11, 11, 13, 0)); }
.marquee__track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee__track--slow { animation-duration: 60s; }
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }

.logos { padding-block: 46px; border-block: 1px solid var(--line); }
.logos__label { text-align: center; margin-bottom: 30px; }
.logo-item { display: inline-flex; align-items: center; gap: 9px; padding-inline: 30px; color: #6d7080; opacity: .78; transition: opacity .3s ease, color .3s ease; }
.logo-item:hover { opacity: 1; color: var(--ink); }
.logo-item svg { width: 22px; height: 22px; flex: none; }
.logo-item b { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }

/* --------------------------------------------------------------------------
   10. HOW WE BRIDGE (3 steps)
   -------------------------------------------------------------------------- */
.steps { margin-top: 56px; display: grid; gap: 22px; grid-template-columns: 1fr; }
.step { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 14px 14px 26px; transition: transform .35s ease, box-shadow .35s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__tile { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; display: grid; place-items: center; padding: 22px; }
.step__body { padding: 22px 12px 0; }
.step__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--periwinkle); }
.step h3 { font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-top: 10px; text-transform: uppercase; }
.step p { margin-top: 10px; font-size: 14.5px; color: var(--body); }

/* mini illustrations inside tiles */
.mini { width: 100%; max-width: 280px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 34px -16px rgba(30, 20, 60, .5); overflow: hidden; position: relative; }
.mini__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(17, 17, 17, .07); }
.mini__bar .dots i { width: 6px; height: 6px; }
.mini__fake { flex: 1; height: 6px; border-radius: 999px; background: rgba(17, 17, 17, .07); }
.mini__body { padding: 12px; display: grid; gap: 8px; }
.line { height: 7px; border-radius: 999px; background: rgba(17, 17, 17, .09); }
.line--60 { width: 60%; } .line--80 { width: 80%; } .line--40 { width: 40%; } .line--100 { width: 100%; }
.rec { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; background: #111; color: #fff; border-radius: 999px; padding: 3px 8px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; }
.rec i { width: 5px; height: 5px; border-radius: 50%; background: #ff5f57; animation: pulse 1.4s ease-in-out infinite; }
.cursor { position: absolute; left: 60%; top: 50%; animation: float 3.4s ease-in-out infinite; }
.cursor svg { width: 18px; height: 18px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.ripple { position: absolute; left: 55%; top: 52%; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); animation: ripple 2.6s ease-out infinite; }
.sparkle { position: absolute; color: #fff; opacity: .9; animation: float 4s ease-in-out infinite; }
.sparkle svg { width: 14px; height: 14px; }
.sparkle--a { left: 10%; top: 18%; animation-duration: 3.2s; }
.sparkle--b { right: 12%; top: 26%; animation-duration: 4.6s; animation-delay: .4s; }
.sparkle--c { right: 20%; bottom: 14%; animation-duration: 3.8s; animation-delay: .8s; }
.check-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9.5px; color: #4a4a55; letter-spacing: .04em; }
.check-row i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.check-row i svg { width: 7px; height: 7px; color: #0b3d20; }
.check-row.is-pending i { background: rgba(17, 17, 17, .12); }
.plat-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.plat-chips span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; background: rgba(146, 160, 225, .16); color: #4a4f78; }

/* --------------------------------------------------------------------------
   11. PRODUCTS
   -------------------------------------------------------------------------- */
.filter { display: flex; gap: 6px; margin-top: 30px; padding: 5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; position: relative; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filter::-webkit-scrollbar { display: none; }
.filter__knob { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: transform .42s cubic-bezier(.4, 0, .2, 1), width .42s cubic-bezier(.4, 0, .2, 1); z-index: 0; left: 0; }
.filter button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .3s ease; }
.filter button[aria-selected="true"] { color: #fff; }

.products { margin-top: 60px; display: grid; gap: 74px; }
.product { display: grid; gap: 30px; align-items: center; grid-template-columns: 1fr; transition: opacity .4s ease, transform .4s ease; }
.product.is-hidden { display: none; }
.product__meta { display: flex; align-items: center; gap: 12px; }
.product__index { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--periwinkle); }
.product__domain { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: #fff; }
.product__name { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.product__glyph { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: rgba(146, 160, 225, .16); border: 1px solid rgba(146, 160, 225, .28); flex: none; }
.product__name h3 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.045em; }
.product__kicker { font-family: var(--font-display); font-size: 15px; color: var(--muted); margin-top: 2px; letter-spacing: -.01em; }
.product__tagline { margin-top: 16px; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-style: italic; color: var(--periwinkle); letter-spacing: -.03em; }
.product p.product__desc { margin-top: 14px; max-width: 46ch; }
.product__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.product__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.product__link svg { width: 15px; height: 15px; transition: transform .3s ease; }
.product__link:hover svg { transform: translateX(4px); }
.product__link--ext:hover svg { transform: translate(3px, -3px); }

.visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: grid; place-items: center; padding: 38px 26px; }
.visual:has(.videoframe) { padding: 30px 22px; }
.visual:has(.brandplate) { padding-top: 76px; }
.glass {
  width: 100%; max-width: 340px; border-radius: 18px; padding: 16px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 22px 50px -22px rgba(35, 22, 70, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.glass__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.glass__label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.glass__title { font-family: var(--font-display); font-size: 15px; color: var(--ink); letter-spacing: -.02em; margin-top: 3px; }
.glass svg { width: 100%; }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s ease-in-out infinite; flex: none; }

.wafer { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 12px; }
.wafer i { aspect-ratio: 1; border-radius: 2px; background: rgba(146, 160, 225, .22); display: block; }
.wafer i.bad { background: rgba(194, 160, 225, .85); }
.wafer i.good { background: rgba(74, 222, 128, .5); }
.wafer--dense { grid-template-columns: repeat(12, 1fr); gap: 2px; }
.gen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.gen-grid i { aspect-ratio: 1; border-radius: 8px; display: block; background: var(--aurora-solid); opacity: .85; }
.gen-grid i:nth-child(2) { opacity: .55; } .gen-grid i:nth-child(4) { opacity: .68; }
.gen-grid i:nth-child(5) { opacity: .95; } .gen-grid i:nth-child(6) { opacity: .45; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.screens i { aspect-ratio: 16 / 10; border-radius: 5px; background: rgba(17, 17, 17, .08); display: block; position: relative; overflow: hidden; }
.screens i.on { background: var(--aurora-solid); }
.code-mini { margin-top: 12px; border-radius: 10px; background: #0f0f13; padding: 10px; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.8; color: #b6bad0; overflow: hidden; }
.code-mini .kw { color: #b9a0e8; } .code-mini .fn { color: #93a3ea; } .code-mini .st { color: #7fd7a4; } .code-mini .cm { color: #5c6072; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--aurora-solid); display: block; }

/* --- official brand plate + reference video on a product tile ------------ */
.brandplate {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 12px; padding: 9px 13px;
  box-shadow: 0 10px 26px -14px rgba(35, 22, 70, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.brandplate img { display: block; width: auto; height: 20px; }

.videoframe {
  margin: 0; width: 100%; max-width: 460px;
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 22px 50px -22px rgba(35, 22, 70, .55);
}
.videoframe__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f7f7f8; border-bottom: 1px solid var(--line); }
.videoframe__title { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.videoframe__stage { position: relative; background: #2b2f45; line-height: 0; }
.videoframe video { display: block; width: 100%; height: auto; }
.videoframe__badge { position: absolute; top: 10px; right: 10px; background: rgba(13, 13, 15, .68); color: #cdd4f7; border-color: rgba(146, 160, 225, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.videoframe__toggle { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; }
.videoframe__play {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .6);
  transition: transform .3s ease, opacity .3s ease;
}
.videoframe__play svg { width: 20px; height: 20px; margin-left: 2px; }
.videoframe__toggle:hover .videoframe__play { transform: scale(1.08); }
.videoframe.is-playing .videoframe__play { opacity: 0; transform: scale(.8); }
.videoframe.is-playing .videoframe__toggle:hover .videoframe__play { opacity: 1; transform: scale(1); }
.videoframe.is-playing .videoframe__play svg { display: none; }
.videoframe.is-playing .videoframe__play::before { content: ''; width: 14px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.videoframe__cap { padding: 10px 13px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   12. DARK ECOSYSTEM SECTION
   -------------------------------------------------------------------------- */
.dark { background: #0b0b0d; color: #d7d8e0; position: relative; overflow: hidden; padding-block: 96px; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #8d90a5; }
.dark__blob { width: min(900px, 120vw); height: 380px; left: 50%; top: -150px; margin-left: calc(min(900px, 120vw) / -2); opacity: .42; }
.dark__blob--b { top: auto; bottom: -200px; left: 10%; margin-left: 0; width: min(600px, 90vw); height: 300px; opacity: .3; }
.dark .shell { position: relative; z-index: 1; }
.statement { text-align: center; max-width: 760px; margin-inline: auto; }
.statement .h2 { margin-top: 18px; }
.statement p { margin-top: 20px; color: #a5a8ba; }

.tree { margin: 60px auto 0; max-width: 900px; }
.tree__root { text-align: center; }
.tree__root b { font-family: var(--font-display); font-size: 22px; color: #fff; letter-spacing: -.03em; display: block; }
.tree__root span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--periwinkle); }
.tree__stem { width: 1px; height: 34px; background: linear-gradient(#3a3a46, rgba(58, 58, 70, 0)); margin: 16px auto 0; }
.tree__cols { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 10px; }
.branch { border: 1px solid #1f1f26; border-radius: 18px; background: rgba(255, 255, 255, .022); padding: 18px; }
.branch__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #8d90a5; }
.branch__label::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--periwinkle); margin-right: 8px; vertical-align: 1px; }
.branch ul { margin-top: 14px; display: grid; gap: 10px; }
.branch li { display: flex; align-items: center; gap: 10px; }
.branch li span:first-child { width: 26px; height: 26px; border-radius: 8px; background: rgba(146, 160, 225, .13); border: 1px solid rgba(146, 160, 225, .22); display: grid; place-items: center; font-size: 12px; flex: none; }
.branch li b { font-family: var(--font-display); color: #fff; font-weight: 500; font-size: 15px; letter-spacing: -.02em; }
.branch li em { font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #7d8095; display: block; }

.stats-strip { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid #1f1f26; border-radius: 20px; overflow: hidden; }
.stats-strip div { padding: 22px 14px; text-align: center; }
.stats-strip div + div { border-left: 1px solid #1f1f26; }
.stats-strip b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: #fff; letter-spacing: -.045em; line-height: 1; }
.stats-strip span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #8d90a5; margin-top: 8px; display: block; }

.quotes { margin-top: 62px; display: grid; gap: 16px; }
.qcard { flex: none; width: 320px; margin-right: 16px; border: 1px solid #1f1f26; border-radius: 18px; background: rgba(255, 255, 255, .025); padding: 20px; }
.qcard__who { display: flex; align-items: center; gap: 11px; }
.avatar { width: 36px; height: 36px; border-radius: 11px; background: var(--aurora-solid); color: #1a1330; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; flex: none; }
.qcard__who b { display: block; text-transform: none; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 14.5px; letter-spacing: -.02em; }
.qcard__who span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #7d8095; }
.qcard p { margin-top: 14px; font-size: 14px; color: #b8bac9; line-height: 1.65; }
.kchip { flex: none; margin-right: 10px; border: 1px solid #22222a; border-radius: 999px; padding: 9px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9b9eb2; background: rgba(255, 255, 255, .02); }

/* --------------------------------------------------------------------------
   13. CAPABILITIES
   -------------------------------------------------------------------------- */
.caps { margin-top: 54px; display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.cap { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 28px; transition: transform .35s ease, box-shadow .35s ease; }
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cap--hero { border-color: transparent; background:
  linear-gradient(#fff, #fff) padding-box,
  var(--aurora-solid) border-box;
  border: 1.5px solid transparent; box-shadow: var(--shadow-md); }
.cap__badge { position: absolute; top: -12px; left: 28px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 13px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; }
.cap__icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(146, 160, 225, .14); border: 1px solid rgba(146, 160, 225, .26); display: grid; place-items: center; color: #4d5482; }
.cap__icon svg { width: 19px; height: 19px; }
.cap h3 { margin-top: 18px; font-size: 1.45rem; letter-spacing: -.035em; }
.cap__sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--periwinkle); margin-top: 8px; }
.cap p { margin-top: 14px; font-size: 14.5px; }
.cap ul { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.cap li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.cap li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--periwinkle); }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: 46px; max-width: 800px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 2px; text-align: left; font-family: var(--font-display); font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); color: var(--ink); letter-spacing: -.02em; }
.faq__q:hover { color: #3f4670; }
.faq__q svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--muted); transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); color: var(--periwinkle); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4, 0, .2, 1); }
.faq__a p { padding: 0 40px 26px 2px; font-size: 15px; color: var(--body); }

/* --------------------------------------------------------------------------
   15. CTA + FOOTER
   -------------------------------------------------------------------------- */
.cta-band { padding-block: 20px 96px; }
.cta-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px 26px; text-align: center; background: var(--aurora-solid); }
.cta-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 62%); pointer-events: none; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem); letter-spacing: -.045em; line-height: 1.05; color: #17122b; }
.cta-card p { margin: 18px auto 0; max-width: 520px; color: #2c2545; }
.cta-card .hero__ctas { max-width: 420px; margin-inline: auto; }
.btn--dark-on-aurora { background: var(--ink); color: #fff; }
.btn--dark-on-aurora:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(17, 17, 17, .6); }
.btn--clear { border: 1px solid rgba(17, 17, 17, .28); color: #17122b; }
.btn--clear:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .45); }

.footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 56px 34px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer__brand p { margin-top: 18px; max-width: 34ch; font-size: 14.5px; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); transition: transform .25s ease, color .25s ease, border-color .25s ease; }
.footer__social a:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--periwinkle); }
.footer__social svg { width: 16px; height: 16px; }
.footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer__cols h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.footer__cols ul { margin-top: 16px; display: grid; gap: 11px; }
.footer__cols a { font-size: 14px; color: var(--muted); transition: color .2s ease; }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__bottom p, .footer__bottom a { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------------
   16. MOTION
   -------------------------------------------------------------------------- */
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.86); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .videoframe.is-playing .videoframe__play { opacity: 1; transform: none; }
  .meter__fill { width: var(--w, 75%); }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; justify-content: center; }
  .console { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .section { padding-block: 112px; }
  .nav, .header__cta { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }
  .hero { padding-top: calc(var(--header-h) + 76px); padding-bottom: 110px; }
  .console { grid-template-columns: 1.55fr 1fr; padding: 20px; gap: 18px; }
  .console__main { grid-row: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tree__cols { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.15fr 2fr; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .cta-card { padding: 84px 40px; }
}
@media (min-width: 1000px) {
  .faq-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
  .faq-layout .faq { margin-top: 0; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .product { grid-template-columns: 1fr 1fr; gap: 60px; }
  .product__text { padding-right: 20px; }
  .product--mirror .product__text { order: 2; padding-right: 0; padding-left: 20px; }
  .product--mirror .visual { order: 1; }
  .tree__cols { grid-template-columns: repeat(4, 1fr); }
  .glass { max-width: 380px; }
}
