/* Landing — v2 / black-on-black cinematic
   Editorial Instrument Serif headlines · Geist body · Geist Mono labels.
   No accent color; status comes from brightness. */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600;700&display=swap");

:root {
  --bg: #000;
  --bg-1: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --bg-4: #1f1f1f;
  --line: #161616;
  --line-bright: #262626;
  --fg: #fafafa;
  --fg-1: #d4d4d4;
  --fg-2: #a3a3a3;
  --muted: #737373;
  --faint: #525252;
  --dim: #2a2a2a;
  --ok: #fafafa;
  --warn: #a3a3a3;
  --off: #525252;
  --display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --body: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --radius: 12px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Atmosphere — soft vignette, no grid. The aesthetic is *empty*. */
.bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, rgba(250,250,250,0.06) 0%, transparent 50%);
}
main, header, footer { position: relative; z-index: 1; }

/* Nav — sticky, blurred, no border (separation via opacity). */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(20px) saturate(120%);
  background: rgba(0, 0, 0, 0.7);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: var(--fg);
}
.brand img { width: 22px; height: 22px; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { transition: color 0.16s ease; }
.nav-links a:hover { color: var(--fg); }

/* Buttons — minimal, no glow, white primary on black */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.16s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line-bright);
}
.btn-ghost:hover {
  border-color: #3a3a3a;
  color: var(--fg);
  background: var(--bg-2);
}
.btn-lg { padding: 13px 22px; font-size: 14.5px; }

/* Hero — editorial. Massive serif, italic accent, lots of air. */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 120px 0 100px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--fg);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
}
.hero p.lede {
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 32em;
  margin: 0 0 40px;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 48px;
  display: flex;
  gap: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta span {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.hero-meta span:first-child {
  padding-left: 0;
  border-left: none;
}
.hero-meta b {
  display: block;
  color: var(--fg);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--body);
}

/* Terminal — stays dark even in dark mode (it IS dark mode).
   But now the surface is bg-2 not a green-tinted gradient. */
.term {
  background: var(--bg-2);
  border-radius: var(--radius);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-3);
}
.term-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
  background: var(--bg-4);
}
.term-bar span {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.term-body {
  padding: 22px 22px 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  min-height: 320px;
  color: var(--fg-1);
}
.term-body .line {
  white-space: pre-wrap;
  animation: lineIn 0.5s ease both;
}
.term-body .prompt { color: var(--fg); }
.term-body .path { color: var(--fg); }
.term-body .dim { color: var(--faint); }
.term-body .ok { color: var(--fg); }
.term-body .out { color: var(--fg-1); }
.term-body .line:nth-child(1) { animation-delay: 0.2s; }
.term-body .line:nth-child(2) { animation-delay: 0.9s; }
.term-body .line:nth-child(3) { animation-delay: 1.3s; }
.term-body .line:nth-child(4) { animation-delay: 1.7s; }
.term-body .line:nth-child(5) { animation-delay: 2.3s; }
.term-body .line:nth-child(6) { animation-delay: 2.7s; }
.term-body .line:nth-child(7) { animation-delay: 3.1s; }
.term-body .line:nth-child(8) { animation-delay: 3.7s; }

.cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--fg);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes lineIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}
.section + .section { padding-top: 0; }
.section-head {
  max-width: 38em;
  margin-bottom: 72px;
}
.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--fg);
}
.section h2 em { font-style: italic; }
.section h2 + p {
  font-family: var(--body);
  color: var(--fg-2);
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 38em;
}
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}

/* Feature grid — surface-shift only, no visible cell borders */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.feat {
  background: var(--bg);
  padding: 40px 32px 36px;
  transition: background 0.2s ease;
  position: relative;
  min-height: 180px;
}
.feat:hover { background: var(--bg-1); }
.feat.span-2 { grid-column: span 2; }
.feat .ix {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.feat h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--fg);
}
.feat h3 em { font-style: italic; }
.feat p {
  color: var(--fg-2);
  font-size: 0.95rem;
  margin: 0;
  font-family: var(--body);
  line-height: 1.55;
}
.feat .tag {
  position: absolute;
  top: 32px;
  right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-3);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Showcase */
.shot-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.shot-tabs button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 14px 20px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.16s ease;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.shot-tabs button:hover { color: var(--fg-1); }
.shot-tabs button.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}
.browser {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 60px 120px -50px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,0.04);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  background: var(--bg-3);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-4); }
.browser-bar .url {
  margin-left: 14px;
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  background: var(--bg);
  border-radius: 6px;
  padding: 5px 12px;
  max-width: 300px;
}
.browser-view { display: block; line-height: 0; }
.browser-view img { display: block; width: 100%; height: auto; filter: contrast(1.02); }

.shot-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.shot-notes div { display: flex; flex-direction: column; gap: 8px; }
.shot-notes b {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shot-notes span {
  color: var(--fg-1);
  font-size: 1rem;
  font-family: var(--body);
  line-height: 1.5;
}

/* Steps — numbered, editorial */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  counter-reset: step;
}
.step {
  background: var(--bg);
  padding: 48px 36px 44px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 80px;
  letter-spacing: 0.08em;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.step h3 em { font-style: italic; }
.step p {
  color: var(--fg-2);
  font-size: 0.95rem;
  margin: 0 0 24px;
  font-family: var(--body);
  line-height: 1.55;
  max-width: 22em;
}
.step code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  background: var(--bg-3);
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-block;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.split ul {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.split li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--fg-1);
  font-size: 1rem;
  font-family: var(--body);
  line-height: 1.5;
}
.split li::before {
  content: "—";
  color: var(--faint);
  font-family: var(--mono);
}

.panel-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 8px 28px;
  font-family: var(--mono);
  font-size: 13px;
}
.cap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cap:last-child { border-bottom: none; }
.cap .name { color: var(--fg); }
.cap .state {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.state.on   { color: var(--ok); }
.state.soon { color: var(--warn); }
.state.off  { color: var(--off); }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 140px 0;
}
.cta-band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 40px;
  color: var(--fg);
}
.cta-band h2 em { font-style: italic; }

/* Footer */
footer {
  padding: 56px 0 64px;
  color: var(--faint);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer .foot-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
}
footer a { transition: color 0.16s ease; }
footer a:hover { color: var(--fg); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .feat.span-2 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .shot-notes { grid-template-columns: 1fr; gap: 24px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 80px 0; }
}
