/* Stream Engine landing page. One dark theme, one typeface (system stack), no build step. */

:root {
  --bg: #0d151c;
  --raised: #121c25;
  --line: #24323e;
  --line-strong: #384b59;
  --text: #e8eef2;
  --muted: #9fb0bc;
  --orange: #f78b44;
  --orange-ink: #161b20;
  --radius: 6px;
  --gutter: 20px;
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 10;
  padding: 8px 12px; background: var(--text); color: var(--bg); border-radius: var(--radius);
}
.skip:focus { top: 10px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.brand-mark { color: var(--orange); flex: none; }
nav { display: flex; align-items: center; gap: 24px; }
.nav-link { display: none; color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-quiet:hover { background: var(--raised); border-color: #4b6170; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { background: #f99a5c; border-color: #f99a5c; }
.site-header .btn { min-height: 34px; padding: 0 14px; }

/* Hero */
.hero { padding: 56px 0 64px; }
h1 { max-width: 20ch; font-size: clamp(30px, 5.2vw, 52px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.lede { max-width: 60ch; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Screenshots */
.shot {
  display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px; background: var(--raised);
  transition: border-color 0.15s;
}
a.shot:hover { border-color: var(--line-strong); }
.shot-narrow { max-width: 560px; }
.hero-shot { margin-top: 48px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); }
figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Comparison band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--raised); padding: 48px 0; }
.band-row { display: grid; gap: 16px; }
.band-text { display: grid; gap: 12px; max-width: 64ch; color: var(--muted); }
.band-text p:last-child { color: var(--text); }

/* Sections */
.section { padding: 72px 0; }
.section-ruled { border-top: 1px solid var(--line); }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }

.feature { display: grid; gap: 20px; margin-top: 48px; }
.feature-text { max-width: 60ch; }
.feature-text h3::before { content: ''; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--orange); }
.feature-text p { margin-top: 10px; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 32px; margin-top: 40px; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.step-n { display: block; color: var(--orange); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 6px; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Closing */
.closing { border-top: 1px solid var(--line); background: var(--raised); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav-link { display: inline; }
  .hero { padding: 88px 0 96px; }
  .hero-shot { margin-top: 64px; }
  .band { padding: 64px 0; }
  .section { padding: 104px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

@media (min-width: 960px) {
  .band-row { grid-template-columns: 1fr 2fr; gap: 48px; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; margin-top: 80px; }
  .feature:first-of-type { margin-top: 56px; }
}

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