/* ============================================================
   z-vector-search — GitHub Pages Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Base palette */
  --bg-primary: #06080f;
  --bg-secondary: #0c1020;
  --bg-surface: #111628;
  --bg-card: rgba(17, 22, 40, 0.65);
  --bg-card-hover: rgba(24, 30, 55, 0.8);

  /* Text */
  --text-primary: #e8ecf4;
  --text-secondary: #8b95b0;
  --text-muted: #5a6380;
  --text-inverse: #06080f;

  /* Accents */
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: rgba(0, 229, 255, 0.15);
  --accent-cyan-glow: rgba(0, 229, 255, 0.3);
  --accent-amber: #ffab40;
  --accent-amber-dim: rgba(255, 171, 64, 0.15);
  --accent-green: #69f0ae;
  --accent-red: #ff5252;
  --accent-purple: #b388ff;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #06080f 0%, #0d1224 30%, #121a38 60%, #0a1028 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --gradient-card: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(179, 136, 255, 0.05));

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 229, 255, 0.25);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.1);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

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

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

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent-cyan);
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-primary) !important;
  transition: all 0.3s var(--ease-out);
}

.nav-github:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan) !important;
}

.nav-github svg {
  width: 18px;
  height: 18px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 50%, rgba(0, 229, 255, 0.06), transparent),
    radial-gradient(ellipse 600px 500px at 80% 30%, rgba(179, 136, 255, 0.05), transparent),
    radial-gradient(ellipse 500px 400px at 50% 80%, rgba(255, 171, 64, 0.03), transparent);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  background: var(--accent-cyan-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero install command */
.hero-install {
  margin-top: 40px;
  text-align: center;
}

.hero-install-code {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-green);
  letter-spacing: 0.01em;
  user-select: all;
  cursor: text;
}

.hero-install-prompt {
  color: var(--accent-cyan);
  margin-right: 6px;
  user-select: none;
}

.hero-install-link {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-install-link a {
  color: var(--accent-cyan);
  font-weight: 500;
}

.hero-install-link a:hover {
  color: var(--accent-amber);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
  background: #33ecff;
  color: var(--text-inverse);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Sections Common ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Divider between sections */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* ---------- Problem Section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.problem-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-points li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  padding: 16px 20px;
  border-left: 3px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.problem-points li:hover {
  border-left-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.03);
}

.problem-points li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.problem-points li em {
  color: var(--accent-cyan);
  font-style: normal;
  font-weight: 600;
}

.problem-visual {
  position: relative;
}

.console-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-dot.red { background: #ff5f57; }
.console-dot.yellow { background: #febc2e; }
.console-dot.green { background: #28c840; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.console-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
  min-height: 200px;
  overflow-x: auto;
}

.console-body .msg-error {
  color: var(--accent-red);
}

.console-body .msg-warn {
  color: var(--accent-amber);
}

.console-body .msg-info {
  color: var(--text-muted);
}

.console-body .msg-action {
  color: var(--accent-green);
}

.console-body .prompt {
  color: var(--accent-cyan);
}

/* ---------- Pipeline Section ---------- */
.pipeline-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 500px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
}

.pipeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.pipeline-step:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateX(8px);
}

.pipeline-step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.pipeline-step-content {
  flex: 1;
}

.pipeline-step-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.pipeline-step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pipeline-arrow {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  opacity: 0.4;
}

/* ---------- Architecture Cards ---------- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.arch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.arch-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

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

.arch-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.arch-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.arch-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.arch-card .tech-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  margin-right: 6px;
}

/* ---------- Tools Section ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.tool-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tool-card-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tool-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

/* ---------- Demo Section ---------- */
.demo-section {
  background: var(--bg-secondary);
}

.demo-window {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.demo-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  min-height: 360px;
  overflow-x: auto;
}

.demo-body .line {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease-out);
}

.demo-body .line.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-body .dim { color: var(--text-muted); }
.demo-body .cyan { color: var(--accent-cyan); }
.demo-body .amber { color: var(--accent-amber); }
.demo-body .green { color: var(--accent-green); }
.demo-body .red { color: var(--accent-red); }
.demo-body .purple { color: var(--accent-purple); }
.demo-body .bold { font-weight: 700; color: var(--text-primary); }
.demo-body .separator {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ---------- Performance / SIMD Section ---------- */
.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.perf-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.perf-text p strong {
  color: var(--text-primary);
}

.perf-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perf-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
}

.perf-stat:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.perf-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.perf-stat-icon.cyan { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.perf-stat-icon.amber { background: var(--accent-amber-dim); color: var(--accent-amber); }
.perf-stat-icon.green { background: rgba(105, 240, 174, 0.15); color: var(--accent-green); }

.perf-stat-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.perf-stat-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Code block in performance section */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.code-block-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.code-block pre .keyword { color: var(--accent-purple); }
.code-block pre .function { color: var(--accent-cyan); }
.code-block pre .string { color: var(--accent-green); }
.code-block pre .comment { color: var(--text-muted); font-style: italic; }
.code-block pre .number { color: var(--accent-amber); }

/* ---------- Getting Started Section ---------- */
.start-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.start-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.start-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.start-step-content {
  flex: 1;
}

.start-step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.start-step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.start-step-code {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green);
  overflow-x: auto;
}

.start-step-code .prompt-char {
  color: var(--accent-cyan);
  user-select: none;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 60px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
}

.footer-copy a:hover {
  color: var(--accent-cyan);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Floating Particles (Hero) ---------- */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0.5);
  }
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 2s; width: 2px; height: 2px; }
.particle:nth-child(3) { left: 35%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4) { left: 50%; animation-duration: 18s; animation-delay: 1s; width: 4px; height: 4px; }
.particle:nth-child(5) { left: 65%; animation-duration: 14s; animation-delay: 3s; }
.particle:nth-child(6) { left: 75%; animation-duration: 11s; animation-delay: 5s; width: 2px; height: 2px; }
.particle:nth-child(7) { left: 85%; animation-duration: 16s; animation-delay: 2s; }
.particle:nth-child(8) { left: 45%; animation-duration: 13s; animation-delay: 6s; width: 2px; height: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .arch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .perf-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

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

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

  .stats-bar {
    gap: 32px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .demo-body {
    font-size: 0.72rem;
    padding: 16px;
  }

  .start-step {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
