/* Footlight — footlight.dev
   Cool-stage brand: warm orange footlights against a cool house. */

:root {
  --bg:        #090d14;
  --bg-2:      #0c121d;
  --panel:     #111927;
  --panel-2:   #0e1521;
  --line:      rgba(174, 192, 214, 0.12);
  --line-2:    rgba(174, 192, 214, 0.20);

  --ink:       #f4ece0;   /* headings / warm white */
  --body:      #b7c2d2;   /* cool muted body */
  --muted:     #7e8ba0;   /* tertiary, cool */
  --label:     #93a3b8;

  --ember:     #ff8a4a;   /* signature footlight orange */
  --ember-hi:  #ffd8b4;   /* lamp highlight */
  --ember-deep:#ed5f2b;
  --glow:      #ff9a5a;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* warm-lamp wash over a cool house */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 138, 74, 0.10), transparent 55%),
    radial-gradient(100% 70% at 50% 0%, #15212f 0%, #0a111b 48%, #090d14 100%);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glow);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px 1px var(--glow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, #ff9456, var(--ember-deep));
  color: #1a0d05;
  box-shadow: 0 8px 30px -8px rgba(255, 138, 74, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255, 138, 74, 0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ember); background: rgba(255, 138, 74, 0.08); transform: translateY(-2px); }

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(9, 13, 20, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); background: rgba(9, 13, 20, 0.82); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 30px; height: 30px; display: block; }
.brand .wm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lk {
  font-size: 14.5px;
  color: var(--body);
  transition: color .15s ease;
}
.nav-links a.lk:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) {
  .nav-links .lk { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); position: relative; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 82px);
  max-width: 16ch;
}
.hero h1 .em { color: var(--ember); }
.hero .lede {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--body);
  max-width: 56ch;
}
.hero .lede b { color: var(--ink); font-weight: 600; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); opacity: .8; }

/* hero screenshot */
.hero-shot {
  margin-top: clamp(44px, 6vw, 76px);
  position: relative;
}
.hero-shot::after {
  content: "";
  position: absolute;
  inset: -8% -4% auto -4%;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 138, 74, 0.22), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}
.shot-frame {
  border-radius: 16px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02);
  background: var(--bg-2);
}
.shot-frame img { display: block; width: 100%; height: auto; }

/* ---------- waveform motif ---------- */
.wavestrip {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  width: 100%;
}
.wavestrip .bar {
  flex: 1;
  min-width: 2px;
  background: linear-gradient(180deg, var(--ember-hi), var(--ember));
  border-radius: 2px;
  opacity: 0.85;
  transform-origin: bottom;
  animation: pulse var(--dur, 2.4s) ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: scaleY(var(--lo, 0.4)); }
  to   { transform: scaleY(var(--hi, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .wavestrip .bar { animation: none; transform: scaleY(var(--hi, 0.8)); }
}

/* ---------- section scaffold ---------- */
section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: clamp(16px, 1.8vw, 19px); color: var(--body); }

/* ---------- philosophy ---------- */
.philo { border-top: 1px solid var(--line); }
.philo-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 820px) { .philo-grid { grid-template-columns: 1fr; } }
.compare {
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--line);
}
.compare .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.compare h3 { font-size: 23px; margin-top: 14px; }
.compare p { margin-top: 12px; font-size: 15.5px; color: var(--body); }
.compare.them { background: var(--panel-2); }
.compare.them .tag { color: var(--muted); }
.compare.us {
  background: linear-gradient(180deg, rgba(255, 138, 74, 0.09), rgba(255, 138, 74, 0.02));
  border-color: rgba(255, 138, 74, 0.35);
}
.compare.us .tag { color: var(--glow); }
.compare ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare li { display: flex; gap: 11px; font-size: 15px; color: var(--body); }
.compare li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }
.compare.us li svg { color: var(--ember); }
.compare.them li svg { color: var(--muted); }

/* ---------- features ---------- */
.features { border-top: 1px solid var(--line); }
.feat-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 940px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-3px); background: #131c2b; }
.feat .ic {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 138, 74, 0.12);
  border: 1px solid rgba(255, 138, 74, 0.25);
  color: var(--ember);
  margin-bottom: 18px;
}
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 18.5px; letter-spacing: -0.02em; }
.feat p { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.58; }
.feat.span2 { grid-column: span 2; }
@media (max-width: 600px) { .feat.span2 { grid-column: span 1; } }

/* ---------- workflow ---------- */
.flow { border-top: 1px solid var(--line); }
.flow-steps {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 860px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .flow-steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.step .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ember);
  font-weight: 500;
}
.step h3 { font-size: 18px; margin-top: 12px; }
.step p { margin-top: 9px; font-size: 14px; color: var(--muted); }

/* ---------- CLI ---------- */
.cli { border-top: 1px solid var(--line); }
.cli-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .cli-grid { grid-template-columns: 1fr; gap: 30px; } }
.terminal {
  background: #0a0f17;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  font-family: var(--font-mono);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: #0c121c;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar .tt { margin-left: 10px; font-size: 12px; color: var(--muted); }
.term-body { padding: 22px 22px 26px; font-size: 14px; line-height: 1.85; overflow-x: auto; }
.term-body .row { white-space: pre; }
.term-body .c { color: #5d6b80; }       /* comment */
.term-body .pr { color: var(--ember); }   /* prompt $ */
.term-body .cmd { color: var(--ink); }
.term-body .fl { color: var(--glow); }     /* flag */
.term-body .ok { color: #4fd391; }

.cli-copy .pill {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--glow);
  border: 1px solid rgba(255,138,74,0.3);
  background: rgba(255,138,74,0.07);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 18px;
}
.cli-copy h2 { font-size: clamp(28px, 4vw, 44px); }
.cli-copy p { margin-top: 16px; color: var(--body); }
.cli-copy .cmds { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.cli-copy .cmds .cm {
  display: flex; gap: 13px; align-items: baseline;
  font-size: 15px;
}
.cli-copy .cmds code {
  font-family: var(--font-mono); font-size: 13.5px;
  color: var(--ember); background: rgba(255,138,74,0.08);
  padding: 2px 9px; border-radius: 7px; flex: none;
  border: 1px solid rgba(255,138,74,0.18);
}
.cli-copy .cmds span { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--line); text-align: center; }
.cta-band .inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta-band h2 { font-size: clamp(32px, 5vw, 58px); }
.cta-band p { margin-top: 18px; font-size: 18px; color: var(--body); max-width: 48ch; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .mark-glow { margin-bottom: 30px; }
.cta-band .mark-glow svg { width: 72px; height: 72px; filter: drop-shadow(0 6px 26px rgba(255,138,74,0.5)); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 56px;
}
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: center; justify-content: space-between;
}
.foot-inner .brand .wm { font-size: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.foot-links a { color: var(--muted); transition: color .15s; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { margin-top: 26px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.foot-legal a { color: var(--label); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
