/* style.css — Ikiki Data Design System */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800&f[]=satoshi@400,500,700&display=swap');

:root,
[data-theme='light'] {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Colors — Ikiki Data: Midnight + Cyan + Violet */
  --color-bg: #f4f6fb;
  --color-surface: #ffffff;
  --color-surface-2: #f8faff;
  --color-surface-offset: #eef2f8;
  --color-surface-offset-2: #e6ecf5;
  --color-surface-dynamic: #dde5f0;
  --color-divider: #dde3ee;
  --color-border: #d0d9e8;

  --color-text: #0a1628;
  --color-text-muted: #5b6b85;
  --color-text-faint: #94a3bd;
  --color-text-inverse: #f4f6fb;

  /* Primary — Ikiki Cyan (vitality, living data) */
  --color-primary: #0094c4;
  --color-primary-hover: #0078a3;
  --color-primary-active: #005f84;
  --color-primary-highlight: #d0f0fa;

  /* Accent — Violet (AI, innovation) */
  --color-accent: #7c3aed;
  --color-accent-hover: #6630c0;
  --color-accent-active: #4e2496;
  --color-accent-highlight: #ece3fb;

  /* Success — Growth green */
  --color-success: #059669;
  --color-success-hover: #047857;
  --color-success-highlight: #d1fae5;

  /* Warning */
  --color-warning: #c2410c;
  --color-warning-highlight: #fed7aa;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 240 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.2 0.02 240 / 0.08);
  --shadow-lg: 0 12px 40px oklch(0.2 0.02 240 / 0.12);
  --shadow-glow: 0 0 32px oklch(0.55 0.15 200 / 0.15);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0094c4, #7c3aed);
  --gradient-hero: radial-gradient(ellipse at 30% 20%, oklch(0.6 0.15 200 / 0.08), transparent 60%),
                   radial-gradient(ellipse at 70% 80%, oklch(0.55 0.18 280 / 0.06), transparent 60%);
  --gradient-mesh: linear-gradient(in oklab, oklch(0.55 0.14 200 / 0.04), oklch(0.5 0.16 280 / 0.04));
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #060a14;
  --color-surface: #0c1322;
  --color-surface-2: #101830;
  --color-surface-offset: #0f1828;
  --color-surface-offset-2: #14203a;
  --color-surface-dynamic: #1a2848;
  --color-divider: #1a2840;
  --color-border: #243454;

  --color-text: #e0e7f0;
  --color-text-muted: #8294b0;
  --color-text-faint: #5a6b88;
  --color-text-inverse: #060a14;

  --color-primary: #22d3ee;
  --color-primary-hover: #06b6d4;
  --color-primary-active: #0891b2;
  --color-primary-highlight: #0d3a48;

  --color-accent: #a78bfa;
  --color-accent-hover: #8b5cf6;
  --color-accent-active: #7c3aed;
  --color-accent-highlight: #2a1a4a;

  --color-success: #34d399;
  --color-success-hover: #10b981;
  --color-success-highlight: #0a3d2e;

  --color-warning: #fb923c;
  --color-warning-highlight: #4a2a10;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.5);
  --shadow-glow: 0 0 40px oklch(0.6 0.15 200 / 0.2);

  --gradient-hero: radial-gradient(ellipse at 30% 20%, oklch(0.55 0.15 200 / 0.12), transparent 60%),
                   radial-gradient(ellipse at 70% 80%, oklch(0.5 0.18 280 / 0.1), transparent 60%);
  --gradient-mesh: linear-gradient(in oklab, oklch(0.55 0.14 200 / 0.06), oklch(0.5 0.16 280 / 0.06));
}

/* ============ LAYOUT UTILITIES ============ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

/* ============ LANGUAGE SELECTOR ============ */
.lang-selector {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-btn {
  padding: var(--space-1) var(--space-2);
  color: var(--color-text-faint);
  border-radius: var(--radius-sm);
  transition: all var(--transition-interactive);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
}

.lang-btn:hover { color: var(--color-text-muted); }
.lang-btn.active { color: var(--color-primary); }

.lang-divider {
  color: var(--color-text-faint);
  user-select: none;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.5);
  transition: box-shadow var(--transition-interactive);
}

.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--color-primary); }

.nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.theme-toggle:hover { color: var(--color-text); border-color: var(--color-primary); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

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

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(from var(--color-text) l c h / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, oklch(from var(--color-text) l c h / 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-inner {
  position: relative;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: var(--space-16);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  width: fit-content;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-block: var(--space-4);
}

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

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}

/* Animated data nodes SVG */
.hero-visual svg { width: 100%; height: 100%; }

/* ============ STATS BAR ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-8);
  border-block: 1px solid var(--color-divider);
}

@media (min-width: 768px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}

/* ============ SECTION HEADINGS ============ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============ VALUE PROPS ============ */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-interactive);
}

.value-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.value-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============ SERVICES ============ */
.services-section { background: var(--color-surface-offset); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-interactive);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-lg); }

.service-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 700;
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-block: var(--space-3) var(--space-4);
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  background: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============ METHOD ============ */
.method-section { background: var(--color-surface); }

.method-timeline {
  position: relative;
  margin-top: var(--space-12);
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .method-timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
  }
  .method-timeline::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0.3;
  }
}

.method-step {
  position: relative;
  text-align: center;
}

.step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
  position: relative;
  z-index: 2;
}

.method-step h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-top: var(--space-4);
}

.method-step p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: 1.5;
}

/* ============ BENCHMARK ============ */
.benchmark-section { background: var(--color-surface-offset); }

.benchmark-table {
  margin-top: var(--space-10);
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.benchmark-table table {
  min-width: 700px;
}

.benchmark-table th {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-surface-offset-2);
  border-bottom: 1px solid var(--color-border);
}

.benchmark-table td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

.benchmark-table tr:last-child td { border-bottom: none; }

.benchmark-table .ikiki-row {
  background: var(--color-primary-highlight);
  font-weight: 500;
}

.benchmark-table .check { color: var(--color-success); font-weight: 700; }
.benchmark-table .cross { color: var(--color-text-faint); }

/* ============ TECH STACK ============ */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}

.stack-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.stack-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.stack-category:first-child { margin-top: 0; }

/* ============ ROADMAP ============ */
.roadmap-section { background: var(--color-surface); }

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (min-width: 768px) { .roadmap-grid { grid-template-columns: repeat(2, 1fr); } }

.roadmap-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.roadmap-phase {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

.roadmap-phase-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.roadmap-phase-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
}

.roadmap-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.roadmap-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============ CTA ============ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.cta-box {
  position: relative;
  text-align: center;
  padding: clamp(var(--space-12), 5vw, var(--space-20));
  border-radius: var(--radius-2xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, oklch(from var(--color-primary) l c h / 0.1), transparent 50%),
    radial-gradient(ellipse at 80% 80%, oklch(from var(--color-accent) l c h / 0.08), transparent 50%);
}

.cta-box > * { position: relative; }

.cta-box h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.cta-box p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-12) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo { margin-bottom: var(--space-4); }

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30ch;
}

.footer-col h5 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  max-width: var(--content-wide);
  margin: var(--space-8) auto 0;
  padding: var(--space-6) var(--space-4) 0;
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--color-primary); }

/* ============ MOBILE NAV ============ */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .mobile-nav-toggle { display: none; }
}

.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-interactive);
}

.mobile-nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-8) var(--space-4);
  flex-direction: column;
  gap: var(--space-4);
}

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

.mobile-menu a {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
  .hero-badge .dot { animation: none; }
}

/* ============ DATA FLOW VISUAL ============ */
.data-flow-svg circle { fill: var(--color-primary); opacity: 0.8; }
.data-flow-svg .node-accent { fill: var(--color-accent); }
.data-flow-svg line { stroke: var(--color-primary); stroke-width: 1; opacity: 0.2; }
.data-flow-svg .flow-line { stroke: url(#flowGradient); stroke-width: 2; opacity: 0.4; fill: none; }
.data-flow-svg .glow-circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1;
  opacity: 0.15;
}

@keyframes float-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.data-flow-svg .floating-node {
  animation: float-node 4s ease-in-out infinite;
  transform-origin: center;
}

.data-flow-svg .floating-node:nth-child(2) { animation-delay: 0.5s; }
.data-flow-svg .floating-node:nth-child(3) { animation-delay: 1s; }
.data-flow-svg .floating-node:nth-child(4) { animation-delay: 1.5s; }
.data-flow-svg .floating-node:nth-child(5) { animation-delay: 2s; }

@media (prefers-reduced-motion: reduce) {
  .data-flow-svg .floating-node { animation: none; }
}

/* ============ DIVIDER ============ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-divider), transparent);
  margin-block: var(--space-4);
}
