@font-face { font-family: 'Figtree'; font-weight: 400; src: url(/fonts/figtree-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Figtree'; font-weight: 600; src: url(/fonts/figtree-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Figtree'; font-weight: 800; src: url(/fonts/figtree-800.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; src: url(/fonts/jetbrains-mono-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; src: url(/fonts/jetbrains-mono-600.woff2) format('woff2'); font-display: swap; }

/* Light is the default. data-theme="terminal" is the dark phosphor easter egg. --l-* feed the inline logos. */
:root, [data-theme='light'] {
  --bg: #f4f8f5; --panel: #ffffff; --fg: #0d1f14; --muted: #55695c; --line: #d3e2d8;
  --accent: #0b8a46; --on-accent: #ffffff; --mark: #c9f2d9; --disc: #e1f3e8; --shadow: 0 1px 2px rgba(13,31,20,.06), 0 8px 24px rgba(13,31,20,.06);
  --l-fg: #0b8a46; --l-dim: #8fd1ac; --l-bg: #ffffff; --l-hi: #ff5d73; --dots: #cfe0d5; color-scheme: light;
  --st-live-fg: #ffffff; --st-live-bg: #0b8a46; --st-lab-fg: #9a4b00; --st-lab-bg: #ffe7c7; --st-proto-fg: #5b3cc4; --st-proto-bg: #e9e2ff; --st-soon-fg: #55695c; --st-soon-bg: #e6ece8;
}
[data-theme='terminal'] {
  --bg: #07130c; --panel: #0b1e13; --fg: #c9ffdc; --muted: #5fbf88; --line: #1b8f4e;
  --accent: #3dff88; --on-accent: #07130c; --mark: rgba(61,255,136,.22); --disc: #0b1e13; --shadow: 0 0 22px rgba(61,255,136,.18);
  --l-fg: #3dff88; --l-dim: #1b8f4e; --l-bg: #07130c; --l-hi: #d4ffe2; --dots: #123a24; color-scheme: dark;
  --st-live-fg: #07130c; --st-live-bg: #3dff88; --st-lab-fg: #ffb000; --st-lab-bg: #2a1d00; --st-proto-fg: #c7b6ff; --st-proto-bg: #1f1838; --st-soon-fg: #5fbf88; --st-soon-bg: #0b1e13;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--fg); background: var(--bg); font: 18px/1.6 'Figtree', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[data-theme='terminal'] body { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 16px; text-shadow: 0 0 6px rgba(61,255,136,.45); }
[data-theme='terminal'] body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.28) 2px 3px); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .85em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.dim { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--panel); padding: 6px 10px; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 7vw, 68px); letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
h3 a { color: var(--fg); text-decoration: none; } h3 a:hover { color: var(--accent); }
mark { background: linear-gradient(transparent 58%, var(--mark) 58%); color: inherit; padding: 0 .06em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: var(--fg); max-width: 34em; }
.section-lead { max-width: 40em; color: var(--muted); font-size: 20px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); max-width: 1160px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand-logo { width: 40px; height: 40px; display: block; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); flex-wrap: wrap; }
.top nav a:not(.btn) { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 16px; }
.top nav a:not(.btn):hover { color: var(--accent); }

main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 72px; }
.logo { display: inline-block; line-height: 0; }
.logo svg { width: 100%; height: auto; display: block; }

/* buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--on-accent); background: var(--accent);
  border: 2px solid var(--accent); border-radius: 12px; padding: 10px 18px; cursor: pointer; transition: transform .12s, box-shadow .12s; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(0,0,0,.18); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn.big { font-size: 18px; padding: 14px 24px; margin: 0 8px 10px 0; }
.btn.download { font-size: 22px; padding: 18px 36px; }
.btn.small { font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 13px; padding: 6px 12px; background: transparent; color: var(--fg); border-color: var(--line); box-shadow: none; }
.btn.small[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.small:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--fg); box-shadow: none; }
.btn.ghost:hover { background: var(--panel); box-shadow: none; }
.btn.disabled { background: transparent; color: var(--muted); border: 2px dashed var(--line); box-shadow: none; cursor: not-allowed; }

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: clamp(32px, 6vw, 80px) 0 40px; }
.eyebrow { color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--accent); vertical-align: -.18em; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.chips li { font-size: 15px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.chips li::before { content: '✓ '; color: var(--accent); }
.hero-art { display: flex; justify-content: center; min-width: 0; }
.hero-disc { width: min(100%, 430px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--disc) 0 62%, transparent 63%), radial-gradient(var(--dots) 1.6px, transparent 1.8px) 0 0 / 22px 22px; display: grid; place-items: center; }
.hero-logo { width: 72%; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(2deg); } }

.section { padding: 56px 0 8px; } .section.first { padding-top: clamp(28px, 5vw, 56px); }
.page-title { margin-bottom: 14px; }
.crumb { color: var(--muted); }

/* cards */
.grid { display: grid; gap: 20px; margin: 28px 0; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.logos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 0; box-shadow: var(--shadow); min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.kicker { color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.card-head { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--mark); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge { color: var(--on-accent); background: var(--accent); }
.st-available { color: var(--st-live-fg); background: var(--st-live-bg); }
.st-in-the-lab { color: var(--st-lab-fg); background: var(--st-lab-bg); }
.st-prototype { color: var(--st-proto-fg); background: var(--st-proto-bg); }
.st-coming-soon, .st-planned { color: var(--st-soon-fg); background: var(--st-soon-bg); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.dim-tag { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.app-card { display: flex; flex-direction: column; }
.app-card > .btn { margin-top: auto; align-self: flex-start; }
.app-card h3 { font-size: 26px; }

/* featured */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-top: 24px; }
.featured > * { min-width: 0; }
.big-name { font-size: clamp(40px, 6vw, 64px); }
.price { border-left: 4px solid var(--accent); padding-left: 14px; }
.shot { margin: 0; justify-self: center; }
.shot img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.readout { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.readout-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 800; }
.readout-bar .mono { color: var(--muted); font-weight: 400; }
.stat { display: grid; grid-template-columns: 5.5em 1fr 2.6em; gap: 12px; align-items: center; margin: 12px 0; font-weight: 600; }
.stat i { display: block; height: 12px; border-radius: 99px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--w) 100% no-repeat, var(--mark); }
.stat b { color: var(--accent); font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 14px; text-align: right; }
.readout-foot { margin: 16px 0 0; color: var(--muted); }
.readout-lines span { display: block; white-space: pre; color: var(--fg); line-height: 1.9; }

/* bench: the build queue on the home page */
.bench { list-style: none; margin: 28px 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.bench li { display: grid; grid-template-columns: 7.5em 11em 1fr; gap: 16px; align-items: baseline; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.bench li:last-child { border-bottom: 0; }
.bench-week { color: var(--accent); font-weight: 600; }
.bench a { color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.bench a:hover { color: var(--accent); }
.bench-tag { color: var(--muted); }
@media (max-width: 760px) { .bench li { grid-template-columns: 7.5em 1fr; } .bench-tag { grid-column: 2; } }

/* app screenshots: a row of phones; scrolls sideways on narrow screens */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 20px; margin: 24px 0; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shot { margin: 0; scroll-snap-align: start; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.shot figcaption { margin-top: 10px; color: var(--muted); text-align: center; }

/* logos */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 18px; margin: 28px 0; align-items: center; }
.strip-logo { transition: transform .18s; } .strip-logo:hover { transform: rotate(-6deg) scale(1.08); }
.logo-card { display: flex; flex-direction: column; padding: 16px; }
.logo-stage { display: grid; place-items: center; padding: 16px; margin-bottom: 16px; border-radius: 12px; background: var(--disc); min-height: 210px; }
.vault-logo { width: min(100%, 180px); }
.logo-card:nth-child(5) .vault-logo { width: 100%; }
.logo-card h3 { font-size: 19px; margin-bottom: .3em; } .logo-card p { font-size: 16px; }
.dl { display: flex; gap: 6px 10px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.logo-card figcaption { padding: 0 6px 6px; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose .caps { text-transform: uppercase; font-weight: 600; font-size: .9em; letter-spacing: .01em; }
.center { text-align: center; } .notfound-logo { width: 130px; margin-bottom: 12px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 40px) 28px; }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; max-width: 1160px; margin: 0 auto; }
.foot-row p { margin: 0 0 .6em; }
.foot-logo { width: 84px; }
.foot-links { list-style: none; margin: 0; padding: 0; line-height: 2; } .foot-links a { color: var(--fg); text-decoration: none; font-weight: 600; } .foot-links a:hover { color: var(--accent); }
.small-print { text-align: center; font-size: 15px; margin: 28px 0 0; color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero, .featured { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; } .hero-disc { width: min(78%, 280px); }
  .foot-row { grid-template-columns: 1fr; }
  .readout, .shot img { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo, .cursor { animation: none; } html { scroll-behavior: auto; } .btn, .strip-logo { transition: none; } }
@media print { [data-theme='terminal'] body::before { display: none; } }
