:root {
  --bg: #0a0e1a;
  --bg-elev: #111827;
  --surface: #1a2235;
  --border: #243047;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --brand: #4f7cff;
  --brand-hover: #6b91ff;
  --accent: #f59e0b;
  --success: #10b981;
  --radius: 12px;
  --max-w: 1100px;
  --max-prose: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--max-prose); margin: 0 auto; padding: 48px 24px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -0.02em; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 22px; }
.prose .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: white;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(79, 124, 255, 0.18), transparent 60%),
    radial-gradient(600px 400px at 90% 20%, rgba(245, 158, 11, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.25);
  color: var(--brand-hover);
  font-size: 13px; font-weight: 500;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
}
h1.headline {
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}
.headline .grad {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subhead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 620px; margin: 0 auto 36px;
}
.cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: var(--brand); color: white;
}
.btn-primary:hover { background: var(--brand-hover); color: white; text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); text-decoration: none; }

/* Features */
.section { padding: 80px 0; }
.section-title {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700;
  text-align: center;
}
.section-sub {
  color: var(--text-dim);
  text-align: center; margin: 0 auto 48px;
  max-width: 540px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  width: 40px; height: 40px;
  background: rgba(79, 124, 255, 0.12);
  color: var(--brand-hover);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 600;
}
.feature p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); margin: 0 0 14px;
}
.footer-grid a {
  display: block; color: var(--text-dim); margin-bottom: 8px;
  font-size: 14px;
}
.footer-grid a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Forms (account deletion) */
.form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 14px; font-weight: 500;
  margin-bottom: 6px; color: var(--text);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
}
.field textarea { min-height: 100px; resize: vertical; }
.callout {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbd38d;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin: 16px 0;
}

/* Mobile */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
