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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #2a2a3a;
  --text-primary: #e8e8f0;
  --text-secondary: #9898a8;
  --text-muted: #6a6a7a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --cyan: #06b6d4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo span { color: var(--accent-light); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent-light); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Slide Backgrounds ── */
.hero-slide {
  position: relative;
}
.hero-slide::before,
.hero-slide::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero-slide .hero-content {
  position: relative;
  z-index: 1;
}

/* Slide 1: PQC — lattice / crystal grid */
.hero-slide[data-index="0"]::before {
  top: -30%;
  right: -20%;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(6, 182, 212, 0.3) 0%, transparent 45%);
  animation: floatSlow 12s ease-in-out infinite;
}
.hero-slide[data-index="0"]::after {
  top: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(99, 102, 241, 0.5) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(6, 182, 212, 0.35) 1.5px, transparent 1.5px);
  background-size: 44px 44px, 66px 66px;
  background-position: 0 0, 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 55%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 55%);
  animation: floatReverse 15s ease-in-out infinite;
}

/* Slide 2: HFI-Pay — connecting rings / warm tones */
.hero-slide[data-index="1"]::before {
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(16, 185, 129, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 65% 65%, rgba(6, 182, 212, 0.25) 0%, transparent 50%);
  animation: floatSlow 10s ease-in-out infinite;
}
.hero-slide[data-index="1"]::after {
  top: 10%;
  right: -10%;
  width: 550px;
  height: 550px;
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(16, 185, 129, 0.1),
    0 0 0 100px rgba(16, 185, 129, 0.06),
    0 0 0 150px rgba(16, 185, 129, 0.03),
    inset 0 0 80px rgba(16, 185, 129, 0.08);
  animation: floatReverse 14s ease-in-out infinite;
}

/* Slide 3: Trilemma — triangle geometry / amber */
.hero-slide[data-index="2"]::before {
  top: -5%;
  right: -12%;
  width: 650px;
  height: 650px;
  background:
    conic-gradient(from 0deg at 50% 50%,
      rgba(245, 158, 11, 0.3) 0deg,
      transparent 60deg,
      rgba(239, 68, 68, 0.2) 120deg,
      transparent 180deg,
      rgba(245, 158, 11, 0.25) 240deg,
      transparent 300deg,
      rgba(239, 68, 68, 0.15) 360deg);
  animation: rotateSlowCW 30s linear infinite;
}
.hero-slide[data-index="2"]::after {
  top: 5%;
  left: -10%;
  width: 450px;
  height: 450px;
  background:
    conic-gradient(from 180deg at 50% 50%,
      rgba(245, 158, 11, 0.25) 0deg,
      transparent 120deg,
      rgba(99, 102, 241, 0.2) 240deg,
      transparent 360deg);
  animation: rotateSlowCCW 25s linear infinite;
}

/* Slide 4: Performance — speed lines / cyan streaks */
.hero-slide[data-index="3"]::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(6, 182, 212, 0.08) 50px,
      rgba(6, 182, 212, 0.08) 51px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(99, 102, 241, 0.06) 50px,
      rgba(99, 102, 241, 0.06) 51px
    );
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 70%);
}
.hero-slide[data-index="3"]::after {
  top: -25%;
  right: -15%;
  width: 800px;
  height: 800px;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(6, 182, 212, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 75% 30%, rgba(99, 102, 241, 0.25) 0%, transparent 45%);
  animation: floatSlow 11s ease-in-out infinite;
}

