/* ==============================
   EdgeOut — Design System
   Fraunces serif + DM Sans
   Navy / Electric Lime palette
   ============================== */

:root {
  --bg: #050d1a;
  --surface: #0b1a2e;
  --surface-2: #0f2239;
  --fg: #f0ede6;
  --fg-muted: #8899aa;
  --accent: #d4ff00;
  --accent-dim: rgba(212, 255, 0, 0.12);
  --border: rgba(255,255,255,0.07);
  --red-fire: #ff5c5c;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { 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);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Section Utility ---- */
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,255,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  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 rgba(212,255,0,0.2);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 100px;
  display: block;
}

/* Agent Widget */
.agent-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,255,0,0.05);
}

.agent-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.agent-dot {
  width: 8px;
  height: 8px;
  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.4; }
}

.agent-status {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.signal-list {
  padding: 0;
}

.signal-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: start;
}

.signal-item.signal-fire {
  background: rgba(212,255,0,0.04);
  border-left: 3px solid var(--accent);
}

.signal-time {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 500;
  padding-top: 3px;
}

.signal-body {
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.5;
}

.signal-body strong {
  color: var(--fg);
}

.signal-target {
  color: var(--accent);
  font-size: 0.75rem;
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

.agent-footer {
  padding: 16px 20px;
  background: var(--surface-2);
}

.outreach-progress {}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ---- SIGNALS ---- */
.signals-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.signal-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

.signal-card:hover { background: var(--surface-2); }

.signal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: var(--accent-dim);
  position: relative;
}

.signal-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.9;
}

.signal-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.signal-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- OUTBOUND ---- */
.outbound-section {
  padding: 120px 0;
}

.loop-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 12px;
}

.loop-step {
  flex: 1;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.loop-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.loop-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.loop-step p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.loop-connector {
  display: none;
}

/* Email Preview */
.email-preview {
  margin-top: 48px;
}

.email-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.email-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.email-meta {
  padding: 12px 24px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.email-subject {
  padding: 12px 24px;
  font-size: 0.85rem;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.email-body {
  padding: 28px 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.email-body p { margin-bottom: 14px; }
.email-body em { color: var(--fg); font-style: italic; }

/* ---- OUTCOMES ---- */
.outcomes-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.outcomes-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.outcomes-grid p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.outcomes-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
}

.outcome-stat {}

.outcome-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.outcome-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 280px;
}

/* Comparison Table */
.comparison-block {}

.comparison-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.comparison-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}

.comparison-header > div {
  padding: 14px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.comparison-header .highlight-col { color: var(--accent); }

.comparison-row > div {
  padding: 16px 24px;
  font-size: 0.88rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child > div { border-bottom: none; }

.comparison-row > div:first-child { color: var(--fg); font-weight: 500; }

.comparison-row .highlight-col {
  color: var(--accent);
  font-weight: 500;
}

/* ---- CLOSING ---- */
.closing-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.closing-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212,255,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-right {
    order: -1;
  }

  .signals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .loop-diagram {
    gap: 12px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section-inner, .hero-inner, .footer-inner, .closing-inner {
    padding: 0 24px;
  }

  .signals-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .loop-diagram {
    flex-direction: column;
  }

  .comparison-header > div,
  .comparison-row > div {
    padding: 12px 16px;
    font-size: 0.8rem;
  }
}
