/* RepRun — Dark developer aesthetic, terminal energy */

:root {
  --bg: #070707;
  --bg-surface: #0e0e0e;
  --bg-elevated: #161616;
  --bg-card: #1a1a1a;
  --border: #222222;
  --border-subtle: #181818;
  --fg: #f0ede8;
  --fg-muted: #6b6b6b;
  --fg-dim: #3d3d3d;
  --accent: #e8ff6b;
  --accent-dim: #1a2100;
  --terminal-green: #b4ff4b;
  --red: #ff5f5f;
  --yellow: #ffb84b;
  --green: #4bff8f;
  --code-bg: #0a0a0a;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Space Grotesk', 'Inter', sans-serif;
}

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

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7,7,7,0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 32px;
  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-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terminal-green);
  box-shadow: 0 0 6px var(--terminal-green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── HERO ── */
.hero {
  padding: 80px 32px 100px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.eyebrow-tag {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(232,255,107,0.2);
}
.eyebrow-sep { color: var(--fg-dim); }
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}
.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ── TERMINAL ── */
.terminal-window {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #111;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.terminal-line {
  color: var(--fg);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prompt {
  color: var(--accent);
  font-weight: 700;
}
.terminal-output {
  padding: 12px 0 12px 24px;
  border-left: 2px solid var(--border);
  margin: 8px 0;
}
.output-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
  color: var(--fg);
}
.output-line.muted { color: var(--fg-muted); font-size: 0.75rem; }
.metric-label { color: var(--fg-muted); min-width: 100px; font-size: 0.78rem; }
.metric-val { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.terminal-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.terminal-send { padding-left: 0; }
.output-line.accent { color: var(--terminal-green); font-weight: 600; font-size: 0.82rem; }

/* ── HOW IT WORKS ── */
.how {
  padding: 80px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.how-header {
  max-width: 1100px;
  margin: 0 auto 56px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.how-header h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.how-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.step { padding: 0 8px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}
.step p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 32px;
}

/* ── PEEK ── */
.peek {
  padding: 80px 32px;
  border-top: 1px solid var(--border-subtle);
}
.peek-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.peek-label { margin-bottom: 32px; }
.peek-email {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 640px;
  margin-bottom: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.email-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.email-from { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(232,255,107,0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.email-sender {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}
.email-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 2px;
}
.email-subject {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.email-body { padding: 20px; }
.email-greeting { color: var(--fg-muted); font-size: 0.88rem; margin-bottom: 16px; }
.email-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(232,255,107,0.1);
  border-radius: 8px;
}
.stat-big {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label { font-size: 0.9rem; color: var(--fg-muted); }
.email-section { margin-bottom: 18px; }
.email-section h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.email-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-section ul li {
  font-size: 0.88rem;
  color: var(--fg);
  padding-left: 14px;
  position: relative;
}
.email-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.email-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.mini-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
}
.mini-key {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 4px;
}
.email-section p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.6; }
.email-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.email-footer span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
}
.peek-caption {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-top: 20px;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 80px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.manifesto-inner { max-width: 1100px; margin: 0 auto; }
.manifesto-label { margin-bottom: 32px; }
.manifesto-quote {
  max-width: 720px;
  margin-bottom: 36px;
}
.manifesto-quote p {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.manifesto-body {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.manifesto-body p { font-size: 1rem; color: var(--fg-muted); line-height: 1.75; }
.manifesto-rule {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.rule-icon { flex-shrink: 0; }

/* ── CLOSING ── */
.closing {
  padding: 80px 32px 100px;
}
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 36px;
}
.closing-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.1;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.closing-terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: inline-block;
  font-family: var(--font-mono);
}
.ct-line { font-size: 0.88rem; margin-bottom: 4px; }
.ct-line:last-child { margin-bottom: 0; }
.ct-prompt { color: var(--accent); font-weight: 700; margin-right: 8px; }
.ct-output { color: var(--terminal-green); }

/* ── FOOTER ── */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.footer-note {
  font-size: 0.78rem;
  color: var(--fg-dim);
}
.footer-tagline {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { order: -1; }
  .hero-headline { font-size: 2.2rem; }
  .hero { padding: 60px 24px 80px; }
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .step-connector { display: none; }
  .email-metrics { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-tagline { margin-left: 0; }
  .peek, .how, .manifesto, .closing { padding: 60px 24px; }
  .nav-inner { padding: 12px 24px; }
}
@media (max-width: 480px) {
  .email-metrics { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.9rem; }
  .hero-sub { font-size: 0.95rem; }
  .manifesto-quote p { font-size: 1.3rem; }
}