/* Reframe — site styles. Dark only, system type, the icon's yellow as the one accent. */

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #111113;
  --surface-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --accent: #f8d848;
  --accent-deep: #c6ad3b;
  --radius: 18px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ---------- Icon ---------- */

.icon {
  --size: 32px;
  width: var(--size);
  height: var(--size);
  border-radius: 22.5%;
  background: linear-gradient(180deg, #f8d848, #c6ad3b);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.icon img { width: 62%; height: auto; }
.icon.large {
  --size: 112px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 20px 60px rgba(248, 216, 72, 0.18);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand .icon { --size: 26px; }
.site-header nav { margin-left: auto; display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); font-size: 14px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  background: var(--accent);
  color: #000;
}
.button:hover { text-decoration: none; background: #ffe36a; }
.button.secondary { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.secondary:hover { background: #242428; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 56px; text-align: center; }
.hero .icon.large { margin: 0 auto 28px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 12px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 auto 20px;
  max-width: 17ch;
}
.hero .lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); max-width: 38em; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platforms { color: var(--faint); font-size: 14px; margin-top: 18px; }

/* ---------- Hero background video ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: blur(1.5px);
  transform: scale(1.02); /* hides the blur's soft edge */
}
/* Darkened so the headline reads, fading to black before the demo below. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.7) 80%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 45%, #000 68%);
}

/* ---------- The real Input and Program clips ---------- */

.demo {
  margin: 56px auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  text-align: left;
}
.panel {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.clip {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 11px;
  background: #050507;
}
.panel figcaption { color: var(--faint); font-size: 13px; padding: 10px 6px 4px; }
.panel figcaption strong { color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(248, 216, 72, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .glyph svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Use case */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.story h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 16px; }
.story p { color: var(--muted); font-size: 18px; }
.compare { display: grid; gap: 12px; }
.compare .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.compare .row span { color: var(--muted); }
.compare .row { gap: 16px; }
.compare .row strong { font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; text-align: right; }
.compare .row.highlight { box-shadow: inset 0 0 0 1.5px var(--accent); }
.compare .row.highlight strong { color: var(--accent); }

/* Latency */
.latency {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.stat .value { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.stat .value small { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat .what { color: var(--muted); font-size: 15px; }
.footnote { color: var(--faint); font-size: 13.5px; text-align: center; margin-top: 20px; }

/* Closing call to action */
.cta { text-align: center; padding: 96px 0 112px; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; margin: 0 0 24px; }
.cta .icon.large { margin: 0 auto; }

/* ---------- Long-form pages (docs, privacy, terms) ---------- */

.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 8px; }
.page .updated { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 72px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; scroll-margin-top: 72px; }
.prose p, .prose li { color: #d2d2d7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose code, .prose kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.prose kbd { font-family: var(--font); font-weight: 600; }
.callout {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line);
  margin: 20px 0;
}
.callout p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Docs: sticky contents on the side */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 76px; font-size: 14px; }
.toc p { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; color: var(--muted); padding: 5px 0; }
.toc a:hover { color: var(--text); text-decoration: none; }
.docs .prose h2:first-of-type { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--faint); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .demo { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 28px; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--surface); border-radius: 14px; padding: 16px 20px; box-shadow: inset 0 0 0 1px var(--line); }
  .toc ol { columns: 2; }
}
@media (max-width: 520px) {
  .site-header nav { gap: 16px; }
  .site-header nav a.hide-small { display: none; }
  .hero { padding-top: 64px; }
  .site-footer nav { margin-left: 0; }
}
