/* Blazing Stream — the public site.
   Palette is lifted from the app's styles.css so the site and the product
   are visibly the same thing. */
:root {
  --bg: #0A0A0A;
  --surface: #141416;
  --surface-2: #18181b;
  --line: #232327;
  --text: #f7f7f8;
  --muted: #a3a3aa;
  --quiet: #6d6d75;
  --accent: #E50914;
  --accent-strong: #b0060f;
  --glow: rgba(229, 9, 20, .35);
  --radius: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

/* ---------- shell ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 18px var(--glow); font-weight: 800; font-size: 16px;
}
nav.site { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.site a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 14.5px; font-weight: 500; transition: .2s;
}
nav.site a:hover { color: var(--text); background: var(--surface); }
nav.site a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -10px var(--glow); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: #33333a; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% 10% auto; height: 620px;
  background: radial-gradient(ellipse at 50% 0%, rgba(229,9,20,.20), transparent 62%);
  pointer-events: none;
}
.hero h1 {
  position: relative; margin: 0 0 18px; font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
}
.hero p.lede {
  position: relative; margin: 0 auto 34px; max-width: 620px;
  font-size: clamp(17px, 2.2vw, 20px); color: var(--muted);
}
.hero .cta { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eyebrow {
  position: relative; display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.eyebrow b { color: var(--accent); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 68px 0; border-top: 1px solid var(--line); }
section > .wrap > h2 {
  margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -.028em; font-weight: 700;
}
section > .wrap > p.sub { margin: 0 0 36px; color: var(--muted); max-width: 640px; font-size: 17px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #32323a; transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { font-size: 24px; line-height: 1; display: block; margin-bottom: 14px; }

/* ---------- steps ---------- */
ol.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
ol.steps > li {
  counter-increment: s; position: relative; padding: 22px 24px 22px 68px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
ol.steps > li::before {
  content: counter(s); position: absolute; left: 22px; top: 21px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
ol.steps h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 650; }
ol.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- copy field ---------- */
.copyrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.copyrow input {
  flex: 1 1 320px; min-width: 0; padding: 13px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: 500 14.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.copyrow input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- tables / link lists ---------- */
.linklist { display: grid; gap: 10px; }
.linkrow {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; transition: border-color .2s, background .2s;
}
a.linkrow:hover { border-color: #32323a; background: var(--surface-2); }
.linkrow .name { font-weight: 600; }
.linkrow .meta { color: var(--quiet); font-size: 14px; }
.linkrow code { color: var(--muted); font-size: 13.5px; }
.linkrow .spacer { margin-left: auto; }
.tag {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.tag.live { color: #4ade80; border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.08); }
.tag.soon { color: #fbbf24; border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); }
.tag.beta { color: #60a5fa; border-color: rgba(96,165,250,.3); background: rgba(96,165,250,.08); }

/* ---------- prose (privacy / support) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.prose h3 { margin: 28px 0 8px; font-size: 17px; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 7px; }
.prose code {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 6px; font-size: 13.5px; color: var(--text);
}
.prose strong { color: var(--text); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--quiet); font-size: 14px; }
footer.site .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .spacer { margin-left: auto; }

@media (max-width: 640px) {
  header.site .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
  nav.site { margin-left: 0; width: 100%; }
  .hero { padding: 60px 0 52px; }
  section { padding: 52px 0; }
}
