/* Bruma — landing. Sky, mist and the pill. */

:root {
  --deep: #0b2e6f;
  --sky: #3c7fd8;
  --sky-light: #a9d0f5;
  --fog: #e9f1fb;
  --cloud: #fbfcfe;
  --ink: #0f1729;
  --muted: #556072;
  --faint: #8b96a8;
  --line: #e2e7ef;
  --pill: #0c0e14;
  --ok: #7fe3a4;

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --spring: cubic-bezier(.3, 1.35, .45, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--cloud); color: var(--ink);
  font: 400 17px/1.55 var(--text); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.45em; padding: 0 .4em; margin: 0 .05em;
  border-radius: .38em; font: 600 .82em/1 var(--rounded); vertical-align: .08em;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 0 rgba(0,0,0,.15);
}
:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, var(--maxw)); margin: 0 auto; padding: 0 var(--gutter); }
.icon-invert { filter: invert(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 999px;
  font: 600 15.5px/1 var(--text); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--spring), background-color .2s, box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-glass-primary {
  color: var(--deep); background: linear-gradient(180deg, #fff, #eef4fd);
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(11,46,111,.2), 0 14px 30px -12px rgba(5,25,70,.55);
}
.btn-glass-primary img { filter: invert(14%) sepia(56%) saturate(3800%) hue-rotate(212deg) brightness(70%); }
.btn-glass-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(11,46,111,.2), 0 18px 34px -12px rgba(5,25,70,.65); }
.btn-glass {
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-glass img { filter: none; }
.btn-glass:hover { background: rgba(255,255,255,.2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; width: min(calc(100% - 24px), 860px);
  padding: 7px 7px 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px -18px rgba(0,20,60,.6);
  color: #fff; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s;
}
.nav.is-solid {
  color: var(--ink); background: rgba(251,252,254,.78); border-color: rgba(15,23,41,.08);
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px -18px rgba(15,40,90,.35);
}
.nav-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.02em; }
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 9px 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .88; transition: background .2s, opacity .2s; }
.nav-links a:hover { opacity: 1; background: rgba(255,255,255,.14); }
.nav.is-solid .nav-links a:hover { background: rgba(15,23,41,.06); }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; }
.nav-gh img { filter: none; transition: filter .35s; }
.nav.is-solid .nav-gh img { filter: invert(1); }
.star-count { font: 600 12.5px/1 var(--rounded); padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.18); }
.nav.is-solid .star-count { background: rgba(15,23,41,.07); }
.btn-nav { height: 38px; padding: 0 16px; font-size: 14.5px; color: var(--deep); background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 16px -8px rgba(0,20,60,.5); }
.nav.is-solid .btn-nav { color: #fff; background: linear-gradient(180deg, #2f6fd0, #1d4fa8); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  color: #fff; padding: 112px var(--gutter) 96px;
  display: flex; align-items: flex-start; justify-content: center;
  background: var(--deep);
}
.hero-sky { position: absolute; inset: -6% -2% -2%; z-index: -3; will-change: transform; }
.hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,25,70,.55) 0%, rgba(11,46,111,.18) 38%, rgba(60,127,216,0) 60%); }
.hero-fog { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; width: min(100%, 1000px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
  margin: 0; font: 800 clamp(48px, 9vw, 124px)/.92 var(--display); letter-spacing: -.055em;
  text-shadow: 0 2px 40px rgba(5,25,70,.25);
}
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; will-change: filter, opacity, transform; }
.hero-sub { max-width: 600px; margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: rgba(255,255,255,.9); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; border: 1.5px solid rgba(15,23,41,.25); }
.hero-scroll span { position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: rgba(15,23,41,.45); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Demo ---------- */
.demo { position: relative; width: min(100%, 620px); margin-top: 40px; display: flex; flex-direction: column; align-items: center; }
.demo-window {
  width: 100%; text-align: left; color: var(--ink); border-radius: 20px; overflow: hidden;
  background: rgba(251,252,254,.82); border: 1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.5); backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(5,25,70,.15), 0 40px 80px -40px rgba(5,25,70,.7);
}
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(15,23,41,.07); font-size: 13.5px; }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.demo-app { font-weight: 650; }
.demo-to { margin-left: auto; color: var(--muted); }
.demo-thread { padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 8px; }
.bubble { margin: 0; max-width: 78%; padding: 8px 13px; border-radius: 18px; font-size: 15.5px; line-height: 1.35; }
.bubble.them { align-self: flex-start; background: #e9e9eb; border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: #34c759; color: #fff; border-bottom-right-radius: 6px; animation: sent .5s var(--spring) both; }
@keyframes sent { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.demo-field {
  position: relative; margin: 10px 14px 14px; min-height: 48px; padding: 12px 16px; border-radius: 22px;
  background: #fff; border: 1px solid rgba(15,23,41,.1); font-size: 16px; line-height: 1.45;
}
.demo-text .w { display: inline; animation: condense .6s var(--ease) both; }
@keyframes condense { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; border-radius: 1px; background: var(--sky); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-placeholder { position: absolute; left: 19px; top: 12px; color: var(--faint); pointer-events: none; transition: opacity .2s; }
.demo.has-text .demo-placeholder { opacity: 0; }

.demo-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 14px; }
.keycap {
  position: relative; width: 66px; height: 62px; padding: 0; border: 0; border-radius: 16px; cursor: pointer;
  font: 600 25px/1 var(--rounded); color: #fff;
  background: linear-gradient(180deg, rgba(120,175,245,.95), rgba(54,118,214,.95));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.65), inset 0 -3px 0 rgba(10,40,110,.35), 0 0 0 1px rgba(255,255,255,.35), 0 14px 26px -10px rgba(5,25,70,.7);
  transition: transform .18s var(--spring), box-shadow .18s var(--ease), background .3s;
}
.keycap::after { content: ""; position: absolute; inset: -10px; border-radius: 24px; border: 2px solid rgba(255,255,255,.55); opacity: 0; transform: scale(.9); animation: ping 2.4s var(--ease) infinite; }
.keycap:hover { transform: translateY(-2px); }
.keycap:active, .keycap.is-down { transform: translateY(2px) scale(.97); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(10,40,110,.35), 0 0 0 1px rgba(255,255,255,.35), 0 6px 14px -8px rgba(5,25,70,.7); }
.keycap[aria-pressed="true"]::after, .demo.has-played .keycap::after { animation: none; opacity: 0; }
@keyframes ping { 0% { opacity: 0; transform: scale(.9); } 20% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(1.18); } }
.demo-hint { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 14.5px; color: #fff; background: rgba(8,24,60,.34); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.demo-hint b { font-weight: 650; padding: 0 .15em; }
.mic-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  color: #fff; background: rgba(8,24,60,.34); border: 1px solid rgba(255,255,255,.3); font-size: 14px; font-weight: 550;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s;
}
.mic-toggle:hover { background: rgba(255,255,255,.2); }
.mic-toggle[aria-pressed="true"] { background: #fff; color: var(--deep); }
.demo-note { max-width: 460px; margin: 18px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.8); }

