@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #ececee;
  --muted: #a1a1a8;
  --canvas: #0d0e10;
  --glass: #16171a;
  --glass-edge: rgba(255, 255, 255, 0.08);
  --accent: #8fb3ff;
  --accent-2: #8fb3ff;
  --radius: 14px;
  --max: 1100px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(1400px 700px at 50% -20%, rgba(255, 255, 255, 0.05), transparent 70%), var(--canvas);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 500; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 0 0 0.6em; }
h3 { font-size: 1.3rem; margin: 2rem 0 0.8rem; }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 600; }

a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 8px 14px; border-radius: 8px; background: #fff; color: #000;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 14, 16, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--glass-edge);
}
.nav { max-width: var(--max); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.brand img { border-radius: 7px; }
.nav ul { display: flex; gap: 18px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav ul a:hover { color: #fff; }
@media (max-width: 720px) { .nav ul { display: none; } }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.hero { padding-top: 56px; }
.hero-text { max-width: 760px; }
.lead { font-size: 1.35rem; color: #fff; }
.fork-line { color: var(--muted); }
.intro { max-width: 760px; }
.note { color: var(--muted); font-size: 0.95rem; max-width: 760px; }

/* Glass cards for text */
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start;
}
.band.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.text, .stack > .intro, .credits {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 28px 30px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stack > .intro { margin-bottom: 28px; }
.credits { padding: 32px; }
@media (max-width: 900px) {
  .band, .band.reverse { grid-template-columns: 1fr; }
  .text, .stack > .intro, .credits { padding: 22px 20px; }
}

.facts { padding-left: 1.1em; margin: 0 0 1em; }
.facts li { margin: 0.35em 0; }
.items { columns: 2; column-gap: 40px; padding-left: 1.1em; max-width: 760px; }
.items li { margin: 0.3em 0; break-inside: avoid; }
@media (max-width: 600px) { .items { columns: 1; } }

/* Screenshots */
figure { margin: 0; }
.shot img, .shot video {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-edge);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  background: #111214;
}
.hero-shot { margin-top: 36px; }
.shot.side img { width: 290px; max-width: 100%; }
.shot.sheet img { width: 460px; }
.shot.inline { margin-top: 20px; }
.shot.inline-wide { max-width: 620px; margin-bottom: 28px; }
.shot.hud img { width: 360px; max-width: 80%; margin: 0 auto; border: 0; box-shadow: none; background: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
@media (max-width: 900px) { .shot.side img, .shot.sheet img { width: 100%; } }

figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
figcaption strong { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three, .grid.themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot.wide { margin-bottom: 28px; }
@media (max-width: 900px) { .grid.two, .grid.three, .grid.themes { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1100px) { .grid.themes, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.theme figcaption strong { display: block; font-family: "Jost", sans-serif; font-weight: 500; font-size: 1.05rem; }

.foot { max-width: var(--max); margin: 0 auto; padding: 40px 20px 60px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--glass-edge); }

/* Download */
.button {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  background: #ececee; color: #111214; font-weight: 600; text-decoration: none;
}
.button:hover { color: #111214; background: #ffffff; }
[hidden] { display: none !important; }
.shot.accounts img { width: 460px; max-width: 100%; }
@media (max-width: 900px) { .shot.accounts img { width: 100%; } }
.grid + .note { margin-top: 28px; }

/* Hero actions */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; font-size: 1.05rem; }
.button.disabled { background: rgba(255, 255, 255, 0.06); color: var(--ink); cursor: default; border: 1px solid var(--glass-edge); }
.button.disabled .soon { font-size: 0.8rem; font-weight: 500; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.22); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Feature sections */
.feature-text {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius);
  padding: 28px 30px; max-width: 820px; margin-bottom: 28px;
  }
.feature-text p:last-child { margin-bottom: 0; }
.feature .shot.wide + .shot.wide { margin-top: 0; }
.grid-two-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.grid-two-features .feature-text { min-height: 190px; }
@media (max-width: 900px) {
  .grid-two-features { grid-template-columns: 1fr; }
  .feature-text { padding: 22px 20px; }
  .grid-two-features .feature-text { min-height: 0; }
}
#spaces .band { margin-bottom: 28px; }
.phones { max-width: 980px; }
.shot.phone img { border-radius: 28px; }
.demo-note { margin: 0 0 40px; }

/* One container grid: every section shares main's left edge. Text blocks are
   at most --text wide and start at that edge; figures either match the text
   column's left edge or run the full container width. No nested indents. */
:root { --text: 820px; }
.hero-text, .feature-text, .stack > .intro, .note { max-width: var(--text); }
.feature-text, .stack > .intro { margin-left: 0; margin-right: 0; }
.feature-text h3:first-child { margin-top: 0; }
.feature > .shot, .feature > .grid, .feature > .split { margin-bottom: 28px; }
.feature > .feature-text + .shot, .feature > .feature-text + .grid, .feature > .feature-text + .split { margin-top: 0; }
.split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.split .shot img { width: auto; max-width: 100%; }
.split .shot.sheet img { width: 460px; }
.split .shot.side img { width: 290px; }
.shot.accounts img { width: 460px; }
.shot.inline-wide { max-width: var(--text); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .shot img, .split .shot.sheet img, .shot.accounts img { width: 100%; }
}

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 22ch; }
.hero .lead { max-width: var(--text); }
.fine { color: var(--muted); font-size: 0.88rem; }
.feature-text h2 { margin-bottom: 0.45em; }

/* Pillars: a heading band before each group of features. */
.pillar { padding: 88px 0 8px; max-width: var(--text); }
.pillar .eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pillar h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.4em; }
.pillar p:last-child { color: var(--muted); font-size: 1.12rem; margin: 0; }
#also { padding-bottom: 0; }
.feature-title { font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.2; margin: 0 0 0.5em; }
.hero .fork-line { margin-top: 18px; }
