/* ========================
   MAILSIGNAL — THEME CSS
   ======================== */

:root {
  --bg: #0A1128;
  --surface: #0F1B38;
  --surface2: #142449;
  --fg: #F0EDE6;
  --fg-muted: #8899BB;
  --accent: #C8F83A;
  --accent-dim: rgba(200, 248, 58, 0.12);
  --border: rgba(200, 248, 58, 0.15);
  --radius: 12px;
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* Reset */
*, *::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: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  padding: 140px 40px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,248,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 48px;
}

.hero-sub em { font-style: normal; color: var(--fg); }

.hero-stats-row {
  display: flex;
  gap: 40px;
}

.hero-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-val {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Email Preview */
.hero-right { position: relative; }

.email-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.email-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.email-to { font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 8px; }

.email-subject-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.email-subject { font-size: 0.9rem; font-weight: 600; color: var(--fg); line-height: 1.4; }

.email-body {
  padding: 24px;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--fg-muted);
}

.email-body p { margin-bottom: 14px; }
.email-body p:last-child { color: var(--fg); }

.email-research-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-dim);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.research-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.scrolling-tag {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tag-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
}

/* How It Works */
.how-it-works {
  padding: 100px 40px;
  background: var(--surface);
}

.how-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.how-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-icon { margin-bottom: 20px; }

.step-card h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.step-card p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.7; }

/* Process Flow */
.process-flow {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.flow-node {
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.flow-node.highlight {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.flow-arrow { flex-shrink: 0; display: flex; align-items: center; }

/* Difference */
.difference {
  padding: 100px 40px;
  background: var(--bg);
}

.diff-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.diff-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.comparison-table {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.comp-row:last-child { border-bottom: none; }

.comp-header-row {
  background: var(--surface);
}

.comp-col {
  padding: 18px 24px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  color: var(--fg-muted);
}

.comp-col:not(:last-child) {
  border-right: 1px solid var(--border);
}

.comp-feature { color: var(--fg); font-weight: 500; }

.highlight-col { color: var(--accent); }

.comp-header-row .comp-col {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.comp-header-row .highlight-col { color: var(--accent); }

/* Numbers */
.numbers {
  padding: 80px 40px;
  background: var(--surface);
}

.numbers-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.number-card {
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
}

.big-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 10px;
}

.big-num.accent { color: var(--accent); }

.big-num-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.source-note {
  max-width: 1200px;
  margin: 20px auto 0;
  font-size: 0.7rem;
  color: rgba(136,153,187,0.5);
  text-align: center;
}

/* Manifesto */
.manifesto {
  padding: 100px 40px;
  background: var(--bg);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 48px;
}

.manifesto-rule:last-child { margin: 0; margin-top: 48px; }

.manifesto blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Closing */
.closing {
  padding: 100px 40px 120px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(200,248,58,0.04) 100%);
}

.closing-inner { max-width: 860px; margin: 0 auto; }

.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 28px;
}

.closing p {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 48px;
}

.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.closing-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 100px;
}

.closing-cta {
  display: inline-block;
  background: var(--accent);
  color: #0A1128;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 40px;
  transition: opacity 0.2s;
}
.closing-cta:hover { opacity: 0.9; }

.closing-link {
  display: inline-block;
  margin-left: 20px;
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.closing-link:hover { color: var(--fg); }

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.footer-legal {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(136,153,187,0.6);
  align-items: center;
}

.footer-legal .sep { opacity: 0.4; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-row { grid-template-columns: 1fr 1fr; }
  .comp-col:first-child { display: none; }
  .comp-header-row .comp-col:first-child { display: flex; }
  .hero-stats-row { gap: 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 20px 60px; }
  .how-it-works, .difference, .numbers, .manifesto, .closing { padding: 60px 20px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .flow-node { font-size: 0.7rem; padding: 8px 14px; }
}