@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════
   DESIGN SYSTEM — DocFlow Industrial
   Dark precision aesthetic with luminous accents
   ═══════════════════════════════════════ */

:root {
  /* Core palette */
  --void: #08090c;
  --surface-0: #0d0f14;
  --surface-1: #12151c;
  --surface-2: #181c25;
  --surface-3: #1e2330;
  --surface-4: #252b3a;

  /* Brand accents */
  --accent: #00d4ff;
  --accent-dim: #0094b3;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-glow-strong: rgba(0, 212, 255, 0.35);
  --warm: #ff6b35;
  --warm-glow: rgba(255, 107, 53, 0.2);
  --success: #22c55e;

  /* Text hierarchy */
  --text-100: #f0f2f5;
  --text-80: rgba(240, 242, 245, 0.8);
  --text-60: rgba(240, 242, 245, 0.6);
  --text-40: rgba(240, 242, 245, 0.4);
  --text-20: rgba(240, 242, 245, 0.2);

  /* Borders */
  --border: rgba(240, 242, 245, 0.08);
  --border-accent: rgba(0, 212, 255, 0.2);

  /* Typography */
  --font-display: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --nav-height: 72px;
  --max-width: 1280px;
  --section-pad: clamp(5rem, 10vw, 9rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-display);
  color: var(--text-80);
  background: var(--void);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ─── Layout ──────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ─── Background Noise Texture ────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(8, 9, 12, 0.7);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(8, 9, 12, 0.92);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-100);
  letter-spacing: -0.01em;
  text-decoration: none;
  position: relative;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: logoPulse 4s ease-in-out infinite;
}

.logo-icon::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid var(--void);
  border-radius: 2px;
  position: relative;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 60px var(--accent-glow); }
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-60);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-100);
  background: rgba(255, 255, 255, 0.05);
}

/* Language Toggle – Pill Style */
.lang-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 3px;
  cursor: pointer;
  position: relative;
  width: 68px;
  height: 32px;
  margin-left: 1rem;
  transition: border-color 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--border-accent);
}

.lang-toggle .lang-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 1;
  width: 50%;
  text-align: center;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 29px;
  height: 24px;
  background: var(--accent);
  border-radius: 14px;
  transition: transform 0.35s var(--ease-spring);
  box-shadow: 0 0 12px var(--accent-glow);
}

[data-current-lang="en"] .lang-indicator {
  transform: translateX(31px);
}

[data-current-lang="en"] .lang-label.de { color: var(--text-40); }
[data-current-lang="en"] .lang-label.en { color: var(--void); }
[data-current-lang="de"] .lang-label.de { color: var(--void); }
[data-current-lang="de"] .lang-label.en { color: var(--text-40); }

/* Admin nav icon button */
.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-20);
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}

.admin-nav-link:hover {
  color: var(--text-60);
  background: rgba(255, 255, 255, 0.05);
}


/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Blueprint grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
}

/* Ambient glow orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text { z-index: 2; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow-strong); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-100);
  text-wrap: balance;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-60);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--void);
  padding: 0.9rem 2rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 50px var(--accent-glow-strong), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary .btn-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero Visual — Isometric Document Terminal */
.hero-visual {
  position: relative;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.terminal-frame {
  width: 100%;
  max-width: 480px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px var(--accent-glow);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform 0.6s var(--ease-out-expo);
  animation: terminalFloat 6s ease-in-out infinite;
}

.terminal-frame:hover {
  transform: rotateY(-2deg) rotateX(1deg);
}

@keyframes terminalFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-10px); }
}

.terminal-bar {
  height: 40px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-4);
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-40);
  margin-left: auto;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  min-height: 320px;
  position: relative;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  animation: typeIn 0.4s var(--ease-out-expo) forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1.0s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2.0s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }
.terminal-line:nth-child(6) { animation-delay: 3.0s; }
.terminal-line:nth-child(7) { animation-delay: 3.5s; }
.terminal-line:nth-child(8) { animation-delay: 4.0s; }
.terminal-line:nth-child(9) { animation-delay: 4.5s; }

@keyframes typeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.terminal-prompt { color: var(--accent); flex-shrink: 0; }
.terminal-cmd { color: var(--text-80); }
.terminal-output { color: var(--text-40); padding-left: 1.5rem; }
.terminal-success { color: var(--success); }
.terminal-warn { color: var(--warm); }
.terminal-file { color: #a78bfa; }

/* Scan line effect */
.terminal-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-glow-strong), transparent);
  animation: scanLine 4s linear infinite;
  opacity: 0.5;
}

@keyframes scanLine {
  0% { top: 0; }
  100% { top: 100%; }
}


/* ═══════════════════════════════════════
   STATS BAR (between hero and features)
   ═══════════════════════════════════════ */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-0);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-40);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════ */
.features-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-40);
  max-width: 540px;
  line-height: 1.7;
}

.features-header {
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow-strong), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

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

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-glow-strong);
  box-shadow: 0 0 20px var(--accent-glow);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-40);
  font-size: 0.9rem;
  line-height: 1.65;
}

.feature-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-20);
  letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════
   WORKFLOW / HOW IT WORKS SECTION
   ═══════════════════════════════════════ */
.workflow-section {
  padding: var(--section-pad) 0;
  background: var(--surface-0);
  border-top: 1px solid var(--border);
  position: relative;
}

