/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Brand tokens ───────────────────────────────────────────────────── */
:root {
  --bg:          #080810;
  --bg-surface:  #0E0E1C;
  --bg-elevated: #15152A;
  --cream:       #F2EDE4;
  --black:       #060608;
  --green:       #00FF41;
  --gold:        #C8A96E;
  --magenta:     #FF00FF;
  --cyan:        #00E5FF;
  --red:         #FF1744;
  --text:        #E8E6F0;
  --text-dim:    #60607A;
  --text-cream:  #1A1A24;
  --border:      #1A1A2E;

  --font-display:   'Archivo Black', sans-serif;
  --font-editorial: 'DM Serif Display', serif; /* Signifier (Klim) in production */
  --font-mono:      'IBM Plex Mono', monospace;
  --font-body:      'Inter', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-wordmark span { color: var(--green); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 10px 20px;
  transition: border-color 200ms ease, color 200ms ease;
}

.nav-cta:hover { border-color: var(--green); color: var(--green); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 120px 48px 80px;
  max-width: 1360px;
  margin: 0 auto;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

/* ── Terminal window ─────────────────────────────────────────────────── */
.terminal {
  background: #272822;
  border: 1px solid #3a3a2e;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.terminal-bar {
  background: #3a3a35;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.terminal-dot:nth-child(1) { background: #FF5F56; }
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #27C93F; }

.terminal-title {
  margin-left: 8px;
  color: #75715e;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 24px;
  height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a35 transparent;
}

.t-line {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity 100ms ease;
}

.t-line.visible { opacity: 1; }

/* Monokai tokens */
.t-prompt  { color: #A6E22E; }
.t-cmd     { color: #F8F8F2; }
.t-dim     { color: #75715E; }
.t-thread  { color: #E6DB74; }
.t-arrow   { color: #F92672; }
.t-status-needs    { color: #F92672; }
.t-status-upcoming { color: #66D9E8; }
.t-status-active   { color: #A6E22E; }
.t-status-offer    { color: #E6DB74; }
.t-number  { color: #AE81FF; }
.t-key     { color: #66D9E8; }
.t-cursor  {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #F8F8F2;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Hero eyebrow ────────────────────────────────────────────────────── */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  height: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 400ms ease;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,65,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(0,255,65,0); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 10ch;
  margin-bottom: 40px;
}

.hero-headline em { font-style: normal; color: var(--green); }

.hero-body {
  font-weight: 300;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--green);
  padding: 16px 32px;
  display: inline-block;
  transition: background 200ms ease, transform 150ms ease;
}

.btn-primary:hover { background: #00e639; transform: translateY(-1px); }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hero-scroll {
  margin-top: 96px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--text-dim);
}

/* ── Ticker ─────────────────────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-surface);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.ticker-item .accent { color: var(--green); }
.ticker-sep { color: var(--border); }

/* ── Section base ───────────────────────────────────────────────────── */
.section-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Editorial (cream) ──────────────────────────────────────────────── */
.editorial {
  background: var(--cream);
  padding: 120px 0;
}

.editorial .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888070;
  margin-bottom: 24px;
}

.editorial-headline {
  font-family: var(--font-editorial);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.18;
  color: var(--text-cream);
  font-weight: 400;
}

.editorial-headline em { font-style: italic; }

.editorial-body {
  color: #3A3A4A;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 300;
}

.editorial-body p + p { margin-top: 20px; }
.editorial-body strong { color: var(--text-cream); font-weight: 500; }

/* ── Features ───────────────────────────────────────────────────────── */
.features { padding: 40px 0 0; }

.feature {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.feature .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature:nth-child(even) .section-inner { direction: rtl; }
.feature:nth-child(even) .section-inner > * { direction: ltr; }

.feature-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.feature-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.feature-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 420px;
}

/* ── Mockup shell ────────────────────────────────────────────────────── */
.mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
}

.mockup-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mockup-grade {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
}

/* Critique rows */
.critique-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.critique-row:last-child { border-bottom: none; }

.sev {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 5px;
  text-align: center;
  margin-top: 1px;
}

.sev-high { background: rgba(255,23,68,0.12); color: var(--red); border: 1px solid rgba(255,23,68,0.25); }
.sev-med  { background: rgba(255,214,0,0.08); color: #ffd600;   border: 1px solid rgba(255,214,0,0.2); }
.sev-low  { background: rgba(96,96,122,0.15); color: var(--text-dim); border: 1px solid var(--border); }

.critique-text { color: var(--text); font-size: 12px; line-height: 1.5; }
.critique-text small { display: block; color: var(--text-dim); font-size: 11px; margin-top: 3px; line-height: 1.5; }

/* Score rows */
.score-row { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.score-row:last-child { border-bottom: none; }

.score-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.score-title { color: var(--text); font-size: 12px; }
.score-company { color: var(--text-dim); font-size: 11px; margin-top: 1px; }
.score-num { font-family: var(--font-display); font-size: 17px; }
.score-num.hi  { color: var(--green); }
.score-num.mid { color: var(--gold); }
.score-num.lo  { color: var(--text-dim); }

.score-loc { font-size: 10px; color: var(--text-dim); margin-bottom: 8px; }

.bar-track { height: 2px; background: var(--border); }
.bar-fill  { height: 100%; transition: width 1.2s var(--ease-out); }
.bar-fill.hi  { background: var(--green); }
.bar-fill.mid { background: var(--gold); }
.bar-fill.lo  { background: var(--text-dim); }

.score-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.score-tag {
  font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border); padding: 2px 6px;
}

/* Pipeline rows */
.pipeline-row {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline-row:last-child { border-bottom: none; }

.p-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}

.p-dot.magenta { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }
.p-dot.cyan    { background: var(--cyan);    box-shadow: 0 0 5px var(--cyan); }
.p-dot.glow    {
  background: var(--green);
  animation: glow-pulse 2.5s ease-in-out infinite;
}
.p-dot.dim     { background: var(--text-dim); }

@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 3px var(--green); }
  50%      { box-shadow: 0 0 10px var(--green), 0 0 20px rgba(0,255,65,0.25); }
}

.p-company {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text);
  flex: 1;
}

.p-status {
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 8px; white-space: nowrap;
}

.p-status.needs    { color: var(--magenta); border: 1px solid rgba(255,0,255,0.25); background: rgba(255,0,255,0.05); }
.p-status.upcoming { color: var(--cyan);    border: 1px solid rgba(0,229,255,0.25); background: rgba(0,229,255,0.05); }
.p-status.active   { color: var(--cyan);    border: 1px solid rgba(0,229,255,0.15); background: rgba(0,229,255,0.03); }
.p-status.waiting  { color: var(--text-dim); border: 1px solid var(--border); }
.p-status.archived { color: #2e2e44; border: 1px solid #161624; }

.p-meta { font-size: 10px; color: var(--text-dim); white-space: nowrap; margin-left: auto; }

/* ── Proof (cream) ───────────────────────────────────────────────────── */
.proof {
  background: var(--cream);
  padding: 120px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-top: 64px;
}

.proof-card {
  background: #E8E3DA;
  padding: 40px 36px;
}

.proof-quote {
  font-family: var(--font-editorial);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-cream);
  font-style: italic;
  margin-bottom: 32px;
}

.proof-author {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888070;
  line-height: 1.6;
}

.proof-author strong {
  display: block;
  color: var(--text-cream);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta {
  padding: 160px 0;
  text-align: center;
}

.cta .section-label { color: var(--text-dim); }

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 28px 0 48px;
}

.cta-headline em { font-style: normal; color: var(--green); }

.cta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 24px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-radius: 32px 32px 0 0;
  overflow: hidden;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 72px 48px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-wordmark-sm {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 15px; color: #808098; text-decoration: none; transition: color 200ms ease; }
.footer-links a:hover { color: var(--text); }

.footer-legal {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 48px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-legal-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 200ms ease;
}
.footer-legal-links a:hover { color: var(--text); }

/* Large logotype */
.footer-logotype {
  overflow: hidden;
  height: 148px;
  display: flex;
  align-items: flex-end;
  padding: 0 36px;
  pointer-events: none;
  user-select: none;
}

.footer-logotype-text {
  font-family: var(--font-display);
  font-size: clamp(120px, 15vw, 200px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #1C1C30;
  white-space: nowrap;
}

/* ── Scroll reveal ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 20px 24px; }
  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .terminal { display: none; }
  .section-inner { padding: 0 24px; }

  .editorial .section-inner,
  .feature .section-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature:nth-child(even) .section-inner { direction: ltr; }

  .proof-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { padding: 48px 24px 0; }
  .footer-legal { padding: 20px 24px 24px; flex-direction: column; gap: 12px; align-items: flex-start; }
}