/* Slide 5: AESP — network nodes / purple-green mesh */
.hero-slide[data-index="4"]::before {
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  background-image:
    radial-gradient(circle, rgba(99, 102, 241, 0.45) 2px, transparent 2px),
    radial-gradient(circle, rgba(16, 185, 129, 0.35) 2px, transparent 2px);
  background-size: 70px 70px, 105px 105px;
  background-position: 0 0, 35px 35px;
  mask-image: radial-gradient(ellipse at 55% 45%, black 10%, transparent 50%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 45%, black 10%, transparent 50%);
  animation: floatSlow 13s ease-in-out infinite;
}
.hero-slide[data-index="4"]::after {
  top: -20%;
  left: -10%;
  width: 800px;
  height: 800px;
  background:
    radial-gradient(circle at 45% 55%, rgba(16, 185, 129, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 65% 35%, rgba(99, 102, 241, 0.25) 0%, transparent 45%);
  animation: floatReverse 12s ease-in-out infinite;
}

/* Slide 6: Privacy — dark veil / concentric rings */
.hero-slide[data-index="5"]::before {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, transparent 25%, rgba(10, 10, 15, 0.6) 55%);
}
.hero-slide[data-index="5"]::after {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.2);
  box-shadow:
    0 0 0 40px rgba(99, 102, 241, 0.08),
    0 0 0 80px rgba(99, 102, 241, 0.05),
    0 0 0 120px rgba(99, 102, 241, 0.03),
    0 0 0 160px rgba(99, 102, 241, 0.015),
    inset 0 0 60px rgba(99, 102, 241, 0.06);
  animation: pulseRing 6s ease-in-out infinite;
}

/* Slide 7: Compliance — structured grid / blue professional */
.hero-slide[data-index="6"]::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg,
      rgba(99, 102, 241, 0.12) 25%, transparent 25%),
    linear-gradient(225deg,
      rgba(99, 102, 241, 0.09) 25%, transparent 25%),
    linear-gradient(315deg,
      rgba(6, 182, 212, 0.08) 25%, transparent 25%),
    linear-gradient(45deg,
      rgba(6, 182, 212, 0.06) 25%, transparent 25%);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 65%);
}
.hero-slide[data-index="6"]::after {
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 45%);
  animation: floatSlow 14s ease-in-out infinite;
}

/* Background animations */
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 20px); }
}
@keyframes floatReverse {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -25px); }
}
@keyframes rotateSlowCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotateSlowCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes pulseRing {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}
.hero-content { position: relative; max-width: 900px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
h1 .gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}
.hero-sub strong {
  color: var(--text-primary);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Hero Carousel ── */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateX(80px);
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-slide.slide-out-left {
  opacity: 0;
  transform: translateX(-80px);
}
.hero-slide.slide-out-right {
  opacity: 0;
  transform: translateX(80px);
}
.slide-cta {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-light);
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  transition: all 0.2s;
}
.hero-slide:hover .slide-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: scale(1.2);
}
.carousel-dot:hover {
  border-color: var(--accent-light);
}
.carousel-arrow {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}
.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent); }

