/* ═══════════════════════════════════════════════════════════════════════════
   AbstractFramework — Premium Dark Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────────────────────── */

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

/* ── Custom Properties ────────────────────────────────────────────────── */

:root {
  /* Palette — core */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --green: #10b981;
  --green-light: #34d399;
  --pink: #ec4899;
  --pink-light: #f472b6;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --blue: #3b82f6;

  /* Palette — surfaces */
  --bg-deep: #050508;
  --bg: #0a0a12;
  --bg-surface: #0e0e18;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-solid: #111119;
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-code: #08080e;

  /* Palette — borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Palette — text */
  --text: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #5c5c78;

  /* Palette — glows */
  --glow-primary: rgba(99, 102, 241, 0.15);
  --glow-primary-strong: rgba(99, 102, 241, 0.35);
  --glow-accent: rgba(6, 182, 212, 0.15);
  --glow-green: rgba(16, 185, 129, 0.15);
  --glow-pink: rgba(236, 72, 153, 0.15);
  --glow-amber: rgba(245, 158, 11, 0.15);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  --gradient-text: linear-gradient(135deg, #818cf8, #22d3ee, #34d399);
  --gradient-border: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.5));
  --gradient-divider: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.2), transparent);
  --gradient-pink: linear-gradient(135deg, #ec4899, #6366f1);
  --gradient-green: linear-gradient(135deg, #10b981, #06b6d4);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', 'Monaco', 'Consolas', monospace;

  /* Font sizes — fluid clamp scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-2xl: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  --text-3xl: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --text-4xl: clamp(2.5rem, 2rem + 3vw, 4.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-glow-accent: 0 0 40px rgba(6, 182, 212, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 250ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;

  /* Z layers */
  --z-base: 1;
  --z-card: 10;
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
}


/* ── Base ─────────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Dot-grid background pattern on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

::selection {
  background: var(--primary);
  color: #fff;
}


/* ── Links ────────────────────────────────────────────────────────────── */

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--accent-light);
}


/* ── Images ───────────────────────────────────────────────────────────── */

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


/* ── Inline code ──────────────────────────────────────────────────────── */

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  color: var(--accent-light);
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0 var(--space-xl);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-light);
  transition:
    background var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider);
  opacity: 0.5;
}

.nav.scrolled {
  background: rgba(10, 10, 18, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(255, 255, 255, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: opacity var(--duration) var(--ease);
}

.nav-brand:hover {
  color: var(--text);
  opacity: 0.85;
}

.nav-brand svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition:
    color var(--duration) var(--ease),
    text-shadow var(--duration) var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.nav-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.3);
}

.nav-cta:hover::before {
  opacity: 1;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--duration) var(--ease);
}

.mobile-toggle:hover {
  color: var(--primary-light);
}

/* Mobile nav open state */
@media (max-width: 768px) {
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--border);
    gap: var(--space-sm);
    z-index: var(--z-nav);
  }

  .nav-links.open a {
    padding: 0.6rem 0;
  }
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
  padding: var(--space-xl);
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--space-xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(16, 185, 129, 0.04), transparent),
    var(--bg);
}

/* Animated radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
  animation: heroGlow 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-3%, 2%) scale(1.02); }
  66% { transform: translate(2%, -1%) scale(0.98); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 80%);
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(64px, 64px); }
}

/* Floating particles (pure CSS) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(99, 102, 241, 0.35), transparent),
    radial-gradient(1px 1px at 25% 70%, rgba(6, 182, 212, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 40% 35%, rgba(16, 185, 129, 0.25), transparent),
    radial-gradient(1px 1px at 55% 85%, rgba(99, 102, 241, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 70% 15%, rgba(6, 182, 212, 0.35), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(16, 185, 129, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 15% 90%, rgba(236, 72, 153, 0.2), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(245, 158, 11, 0.2), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(99, 102, 241, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 35% 10%, rgba(6, 182, 212, 0.25), transparent),
    radial-gradient(1px 1px at 80% 80%, rgba(99, 102, 241, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(16, 185, 129, 0.3), transparent);
  animation: particleFloat 40s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes particleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}


/* ── Hero Content ─────────────────────────────────────────────────────── */

