/* Maple Factory — marketing site */

@font-face { font-family: "Atlas Serif"; src: url("/fonts/AtlasSerif-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atlas Serif"; src: url("/fonts/AtlasSerif-Italic-VF.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atlas Sans"; src: url("/fonts/AtlasSans-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atlas Sans"; src: url("/fonts/AtlasSans-Italic-VF.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atlas Mono"; src: url("/fonts/AtlasMono-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atlas Mono"; src: url("/fonts/AtlasMono-Italic-VF.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  --serif: "Atlas Serif", ui-serif, Georgia, serif;
  --sans: "Atlas Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Atlas Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Light: parchment and plum ink */
  --bg: #faf5ec;
  --bg-2: #f3ebdd;
  --card: #fffdf8;
  --ink: #2a1530;
  --ink-2: #5b4a5c;
  --ink-3: #958594;
  --line: rgba(42, 21, 48, 0.1);
  --line-2: rgba(42, 21, 48, 0.16);
  --fill: rgba(42, 21, 48, 0.045);

  --maple: #d4461c;
  --maple-2: #ee7a3c;
  --amber: #c27a12;
  --on-maple: #fff8f0;
  --glow: rgba(238, 122, 60, 0.28);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 60px -24px rgba(60, 20, 40, 0.28), 0 4px 14px -6px rgba(60, 20, 40, 0.12);

  --term: #1d1020;
  --term-ink: #eadfd8;
  --term-dim: #9a8697;

  /* Task status colors, from the app */
  --planning: #7c5ce0;
  --awaiting: #c27c0e;
  --building: #2f6feb;
  --reviewing: #0e8fa3;
  --merged: #14a866;

  --g1: #e9b44c; --g2: #c9761c; --g3: #8a4313; --g4: #45200d;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b0e1f; --bg-2: #22122a; --card: #261530;
    --ink: #f5ebe1; --ink-2: #c4b2bf; --ink-3: #8a7588;
    --line: rgba(245, 235, 225, 0.09); --line-2: rgba(245, 235, 225, 0.15); --fill: rgba(245, 235, 225, 0.05);
    --maple: #ff7a48; --maple-2: #ffa25e; --amber: #f0b44e; --on-maple: #2a0f12;
    --glow: rgba(255, 122, 72, 0.22);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -26px rgba(0, 0, 0, 0.7), 0 4px 14px -6px rgba(0, 0, 0, 0.4);
    --term: #12081a;
    --planning: #a48bfa; --awaiting: #e9b04a; --building: #6b9bf5; --reviewing: #4cc4d6; --merged: #3dd68c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b0e1f; --bg-2: #22122a; --card: #261530;
  --ink: #f5ebe1; --ink-2: #c4b2bf; --ink-3: #8a7588;
  --line: rgba(245, 235, 225, 0.09); --line-2: rgba(245, 235, 225, 0.15); --fill: rgba(245, 235, 225, 0.05);
  --maple: #ff7a48; --maple-2: #ffa25e; --amber: #f0b44e; --on-maple: #2a0f12;
  --glow: rgba(255, 122, 72, 0.22);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -26px rgba(0, 0, 0, 0.7), 0 4px 14px -6px rgba(0, 0, 0, 0.4);
  --term: #12081a;
  --planning: #a48bfa; --awaiting: #e9b04a; --building: #6b9bf5; --reviewing: #4cc4d6; --merged: #3dd68c;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
/* A little grain, like good paper */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.08 0 0 0 0 0.19 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: .18; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 500 .88em var(--mono); background: var(--fill); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--maple); color: var(--on-maple); }
:focus-visible { outline: 2px solid var(--maple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

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

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 15.5px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary {
  color: var(--on-maple);
  background: linear-gradient(180deg, var(--maple-2), var(--maple));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -1px 0 rgba(0, 0, 0, .12) inset, 0 8px 20px -8px var(--maple);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -1px 0 rgba(0, 0, 0, .12) inset, 0 14px 28px -10px var(--maple); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-ghost:hover { background: var(--fill); }
.btn-ghost span { transition: transform .2s ease; }
.btn-ghost:hover span { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 650 18px/1 var(--serif); letter-spacing: -0.015em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px -2px rgba(42, 21, 48, .4); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--fill); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line) inset; transition: color .2s, background-color .2s;
}
.theme-toggle:hover { color: var(--ink); background: var(--fill); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
@media (max-width: 760px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }

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

.hero { position: relative; padding: 88px 0 112px; overflow: hidden; }
.glow {
  position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(10px); transform: translate(10%, -6%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--maple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--maple) 18%, transparent); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 640; line-height: .98; letter-spacing: -0.035em; }
.hero h1 em {
  font-style: italic; font-weight: 560;
  background: linear-gradient(100deg, var(--amber) 0%, var(--maple-2) 38%, var(--maple) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lede { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); }
.lede code { font-size: .85em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fine { margin-top: 22px; font-size: 14px; color: var(--ink-3); }

/* Task card */
.hero-visual { position: relative; }
.task-card {
  position: relative; z-index: 1;
  background: var(--card); border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.task-head { display: flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.task-id { color: var(--ink-2); font-weight: 600; }
.task-repo::before { content: "·"; margin-right: 10px; }
.status {
  --c: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  padding: 6px 10px 6px 9px; border-radius: 999px;
  font: 600 12px/1 var(--sans); letter-spacing: 0; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  transition: color .4s ease, background-color .4s ease;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-status="planning"] { --c: var(--planning); }
.status[data-status="awaiting"] { --c: var(--awaiting); }
.status[data-status="building"] { --c: var(--building); }
.status[data-status="reviewing"] { --c: var(--reviewing); }
.status[data-status="merged"] { --c: var(--merged); }
.status[data-status="planning"] i, .status[data-status="building"] i, .status[data-status="reviewing"] i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.task-title { margin: 18px 0 20px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.stages li {
  position: relative; padding-top: 14px;
  font: 500 11.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em;
  transition: color .4s ease;
}
.stages li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px;
  background: var(--fill); box-shadow: 0 0 0 1px var(--line) inset;
}
.stages li::after {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--amber), var(--maple));
  transition: width .7s cubic-bezier(.4,0,.2,1);
}
.stages li.done { color: var(--ink-2); }
.stages li.done::after { width: 100%; }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.now::after { width: 55%; }

.task-log {
  min-height: 132px; padding: 14px 14px 12px; border-radius: 12px;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line) inset;
  font: 400 13px/1.55 var(--mono); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden;
}
.log-line { display: flex; gap: 10px; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.log-line .who { flex: 0 0 72px; color: var(--ink-3); }
.log-line .what { color: var(--ink); }
.log-line .ok { color: var(--merged); }
.log-line.ask .what { color: var(--awaiting); font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.task-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.machine { display: inline-flex; align-items: center; gap: 8px; }
.machine i { width: 7px; height: 7px; border-radius: 50%; background: var(--merged); box-shadow: 0 0 0 3px color-mix(in srgb, var(--merged) 20%, transparent); }
.avatars { display: flex; }
.avatars span {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -4px; border-radius: 50%;
  font: 650 9.5px/1 var(--sans); letter-spacing: .02em; color: var(--on-maple); box-shadow: 0 0 0 2px var(--card);
}
.avatars span:nth-child(1) { background: var(--maple); }
.avatars span:nth-child(2) { background: var(--planning); color: #fff; }
.avatars span:nth-child(3) { background: var(--reviewing); color: #fff; }

/* The pour: a slow amber ribbon under the card */
.pour {
  position: absolute; left: 50%; bottom: -60px; width: 70%; height: 120px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--maple-2) 45%, transparent), transparent 70%);
  filter: blur(26px); opacity: .7; z-index: 0;
}

@media (max-width: 960px) {
  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .task-card { max-width: 560px; }
}

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

section { position: relative; }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--maple); margin-bottom: 18px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .ratio-copy h2, .install-copy h2, .access h2 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.03em; }
.section-head > p:last-child { margin-top: 18px; font-size: 18px; color: var(--ink-2); }

/* Ratio */
.ratio { padding: 104px 0 96px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.ratio-grid { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.ratio-num {
  font: 300 clamp(110px, 16vw, 210px)/.82 var(--serif); letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 45%, var(--g3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: lining-nums;
}
.ratio-num span { font-weight: 200; margin: 0 .02em; opacity: .7; }
.ratio-copy p { margin-top: 20px; max-width: 36em; font-size: 18px; color: var(--ink-2); }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.grade { position: relative; padding: 56px 20px 18px; color: #fff8ee; display: flex; flex-direction: column; gap: 4px; }
.grade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.grade span { font: 600 18px/1.1 var(--serif); }
.grade small { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.g1 { background: var(--g1); color: #3a1c06; }
.g2 { background: var(--g2); }
.g3 { background: var(--g3); }
.g4 { background: var(--g4); }
@media (max-width: 760px) {
  .ratio-grid { grid-template-columns: 1fr; gap: 32px; }
  .grades { grid-template-columns: repeat(2, 1fr); }
  .grade { padding-top: 40px; }
}

/* Process */
.process { padding: 120px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 22px 22px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -24px rgba(60, 20, 40, .35); }
.step-num { font: 300 44px/1 var(--serif); color: var(--ink-3); letter-spacing: -0.04em; }
.step-tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; margin: 18px 0 14px;
  font: 600 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c);
}
.step-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.step h3 { font-size: 23px; line-height: 1.15; }
.step > p:not(.step-tag) { flex-grow: 1; margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.snip {
  margin: 20px 0 0; padding: 14px; border-radius: 10px; overflow-x: auto;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line) inset;
  font: 400 12.5px/1.6 var(--mono); color: var(--ink);
}
.snip .c { color: var(--ink-3); }
.snip .k { color: var(--maple); }
.snip .ok { color: var(--merged); }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .process { padding: 88px 0; } }

/* App window */
.app-section { padding: 120px 0 128px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.app-section::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 1100px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.window {
  position: relative; max-width: 1040px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line-2);
}
.win-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 60%, var(--card)); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { flex: 1; text-align: center; margin-right: 52px; font: 500 12.5px/1 var(--sans); color: var(--ink-3); }
.win-body { display: grid; grid-template-columns: 210px 1fr; min-height: 440px; }
.win-side { padding: 14px 10px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 40%, var(--card)); }
.side-h { margin: 6px 10px 6px; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--ink-3); }
.side-h + a { margin-top: 4px; }
.win-side a ~ .side-h { margin-top: 18px; }
.win-side a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); }
.win-side a.on { background: color-mix(in srgb, var(--maple) 14%, transparent); color: var(--ink); font-weight: 600; }
.win-side b { margin-left: auto; font: 600 11px/1 var(--mono); padding: 3px 6px; border-radius: 999px; background: var(--maple); color: var(--on-maple); }
.win-side .m { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .5; }
.win-side .m.on { background: var(--merged); opacity: 1; }
.win-main { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.rows { padding: 8px; }
.row { display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 9px; font-size: 14px; }
.row:first-child { background: var(--fill); }
.row .status { margin: 0; justify-self: start; }
.status.sm { padding: 5px 9px 5px 8px; font-size: 11.5px; }
.r-t { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-m { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.term {
  margin: 4px 14px 14px; padding: 16px 18px; border-radius: 10px;
  background: var(--term); color: var(--term-ink); font: 400 13px/1.7 var(--mono);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2) inset;
}
.term .p { color: #ffa25e; } .term .d { color: var(--term-dim); } .term .k { color: #ffcf7a; } .term .ok { color: #3dd68c; }
.cursor::after { content: ""; display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--term-ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 760px) {
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .row { grid-template-columns: auto 1fr; }
  .r-m { display: none; }
  .app-section { padding: 88px 0; }
}

/* Features */
.features { padding: 128px 0 112px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.feature { padding: 34px 30px 36px; background: var(--bg); transition: background-color .3s ease; }
.feature:hover { background: var(--card); }
.feature svg {
  width: 36px; height: 36px; padding: 7px; border-radius: 10px; margin-bottom: 22px;
  fill: none; stroke: var(--maple); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--maple) 10%, transparent);
}
.feature h3 { font-size: 21px; line-height: 1.2; }
.feature p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } .features { padding: 88px 0; } }

/* Install */
.install { padding: 112px 0; border-top: 1px solid var(--line); }
.install-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.install-copy > p:not(.kicker) { margin-top: 20px; font-size: 17.5px; color: var(--ink-2); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.install-alt { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.install-alt > span { color: var(--ink-2); font-size: 14.5px; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--merged) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%2314a866' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.console { border-radius: 14px; overflow: hidden; background: var(--term); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .25); }
.console .win-bar { background: #241429; border-bottom-color: rgba(255, 255, 255, .06); }
.console .win-bar span { color: var(--term-dim); }
.console pre { margin: 0; padding: 22px 22px 26px; min-height: 252px; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); color: var(--term-ink); }
.console .p { color: #ffa25e; } .console .d { color: var(--term-dim); } .console .ok { color: #3dd68c; } .console .a { color: #ffcf7a; font-weight: 600; }
@media (max-width: 960px) { .install-grid { grid-template-columns: 1fr; gap: 44px; } .install { padding: 88px 0; } }

/* Access */
/* Deploy page */
.deploy { padding: 88px 0 112px; }
.deploy-inner { max-width: 760px; }
.deploy h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.03em; }
.deploy-lede { margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.deploy-steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; }
.deploy-steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; border: 1px solid var(--line); border-radius: 16px; }
.deploy-steps li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 600 15px/1 var(--mono); color: var(--maple); box-shadow: 0 0 0 1px var(--line-2) inset; }
.deploy-steps h2 { font-size: 24px; }
.deploy-steps p { margin: 10px 0 0; color: var(--ink-2); }
.deploy-steps p:has(.btn) { margin-top: 18px; }
.deploy-note { font-size: 14.5px; }
.deploy-alt { margin-top: 32px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 560px) {
  .deploy { padding: 56px 0 80px; }
  .deploy-steps li { padding: 20px 18px 20px 62px; }
  .deploy-steps li::before { left: 16px; top: 18px; }
}

.access { padding: 120px 0 128px; text-align: center; overflow: hidden; background: radial-gradient(60% 70% at 50% 30%, var(--glow), transparent 70%); }
.access-inner { display: flex; flex-direction: column; align-items: center; }
.access-icon img {
  width: 132px; height: 132px; border-radius: 30px; margin-bottom: 36px;
  box-shadow: 0 30px 60px -20px rgba(212, 70, 28, .55), 0 0 0 1px rgba(0, 0, 0, .08);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.access p { margin-top: 18px; max-width: 32em; font-size: 18px; color: var(--ink-2); }
.access .cta-row { justify-content: center; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--ink-3); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 650 15px/1 var(--serif); color: var(--ink); }
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.foot-note { margin-right: auto; }
.foot a { color: var(--ink-2); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--maple); }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-visual.reveal { transform: translateY(24px) scale(.98); }
.js .hero-visual.reveal.in { transform: none; }

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