/* Ezkiel Notch landing. Colours and type are the Ezkielyna Store tokens (same as /agent). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-VF.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-VF.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --surface: #ffffff;
  --card: #f2ece3;
  --soft: #f5f0e8;
  --line: #e4dbcf;
  --line-2: #d6cbbd;
  --ink: #1f1a17;
  --ink-2: #5a514b;
  --ink-3: #6f655f;
  --brand: #c96f52;
  --brand-ink: #9a4c33;
  --btn: #b25e43;
  --btn-hover: #9a4c33;
  --brand-soft: #f5e8e2;
  --on-brand: #ffffff;
  --ok: #286a4e;
  --band: #181715;
  --band-2: #1f1e1b;
  --band-3: #252320;
  --on-band: #faf9f5;
  --on-band-2: #a09d96;
  --band-line: rgba(250, 249, 245, .12);
  --screen-shadow: 0 50px 100px -40px rgba(92, 44, 26, .55), 0 18px 40px -18px rgba(92, 44, 26, .35);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 48px -32px rgba(92, 44, 26, .28);
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 20px;
  /* One accent per feature, the same light→deep pairs the app uses. */
  --den: #ff9500; --den-2: #ffd27a;
  --hunt: #ff453a; --hunt-2: #ff9a8a;
  --rally: #bf5af2; --rally-2: #d9a2ff;
  --scratch: #e0a800; --scratch-2: #ffe680;
  --purr: #ff375f; --purr-2: #ff8fb0;
  --stash: #5e5ce6; --stash-2: #9c9aff;
  --oasis: #0a84ff; --oasis-2: #8ae3ff;
  --roar: #30d158; --roar-2: #9bf0b4;
  --scout: #00c7be; --scout-2: #9ef3ee;
  --whiskers: #6e6a64; --whiskers-2: #aaa59d;
  --neutral: #8e8e93; --neutral-2: #c7c7cc;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181715;
    --surface: #252320;
    --card: #1f1e1b;
    --soft: #1c1b19;
    --line: rgba(250, 249, 245, .10);
    --line-2: rgba(250, 249, 245, .16);
    --ink: #faf9f5;
    --ink-2: #a09d96;
    --ink-3: #8f8b84;
    --brand-ink: #e08e70;
    --btn-hover: #c06a4e;
    --brand-soft: #2b201b;
    --ok: #68bd96;
    --band: #11100f;
    --band-2: #1f1e1b;
    --band-3: #252320;
    --screen-shadow: 0 50px 110px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(201, 111, 82, .3);
    --card-shadow: 0 1px 0 rgba(250, 249, 245, .05) inset, 0 24px 48px -30px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
code, kbd { font-family: var(--mono); }
/* Inline icon set: stroke icons follow the text colour. */
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { stroke: none; fill: currentColor; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-200%); border-radius: 10px; padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }

