/* --------------------------------------------------------------------------
 * theme.css — Landing page styles
 * Owns: all visual styling for the landing page
 * Does NOT own: route logic, data, analytics
 * -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Syne:wght@400;600;700;800&display=swap');

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

:root {
  --bg:       #0c0c0e;
  --bg-card:  #141418;
  --bg-card2: #1a1a20;
  --border:   rgba(255,255,255,0.07);
  --text:     #e8e6e1;
  --muted:    #9a9892;
  --accent:   #f59e0b;
  --accent2:  #fbbf24;
  --danger:   #ef4444;
  --radius:   6px;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body:    'Syne', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── Noise texture overlay ── */
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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav.scrolled {
  background: rgba(12,12,14,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 400;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.hero-form input[type="email"]::placeholder { color: var(--muted); }
.hero-form input[type="email"]:focus { border-color: var(--accent); }
.btn-primary {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.25);
}
.hero-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-visual {
  position: relative;
}
.hero-card-stack {
  position: relative;
  height: 340px;
}
.stat-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  width: 220px;
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.stat-card .value { font-family: var(--font-heading); font-size: 2.2rem; color: #fff; line-height: 1; }
.stat-card .sub { font-size: 0.78rem; color: var(--accent); margin-top: 4px; }
.stat-card:nth-child(1) { top: 0; left: 0; }
.stat-card:nth-child(2) { top: 80px; right: 0; border-color: rgba(245,158,11,0.2); }
.stat-card:nth-child(3) { bottom: 0; left: 40px; }

/* ── How It Works ── */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}
.section-header {
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--bg-card);
  padding: 40px 36px;
  position: relative;
  transition: background 0.2s ease;
}
.feature-card:hover { background: var(--bg-card2); }
.feature-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(245,158,11,0.18);
  line-height: 1;
  margin-bottom: 20px;
  font-style: italic;
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ── Divider line ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-made { font-size: 0.75rem; color: rgba(154,152,146,0.5); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Compliance micro-copy below email form ── */
.hero-compliance {
  margin-top: 10px;
  font-size: 0.73rem;
  color: rgba(154,152,146,0.6);
  line-height: 1.5;
}
.hero-compliance a { color: rgba(154,152,146,0.8); text-decoration: underline; text-underline-offset: 2px; }
.hero-compliance a:hover { color: var(--accent); }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(245,158,11,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}