.hero-inner {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
  animation: fadeSlideDown 0.8s var(--ease-out) both;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 16px rgba(16, 185, 129, 0.3); }
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-lg);
  animation: fadeSlideDown 0.8s 0.15s var(--ease-out) both;
}

.hero h1 .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.75;
  animation: fadeSlideDown 0.8s 0.3s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeSlideDown 0.8s 0.45s var(--ease-out) both;
}


/* ── Hero Code Block ──────────────────────────────────────────────────── */

.hero-code {
  background: rgba(8, 8, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  white-space: pre;
  animation: fadeSlideDown 0.8s 0.6s var(--ease-out) both;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hero-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
}

/* Terminal dots decoration */
.hero-code::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
    16px 0 0 #febc2e,
    32px 0 0 #28c840;
  opacity: 0;
}

.hero-code pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  overflow-x: auto;
  white-space: pre;
}

.hero-code pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

.hero-code .kw { color: var(--pink); }
.hero-code .fn { color: var(--blue); }
.hero-code .str { color: var(--green); }
.hero-code .cmt { color: var(--text-muted); font-style: italic; }


/* ── Hero Entrance Animations ─────────────────────────────────────────── */

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition:
    all var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 4px 16px rgba(99, 102, 241, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.5),
    0 8px 30px rgba(99, 102, 241, 0.35),
    0 0 60px rgba(99, 102, 241, 0.15);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.4),
    0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(99, 102, 241, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS — Layout + Typography
   ═══════════════════════════════════════════════════════════════════════════ */

section {
  padding: var(--space-4xl) var(--space-xl);
  position: relative;
  z-index: var(--z-base);
}

/* Gradient divider between sections */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gradient-divider);
}

/* Sections with bg-surface don't need dividers */
section[style*="background"]::before {
  display: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
  position: relative;
  padding: 0.3rem 0;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4));
}

.section-label::before {
  right: calc(100% + 12px);
}

.section-label::after {
  left: calc(100% + 12px);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.4), transparent);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.75;
}


/* ═══════════════════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-bar {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: var(--space-2xl) var(--space-xl);
  flex-wrap: wrap;
  position: relative;
  z-index: var(--z-base);
}

.stat {
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1rem, 2.5vw, 2rem));
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.stat-num {
  font-size: clamp(2.2rem, 2rem + 2vw, 3rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ENTRY POINTS — Two-card hero section
   ═══════════════════════════════════════════════════════════════════════════ */

.entry-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.entry-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
}

/* Animated gradient top border */
.entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-size: 200% 100%;
  animation: borderGradientShift 4s ease-in-out infinite;
}

@keyframes borderGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Inner glow on hover */
.entry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease);
  pointer-events: none;
}

.entry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.entry-card:hover::after {
  opacity: 1;
}

/* Core variant */
.entry-card.core::before {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
}

.entry-card.core:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(99, 102, 241, 0.08);
}

.entry-card.core::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.06), transparent 70%);
}

/* Gateway variant */
.entry-card.gateway::before {
  background: linear-gradient(90deg, var(--green), var(--accent), var(--green));
  background-size: 200% 100%;
}

.entry-card.gateway:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(16, 185, 129, 0.08);
}

.entry-card.gateway::after {
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.06), transparent 70%);
}

.entry-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  position: relative;
  transition: transform var(--duration) var(--ease);
}

.entry-card:hover .entry-icon {
  transform: scale(1.08);
}