/* Two languages live in the page; the root lang picks one. */
html[lang="id"] [data-en], html[lang="en"] [data-id] { display: none !important; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.site-header[data-stuck="true"] { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand b { font-weight: 800; }
.primary-nav { display: flex; gap: 4px; margin-left: auto; }
.primary-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease; }
.primary-nav a:hover { background: var(--card); color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.language-switch button { min-width: 36px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.github-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; text-decoration: none; }
.github-link:hover { opacity: .88; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-button span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -200px -10% auto; height: 760px; background: radial-gradient(50% 50% at 50% 40%, rgba(201, 111, 82, .16), transparent 70%); pointer-events: none; }
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.chip { white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.hero h1 { margin-top: 22px; max-width: 19ch; font: 600 clamp(42px, 7vw, 82px)/1.02 var(--serif); letter-spacing: -.025em; }
.hero-lead { margin-top: 22px; max-width: 640px; color: var(--ink-2); font-size: clamp(16.5px, 1.6vw, 18.5px); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn-main { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 26px 10px 20px; border-radius: 16px; background: var(--btn); color: var(--on-brand); text-decoration: none; box-shadow: 0 12px 28px -14px rgba(178, 94, 67, .9); transition: background .2s ease, transform .2s ease; }
.btn-main:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn-main:active { transform: translateY(0) scale(.98); }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn-label { font-size: 16.5px; font-weight: 800; }
.btn-sub { font-size: 12.5px; font-weight: 600; opacity: .85; }
.btn-ghost { display: inline-flex; align-items: center; gap: 9px; min-height: 58px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.hero-small { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-top: 18px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.release-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.stat-pill b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-pill[hidden] { display: none; }
.hero-meta { text-wrap: balance; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }

/* MacBook screen mock: the top of a display with the real notch renders stacked at top centre.
   The screen's content box is 880 "points" wide; --pt converts the app's point sizes to it. */
.hero-stage { position: relative; margin-top: 56px; }
.screen { --pt: calc(100cqw / 880); container-type: inline-size; position: relative; max-width: 900px; margin-inline: auto; aspect-ratio: 900 / 340; border: 10px solid #0d0c0b; border-bottom: 0; border-radius: 26px 26px 0 0; overflow: hidden; background:
  radial-gradient(70% 90% at 15% 110%, #c96f52 0%, transparent 60%),
  radial-gradient(60% 80% at 90% 100%, #7a3a26 0%, transparent 65%),
  linear-gradient(180deg, #2a1d17 0%, #4b2a1e 55%, #8a4a32 100%);
  box-shadow: var(--screen-shadow); }
.screen::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 38%); }
.screen::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--bg)); z-index: 4; }
.menubar { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; justify-content: space-between; align-items: center; height: calc(32 * var(--pt)); padding: 0 calc(16 * var(--pt)); background: rgba(20, 14, 11, .38); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: rgba(255, 255, 255, .92); font-size: calc(13 * var(--pt)); font-weight: 600; }
.mb-left, .mb-right { display: flex; align-items: center; gap: 1.6em; }
.mb-left i { width: .9em; height: .9em; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.mb-left span { font-weight: 500; opacity: .9; }
.mb-dots { display: flex; gap: .6em; }
.mb-dots i { width: .9em; height: .55em; border-radius: 2px; background: rgba(255, 255, 255, .75); }
.camera { position: absolute; z-index: 3; top: 0; left: 50%; width: calc(186 * var(--pt)); height: calc(32 * var(--pt)); transform: translateX(-50%); background: #000; border-radius: 0 0 calc(10 * var(--pt)) calc(10 * var(--pt)); }
.camera::after { content: ""; position: absolute; top: 38%; left: 50%; width: calc(7 * var(--pt)); height: calc(7 * var(--pt)); border-radius: 50%; background: #1b2236; transform: translateX(-50%); }
.notch-stack { position: absolute; z-index: 2; inset: 0; }
/* Renders are 2x images trimmed to the same centre; --w is their width in points. */
.notch-stack img { position: absolute; top: 0; left: 50%; width: calc(var(--w) * var(--pt)); max-width: none; transform: translateX(-50%) scale(.96); transform-origin: top center; opacity: 0; filter: blur(6px); transition: opacity .38s ease, transform .55s cubic-bezier(.34, 1.32, .5, 1), filter .38s ease; }
.notch-stack img.is-on { opacity: 1; transform: translateX(-50%) scale(1); filter: none; }
.state-tabs { position: relative; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -20px auto 0; max-width: 900px; }
.state-tabs button { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.state-tabs button:hover { border-color: var(--line-2); color: var(--ink); }
.state-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.state-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.state-tabs button i { width: 7px; height: 7px; border-radius: 50%; background: var(--a, var(--brand)); }

/* ---------- facts ---------- */
.facts { padding: 40px 0 8px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; background: var(--surface); }
.fact b { font-size: 15.5px; }
.fact > span { color: var(--ink-3); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.eyebrow { color: var(--brand-ink); font-size: 13.5px; font-weight: 800; letter-spacing: .02em; }
.section h2 { margin-top: 10px; max-width: 22ch; font: 600 clamp(30px, 4.2vw, 48px)/1.1 var(--serif); letter-spacing: -.02em; }
.muted { color: var(--ink-3); }
.text-link { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }
.shot { display: grid; place-items: start center; aspect-ratio: 570 / 286; margin-bottom: 8px; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #3a271e, #6d3a27); }
.shot img { width: 100%; transition: transform .5s cubic-bezier(.34, 1.32, .5, 1); }
.feature:hover .shot img { transform: translateY(2px) scale(1.02); }
.shot-peeks { place-items: center; align-content: center; gap: 6px; padding: 8px 0; }
.shot-peeks img { width: 58%; }
.feature h3 { padding: 0 8px; font-size: 18px; letter-spacing: -.01em; }
.feature p { padding: 0 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- dark band ---------- */
.band { background: var(--band); color: var(--on-band); }
.band .eyebrow { color: #e08e70; }
.band p { color: var(--on-band-2); }
.mascot { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
.mascot-copy p:last-child { margin-top: 18px; font-size: 17px; max-width: 46ch; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.moods li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px 16px; border: 1px solid var(--band-line); border-radius: 20px; background: var(--band-2); color: var(--on-band-2); font-size: 14px; font-weight: 700; }
.moods img { width: 100%; max-width: 104px; animation: bob 4s ease-in-out infinite; }
.moods li:nth-child(2) img { animation-delay: -1s; }
.moods li:nth-child(3) img { animation-delay: -2s; }
.moods li:nth-child(4) img { animation: breathe 3.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* ---------- install ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.step h3 { font-size: 18px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step .text-link { margin-top: auto; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 .35em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--soft); font-size: .85em; text-align: center; }
.code-line { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--band); color: var(--on-band); }
.code-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12.5px; scrollbar-width: none; }
.copy-button { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(250, 249, 245, .12); color: var(--on-band); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.copy-button:hover { background: rgba(250, 249, 245, .2); }
.copy-button[data-copied="true"] { background: #286a4e; }

/* ---------- releases ---------- */
.releases { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.releases-head { position: sticky; top: 100px; }
.releases-head .muted { margin-top: 16px; }
.release-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.release { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.release-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.release-tag { font: 700 20px/1.2 var(--mono); }
.badge { padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 800; }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.release-date { margin-left: auto; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.release-notes { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.release-notes ul { margin: 8px 0 0; padding-left: 20px; }
.release-notes li + li { margin-top: 4px; }
.release-assets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.asset { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.asset:hover { border-color: var(--ink-3); }
.asset small { color: var(--ink-3); font-weight: 600; }

/* ---------- contribute ---------- */
.contribute { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.contribute > div > p { margin-top: 18px; font-size: 17px; max-width: 48ch; }
.contribute-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn-on-band { min-height: 50px; padding: 0 20px; }
.btn-ghost-band { min-height: 50px; border-color: var(--band-line); background: transparent; color: var(--on-band); }
.btn-ghost-band:hover { border-color: rgba(250, 249, 245, .4); }
.repo-meta { margin-top: 18px; font-size: 14px; }
.repo-meta:empty { display: none; }
.terminal { overflow: hidden; border: 1px solid var(--band-line); border-radius: 18px; background: #0b0a09; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--band-line); color: var(--on-band-2); font-size: 12px; font-weight: 600; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3633; }
.terminal-bar i:first-child { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: auto; }
.terminal pre { margin: 0; padding: 18px 20px; overflow-x: auto; color: #f3e6c9; font: 13px/1.75 var(--mono); }
.terminal .c { color: #8f8b84; }
.terminal-note { padding: 0 20px 16px; font-size: 13px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--ink-2); font-weight: 600; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 70ch; }
.faq code { padding: 1px 5px; border-radius: 5px; background: var(--card); font-size: .88em; }

/* ---------- final ---------- */
.final-cta { padding: 40px 0 110px; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 56px 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); text-align: center; }
.final-inner img { border-radius: 20px; }
.final-inner h2 { font: 600 clamp(30px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; }
.final-inner .muted { font-size: 14px; }

.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner a { color: var(--ink-2); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); text-decoration: underline; }
.footer-links { display: flex; gap: 18px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mascot, .contribute, .releases { grid-template-columns: 1fr; gap: 36px; }
  .releases-head { position: static; }
}
@media (max-width: 820px) {
  .primary-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 4px; border-radius: 0; font-size: 16px; }
  .menu-button { display: flex; }
  .github-link span { display: none; }
  .github-link { width: 36px; padding: 0; justify-content: center; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .hero { padding-top: 44px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-main, .btn-ghost { justify-content: center; }
  /* Phones: zoom the screen so 600 of its 880 points show; the menu bar ends are cropped. */
  .screen { --pt: calc(100cqw / 600); border-width: 6px; border-radius: 16px 16px 0 0; aspect-ratio: 600 / 300; }
  .menubar { left: calc(-140 * var(--pt)); right: calc(-140 * var(--pt)); }
  .state-tabs { flex-wrap: nowrap; justify-content: flex-start; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
  .state-tabs::-webkit-scrollbar { display: none; }
  .state-tabs button { flex: none; }
  .hero-chip { font-size: 12.5px; text-align: left; }
  .header-inner { gap: 12px; }
  .brand { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .moods { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
  .release-date { margin-left: 0; width: 100%; }
  .contribute-actions { flex-direction: column; align-items: stretch; }
  .contribute-actions a { justify-content: center; }
  .terminal pre { padding: 16px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ---------- tour (sticky) ---------- */
.tour .wrap > h2 { margin-bottom: 8px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; margin-top: 32px; }
.tour-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 0; opacity: .32; transition: opacity .45s ease, transform .6s cubic-bezier(.22, 1, .36, 1); transform: translateX(-6px); }
.tour-step.is-active { opacity: 1; transform: none; }
.tour-step h3 { font: 600 clamp(26px, 3vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; }
.tour-step h3 small { font: 600 15px var(--sans); color: var(--ink-3); letter-spacing: 0; }
.tour-step .tag { font-weight: 700; color: var(--a); }
.tour-step p:last-child { color: var(--ink-2); max-width: 44ch; }
.badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(160deg, var(--a2, var(--a)), var(--a)); box-shadow: 0 8px 18px -10px var(--a), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tour-stage { position: sticky; top: 96px; align-self: start; height: fit-content; }
.tour-glow { position: absolute; inset: 10% 5% -10%; border-radius: 50%; background: var(--glow, var(--den)); filter: blur(70px); opacity: .22; transition: background .6s ease; pointer-events: none; }
/* The tour screen zooms in on the notch: 600 of the 880 points show, the menu bar ends crop. */
.screen-tour { --pt: calc(100cqw / 600); aspect-ratio: 600 / 330; }
.screen-tour .menubar { left: calc(-140 * var(--pt)); right: calc(-140 * var(--pt)); }
html:not(.js) .tour-step { opacity: 1; transform: none; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); grid-column: span 2; }
.tile::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, var(--a), transparent); opacity: .1; pointer-events: none; }
.tile-wide { grid-column: span 4; }
.tile-mini { grid-column: span 1; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-head .badge-icon { width: 36px; height: 36px; border-radius: 10px; }
.tile h3 { font-size: 18px; letter-spacing: -.01em; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile-shots { display: grid; place-items: center; margin-top: auto; padding: 18px 12px 6px; border-radius: 16px; background: linear-gradient(180deg, #2c2420, #4a2d22); }
.tile-shots img { width: min(100%, 360px); }
.stack-peeks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.stack-peeks img { width: 100%; }
.shots-col { gap: 10px; }
.tile kbd { font-size: 15px; }
.tile-mini h3 { display: flex; gap: 4px; }

@media (max-width: 1000px) {
  .tour-grid { grid-template-columns: 1fr; gap: 0; }
  /* Phones and tablets: the screen sticks right under the header on a solid band, steps scroll beneath it. */
  .tour-stage { grid-row: 1; top: 64px; z-index: 5; margin-top: -8px; padding: 8px 0 18px; background: linear-gradient(var(--bg) 86%, transparent); }
  .tour-step { min-height: 46vh; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
  .tile, .tile-mini { grid-column: span 2; }
  .tile-mini { grid-column: span 1; }
}
@media (max-width: 620px) {
  .stack-peeks { grid-template-columns: 1fr; }
  .tile-mini { grid-column: span 2; }
  .tour-step h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-step { opacity: 1; transform: none; }
}

/* ---------- Windows ---------- */
/* The hero's Windows button sits beside the Mac one; on a Windows PC notch.js swaps which one leads. */
.btn-ghost .btn-sub { color: var(--ink-3); opacity: 1; }
.btn-win[data-win="soon"] .btn-sub { font-style: normal; }
.badge-win { background: color-mix(in srgb, #0a84ff 14%, transparent); color: #0a6fd6; }
.install-other { margin-top: 12px; color: var(--ink-2); }
.install-other a { color: var(--brand-ink); font-weight: 700; }

.windows { position: relative; overflow: hidden; }
.windows::before { content: ""; position: absolute; inset: -20% -10% auto 35%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, #0a84ff 16%, transparent), transparent); pointer-events: none; }
.windows-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.windows-lead { margin-top: 18px; max-width: 54ch; color: var(--ink-2); font-size: 17px; }
.windows-points { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.windows-points li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 15.5px; }
.windows-points svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--card); color: var(--ink); }
.windows-points b { color: var(--ink); }
.windows-points code, .windows-note code { padding: 1px 5px; border-radius: 5px; background: var(--card); font-size: .88em; }
.windows-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.windows-note { margin-top: 14px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.win-soon { display: none; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.win-soon a { color: var(--brand-ink); }
.windows[data-win="soon"] .win-only-ready { display: none; }
.windows[data-win="soon"] .win-soon { display: inline-flex; }

/* A Windows desktop: wallpaper, the island at the top centre, a centred taskbar. Renders are @2x. */
.windows-stage { position: relative; }
.win-screen { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; border: 9px solid #0e0f12; border-radius: 18px; background:
  radial-gradient(60% 70% at 70% 85%, #2f7dff 0%, transparent 62%),
  radial-gradient(55% 60% at 25% 95%, #7b5cff 0%, transparent 60%),
  radial-gradient(80% 60% at 50% 120%, #b9d7ff 0%, transparent 55%),
  linear-gradient(180deg, #0b1a3a 0%, #133a7a 55%, #3d79d8 100%);
  box-shadow: var(--screen-shadow); }
.win-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 40%); pointer-events: none; }
.win-shot { position: absolute; top: 0; left: 50%; width: 64%; max-width: none; transform: translateX(-50%); }
.win-taskbar { position: absolute; inset: auto 0 0; display: flex; justify-content: center; align-items: center; gap: 2.2%; height: 8.5%; background: rgba(22, 26, 38, .72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255, 255, 255, .08); }
.win-taskbar i { width: 3.4%; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .55); }
.win-taskbar .win-start { background: linear-gradient(135deg, #63b4ff, #1f6fe5); }
.win-taskbar span { position: absolute; right: 2.5%; color: rgba(255, 255, 255, .85); font-size: clamp(9px, 1.1vw, 12px); font-weight: 600; font-variant-numeric: tabular-nums; }
.win-floats { position: absolute; inset: auto -4% -9% auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; width: 78%; pointer-events: none; }
.win-floats img { max-width: 100%; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .35)); }
.win-float-live { width: 46%; }
.win-float-peek { width: 92%; }
.reveal.is-in .win-float-live { animation: win-float 6s ease-in-out 1s infinite; }
@keyframes win-float { 50% { transform: translateY(-5px); } }

.steps-win { margin-top: 72px; }

@media (max-width: 1000px) {
  .windows-grid { grid-template-columns: 1fr; gap: 64px; }
  .windows-stage { max-width: 680px; margin: 0 auto 30px; }
}
@media (max-width: 620px) {
  .win-floats { position: static; width: 100%; margin-top: 16px; align-items: center; }
  .win-float-live { width: 60%; }
  .win-float-peek { width: 100%; }
  .windows-cta .btn-main { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-in .win-float-live { animation: none; }
}
@media (prefers-color-scheme: dark) {
  .badge-win { color: #6fb6ff; }
}
