/* ─────────────────────────────────────────────────────────────────────────
   MogSignal Landing Page — style.css
   Dark theme, amber/orange brand palette, Geist typeface
   ───────────────────────────────────────────────────────────────────────── */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand-amber: #f5a623;
  --brand-orange: #ff4500;
  --brand-gradient: linear-gradient(135deg, #f5a623, #ff4500);

  /* Background layers */
  --bg-0: #040507;
  --bg-1: #08090e;
  --bg-2: #0c0f18;
  --bg-3: #10131e;
  --bg-4: #141824;

  /* Surface */
  --surface-1: #1a2030;
  --surface-2: #222840;
  --surface-3: #2e3855;

  /* Text */
  --text-primary: #e4e8f0;
  --text-secondary: #8892a8;
  --text-muted: #5a6280;

  /* Accents */
  --green: #10d48e;
  --red: #f04b5a;
  --amber: #f5a623;
  --amber-subtle: rgba(245, 166, 35, 0.12);
  --orange-subtle: rgba(255, 69, 0, 0.1);

  /* Reddit palette */
  --reddit-bg: #1a1a1b;
  --reddit-surface: #272729;
  --reddit-border: #343536;
  --reddit-text: #d7dadc;
  --reddit-subtext: #818384;
  --reddit-orange: #ff4500;

  /* Layout */
  --max-width: 1120px;
  --nav-h: 64px;

  /* Type */
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', ui-monospace, monospace;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Utility: gradient text ─────────────────────────────────────────────── */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section scaffold ───────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-amber);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r-full);
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary.btn-large { font-size: 16px; padding: 14px 32px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 11px 4px;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--surface-3);
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: var(--brand-amber); background: var(--amber-subtle); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-nav:hover { opacity: 0.88; }

/* ── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 9, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon { width: 28px; height: 32px; }
.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse 900px 600px at 70% 40%, rgba(245,166,35,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(255,69,0,0.04) 0%, transparent 60%),
    var(--bg-1);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-subtle);
  border: 1px solid rgba(245,166,35,0.2);
  color: var(--brand-amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.hero-stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--surface-3);
}

/* ── DEMO BROWSER MOCK ──────────────────────────────────────────────────── */
.hero-demo { position: relative; }

.demo-wrap {
  position: relative;
}

.demo-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-browser {
  background: var(--reddit-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 120px rgba(245,166,35,0.06);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.browser-dot.red    { background: #ff5f56; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green  { background: #27c840; }
.browser-url {
  flex: 1;
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}
.browser-ext-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-amber);
  background: var(--amber-subtle);
  border: 1px solid rgba(245,166,35,0.2);
  padding: 2px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* Reddit mock */
.reddit-mock {
  padding: 12px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reddit-header {
  padding: 6px 16px 10px;
  font-size: 12px;
  color: var(--reddit-subtext);
  border-bottom: 1px solid var(--reddit-border);
  margin-bottom: 4px;
}
.reddit-sub {
  font-weight: 700;
  color: var(--reddit-text);
}

.reddit-comment {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

.reddit-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 24px;
}
.vote-arrow {
  font-size: 12px;
  color: var(--reddit-subtext);
  line-height: 1;
}
.vote-arrow.active { color: var(--reddit-orange); }
.vote-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--reddit-text);
}

.reddit-body { flex: 1; min-width: 0; }

.reddit-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.reddit-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--reddit-blue, #4fbdff);
}
.reddit-author--deleted {
  color: var(--reddit-subtext);
  text-decoration: line-through;
}
.reddit-time {
  font-size: 11px;
  color: var(--reddit-subtext);
}

.reddit-text {
  font-size: 13px;
  color: var(--reddit-text);
  line-height: 1.5;
}
.reddit-text--restored {
  color: var(--reddit-subtext);
  font-style: italic;
}

/* Trust badges */
.tl-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  cursor: default;
  position: relative;
  white-space: nowrap;
  font-family: var(--font-mono);
  transition: transform 0.15s;
}
.tl-badge:hover { transform: scale(1.05); }
.tl-badge.trusted {
  background: rgba(16, 212, 142, 0.14);
  color: #10d48e;
  border: 1px solid rgba(16,212,142,0.3);
}
.tl-badge.bot {
  background: rgba(240,75,90,0.14);
  color: #f04b5a;
  border: 1px solid rgba(240,75,90,0.3);
}

