/* ─────────────────────────────────────────
   TENSLAB SYSTEM DESIGN SYSTEM (styles.css)
───────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050507;
  --bg-alt: #0b0b0f;
  --fg: #ffffff;
  --gray1: #f5f5f7;
  --gray2: #e8e8ed;
  --gray3: #86868b;
  --gray4: #515154;
  --gray5: #1d1d1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --blue: #0071e3;
  --accent: #4ade80;
  --accent-glow: rgba(74, 222, 128, 0.15);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Cursor Glow */
#cg {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 1;
  will-change: left, top;
}

/* ─────────────────────────────────────────
   NAV BAR
───────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 48px);
  max-width: 1080px;
  transition: top .35s var(--ease);
}

.nav-wrap.scrolled {
  top: 12px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 18px;
  height: 52px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border: 1px solid var(--line);
  border-radius: 980px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background .3s, box-shadow .3s;
  position: relative;
}

.nav-wrap.scrolled nav {
  background: rgba(6, 6, 8, 0.94);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  flex-shrink: 0;
}

.nav-logo img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
}

.nav-logo span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.4px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-center a {
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-weight: 450;
  padding: 6px 14px;
  border-radius: 980px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}

.nav-center a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, .07);
}

.nav-center a.active {
  color: var(--fg);
  background: rgba(255, 255, 255, .1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 500;
  border-radius: 980px;
  transition: color .18s, background .18s;
}

.nav-gh svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-gh:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, .07);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(255, 255, 255, .12);
  transition: opacity .18s, transform .15s;
}

.nav-cta:hover {
  opacity: .88;
  transform: scale(1.03);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(12, 12, 14, .95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 10px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--fg);
  background: rgba(255, 255, 255, .08);
}

/* ─────────────────────────────────────────
   REBUILT ULTRA-PREMIUM HERO SECTION
───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 150px 24px 90px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* Background Multi-Glow Aurora */
.hero-aurora {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(74, 222, 128, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 40%, rgba(56, 189, 248, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 30% at 70% 40%, rgba(168, 85, 247, 0.08), transparent 60%);
  filter: blur(40px);
  opacity: 0.9;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.6;
}

.hero-grid svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Unified Badge Pill */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.hero-badge-pill:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.15);
}

.badge-emblem {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.badge-text {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.1px;
}

.badge-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Headline */
.hero-h1 {
  font-size: clamp(42px, 6.5vw, 84px);
  font-weight: 850;
  letter-spacing: -3.5px;
  line-height: 1.02;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #4ade80 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 35px rgba(74, 222, 128, 0.25));
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19.5px);
  color: rgba(255, 255, 255, 0.55);
  max-width: 680px;
  margin: 0 auto 40px;
  font-weight: 350;
  line-height: 1.65;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  color: #050507;
  border-radius: 980px;
  font-size: 14.5px;
  font-weight: 650;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 35px rgba(74, 222, 128, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35), 0 0 50px rgba(74, 222, 128, 0.35);
  opacity: 0.98;
}

.btn-secondary {
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 980px;
  font-size: 14.5px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* High-Tech Live Code Serialization Window */
.hero-preview-window {
  width: 100%;
  max-width: 1020px;
  margin: 56px auto 0;
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.8), 0 0 50px rgba(74, 222, 128, 0.08);
  backdrop-filter: blur(24px);
  text-align: left;
  position: relative;
}

.hero-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}

.dot-group { display: flex; gap: 6px; }
.dot-group .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

.win-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: 0.3px;
}

.hero-win-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.win-pane {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  min-width: 0;
  overflow-x: auto;
  position: relative;
}

.accent-pane {
  border-right: none;
  background: rgba(74, 222, 128, 0.025);
  min-width: 0;
  overflow-x: auto;
}

.pane-h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pane-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.pane-h.green { color: var(--accent); }

.copy-tens-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.copy-tens-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg);
}

.pane-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}
.green-code { color: #a7f3d0; }

/* ─────────────────────────────────────────
   TICKER STRIP
───────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .015);
  position: relative;
  width: 100%;
}

.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .22);
  white-space: nowrap;
}

.ticker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

/* ─────────────────────────────────────────
   STATS SECTION
───────────────────────────────────────── */
.stats {
  padding: 80px 24px;
  background: var(--bg);
  width: 100%;
}

.stats-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
}

.stat {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.stat:last-child {
  border-right: none;
}

.stat-n {
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--fg);
}

.stat-l {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.stat-desc {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, .35);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   FEATURES GRID
───────────────────────────────────────── */
.sec {
  padding: 80px 24px;
  width: 100%;
}

.sec-in {
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .4);
  margin-bottom: 20px;
}

.sec-h {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.08;
  color: var(--fg);
}

.sec-p {
  margin-top: 18px;
  font-size: 16.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, .45);
  line-height: 1.7;
  max-width: 580px;
}

.feat-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.feat-card {
  background: rgba(255, 255, 255, .025);
  padding: 40px 32px;
  transition: background .25s;
  position: relative;
  overflow: hidden;
}

.feat-card:hover {
  background: rgba(255, 255, 255, .045);
}

.feat-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .2);
  margin-bottom: 24px;
}

.feat-h {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--fg);
  margin-bottom: 10px;
}

.feat-p {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, .4);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   DEEP DIVE SECTION
───────────────────────────────────────── */
.deepdive {
  background: #09090d;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.dd-visual-card {
  position: relative;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.dd-feat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.dd-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dd-feat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--fg);
  fill: none;
  stroke-width: 2;
}