/* ── Stats Bar ── */
.stats-bar {
  padding: 0 2rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-item {
  background: var(--bg-card);
  padding: 2rem;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.stat-value .unit { font-size: 1rem; font-weight: 500; color: var(--accent-light); }
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Sections ── */
section { padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

/* ── Problem Section ── */
.problem-section { background: var(--bg-secondary); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.problem-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s;
}
.problem-card:hover { border-color: var(--red); }
.problem-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Core Innovation ── */
.innovation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.innovation-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.innovation-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.innovation-list { list-style: none; }
.innovation-list li {
  padding: 0.6rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.innovation-list .check {
  color: var(--green);
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  overflow-x: auto;
  color: var(--text-secondary);
}
.code-block .comment { color: var(--text-muted); }
.code-block .keyword { color: var(--accent-light); }
.code-block .string { color: var(--green); }
.code-block .type { color: var(--cyan); }

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}
.feature-card.wide { grid-column: span 2; }
.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.feature-icon.purple { background: rgba(99, 102, 241, 0.12); color: var(--accent-light); }
.feature-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.12); color: var(--cyan); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.feature-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
a.feature-card { text-decoration: none; color: inherit; }
a.feature-card .card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
a.feature-card:hover .card-arrow { color: var(--accent-light); transform: translateX(4px); }

/* ── Architecture ── */
.arch-section { background: var(--bg-secondary); }
.arch-diagram {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 2rem;
}
.arch-layers { display: flex; flex-direction: column; gap: 0.5rem; }
.arch-layer {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-height: 80px;
}
.arch-label {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 10px;
  text-align: center;
  padding: 0.75rem;
}
.arch-label.auth { background: rgba(99, 102, 241, 0.15); color: var(--accent-light); }
.arch-label.exec { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.arch-label.zk { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.arch-label.user { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.arch-items {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.arch-item {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.arch-item strong {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.arch-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.arch-arrow {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.comparison-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.comparison-table th:first-child { border-radius: 10px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 10px 0 0; }
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .ace-row td {
  background: rgba(99, 102, 241, 0.05);
  color: var(--text-primary);
  font-weight: 500;
}
.comparison-table .ace-row td:first-child { color: var(--accent-light); font-weight: 700; }
.yes { color: var(--green) !important; font-weight: 600 !important; }
.no { color: var(--red) !important; }
.partial { color: var(--amber) !important; }

/* ── Whitepaper Section ── */
.wp-section { text-align: center; }
.wp-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 4rem;
  transition: border-color 0.3s;
}
.wp-card:hover { border-color: var(--accent); }
.wp-icon {
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.12);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.wp-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.wp-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  line-height: 1.7;
}

/* ── Research Section ── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.research-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.research-card .venue {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.research-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.research-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Footer ── */
footer {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-weight: 800;
  font-size: 1.1rem;
}
.footer-logo span { color: var(--accent-light); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── Detail Page Hero ── */
.page-hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}
.page-hero .hero-sub {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.page-hero .breadcrumb a {
  color: var(--accent-light);
  text-decoration: none;
}
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ── Detail Content Sections ── */
.content-section {
  padding: 5rem 2rem;
}
.content-section:nth-child(even) {
  background: var(--bg-secondary);
}
.content-inner {
  max-width: 900px;
  margin: 0 auto;
}
.content-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.content-inner h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.content-inner p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.content-inner ul, .content-inner ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.content-inner li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.content-inner strong {
  color: var(--text-primary);
}

/* ── Detail Grids ── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.detail-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.detail-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.3s;
}
.detail-card:hover { border-color: var(--accent); }
.detail-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.detail-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.detail-card .card-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.detail-card .card-icon.purple { background: rgba(99, 102, 241, 0.12); color: var(--accent-light); }
.detail-card .card-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.detail-card .card-icon.cyan { background: rgba(6, 182, 212, 0.12); color: var(--cyan); }
.detail-card .card-icon.amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.detail-card .card-icon.red { background: rgba(239, 68, 68, 0.1); color: var(--red); }

/* ── Diagram Boxes ── */
.diagram-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}
.diagram-box .code-block {
  border: none;
  padding: 0;
  background: none;
}
.diagram-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
}
.diagram-flow .flow-step {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 120px;
}
.diagram-flow .flow-step strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.diagram-flow .flow-step span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.diagram-flow .flow-arrow {
  color: var(--accent-light);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ── Metric Cards ── */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}
.metric-card .metric-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.metric-card .metric-value .unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-light);
}
.metric-card .metric-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Inline Code ── */
.content-inner code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15em 0.4em;
  color: var(--accent-light);
}

/* ── Wire Format / Spec Tables ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.spec-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--accent-light);
}
.spec-table .highlight td {
  background: rgba(99, 102, 241, 0.05);
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .innovation-layout { grid-template-columns: 1fr; gap: 2rem; }
  .arch-layer { flex-direction: column; }
  .arch-label { width: 100%; }
  .research-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.75rem; }
  .comparison-table th, .comparison-table td { padding: 0.75rem; }
  .wp-card { padding: 2rem 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.25rem; }
  .carousel-dots { gap: 0.4rem; }
  .carousel-dot { width: 8px; height: 8px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid.cols-3 { grid-template-columns: 1fr; }
  .detail-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .diagram-flow { flex-direction: column; }
  .diagram-flow .flow-arrow { transform: rotate(90deg); }
}