/* Grid pattern behind workflow */
.workflow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--text-20) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 70%);
  opacity: 0.3;
}

.workflow-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.workflow-header .section-subtitle {
  margin: 0 auto;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Connecting line */
.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  opacity: 0.3;
  z-index: 0;
}

.timeline-step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.timeline-marker {
  width: 64px;
  height: 64px;
  background: var(--surface-2);
  border: 2px solid var(--border-accent);
  color: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1.75rem;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.timeline-step:hover .timeline-marker {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}

.timeline-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.timeline-step p {
  font-size: 0.875rem;
  color: var(--text-40);
  line-height: 1.6;
}


/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 50%);
  animation: ctaGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaGlow {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(-5%, 5%); opacity: 0.6; }
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-40);
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--accent);
  padding: 0.85rem 2rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-display);
  border: 1px solid var(--accent);
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--void);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background: var(--surface-0);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-40);
}

.footer-brand span {
  color: var(--text-60);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-right a {
  color: var(--text-40);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

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

.footer-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}


/* ═══════════════════════════════════════
   ANIMATIONS — Scroll Reveals
   ═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: none; }


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 2.5rem;
  }

  .hero-visual {
    margin: 2rem auto 0;
    max-width: 420px;
  }

  .terminal-frame {
    transform: none;
    animation: none;
  }

  .terminal-frame:hover {
    transform: none;
  }

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

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .eyebrow {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links a:not(:last-child) {
    display: none;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 400px;
    margin: 0 auto;
  }

  .timeline::before {
    top: 0;
    left: 31px;
    right: auto;
    height: 100%;
    width: 2px;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    text-align: left;
    align-items: start;
    gap: 1.25rem;
    padding: 0;
  }

  .timeline-step > div {
    padding-top: 0.75rem;
  }

  .timeline-marker {
    margin: 0;
  }

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

  .stat-item::after {
    display: none !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0;
  }
}

/* Hamburger menu for mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-60);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}


/* ═══════════════════════════════════════
   WAITLIST SECTION
   ═══════════════════════════════════════ */
.waitlist-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.waitlist-card {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow orb */
.waitlist-glow-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  top: -30%;
  right: -15%;
  pointer-events: none;
  animation: ctaGlow 10s ease-in-out infinite;
}

/* Dot grid overlay */
.waitlist-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--text-20) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 70% at 80% 50%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 50%, black 0%, transparent 65%);
  opacity: 0.2;
  pointer-events: none;
}

.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}

/* ─── Left: Copy ───────────────────────── */
.waitlist-copy {}

.waitlist-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.waitlist-desc {
  font-size: 1rem;
  color: var(--text-60);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 440px;
}

.waitlist-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.waitlist-perks li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-60);
}

.perk-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow-strong);
}

/* ─── Right: Form Card ─────────────────── */
.waitlist-form-area {
  display: flex;
  flex-direction: column;
}

.waitlist-form-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wf-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.wf-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.wf-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-100);
  letter-spacing: -0.01em;
}

.wf-sub {
  font-size: 0.8rem;
  color: var(--text-40);
  margin-top: 0.1rem;
}

/* Field */
.field-group {
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-40);
  margin-bottom: 0.6rem;
}

.field-input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-40);
  pointer-events: none;
}

.field-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  font-size: 0.95rem;
  font-family: var(--font-display);
  color: var(--text-100);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
}

.field-input::placeholder { color: var(--text-40); }

.field-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Submit button */
.btn-waitlist {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--void);
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, opacity 0.2s ease;
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-waitlist:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow-strong), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-waitlist:hover:not(:disabled)::before {
  transform: translateX(100%);
}

.btn-waitlist:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-waitlist svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-waitlist:hover:not(:disabled) svg {
  transform: translateX(4px);
}

/* Message */
.waitlist-message {
  font-size: 0.82rem;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.waitlist-message.error {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.08);
  border: 1px solid rgba(255, 77, 79, 0.2);
}

.waitlist-message.success {
  color: var(--success);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Success state */
.waitlist-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  animation: successPop 0.5s var(--ease-spring) forwards;
}

@keyframes successPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon {
  width: 52px;
  height: 52px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  flex-shrink: 0;
}

.success-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.2rem;
}

.success-text p {
  font-size: 0.85rem;
  color: var(--text-40);
}

/* Privacy note */
.wf-privacy {
  font-size: 0.75rem;
  color: var(--text-20);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* Honeypot field — completely hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* Nav waitlist button */
.nav-waitlist-btn {
  background: var(--accent-glow) !important;
  border: 1px solid var(--border-accent) !important;
  color: var(--accent) !important;
  border-radius: 8px;
  padding: 0.45rem 1rem !important;
  font-weight: 600 !important;
  transition: background 0.25s ease, box-shadow 0.25s ease !important;
}

.nav-waitlist-btn:hover {
  background: rgba(0, 212, 255, 0.25) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
}

/* ─── Responsive ── */
@media (max-width: 1024px) {
  .waitlist-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .waitlist-desc { max-width: 100%; }
  .waitlist-glow-orb { top: -10%; right: -30%; }
}

@media (max-width: 640px) {
  .waitlist-card { border-radius: 20px; }
  .waitlist-inner { padding: 2rem 1.5rem; }
}