.entry-card.core .entry-icon {
  background: var(--glow-primary);
  color: var(--primary-light);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.entry-card.gateway .entry-icon {
  background: var(--glow-green);
  color: var(--green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.entry-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.entry-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  font-size: var(--text-base);
}

.entry-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.entry-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.entry-card.core .entry-features li::before {
  background: var(--primary-light);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.entry-card.gateway .entry-features li::before {
  background: var(--green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ARCHITECTURE DIAGRAM
   ═══════════════════════════════════════════════════════════════════════════ */

.arch-diagram {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
  overflow-x: auto;
  position: relative;
}

.arch-diagram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider);
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 920px;
  margin: 0 auto;
}

.arch-layer {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
}

.arch-layer-label {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.arch-blocks {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  flex-wrap: wrap;
}

.arch-block {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  transition:
    all var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
  cursor: default;
  position: relative;
}

a.arch-block {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.arch-block:hover {
  transform: translateY(-2px);
}

.arch-block.accent {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary-light);
}

.arch-block.accent:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.arch-block.green {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.06);
  color: var(--green-light);
}

.arch-block.green:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.arch-block.cyan {
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.06);
  color: var(--accent-light);
}

.arch-block.cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.1);
}

.arch-block.pink {
  border-color: rgba(236, 72, 153, 0.2);
  background: rgba(236, 72, 153, 0.06);
  color: var(--pink-light);
}

.arch-block.pink:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.1);
}

.arch-block.amber {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.06);
  color: var(--amber-light);
}

.arch-block.amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.arch-connector {
  display: flex;
  justify-content: center;
  padding: 0.15rem 0;
}

.arch-connector svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  opacity: 0.5;
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.comp-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition:
    all var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
  position: relative;
  overflow: hidden;
}

/* Animated gradient border on hover */
.comp-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: var(--gradient-border);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--duration-slow) var(--ease);
}

.comp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-card-solid);
  z-index: -1;
}

.comp-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow:
    var(--shadow),
    0 0 30px rgba(99, 102, 241, 0.06);
}

.comp-card:hover::before {
  opacity: 1;
}

.comp-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.comp-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.comp-tag.foundation {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.comp-tag.composition {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.comp-tag.app {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-light);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.comp-tag.modality {
  background: rgba(236, 72, 153, 0.12);
  color: var(--pink-light);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.comp-tag.memory {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.comp-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.comp-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-top: 0.5rem;
}

.comp-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.comp-link {
  font-size: var(--text-xs);
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  transition:
    color var(--duration) var(--ease),
    gap var(--duration) var(--ease);
}

.comp-link:hover {
  color: var(--accent-light);
  gap: 0.4rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SHOWCASE — Image + Text pairs
   ═══════════════════════════════════════════════════════════════════════════ */

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin: var(--space-3xl) 0;
}

.showcase-grid.reverse {
  direction: rtl;
}

.showcase-grid.reverse > * {
  direction: ltr;
}

.showcase-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* Glow ring on hover */
.showcase-img::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--gradient-border);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--duration-slow) var(--ease);
}

.showcase-img:hover {
  transform: scale(1.015) translateY(-2px);
  box-shadow:
    0 16px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(99, 102, 241, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.showcase-img:hover::before {
  opacity: 0.6;
}

.showcase-img img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease);
}

.showcase-img:hover img {
  transform: scale(1.02);
}

.showcase-content h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
}

.showcase-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.showcase-features li .icon {
  color: var(--green);
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.showcase-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CODE BLOCKS — Proper formatting
   ═══════════════════════════════════════════════════════════════════════════ */

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  overflow-x: auto;
  margin: var(--space-lg) 0;
  position: relative;
  white-space: pre;
  color: var(--text-secondary);
  tab-size: 4;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* Top gradient accent line */
.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.6;
}

/* Line-number gutter effect */
.code-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.1), transparent);
  border-radius: 0 2px 2px 0;
}

/* Copy button */
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-family: var(--font);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  z-index: 2;
}

.copy-btn:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
}

