/*
 * Shared landing-page styles — implements DESIGN.md tokens 1:1.
 * Drop the same <link rel="stylesheet" href="../styles.css"> in each page.
 */

/* ---------- Fonts (Satoshi + DM Sans + Geist Mono per DESIGN.md) ---------- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&display=swap');

/* ---------- Design tokens (DESIGN.md §Color, §Spacing, §Radius) ---------- */
:root {
  --bg-base: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a25;
  --border: #1f1f2e;
  --border-hover: #2a2a3e;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(129, 140, 248, 0.15);
  --accent-glow-strong: rgba(129, 140, 248, 0.25);
  --text-primary: #e4e4ec;
  --text-muted: #8b8b9e;
  --text-dim: #5a5a6e;
  --success: #22c55e;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --font-display: 'Satoshi', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- Animations (DESIGN.md §Motion) ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes thinking-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(129, 140, 248, 0); }
}

.fade-up   { animation: fade-up 400ms ease-out both; }
.fade-up-1 { animation: fade-up 400ms ease-out 50ms both; }
.fade-up-2 { animation: fade-up 400ms ease-out 100ms both; }
.fade-up-3 { animation: fade-up 400ms ease-out 150ms both; }
.fade-up-4 { animation: fade-up 400ms ease-out 200ms both; }

/* ---------- Layout ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse-glow 2s ease-in-out infinite;
}
.nav-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-muted); }

/* Hero */
.hero {
  text-align: center;
  padding: 24px 0 96px;
  max-width: 720px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  margin-bottom: 24px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
h1 .grad {
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subhead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
}

/* Hero input (signature, per DESIGN.md) */
.hero-input-glow {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg,
    var(--border) 0%,
    var(--accent-light) 25%,
    var(--accent) 50%,
    var(--accent-light) 75%,
    var(--border) 100%);
  background-size: 300% 100%;
  animation: thinking-border 4s ease infinite;
}
.hero-input-inner {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: calc(var(--r-lg) - 1.5px);
  padding: 14px 14px 14px 20px;
  gap: 12px;
}
.hero-input-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
}
.hero-input-inner input::placeholder { color: var(--text-dim); }
.hero-input-inner button {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 16px;
  transition: box-shadow 200ms ease;
}
.hero-input-inner button:hover { box-shadow: 0 0 24px var(--accent-glow-strong); }

/* Features (bento per DESIGN.md) */
.section {
  padding: 64px 0;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
}
.section .lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}
.bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}
.bento .card-wide  { grid-column: span 2; }
.bento .card-tall  { grid-row: span 2; }
.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 24px var(--accent-glow);
}
.card .icon {
  width: 32px; height: 32px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.card .mini-stat {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 24px;
}
.card .mini-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Waitlist */
.waitlist {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  text-align: center;
  margin-top: 48px;
}
.waitlist h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 12px;
}
.waitlist p {
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.waitlist-form input[type="email"] {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 150ms ease;
}
.waitlist-form input[type="email"]:focus { border-color: var(--accent); }
.waitlist-form input[type="email"]::placeholder { color: var(--text-dim); }
.waitlist-form button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-md);
  padding: 12px 22px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: box-shadow 200ms ease;
}
.waitlist-form button:hover { box-shadow: 0 0 24px var(--accent-glow-strong); }

/* Footer */
.footer {
  margin-top: 96px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

/* Mono inline */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  color: var(--text-primary);
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 720px) {
  h1 { font-size: 40px; }
  .bento { grid-template-columns: 1fr; }
  .bento .card-wide, .bento .card-tall { grid-column: span 1; grid-row: span 1; }
  .waitlist-form { flex-direction: column; }
  .nav-links { display: none; }
}