.dd-feat-h {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.dd-feat-p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.dd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dd-pill {
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ─────────────────────────────────────────
   CODE & QUICKSTART
───────────────────────────────────────── */
.code-sec {
  background: var(--bg);
}

.code-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.code-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.code-step {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.step-h { font-size: 14.5px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.step-p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.5; }

.code-window {
  background: #09090d;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.code-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
}

.code-win-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.file-name { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.3); }

pre.code-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #e2e8f0;
  overflow-x: auto;
}

.ck { color: #f472b6; }
.cs { color: #38bdf8; }
.cf { color: #a7f3d0; }
.cn { color: #fbbf24; }
.cc { color: #64748b; font-style: italic; }
.co { color: #c084fc; }

/* ─────────────────────────────────────────
   CALCULATOR
───────────────────────────────────────── */
.calc-sec { background: #07070a; border-top: 1px solid var(--line); }

.calc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
  align-items: center;
}

.calc-field { display: flex; flex-direction: column; gap: 12px; }
.calc-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); }
.calc-val-badge { background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; }
.calc-range { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); outline: none; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); cursor: pointer; }
.calc-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.3); }

.calc-models { display: flex; gap: 10px; }
.model-btn { flex: 1; padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: rgba(255,255,255,0.5); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all .2s; }
.model-btn.active, .model-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: var(--fg); }

.calc-res-box { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; }
.calc-res-label { font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,0.4); font-weight: 600; }
.calc-res-num { font-size: clamp(34px, 4vw, 50px); font-weight: 800; color: var(--accent); margin: 10px 0; letter-spacing: -1.5px; }
.calc-res-sub { font-size: 13px; color: rgba(255,255,255,0.4); }

.calc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.calc-metric { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.cm-val { font-size: 17px; font-weight: 700; color: var(--fg); }
.cm-lbl { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ─────────────────────────────────────────
   INTEGRATIONS MARQUEE
───────────────────────────────────────── */
.integrations { padding: 48px 24px 24px; border-top: 1px solid var(--line); }
.int-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.int-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 24px; font-weight: 600; }
.int-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.int-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 24px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.int-logo { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.int-logo svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.7); fill: none; stroke-width: 1.8; }
.int-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); }

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */
.faq-sec { background: var(--bg); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.faq-item { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 16px; padding: 24px; cursor: pointer; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.faq-item:hover { background: rgba(255, 255, 255, 0.035); border-color: var(--line-bright); }
.faq-header-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q { font-size: 15.5px; font-weight: 600; color: var(--fg); margin-bottom: 0; }
.faq-chevron { width: 18px; height: 18px; stroke: rgba(255, 255, 255, 0.4); fill: none; stroke-width: 2; transition: transform 0.3s var(--ease), stroke 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); stroke: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s var(--ease), opacity 0.3s ease, margin-top 0.3s ease; margin-top: 0; font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.65; }
.faq-item.open .faq-a { max-height: 300px; opacity: 1; margin-top: 12px; }

/* ─────────────────────────────────────────
   BIG CTA
───────────────────────────────────────── */
.cta-sec { padding: 80px 24px; text-align: center; background: var(--bg); border-top: 1px solid var(--line); }
.cta-container { max-width: 780px; margin: 0 auto; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 28px; padding: 56px 36px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.cta-h { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 12px; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.45); max-width: 480px; margin: 0 auto 32px; line-height: 1.6; }

.waitlist-wrap { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.waitlist-inline { display: flex; gap: 8px; width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--line-bright); border-radius: 12px; padding: 6px 6px 6px 16px; transition: border-color 0.2s; }
.waitlist-inline:focus-within { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.waitlist-inline input { flex: 1; background: transparent; border: none; outline: none; color: var(--fg); font-size: 14px; font-family: var(--font); }
.waitlist-inline button { padding: 10px 20px; background: var(--fg); color: var(--bg); border: none; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: opacity 0.18s, transform 0.15s; }
.waitlist-inline button:hover { opacity: 0.9; transform: scale(1.02); }
.waitlist-hint { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 10px; }
.waitlist-msg { margin-top: 10px; font-size: 13px; min-height: 20px; }
.waitlist-msg.success { color: var(--accent); }

/* ─────────────────────────────────────────
   ANIMATION & INTERACTIVE UTILITIES
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.reveal-scale {
  transform: scale(0.94) translateY(20px);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Dynamic Card Spotlight Glow */
.spotlight-card {
  position: relative;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.25),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* Interactive Code Tabs */
.code-tabs-nav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 8px;
}
.code-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.code-tab-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.code-tab-btn.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

/* Hero Serialization Tabs */
.hero-tab-nav {
  display: flex;
  gap: 6px;
}
.hero-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-tab-btn:hover {
  color: var(--fg);
  border-color: var(--line);
}
.hero-tab-btn.active {
  color: var(--accent);
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 64px 48px 48px; background: var(--bg); }
.footer-top { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-brand p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 260px; margin-top: 12px; }
.foot-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color .18s; }
.foot-col a:hover { color: var(--fg); }
.footer-bottom { max-width: 1080px; margin: 36px auto 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ─────────────────────────────────────────
   RESPONSIVE FIXES FOR ALL SCREENS
───────────────────────────────────────── */
@media(max-width: 1024px) {
  .feat-header { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .dd-split { grid-template-columns: 1fr; }
  .code-wrap { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media(max-width: 860px) {
  .nav-center, .nav-gh { display: none; }
  .nav-burger { display: flex; }
  .stats-inner { grid-template-columns: 1fr; border-radius: 20px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .feat-grid { grid-template-columns: 1fr; border-radius: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-win-split { grid-template-columns: 1fr; }
  .win-pane { border-right: none; border-bottom: 1px solid var(--line); }
}