/* ---------- The pill (mirrors the app's pill.css) ---------- */
.pill-dock { position: relative; height: 58px; margin-top: 10px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.pill-live {
  position: absolute; bottom: 48px; z-index: 2; max-width: min(92%, 420px); padding: 9px 14px; border-radius: 16px; text-align: center;
  background: rgba(12,14,20,.86); border: .5px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.7); font-size: 14px; line-height: 1.4; color: #fff;
  opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .25s var(--ease), transform .4s var(--spring);
}
.pill-live.is-on { opacity: 1; transform: none; }
.pill-live span { animation: condense .45s var(--ease) both; }

.pill {
  --w: 44px; --h: 9px; --level: 0; --brand: rgb(120,160,255);
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: var(--w); height: var(--h); border-radius: 999px; color: #f5f5f7;
  background: rgba(14,16,20,.74); border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.55), inset 0 .5px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  transition: width .5s var(--spring), height .5s var(--spring), background .35s var(--ease), border-color .35s var(--ease), box-shadow .3s var(--ease);
  font-family: var(--text);
}
.pill[data-mode="listening"] {
  --w: 84px; --h: 34px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 30%, rgba(30,30,34,.94)), color-mix(in srgb, var(--brand) 16%, rgba(10,10,12,.96)));
  border-color: color-mix(in srgb, var(--brand) 60%, rgba(255,255,255,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px -10px rgba(0,0,0,.6), 0 0 calc(4px + var(--level) * 22px) calc(var(--level) * 3px) color-mix(in srgb, var(--brand) 60%, transparent);
}
.pill[data-mode="working"] { --w: 64px; --h: 30px; background: color-mix(in srgb, var(--brand) 18%, rgba(10,10,12,.95)); border-color: color-mix(in srgb, var(--brand) 45%, rgba(255,255,255,.16)); }
.pill[data-mode="done"] { --w: 104px; --h: 30px; background: rgba(10,10,12,.95); border-color: rgba(255,255,255,.16); }
.pill[data-mode="learn"] { --w: 380px; --h: 44px; background: rgba(8,9,12,.96); border-color: rgba(140,180,255,.35); }
.pill[data-mode="learned"] { --w: 230px; --h: 36px; background: rgba(8,9,12,.95); border-color: rgba(255,255,255,.16); }
.pill-glow { position: absolute; inset: -60% -20%; z-index: -1; opacity: 0; pointer-events: none; filter: blur(16px); background: radial-gradient(40% 60% at 50% 60%, var(--brand), transparent 72%); transition: opacity .3s var(--ease); }
.pill[data-mode="listening"] .pill-glow { opacity: calc(.18 + var(--level) * .6); }
.pill[data-mode="working"] .pill-glow { opacity: .3; animation: breathe 1.6s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: .16; } to { opacity: .42; } }
.face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; opacity: 0; transform: scale(.9); pointer-events: none; white-space: nowrap; transition: opacity .16s var(--ease), transform .3s var(--spring); }
.pill[data-mode="listening"] .face-record, .pill[data-mode="working"] .face-working, .pill[data-mode="done"] .face-done,
.pill[data-mode="learn"] .face-learn, .pill[data-mode="learned"] .face-learned { opacity: 1; transform: none; pointer-events: auto; transition-delay: .09s; }
.face-done { font-size: 12.5px; font-weight: 600; }
.face-done svg, .face-learned svg { color: var(--ok); }
.face-learned { font-size: 13px; font-weight: 600; }
.face-learn { justify-content: flex-start; gap: 9px; padding: 0 6px 0 14px; }
.face-learn > svg { flex: none; color: #9cc2ff; }
.learn-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; text-align: left; }
.learn-text b { font-weight: 650; }
.pill-btn { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; color: #f5f5f7; background: rgba(255,255,255,.1); cursor: pointer; transition: background .15s, transform .15s var(--spring); }
.pill-btn:hover { background: rgba(255,255,255,.2); }
.pill-btn:active { transform: scale(.9); }
.pill-btn.is-text { width: auto; padding: 0 12px; font-size: 12.5px; font-weight: 650; background: #fff; color: #0b0b0d; }
.pill-btn.is-text:hover { background: #e8e8ed; }

.wave { display: flex; align-items: center; justify-content: center; gap: 3.5px; height: 20px; width: 52px; }
.wave i { display: block; width: 3.5px; height: 20px; border-radius: 3px; background: color-mix(in srgb, var(--brand) 30%, #fff); box-shadow: 0 0 6px color-mix(in srgb, var(--brand) 50%, transparent); transform: scaleY(.18); transform-origin: center; transition: transform .08s linear; }
.wave.is-auto i { animation: bar 1.1s var(--ease) infinite alternate; }
.wave.is-auto i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.wave.is-auto i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.3s; }
.wave.is-auto i:nth-child(4) { animation-delay: -.15s; animation-duration: .7s; }
.wave.is-auto i:nth-child(5) { animation-delay: -.45s; animation-duration: 1.05s; }
.wave.is-auto i:nth-child(6) { animation-delay: -.9s; animation-duration: .9s; }
.wave.is-auto i:nth-child(7) { animation-delay: -.2s; animation-duration: 1.2s; }
@keyframes bar { from { transform: scaleY(.2); } to { transform: scaleY(.95); } }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 35%, #fff); animation: dot 1s var(--ease) infinite; }
.dots i:nth-child(2) { animation-delay: .14s; } .dots i:nth-child(3) { animation-delay: .28s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Shared section type ---------- */
.section-title { margin: 0; font: 750 clamp(38px, 5.4vw, 72px)/1 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.section-lede { max-width: 620px; margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
h2 { text-wrap: balance; }

/* ---------- Condensation ---------- */
.condense { position: relative; background: linear-gradient(180deg, var(--cloud), var(--fog) 140%); }
.condense-pin {
  min-height: 100svh; padding: 110px var(--gutter) 60px; width: min(100%, var(--maxw)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr; gap: 28px 64px; align-items: start;
}
.condense-head { grid-column: 1; }
.condense-head h2 { margin: 0; font: 750 clamp(36px, 4.6vw, 64px)/1.02 var(--display); letter-spacing: -.045em; }
.condense-head p { margin: 20px 0 0; max-width: 460px; font-size: 18px; color: var(--muted); }
.steps { grid-column: 1; grid-row: 2; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: var(--faint); font-size: 16px; transition: color .35s var(--ease), background .35s var(--ease); }
.steps li b { font-weight: 650; }
.steps li.is-on { color: var(--ink); background: rgba(255,255,255,.75); box-shadow: 0 1px 0 rgba(15,23,41,.04), 0 10px 24px -18px rgba(30,64,140,.5); }
.step-n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; font: 650 14px/1 var(--rounded); background: var(--line); color: var(--muted); transition: background .35s, color .35s; }
.steps li.is-on .step-n { background: var(--sky); color: #fff; }
.paper {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; border-radius: 24px; overflow: hidden;
  background: #fff; border: 1px solid rgba(15,23,41,.07);
  box-shadow: 0 1px 2px rgba(16,36,80,.06), 0 40px 80px -40px rgba(30,64,140,.45);
}
.paper-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.paper-state { margin-left: auto; font-weight: 500; color: var(--sky); font-size: 13.5px; }
.paper-text { margin: 0; padding: 30px 30px 38px; min-height: 280px; font: 500 clamp(22px, 2.3vw, 31px)/1.42 var(--display); letter-spacing: -.02em; color: var(--ink); }
.tok { display: inline-block; white-space: pre; vertical-align: baseline; }
.tok.gap { margin-right: .26em; }
.tok.fill, .tok.cut { color: var(--faint); }
.tok.cut .strike { position: relative; }
.tok .strike::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; border-radius: 2px; background: #e5484d; transform: scaleX(var(--s, 0)); transform-origin: left; }
.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; }
.swap > .to { opacity: 0; }
.tok.add { color: var(--sky); }
.raw-tint { color: #7e8aa0; }

/* ---------- Apps ---------- */
.apps { position: relative; background: var(--fog); overflow: hidden; }
.apps-pin { position: relative; min-height: 100svh; padding: 100px 0 150px; display: flex; flex-direction: column; justify-content: center; }
.apps-head { width: min(100%, var(--maxw)); margin: 0 auto; padding: 0 var(--gutter); }
.apps-head h2 { margin: 0; font: 750 clamp(34px, 4.6vw, 62px)/1.02 var(--display); letter-spacing: -.045em; }
.apps-head p { max-width: 560px; margin: 18px 0 0; font-size: 18px; color: var(--muted); }
.apps-track::after { content: ""; flex: none; width: max(1px, calc(var(--gutter) - 28px)); }
.apps-track { display: flex; gap: 28px; margin-top: 44px; padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); will-change: transform; }
.app-card {
  display: flex; flex-direction: column; flex: none; width: min(80vw, 470px); border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid rgba(15,23,41,.07); box-shadow: 0 1px 2px rgba(16,36,80,.06), 0 30px 60px -36px rgba(30,64,140,.5);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease);
}
.app-card.is-active { transform: translateY(-8px); box-shadow: 0 1px 2px rgba(16,36,80,.06), 0 40px 70px -34px color-mix(in srgb, var(--c) 70%, rgba(30,64,140,.6)); }
.app-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 650; }
.app-top img { width: 22px; height: 22px; object-fit: contain; }
.app-top small { margin-left: auto; font-weight: 500; color: var(--faint); font-size: 13px; }
.app-body { flex: 1; padding: 22px 22px 26px; min-height: 210px; font-size: 16px; line-height: 1.5; }
.app-body p { margin: 0 0 10px; }
.app-tone { display: inline-flex; margin-top: 14px; padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 12%, #fff); }
.msg { display: inline-block; padding: 8px 13px; border-radius: 18px 18px 6px 18px; background: #d9fdd3; }
.wa .app-body { background: #efeae2; }
.code { font: 14px/1.6 var(--mono); background: #1e1e1e; color: #d4d4d4; border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; }
.code .c { color: #6a9955; } .code .k { color: #569cd6; } .code .f { color: #dcdcaa; }
.notion-list { margin: 0; padding-left: 20px; }
.notion-list li { margin: 3px 0; }
.issue { display: flex; gap: 10px; align-items: flex-start; }
.issue-id { flex: none; font: 600 12.5px/1.9 var(--mono); color: var(--faint); }
.apps-pill-dock { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.apps-pill-dock .pill { --level: .45; }
.apps-pill-label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Sayings ---------- */
.sayings { padding: 140px 0 120px; background: var(--cloud); }
.ledger { margin-top: 54px; border-top: 1px solid var(--line); }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 24px; align-items: baseline; }
.ledger-head { padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line); }
.ledger-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.said { font-size: 18px; color: var(--muted); font-style: italic; }
.wrote { font: 600 clamp(19px, 1.8vw, 23px)/1.35 var(--display); letter-spacing: -.02em; color: var(--ink); }
.why { font-size: 14px; color: var(--sky); font-weight: 550; }
.ledger-row .wrote { will-change: filter, opacity; }

.learn { margin-top: 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.learn h3 { margin: 0; font: 750 clamp(30px, 3.4vw, 44px)/1.05 var(--display); letter-spacing: -.04em; }
.learn p { margin: 16px 0 0; color: var(--muted); font-size: 17.5px; max-width: 470px; }
.learn-rules b { color: var(--ink); font-weight: 600; }
.learn-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 46px 24px 40px; border-radius: 26px; overflow: hidden;
  background: url("assets/img/sky.webp") center / cover;
}
.learn-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,111,.15), rgba(11,46,111,.45)); }
.learn-stage > * { position: relative; }
.learn-field { width: min(100%, 360px); padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.92); font-size: 17px; box-shadow: 0 20px 40px -24px rgba(5,25,70,.8); }
.fix s { display: inline-block; color: #e5484d; text-decoration-thickness: 2px; white-space: nowrap; overflow: hidden; vertical-align: bottom; }
.fix b { font-weight: 600; color: var(--ink); }
.pill-learn { max-width: 100%; }
.learn-replay { border: 0; background: rgba(255,255,255,.18); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 550; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Showcase ---------- */
.showcase { padding: 120px 0 110px; background: linear-gradient(180deg, var(--cloud), var(--fog)); overflow: hidden; }
.showcase-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px; }
.showcase-head .section-lede { grid-column: 1; }
.showcase-head .section-title { grid-column: 1 / -1; }
.theme-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(30,64,140,.5); }
.theme-switch button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.device { width: min(calc(100% - 2 * var(--gutter)), 1160px); margin: 56px auto 0; perspective: 1600px; }
.device-frame {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1770 / 1140;
  border: 1px solid rgba(15,23,41,.1); background: #fff;
  box-shadow: 0 2px 4px rgba(16,36,80,.06), 0 60px 120px -50px rgba(30,64,140,.55);
  transform-origin: 50% 0%;
}
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-dark { clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--ease); }
.device[data-theme="dark"] .shot-dark { clip-path: inset(0 0 0 0); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 70px; }
.stats div { border-top: 2px solid var(--ink); padding-top: 18px; }
.stats b { display: block; font: 750 clamp(48px, 6vw, 84px)/1 var(--rounded); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 280px; }

/* ---------- Engines ---------- */
.engines { padding: 120px 0; background: var(--fog); }
.engines-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.text-link { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--sky); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.engine-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.engine { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid rgba(15,23,41,.09); }
.engine:first-child { border-top: 1px solid rgba(15,23,41,.09); }
.engine > img, .engine-logo { flex: none; width: 40px; height: 40px; border-radius: 11px; }
.engine > img { object-fit: contain; }
.engine-logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.engine-logo.dark { background: #111; border-color: #111; }
.engine-logo.server { color: var(--sky); }
.engine div { min-width: 0; }
.engine b { display: block; font-size: 17px; font-weight: 650; }
.engine span { display: block; font-size: 15px; color: var(--muted); }
.engine em { margin-left: auto; flex: none; font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--sky); background: rgba(60,127,216,.1); padding: 5px 9px; border-radius: 7px; }

/* ---------- Privacy ---------- */
.privacy { padding: 130px 0; background: var(--cloud); }
.route { position: relative; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; gap: 0 10px; margin-top: 64px; padding: 40px 0 80px; }
.route-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; width: 170px; }
.node-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--sky); box-shadow: 0 16px 30px -20px rgba(30,64,140,.6); }
.route-node b { font-size: 16px; font-weight: 650; }
.route-node span { font-size: 14px; color: var(--muted); }
.route-line { position: relative; height: 2px; margin-top: 32px; background: repeating-linear-gradient(90deg, var(--sky-light) 0 8px, transparent 8px 14px); }
.route-line i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 5px rgba(60,127,216,.18); }
.route-ghost { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; border: 1.5px dashed #d4dae4; color: var(--faint); font-size: 14.5px; }
.route-ghost s { text-decoration-thickness: 2px; text-decoration-color: #e5484d; }
.route-ghost span { font-weight: 650; color: #e5484d; }
.promises { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.promises li { padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.promises b { color: var(--ink); font-weight: 650; }

/* ---------- Download ---------- */
.download { position: relative; overflow: hidden; isolation: isolate; padding: 160px 0 120px; color: #fff; text-align: center; background: var(--deep); }
.download-sky { position: absolute; inset: -10% 0 0; z-index: -2; }
.download-sky img { width: 100%; height: 100%; object-fit: cover; transform: scaleY(-1); }
.download-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,111,.05), rgba(5,25,70,.55)); }
.download-fog { position: absolute; left: 0; right: 0; top: 0; height: 260px; z-index: -1; background: linear-gradient(180deg, var(--cloud) 0%, rgba(251,252,254,.85) 25%, rgba(233,241,251,0) 100%); }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-icon { width: 132px; height: 132px; filter: drop-shadow(0 30px 40px rgba(5,25,70,.55)); }
.download h2 { margin: 26px 0 0; font: 800 clamp(44px, 7vw, 104px)/.95 var(--display); letter-spacing: -.055em; text-shadow: 0 2px 40px rgba(5,25,70,.3); }
.download-inner > p { max-width: 520px; margin: 22px 0 0; font-size: 19px; color: rgba(255,255,255,.9); }
.dl-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.dl-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 20px; border-radius: 20px; text-align: left; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #fff, #eef4fd); box-shadow: inset 0 1px 0 #fff, 0 20px 40px -18px rgba(5,25,70,.75);
  transition: transform .3s var(--spring);
}
.dl-btn:hover { transform: translateY(-2px); }
.dl-btn b { display: block; font-size: 17px; }
.dl-btn small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.dl-btn.is-secondary { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.dl-btn.is-secondary small { color: rgba(255,255,255,.75); }
.dl-btn.is-secondary img { filter: brightness(0) invert(1); }
.terminal { width: min(100%, 720px); margin-top: 46px; }
.terminal p { margin: 0 0 10px; font-size: 14.5px; color: rgba(255,255,255,.82); }
.term { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 16px; background: rgba(8,12,24,.72); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); text-align: left; }
.term code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13.5px/1.6 var(--mono); color: #cfe3ff; scrollbar-width: none; }
.term code::-webkit-scrollbar { display: none; }
.copy { flex: none; border: 0; padding: 9px 14px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s; }
.copy:hover { background: rgba(255,255,255,.24); }
.copy.is-done { background: #2fb36a; }
.first-run { width: min(100%, 720px); margin: 40px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.first-run li { counter-increment: s; position: relative; padding: 16px 16px 16px 50px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.92); }
.first-run li::before { content: counter(s); position: absolute; left: 14px; top: 15px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff; color: var(--deep); font: 700 13px/1 var(--rounded); }
.star-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; text-decoration: none; color: rgba(255,255,255,.72); font-size: 14px; transition: color .2s; }
.star-cta:hover { color: #fff; }
.star-cta:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }
.star-cta .star { font-size: 13px; opacity: .8; }
.star-cta .star-count { background: rgba(255,255,255,.12); font-size: 11.5px; }

/* ---------- Footer ---------- */
.footer { padding: 46px 0 40px; background: #06183d; color: rgba(255,255,255,.75); font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 14px 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; font: 700 17px/1 var(--display); }
.footer-brand img { border-radius: 6px; }
.footer p { margin: 0; }
.footer a { color: #fff; text-underline-offset: 3px; }
.footer nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer-fine { grid-column: 1 / -1; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .condense-pin { grid-template-columns: 1fr; grid-template-rows: auto; gap: 26px; padding-top: 96px; }
  .condense-head, .steps, .paper { grid-column: 1; grid-row: auto; }
  .steps { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .steps li { padding: 8px 12px 8px 8px; font-size: 14px; }
  .steps li span:not(.step-n) { display: none; }
  .steps li b { display: inline; }
  .steps li .step-n + span { display: inline; }
  .steps li .step-n + span { font-size: 0; }
  .steps li .step-n + span b { font-size: 14px; }
  .paper-text { min-height: 230px; padding: 22px 22px 28px; }
  .engines-grid, .learn { grid-template-columns: 1fr; gap: 40px; }
  .ledger-head, .ledger-row { grid-template-columns: 1fr 1fr; }
  .why { grid-column: 1 / -1; margin-top: -10px; }
  .ledger-head span:nth-child(3) { display: none; }
  .route { grid-template-columns: 1fr; gap: 6px; justify-items: center; padding-bottom: 90px; }
  .route-line { width: 2px; height: 46px; margin: 0; background: repeating-linear-gradient(180deg, var(--sky-light) 0 8px, transparent 8px 14px); }
  .route-line i { left: 50%; top: 0; }
  .first-run { grid-template-columns: 1fr; }
  .showcase-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .condense-pin { padding-top: 84px; gap: 18px; }
  .condense-head h2 { font-size: 32px; }
  .condense-head p { display: none; }
  .paper-text { font-size: 21px; min-height: 200px; }
  .nav-links a:not(.nav-gh) { display: none; }
  .nav-gh span:not(.star-count) { display: none; }
  .hero { padding-top: 104px; }
  .hero-title { letter-spacing: -.05em; }
  .demo { margin-top: 40px; }
  .demo-to { display: none; }
  .ledger-head, .ledger-row { grid-template-columns: 1fr; gap: 6px; }
  .ledger-head { display: none; }
  .said { font-size: 16px; }
  .why { margin-top: 2px; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .promises { grid-template-columns: 1fr; }
  .pill[data-mode="learn"] { --w: min(340px, calc(100vw - 80px)); }
  .apps-pin { padding-bottom: 130px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .keycap::after { display: none; }
}
.demo-note { color: var(--muted); }
.hero.no-webgl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: -1; background: linear-gradient(180deg, rgba(251,252,254,0), var(--cloud) 75%); }
