/* === GATE THEME CSS === */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0f1a;
  --bg-2: #0f1624;
  --bg-card: #131d2e;
  --fg: #e2e8f0;
  --fg-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.1);
  --red: #f87171;
  --green: #34d399;
  --border: rgba(148, 163, 184, 0.12);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}

.title-gate {
  display: block;
  color: var(--accent);
}

.title-sub {
  display: block;
  color: var(--fg);
}

.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
}

/* === TERMINAL WIDGET === */
.terminal-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.08);
}

.terminal-header {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}

.terminal-body {
  padding: 20px;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.signal-row:last-of-type { border-bottom: none; }

.signal-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  width: 28px;
}

.signal-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.signal-long { background: var(--green); }
.signal-neutral { background: var(--fg-muted); }

.signal-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
  flex: 1;
}

.signal-rating {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}

.signal-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.signal-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.signal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* === STATS === */
.stats {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.stat-block {
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-unit {
  font-size: 0.6em;
  opacity: 0.7;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.stat-divider-v {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* === METHOD === */
.method {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 600px;
  margin-bottom: 60px;
}

.method-steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  gap: 0;
  max-width: 1100px;
}

.method-step {
  padding: 0 16px;
}

.method-connector {
  width: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
}

.method-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

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

.step-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === PROOF / COMPARISON === */
.proof {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.proof-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.proof-headline {
  margin-bottom: 48px;
}

.proof-headline h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  max-width: 520px;
  line-height: 1.2;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
}

.comparison-col {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
}

.comparison-lose { border-color: rgba(248, 113, 113, 0.2); }
.comparison-win { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.04); }

.comp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.comp-x {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.comp-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.comp-list li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
}

.comparison-win .comp-list li { color: var(--fg); }

.comp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.comparison-win .comp-list li::before { background: var(--green); }

.comp-result {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

.comp-fail {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.comp-pass {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* === OUTCOMES === */
.outcomes {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.outcomes-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.outcome-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.outcome-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
}

.outcome-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s;
}

.outcome-card:hover { border-color: rgba(245, 158, 11, 0.3); }

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--cyan-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 16px;
}

.outcome-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.outcome-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 32px;
}

.closing-gate-icon {
  margin: 0 auto 32px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.footer-note {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.5);
  text-align: right;
}

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

  .hero-right { order: -1; }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stat-divider-v { display: none; }

  .method-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .method-connector { display: none; }

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

  .outcomes-inner {
    grid-template-columns: 1fr;
  }

  .outcome-cards { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-note { text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 48px; }
  .method { padding: 64px 0; }
  .proof { padding: 64px 0; }
  .outcomes { padding: 64px 0; }
  .closing { padding: 80px 0; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
}
