:root {
  --bg: #07090f;
  --bg-surface: #0d1117;
  --bg-card: #111827;
  --fg: #e8eaef;
  --fg-muted: #6b7280;
  --fg-subtle: #4b5563;
  --accent: #00ff94;
  --accent-dim: rgba(0, 255, 148, 0.12);
  --warn: #fbbf24;
  --ok: #00ff94;
  --action: #a78bfa;
  --border: rgba(255,255,255,0.08);
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 148, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* Hero */
.hero {
  padding: 5rem 2rem 4rem;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-headline br { display: block; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.hero-visual {
  max-width: 680px;
}

/* Terminal */
.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'DM Sans', monospace;
  font-size: 0.82rem;
}
.terminal-bar {
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.t-title {
  margin-left: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.75rem;
}
.terminal-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.t-line {
  color: var(--fg-muted);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.t-ts {
  color: var(--fg-subtle);
  flex-shrink: 0;
  font-size: 0.75rem;
}
.t-ok { color: var(--ok); font-weight: 600; }
.t-warn { color: var(--warn); font-weight: 600; }
.t-action { color: var(--action); font-weight: 600; }
.t-muted { color: var(--fg-subtle); }

/* Metrics */
.metrics {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.metric-card {
  text-align: center;
  padding: 0 1rem;
}
.metric-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.metric-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Features */
.features {
  padding: 6rem 2rem;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
  max-width: 600px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-surface);
  padding: 2rem;
  transition: background 0.2s;
}
.feature-card:hover {
  background: var(--bg-card);
}
.feature-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* How it works */
.how {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.how-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1rem;
}
.how-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 148, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text {
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* Cloud diagram */
.cloud-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}
.cloud-node {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid var(--border);
}
.cloud-node.provider {
  background: var(--bg-card);
  color: var(--fg-muted);
}
.cloud-node.fathom {
  background: var(--accent-dim);
  border-color: rgba(0, 255, 148, 0.3);
  color: var(--accent);
}
.cloud-arrow {
  font-size: 1.2rem;
  color: var(--fg-subtle);
}
.cloud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.action-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-subtle);
}

/* Closing */
.closing {
  padding: 7rem 2rem;
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}
.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hero-headline br { display: none; }
  .hero-sub { font-size: 1rem; }
  .how-inner { grid-template-columns: 1fr; gap: 3rem; }
  .how-visual { order: -1; }
  .metrics-inner { gap: 1.5rem; }
  .metric-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .features { padding: 4rem 1.25rem; }
  .how { padding: 4rem 1.25rem; }
  .closing { padding: 5rem 1.25rem; }
  .nav { padding: 1rem 1.25rem; }
}
