@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --mat: #10141e;
  --mat-line: #1c2433;
  --panel: #19202d;
  --raised: #242d3d;
  --text: #edf0f5;
  --soft: #9aa3b5;
  --signal: #ffd23f;
  --ink: #0b0d12;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--signal); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Top bar */
.top { display: flex; align-items: center; gap: 22px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; white-space: nowrap; }
.top nav a { color: var(--soft); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; padding: 34px 0 64px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
.hero .lead { margin-top: 18px; font-size: clamp(19px, 2vw, 23px); color: var(--text); max-width: 30em; }
.hero .also { margin-top: 8px; color: var(--soft); }
.soon { display: inline-block; margin-top: 26px; padding: 13px 18px; border-radius: 8px; background: var(--signal); color: var(--ink); font-weight: 700; text-decoration: none; }
.soon.quiet { background: var(--raised); color: var(--text); margin-left: 8px; }

/* The folded computer */
.machine { perspective: 1400px; display: grid; justify-items: center; }
.fold { width: min(430px, 100%); transform-style: preserve-3d; }
.fold .lid, .fold .deck { border: 7px solid #05070b; background: #05070b; overflow: hidden; }
.fold .lid { border-radius: 26px 26px 6px 6px; transform-origin: bottom center; transform: rotateX(-16deg); aspect-ratio: 669 / 455; }
.fold .hinge { height: 12px; margin: 0 22px; background: linear-gradient(#232a36, #0c1017); border-radius: 3px; }
.fold .deck { border-radius: 6px 6px 26px 26px; transform-origin: top center; transform: rotateX(34deg); aspect-ratio: 669 / 455; box-shadow: 0 40px 50px -18px rgba(0, 0, 0, 0.7); }
.fold img { width: 100%; height: 100%; object-fit: cover; }
.picker { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.picker button { font: 600 14px var(--sans); color: var(--text); background: var(--raised); border: 0; border-radius: 8px; padding: 9px 13px; cursor: pointer; }
.picker button[aria-pressed="true"] { background: var(--signal); color: var(--ink); }

/* Sections */
section { padding: 62px 0; }
section h2 { font-size: clamp(30px, 3.8vw, 46px); max-width: 16em; }
section > .wrap > .intro { margin-top: 12px; color: var(--soft); max-width: 40em; font-size: 18px; }
.band { background: #0b0e15; border-block: 1px solid var(--mat-line); }

.kinds { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.kind { background: var(--panel); border: 1px solid var(--mat-line); border-radius: 12px; overflow: hidden; }
.kind img { aspect-ratio: 669 / 455; object-fit: cover; width: 100%; border-bottom: 1px solid var(--mat-line); }
.kind div { padding: 16px 18px 20px; }
.kind h3 { font-size: 21px; }
.kind p { margin-top: 6px; color: var(--soft); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: 14px; border: 1px solid var(--mat-line); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; background: var(--signal); border-radius: 3px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; padding-left: 46px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--raised); color: var(--signal); font: 600 15px/30px var(--mono); text-align: center; }

/* The terminal you can type in */
.term { margin-top: 30px; background: #06120a; border: 1px solid #12351d; border-radius: 12px; padding: 18px 20px; font: 400 15px/1.5 var(--mono); color: #58f58a; min-height: 300px; max-height: 420px; overflow-y: auto; cursor: text; outline-offset: 4px; }
.term .line { white-space: pre-wrap; word-break: break-word; }
.term .dim { color: #2f9c56; }
.term .caret { display: inline-block; width: 0.6em; height: 1.1em; background: #58f58a; vertical-align: text-bottom; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-keys { display: none; margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.term-keys button { font: 600 14px var(--mono); background: var(--raised); color: var(--text); border: 0; border-radius: 8px; padding: 9px 12px; }

.inside { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.inside div { background: var(--panel); border: 1px solid var(--mat-line); border-radius: 12px; padding: 18px; }
.inside h3 { font-size: 18px; }
.inside p { margin-top: 6px; color: var(--soft); font-size: 15.5px; }

.faq { margin-top: 26px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--mat-line); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 10px; color: var(--soft); }

/* Plain pages */
.page { padding: 28px 0 70px; max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: #c9cfdb; }
.page p { margin-top: 12px; }
.page ul, .page ol { padding-left: 22px; }
.page .updated { color: var(--soft); font-size: 15px; }
.note { margin-top: 22px; background: var(--panel); border: 1px solid var(--mat-line); border-left: 4px solid var(--signal); border-radius: 8px; padding: 14px 16px; }

footer { border-top: 1px solid var(--mat-line); padding: 30px 0 46px; color: var(--soft); font-size: 14.5px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
footer a { color: var(--text); text-decoration: none; }
footer p + p { margin-top: 6px; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 12px; }
  .machine { order: -1; }
  .top nav a.hide { display: none; }
  .top { gap: 12px; }
  .top nav { gap: 14px; }
  .soon.quiet { margin-left: 6px; }
  .term-keys { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term .caret { animation: none; }
}