.copy-btn.copied {
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Scrollbar for code blocks */
.code-block::-webkit-scrollbar {
  height: 6px;
}

.code-block::-webkit-scrollbar-track {
  background: transparent;
}

.code-block::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Syntax highlighting classes */
.code-block .line-kw,
.line-kw { color: var(--pink); }

.code-block .line-fn,
.line-fn { color: var(--blue); }

.code-block .line-str,
.line-str { color: var(--green); }

.code-block .line-cmt,
.line-cmt { color: var(--text-muted); font-style: italic; }

.code-block .line-var,
.line-var { color: var(--accent-light); }

/* pre + code elements used standalone */
pre {
  white-space: pre;
  overflow-x: auto;
  font-family: var(--mono);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MULTIMODAL VISUAL
   ═══════════════════════════════════════════════════════════════════════════ */

.multimodal-visual {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.multimodal-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider);
}

.mm-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}

.mm-node {
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  position: relative;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
}

.mm-node:hover {
  transform: translateY(-2px);
}

.mm-node.input {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary-light);
}

.mm-node.input:hover {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.mm-node.process {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-light);
}

.mm-node.process:hover {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.mm-node.output {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--green-light);
}

.mm-node.output:hover {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.mm-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════════════════════
   DEPLOYMENT MODES
   ═══════════════════════════════════════════════════════════════════════════ */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.mode-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition:
    all var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
  position: relative;
  overflow: hidden;
}

/* Distinct identity per card via nth-child color tinting */
.mode-card:nth-child(1)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.mode-card:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.mode-card:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--primary));
}

.mode-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(99, 102, 241, 0.06);
}

.mode-card:nth-child(1):hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.mode-card:nth-child(2):hover {
  border-color: rgba(16, 185, 129, 0.2);
}

.mode-card:nth-child(3):hover {
  border-color: rgba(236, 72, 153, 0.2);
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.2));
}

