:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --fg: #f5f5f1;
  --muted: #9a9a94;
  --line: #292929;
  --red: #ff332c;
  --red-soft: #ff6b66;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(circle at 73% 0%, rgba(255, 51, 44, 0.08), transparent 28rem),
    var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.site-header,
main,
footer { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.brand,
.header-link { text-decoration: none; }
.brand { font-weight: 700; }
.brand span { color: var(--red); margin-inline: 0.35rem; }
.header-link { color: var(--muted); transition: color 120ms ease; }
.header-link:hover { color: var(--fg); }

.hero { padding: clamp(72px, 11vw, 144px) 0 clamp(64px, 9vw, 112px); max-width: 960px; }
.eyebrow,
.kicker {
  color: var(--red-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 51, 44, 0.12); }
h1,
h2,
h3 { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.045em; }
h1 { margin: 0; font-size: clamp(3.35rem, 8.2vw, 7rem); line-height: 0.94; font-weight: 650; }
.lede { max-width: 720px; margin: 36px 0 0; color: #bcbcb6; font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); text-decoration: none; font-size: 0.84rem; transition: transform 120ms ease, background 120ms ease, color 120ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #090909; border-color: var(--red); background: var(--red); }
.button-primary:hover { background: #ff4b45; }
.button-secondary:hover { border-color: var(--muted); }

.showcase { border: 1px solid var(--line); background: #000; overflow: hidden; }
.showcase img { display: block; width: 100%; height: auto; }

.section { padding: clamp(80px, 11vw, 144px) 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 720px; }
.kicker { margin: 0 0 18px; }
h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; font-weight: 600; }
.section-copy { color: var(--muted); line-height: 1.75; margin: 26px 0 0; max-width: 630px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { min-height: 260px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(13, 13, 13, 0.62); }
.feature-wide { grid-column: 1 / -1; min-height: 220px; }
.feature-number { color: var(--red-soft); font-size: 0.72rem; }
.feature h3 { margin: 60px 0 14px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 560; }
.feature-wide h3 { margin-top: 45px; }
.feature p { max-width: 520px; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: clamp(56px, 10vw, 130px); align-items: end; }
.stack-list { margin: 0; border-top: 1px solid var(--line); }
.stack-list div { display: flex; justify-content: space-between; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.stack-list dt { color: var(--muted); }
.stack-list dd { margin: 0; text-align: right; }

.install { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr); gap: clamp(48px, 8vw, 100px); align-items: center; }
.terminal { border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.terminal-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #464646; }
.terminal-bar span:first-child { background: var(--red); }
.terminal-bar small { margin-left: auto; color: #73736e; font-size: 0.68rem; }
pre { margin: 0; padding: clamp(20px, 4vw, 34px); overflow-x: auto; color: #d9d9d4; font: 0.78rem/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prompt { color: var(--red-soft); user-select: none; }

footer { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 32px; color: var(--muted); font-size: 0.72rem; }
footer a { color: var(--fg); text-decoration: none; }
footer p { margin: 0; text-align: right; }

@media (max-width: 760px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 32px), var(--max)); }
  .hero { padding-top: 72px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .feature-grid,
  .split,
  .install { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .feature { min-height: 230px; }
  .split,
  .install { gap: 48px; }
  footer { padding: 32px 0; align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (max-width: 430px) {
  .site-header { min-height: 68px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 1rem; }
  .hero { padding-bottom: 64px; }
  .hero-actions { flex-direction: column; }
  .button { justify-content: space-between; }
  .feature { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .header-link { transition: none; }
}