/* Hover panel */
.tl-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 220px;
  background: var(--bg-3);
  border: 1px solid var(--surface-2);
  border-radius: var(--r-md);
  padding: 10px 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
  pointer-events: none;
}

.tl-badge:hover .tl-panel,
.tl-badge:focus .tl-panel {
  display: block;
}

.trusted-panel { border-top: 2px solid #10d48e; }
.bot-panel     { border-top: 2px solid #f04b5a; }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.panel-user { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.panel-score { font-size: 11px; font-weight: 700; color: var(--text-primary); }

.signal-row {
  display: grid;
  grid-template-columns: 58px 1fr 32px;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.signal-label { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.signal-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.signal-bar {
  height: 100%;
  width: var(--w, 0%);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.signal-bar.safe   { background: #10d48e; }
.signal-bar.warn   { background: #f5a623; }
.signal-bar.danger { background: #f04b5a; }
.signal-pct { font-size: 10px; color: var(--text-muted); text-align: right; }

.panel-footer {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--surface-1);
}

/* Restored comment pill */
.restored-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-amber);
  background: var(--amber-subtle);
  border: 1px solid rgba(245,166,35,0.2);
  padding: 2px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ── PROOF BAR ──────────────────────────────────────────────────────────── */
.proof-bar {
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-2);
  padding: 18px 0;
}
.proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.proof-label {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.proof-subs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.proof-subs span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-1);
  padding: 4px 12px;
  border-radius: var(--r-full);
}

/* ── FEATURES ───────────────────────────────────────────────────────────── */
.features {
  padding: 96px 0;
  background: var(--bg-1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(245,166,35,0.2);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how {
  padding: 96px 0;
  background: var(--bg-2);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.how-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.how-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-amber);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.how-step-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.how-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-connector {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-3), transparent);
  margin-top: 60px;
  flex-shrink: 0;
}

/* ── SIGNALS ────────────────────────────────────────────────────────────── */
.signals {
  padding: 96px 0;
  background: var(--bg-1);
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.signal-card {
  background: var(--surface-1);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  padding: 20px;
}
.signal-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-amber);
  margin-bottom: 8px;
}
.signal-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── PRICING ────────────────────────────────────────────────────────────── */
.pricing {
  padding: 96px 0;
  background: var(--bg-2);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 32px;
}

.pricing-card {
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--pro {
  border-color: rgba(245,166,35,0.3);
  background: linear-gradient(135deg, rgba(245,166,35,0.04), var(--bg-3) 60%);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.pricing-card-header { margin-bottom: 24px; }
.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-period { font-size: 15px; font-weight: 400; color: var(--text-muted); }
.pricing-tagline { font-size: 14px; color: var(--text-secondary); }

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  font-size: 13px;
  color: var(--text-secondary);
}
.pricing-features li::first-letter {
  /* ✓ symbol handled inline */
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-note a {
  color: var(--brand-amber);
}
.pricing-note a:hover { text-decoration: underline; }

/* ── CTA BANNER ─────────────────────────────────────────────────────────── */
.cta-banner {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 50%, rgba(245,166,35,0.06) 0%, transparent 70%),
    var(--bg-1);
  text-align: center;
}
.cta-inner { text-align: center; }
.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-0);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.footer-brand { flex-shrink: 0; }
.footer-logo-icon { width: 28px; height: 32px; margin-bottom: 10px; }
.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links-group {
  flex: 1;
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .signals-grid  { grid-template-columns: 1fr 1fr; }
  .how-steps { flex-direction: column; align-items: center; gap: 32px; }
  .how-connector { display: none; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links-group { gap: 40px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .signals-grid  { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