.mode-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.mode-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.mode-tags {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mode-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition:
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.mode-card:hover .mode-tag {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════════════════ */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    all var(--duration) var(--ease),
    box-shadow var(--duration-slow) var(--ease);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(99, 102, 241, 0.06);
  transform: translateY(-3px);
}

.gallery-item img {
  transition: transform var(--duration-slow) var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-caption {
  padding: 0.85rem 1.15rem;
  background: var(--bg-card-solid);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}


/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO SHOWCASE
   ═══════════════════════════════════════════════════════════════════════════ */

.video-showcase {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition:
    box-shadow var(--duration-slow) var(--ease),
    border-color var(--duration) var(--ease);
}

.video-showcase:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow:
    0 12px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(99, 102, 241, 0.06);
}

.video-showcase video {
  width: 100%;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 5rem var(--space-xl);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(99, 102, 241, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 100%, rgba(6, 182, 212, 0.05), transparent 50%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 1;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  border-top: 1px solid var(--border-light);
  background: var(--bg-deep);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: 0.75rem;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: 0.3rem 0;
  transition:
    color var(--duration) var(--ease),
    padding-left var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--text);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals: children delay cascading */
.reveal.visible .entry-card,
.reveal.visible .comp-card,
.reveal.visible .mode-card,
.reveal.visible .gallery-item,
.reveal.visible .mm-node,
.reveal.visible .arch-layer,
.reveal.visible .stat {
  animation: staggerReveal 0.6s var(--ease-out) both;
}

.reveal.visible .entry-card:nth-child(1),
.reveal.visible .comp-card:nth-child(1),
.reveal.visible .mode-card:nth-child(1),
.reveal.visible .gallery-item:nth-child(1),
.reveal.visible .mm-node:nth-child(1),
.reveal.visible .arch-layer:nth-child(1),
.reveal.visible .stat:nth-child(1) { animation-delay: 0ms; }

.reveal.visible .entry-card:nth-child(2),
.reveal.visible .comp-card:nth-child(2),
.reveal.visible .mode-card:nth-child(2),
.reveal.visible .gallery-item:nth-child(2),
.reveal.visible .mm-node:nth-child(2),
.reveal.visible .arch-layer:nth-child(2),
.reveal.visible .stat:nth-child(2) { animation-delay: 80ms; }

.reveal.visible .comp-card:nth-child(3),
.reveal.visible .mode-card:nth-child(3),
.reveal.visible .mm-node:nth-child(3),
.reveal.visible .arch-layer:nth-child(3),
.reveal.visible .stat:nth-child(3) { animation-delay: 160ms; }

.reveal.visible .comp-card:nth-child(4),
.reveal.visible .mm-node:nth-child(4),
.reveal.visible .arch-layer:nth-child(4),
.reveal.visible .stat:nth-child(4) { animation-delay: 240ms; }

.reveal.visible .comp-card:nth-child(5),
.reveal.visible .mm-node:nth-child(5),
.reveal.visible .arch-layer:nth-child(5) { animation-delay: 320ms; }

.reveal.visible .comp-card:nth-child(6),
.reveal.visible .arch-layer:nth-child(6) { animation-delay: 400ms; }

.reveal.visible .comp-card:nth-child(7),
.reveal.visible .arch-layer:nth-child(7) { animation-delay: 480ms; }

.reveal.visible .comp-card:nth-child(8) { animation-delay: 560ms; }
.reveal.visible .comp-card:nth-child(9) { animation-delay: 640ms; }
.reveal.visible .comp-card:nth-child(10) { animation-delay: 720ms; }
.reveal.visible .comp-card:nth-child(11) { animation-delay: 800ms; }
.reveal.visible .comp-card:nth-child(12) { animation-delay: 880ms; }
.reveal.visible .comp-card:nth-child(13) { animation-delay: 960ms; }
.reveal.visible .comp-card:nth-child(14) { animation-delay: 1040ms; }

@keyframes staggerReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stat number counter-like appearance */
.reveal.visible .stat-num {
  animation: countAppear 0.8s var(--ease-spring) both;
}

.reveal.visible .stat:nth-child(1) .stat-num { animation-delay: 100ms; }
.reveal.visible .stat:nth-child(2) .stat-num { animation-delay: 200ms; }
.reveal.visible .stat:nth-child(3) .stat-num { animation-delay: 300ms; }
.reveal.visible .stat:nth-child(4) .stat-num { animation-delay: 400ms; }

@keyframes countAppear {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING / PARALLAX-LIKE SUBTLE EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Gentle float on specific decorative elements */
.entry-icon,
.mode-icon {
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.entry-card:hover .entry-icon {
  animation: none;
  transform: scale(1.08);
}

.mode-card:hover .mode-icon {
  animation: none;
  transform: scale(1.1);
}

/* Parallax-like depth on architecture connector arrows */
.arch-connector svg {
  animation: arrowPulse 3s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(2px); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SVG ICON STYLING (inline SVGs in cards)
   ═══════════════════════════════════════════════════════════════════════════ */

.comp-card svg,
.entry-card svg,
.mode-card svg {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-brand svg,
.footer-brand svg {
  transition:
    filter var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.nav-brand:hover svg,
.footer-brand:hover svg {
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
  transform: rotate(-5deg) scale(1.05);
}


/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first breakpoints
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .entry-points {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .showcase-grid.reverse {
    direction: ltr;
  }

  .showcase-content {
    order: 2;
  }

  .showcase-img {
    order: 1;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .arch-diagram {
    padding: var(--space-xl);
  }

  .section-label::before,
  .section-label::after {
    display: none;
  }
}

/* ── Mobile (≤ 768px) ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav {
    padding: 0 var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 6rem var(--space-lg) var(--space-2xl);
    min-height: auto;
  }

  section {
    padding: var(--space-3xl) var(--space-lg);
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .components-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    gap: var(--space-lg);
  }

  .stat + .stat::before {
    display: none;
  }

  .mm-flow {
    flex-direction: column;
    gap: var(--space-md);
  }

  .mm-arrow {
    transform: rotate(90deg);
  }

  .arch-layer {
    flex-direction: column;
  }

  .arch-layer-label {
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-code {
    font-size: 0.75rem;
    padding: 1.25rem 1.25rem;
    max-width: 100%;
  }

  .code-block {
    font-size: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
  }

  .entry-card {
    padding: var(--space-xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
  }
}

/* ── Small mobile (≤ 480px) ───────────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3.5rem;
  }

  .hero {
    padding: 5.5rem var(--space-md) var(--space-xl);
  }

  section {
    padding: var(--space-2xl) var(--space-md);
  }

  .nav {
    height: 56px;
  }

  .nav-brand {
    font-size: 0.95rem;
  }

  .nav-brand svg {
    width: 24px;
    height: 24px;
  }

  .entry-card {
    padding: var(--space-lg);
  }

  .comp-card {
    padding: 1.25rem;
  }

  .mode-card {
    padding: var(--space-lg);
  }

  .hero-code {
    font-size: 0.7rem;
    padding: 1rem;
    line-height: 1.7;
  }

  .code-block {
    font-size: 0.7rem;
    padding: 0.85rem 1rem;
    line-height: 1.7;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

/* Glow utility */
.glow-primary { box-shadow: var(--shadow-glow); }
.glow-accent { box-shadow: var(--shadow-glow-accent); }


/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) var(--bg-deep);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Documentation Pages
   ═══════════════════════════════════════════════════════════════════════════ */

.doc-hero {
  padding: clamp(120px, 15vh, 200px) 0 clamp(60px, 8vh, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.doc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, var(--glow-primary) 0%, transparent 70%);
  pointer-events: none;
}

.doc-hero-inner {
  position: relative;
  z-index: 1;
}

.doc-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--glow-primary);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 24px;
}

.doc-badge.capability {
  background: var(--glow-accent);
  color: var(--accent-light);
  border-color: rgba(6, 182, 212, 0.2);
}

.doc-badge.application {
  background: var(--glow-green);
  color: var(--green-light);
  border-color: rgba(16, 185, 129, 0.2);
}

.doc-badge.knowledge {
  background: var(--glow-amber);
  color: var(--amber-light);
  border-color: rgba(245, 158, 11, 0.2);
}

.doc-badge.composition {
  background: var(--glow-pink);
  color: var(--pink-light);
  border-color: rgba(236, 72, 153, 0.2);
}

.doc-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
}

.doc-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.doc-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.doc-meta .btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

/* Doc section layout */
.doc-section {
  padding: clamp(48px, 6vh, 80px) 0;
  border-top: 1px solid var(--border);
}

.doc-section .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.doc-section h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text);
}

.doc-section p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 1rem;
}

.doc-section ul,
.doc-section ol {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 20px 24px;
  font-size: 1rem;
}

.doc-section li {
  margin-bottom: 8px;
}

.doc-section li strong {
  color: var(--text);
}

/* Feature grid in doc pages */
.doc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.doc-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.doc-feature:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.doc-feature h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.doc-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Doc page footer */
.doc-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.doc-footer a {
  color: var(--primary-light);
  text-decoration: none;
}

.doc-footer a:hover {
  text-decoration: underline;
}

/* Table styles for doc pages */
.doc-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.doc-section th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
}

