/* ============================================================
   vmExit — Landing Page
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-dim: #888;
  --accent: #5d9cec;
  --accent-dim: #3a6fb0;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Berkeley Mono', 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 960px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Ambient Background Orbs ---- */

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  animation: drift 20s ease-in-out infinite alternate;
}

.glow-1 {
  width: 800px;
  height: 800px;
  background: var(--accent);
  top: -15%;
  right: -10%;
  animation-duration: 24s;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: #8b5cf6;
  top: 25%;
  left: -15%;
  animation-duration: 18s;
  animation-delay: -6s;
}

.glow-3 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: 50%;
  right: 10%;
  animation-duration: 22s;
  animation-delay: -10s;
  opacity: 0.12;
}

.glow-4 {
  width: 650px;
  height: 650px;
  background: #8b5cf6;
  top: 70%;
  left: 5%;
  animation-duration: 20s;
  animation-delay: -3s;
  opacity: 0.14;
}

.glow-5 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 90%;
  right: -5%;
  animation-duration: 26s;
  animation-delay: -8s;
  opacity: 0.1;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.92); }
  100% { transform: translate(15px, -15px) scale(1.03); }
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.nav-badge:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* ---- Hero Background Grid ---- */

.hero {
  position: relative;
  padding: 160px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93,156,236,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,156,236,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  animation: grid-pulse 6s ease-in-out infinite alternate;
}

@keyframes grid-pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: #fff;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.hero-badge:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.gh-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #74aefc;
  transform: translateY(-1px);
}

.btn-large {
  font-size: 17px;
  padding: 16px 40px;
}

/* ---- Sections ---- */

.section {
  padding: 80px 24px;
  position: relative;
}

.section.alt {
  background: transparent;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 28px;
  color: #fff;
}

/* ---- Prose ---- */

.prose {
  max-width: 720px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--text);
}

.prose em {
  color: var(--accent);
  font-style: italic;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* ---- Timeline (Lineage) ---- */

.timeline {
  position: relative;
  padding: 20px 0 20px 40px;
}

.timeline-line {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border) 0%, var(--accent) 100%);
}

.timeline-line-short {
  background: var(--accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

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

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  z-index: 1;
}

.timeline-marker-now {
  width: 16px;
  height: 16px;
  left: -32px;
  top: 6px;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(93, 156, 236, 0.5), 0 0 24px rgba(93, 156, 236, 0.2);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  padding-top: 4px;
}

.timeline-item-now .timeline-year {
  color: var(--accent);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.timeline-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.timeline-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
}

.timeline-card-now {
  border-color: var(--accent);
  background: rgba(93, 156, 236, 0.06);
}

.timeline-card-now h3 {
  color: var(--accent);
  font-size: 20px;
}

.timeline-card-now p {
  color: var(--text);
}

/* ---- Code Window ---- */

.code-window {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

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

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

.code-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8b949e;
}

.code-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: #c9d1d9;
  overflow-x: auto;
  margin: 0;
}

.code-body code {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.c-key { color: #79c0ff; }
.c-str { color: #a5d6ff; }
.c-fn { color: #d2a8ff; }
.c-num { color: #79c0ff; font-weight: bold; }

.code-cursor {
  display: inline-block;
  width: 8px;
  height: 17px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Steps (How It Works) ---- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.step-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- Examples (AI-Native) ---- */

.examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.example h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.example p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- Architecture Grid ---- */

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.arch-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.arch-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.arch-item code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

/* ---- CTA Section ---- */

.cta-section {
  text-align: center;
  padding: 40px 0;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.cta-section p {
  font-size: 20px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.cta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.cta-badge:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ---- Scroll Reveal ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline-line {
    left: 11px;
  }

  .timeline-marker {
    left: -29px;
  }

  .timeline-marker-now {
    left: -31px;
  }

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

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

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