/* Glimpse site. Design tokens first; everything else uses them. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Page (light) */
  --bg: #f7f5f0;
  --surface: #ffffff;
  --band: #efebe2;
  --text: #17142e;
  --muted: #57536e;
  --border: #e2ddd1;
  --accent: #ff6b4a;
  --accent-2: #ffc46b;
  --link: #b8391c;
  --code-bg: #ece7dc;
  --focus: #5b4bd6;

  /* Stage (always dark: the hero is a screening room) */
  --stage: #0b0a1f;
  --stage-2: #1a1450;
  --stage-text: #f3f0ff;
  --stage-muted: #b9b4d8;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgb(23 20 46 / 0.06), 0 8px 24px rgb(23 20 46 / 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d22;
    --surface: #17153a;
    --band: #131130;
    --text: #efedfb;
    --muted: #aeaacb;
    --border: #2a2756;
    --link: #ffab8f;
    --code-bg: #221f4c;
    --focus: #a89bff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--link); margin: 0 0 10px;
}

/* ---------- Top bar ---------- */
.nav { background: var(--stage); color: var(--stage-text); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 20px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 21px;
}
.brand img { border-radius: 8px; }
.nav ul { display: flex; align-items: center; gap: 4px 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { color: var(--stage-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: #fff; }
.nav ul a.nav-cta {
  color: var(--stage); background: var(--accent-2); padding: 7px 14px; border-radius: 999px; font-weight: 600;
}
.nav ul a.nav-cta:hover { color: var(--stage); filter: brightness(1.05); }
@media (max-width: 560px) {
  .nav ul li:not(:last-child) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(70% 90% at 85% 10%, rgb(91 75 214 / 0.45), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgb(255 107 74 / 0.18), transparent 70%),
    var(--stage);
  color: var(--stage-text);
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .eyebrow { color: var(--accent-2); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; margin: 0 0 20px; font-weight: 600;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(18px, 2vw, 20px); color: var(--stage-muted); margin: 0; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--stage-muted); }

.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px; line-height: 1.2; border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.button.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #1a0f2e; }
.button.ghost { border-color: rgb(255 255 255 / 0.35); color: #fff; }
.button.ghost:hover { background: rgb(255 255 255 / 0.08); }
.button.outline { border-color: var(--border); color: var(--text); background: var(--surface); }

/* The illustrated app window */
.stage { margin: 0; }
.window {
  background: #15132e; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.4);
}
.titlebar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: #1d1a3d; font-size: 13px; color: var(--stage-muted);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.search {
  flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0;
  background: rgb(255 255 255 / 0.07); border-radius: 7px; padding: 5px 10px; color: #fff;
}
.seg { display: flex; background: rgb(255 255 255 / 0.07); border-radius: 7px; padding: 2px; }
.seg b, .seg span { padding: 3px 9px; border-radius: 5px; font-weight: 500; }
.seg b { background: rgb(255 255 255 / 0.16); color: #fff; }
@media (max-width: 420px) { .seg { display: none; } }

.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: show 20s infinite;
}
.s1 { background-image: url("img/scene-dunes.svg"); animation-delay: 0s; }
.s2 { background-image: url("img/scene-aurora.svg"); animation-delay: 5s; }
.s3 { background-image: url("img/scene-coast.svg"); animation-delay: 10s; }
.s4 { background-image: url("img/scene-city.svg"); animation-delay: 15s; }
@keyframes show {
  0% { opacity: 0; transform: scale(1.02) translateX(0); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1.12) translateX(-2%); }
  100% { opacity: 0; transform: scale(1.12) translateX(-2%); }
}
.hud {
  position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px;
  font-size: 12px; font-weight: 500;
}
.hud span { background: rgb(10 9 30 / 0.6); color: #fff; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.hud .airplay { background: rgb(255 196 107 / 0.9); color: #1a0f2e; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 8px; background: #1d1a3d; }
.strip i, .grid-art i { display: block; aspect-ratio: 4 / 3; border-radius: 5px; background-size: cover; background-position: center; }
.t1 { background-image: url("img/scene-dunes.svg"); }
.t2 { background-image: url("img/scene-aurora.svg"); }
.t3 { background-image: url("img/scene-coast.svg"); }
.t4 { background-image: url("img/scene-city.svg"); }
.strip i:first-child { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.stage figcaption { margin-top: 10px; font-size: 13px; color: var(--stage-muted); text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .s1 { opacity: 1; }
}

@media (max-width: 880px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */
main > section { margin-top: 96px; }
main > section.band { padding: 80px 0; margin-top: 88px; background: var(--band); }
main > section.band + section { margin-top: 80px; }
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 40px; max-width: 20em; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 32px 0;
}
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); margin: 0; max-width: 32em; }
.feature-text h3 { font-size: clamp(24px, 2.6vw, 30px); }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.feature-art {
  border-radius: var(--radius-l); background: var(--stage); padding: 18px; box-shadow: var(--shadow);
}
.grid-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wipe-art { position: relative; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; }
.wipe-art i { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wipe-art .a { background-image: url("img/scene-coast.svg"); }
.wipe-art .b {
  background-image: url("img/scene-aurora.svg");
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 40% 100%);
  animation: wipe 6s ease-in-out infinite alternate;
}
.wipe-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(104deg, transparent 48.6%, rgb(255 255 255 / 0.9) 49%, transparent 49.4%);
  animation: wipeline 6s ease-in-out infinite alternate;
}
@keyframes wipe {
  from { clip-path: polygon(78% 0, 100% 0, 100% 100%, 60% 100%); }
  to { clip-path: polygon(38% 0, 100% 0, 100% 100%, 20% 100%); }
}
@keyframes wipeline { from { transform: translateX(20%); } to { transform: translateX(-20%); } }
@media (prefers-reduced-motion: reduce) { .wipe-art .b, .wipe-art::after { animation: none; } }

.cast-art svg { display: block; width: 100%; height: auto; }
.cast-art .tv, .cast-art .mac { fill: #2c2860; }
.cast-art .tv-screen { fill: #ff8a5c; }
.cast-art .mac-screen { fill: #6b5be0; }
.cast-art .beam { fill: none; stroke: var(--accent-2); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .feature.flip .feature-text { order: 0; }
}

.mini {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: 1px solid var(--border); padding-top: 40px;
}
.mini svg { width: 28px; height: 28px; color: var(--link); margin-bottom: 12px; }
.mini h3 { font-size: 20px; }
.mini p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .mini { grid-template-columns: 1fr; gap: 24px; } }

.intro { max-width: 40em; margin: -20px 0 32px; color: var(--muted); }
.steps {
  list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 24px;
}
.steps li::before {
  content: counter(step); display: block; font-family: var(--font-display); font-size: 48px; line-height: 1;
  font-weight: 500; color: var(--accent); margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.fineprint { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.platform p { color: var(--muted); margin: 0 0 20px; flex: 1; }
.platform h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 26px; }
.badge {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px; background: var(--code-bg); color: var(--muted);
}
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } }

kbd, code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--code-bg); border-radius: 5px; padding: 1px 5px;
}

/* ---------- Long-form pages (privacy, support) ---------- */
.page { padding: 56px 20px 24px; max-width: 820px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.page .meta { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 26px; margin: 40px 0 10px; }
.page p, .page li { max-width: 70ch; }
.page ul { padding-left: 22px; }

details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 14px 18px; margin: 10px 0; max-width: 76ch;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

table { border-collapse: collapse; margin: 12px 0; max-width: 100%; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
th { background: var(--code-bg); }

/* ---------- Footer ---------- */
footer {
  margin-top: 96px; border-top: 1px solid var(--border);
  padding: 32px 0 48px; color: var(--muted); font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .wrap:has(.foot-main) { display: block; }
.foot-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-main .brand { color: var(--text); font-size: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.more { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