.doc-section td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.doc-section td code,
.doc-section p code {
  background: var(--bg-code);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent-light);
  border: 1px solid var(--border);
}


/* ═══════════════════════════════════════════════════════════════════════════
   CODE TABS
   ═══════════════════════════════════════════════════════════════════════════ */

.code-tabs {
  margin: var(--space-lg) 0;
}

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 14, 0.5);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0 0.5rem;
}

.tab-btn {
  padding: 0.65rem 1.35rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  top: 1px;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel .code-block {
  margin-top: 0;
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

.carousel-caption {
  padding: 0.85rem 1.15rem;
  background: var(--bg-card-solid);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.4);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-card-solid);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary-light);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}


/* ═══════════════════════════════════════════════════════════════════════════
   AUDIO PLAYER
   ═══════════════════════════════════════════════════════════════════════════ */

.audio-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audio-player {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--duration) var(--ease);
}

.audio-player:hover {
  border-color: var(--border-hover);
}

.audio-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.audio-icon {
  font-size: 1.5rem;
  color: var(--pink);
  line-height: 1;
}

.audio-title {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text);
  margin-bottom: 4px;
}

.audio-prompt {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
}

audio {
  border-radius: 6px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ROADMAP TIMELINE
   ═══════════════════════════════════════════════════════════════════════════ */

.roadmap-timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--primary), var(--text-muted));
}

.roadmap-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 2rem;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

.roadmap-marker {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  z-index: 1;
}

.roadmap-item.done .roadmap-marker {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.roadmap-item.active .roadmap-marker {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.roadmap-item.upcoming .roadmap-marker {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.roadmap-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--duration) var(--ease);
}

.roadmap-item:hover .roadmap-content {
  border-color: var(--border-hover);
}

.roadmap-item.active .roadmap-content {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.06);
}

.roadmap-content h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.roadmap-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.roadmap-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-light);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.roadmap-status.current {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  border-color: rgba(99, 102, 241, 0.2);
}

.roadmap-status.planned {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border);
}


/* ═══════════════════════════════════════════════════════════════════════════
   KNOWLEDGE GRAPH DIAGRAM
   ═══════════════════════════════════════════════════════════════════════════ */

.kg-diagram {
  width: 100%;
  max-width: 420px;
}

.kg-diagram svg {
  width: 100%;
  height: auto;
}

.kg-diagram svg text {
  font-family: var(--font);
}


/* ═══════════════════════════════════════════════════════════════════════════
   CODE TABS
   ═══════════════════════════════════════════════════════════════════════════ */

.code-tabs {
  margin: 2rem 0;
}

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--primary-light);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px 2px 0 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 300ms ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.carousel-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--duration) var(--ease);
  z-index: 2;
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--primary);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.carousel-dot.active {
  background: var(--primary-light);
  box-shadow: 0 0 8px var(--glow-primary-strong);
}


/* ═══════════════════════════════════════════════════════════════════════════
   AUDIO SHOWCASE
   ═══════════════════════════════════════════════════════════════════════════ */

.audio-showcase {
  max-width: 640px;
}

.audio-player {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--duration) var(--ease);
}

.audio-player:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px var(--glow-primary);
}

.audio-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.audio-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.audio-title {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.audio-prompt {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 4px;
}

.audio-player audio {
  width: 100%;
  height: 36px;
  border-radius: 18px;
}

.audio-player audio::-webkit-media-controls-panel {
  background: var(--bg-surface);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ROADMAP TIMELINE
   ═══════════════════════════════════════════════════════════════════════════ */

.roadmap-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 40px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), var(--green), var(--text-muted));
}

.roadmap-item {
  position: relative;
  padding: 0 0 40px 32px;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

.roadmap-marker {
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg);
}

.roadmap-item.done .roadmap-marker {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px var(--glow-green);
}

.roadmap-item.active .roadmap-marker {
  background: var(--primary);
  border-color: var(--primary-light);
  box-shadow: 0 0 12px var(--glow-primary-strong);
  animation: roadmapPulse 2s ease infinite;
}

@keyframes roadmapPulse {
  0%, 100% { box-shadow: 0 0 8px var(--glow-primary-strong); }
  50% { box-shadow: 0 0 20px var(--glow-primary-strong); }
}

.roadmap-item.upcoming .roadmap-marker {
  background: transparent;
  border-color: var(--text-muted);
  border-style: dashed;
}

.roadmap-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all var(--duration) var(--ease);
}

.roadmap-content:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.roadmap-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--glow-green);
  color: var(--green-light);
  margin-bottom: 8px;
}

.roadmap-status.current {
  background: var(--glow-primary);
  color: var(--primary-light);
  animation: roadmapPulse 2s ease infinite;
}

.roadmap-status.planned {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.roadmap-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.roadmap-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   KNOWLEDGE GRAPH DIAGRAM
   ═══════════════════════════════════════════════════════════════════════════ */

.kg-diagram {
  width: 100%;
  max-width: 500px;
}

.kg-diagram svg {
  width: 100%;
  height: auto;
}
