/* BentoTerm site — same hardware-module language as the app (src/styles.css):
   near-black chassis, hairline bezels, mono micro-type, one orange accent. */

:root {
  --bg: #0a0b0d;
  --bg-2: #101215;
  --chassis: #15171b;
  --screen: #0c0d0f;
  --bezel: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.07);
  --ink: #e8e6e1;
  --ink-dim: #9a9da3;
  --ink-faint: #5f636a;
  --accent: #ff4d00;
  --accent-soft: rgba(255, 77, 0, 0.14);
  --led-off: #3a3c40;
  --led-run: #3ad458;
  --led-exit: #ff3b30;
  --amber: #f3c969;
  --cyan: #56c8d8;
  --violet: #c792ea;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --max: 1120px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* -------------------------------------------------------------- type */

.micro {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.micro .accent, .accent { color: var(--accent); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-dim); max-width: 40ch; }
.dim { color: var(--ink-dim); }
kbd {
  font: 500 12px/1 var(--mono);
  padding: 4px 6px;
  border: 1px solid var(--bezel);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--chassis);
  color: var(--ink);
  white-space: nowrap;
}

/* -------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.wordmark { font: 700 13px/1 var(--mono); letter-spacing: 0.14em; }
.nav .links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav .links a:not(.btn) { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); text-decoration: none; }
.nav .links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav .links a.hide-sm { display: none; } }

/* -------------------------------------------------------------- buttons (hub "keys") */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  color: var(--ink);
  background: linear-gradient(180deg, #1d2025, #15171b);
  border: 1px solid var(--bezel);
  border-bottom-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: transform 80ms, filter 120ms;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #ff5f17, #e94600);
  border-color: #ff6a2a;
  border-bottom-color: #a33100;
  color: #120600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 24px -8px rgba(255, 77, 0, 0.6);
}
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 11px; }
.btn .price { opacity: 0.75; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* -------------------------------------------------------------- sections */

section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 720px; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

.dotgrid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* -------------------------------------------------------------- hero */

.hero { padding: clamp(56px, 8vw, 96px) 0 0; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 720px; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 30%, rgba(255, 77, 0, 0.10), transparent 70%);
}
.hero-copy { display: grid; gap: 24px; position: relative; }
.hero-copy .cta-row { margin-top: 8px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* -------------------------------------------------------------- desk (live mock of the app) */

.desk-frame {
  margin-top: 56px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 20% 0%, #2a1a12 0%, transparent 60%),
    radial-gradient(70% 80% at 100% 100%, #10202a 0%, transparent 60%),
    #0e1013;
  position: relative;
}
.desk-frame .menubar {
  height: 24px; display: flex; align-items: center; gap: 16px; padding: 0 14px;
  background: rgba(0, 0, 0, 0.35);
  font: 500 11px/1 var(--sans); color: rgba(255, 255, 255, 0.7);
}
.desk-frame .menubar b { font-weight: 600; color: #fff; }
.desk-frame .menubar .r { margin-left: auto; font-family: var(--mono); font-size: 10px; }
.desk-scaler { position: relative; width: 100%; }
.stage {
  position: absolute; top: 0; left: 0;
  width: 1100px; height: 600px;
  transform-origin: top left;
}

/* agent module — mirrors .module/.strip in the app */
.mod {
  position: absolute;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 32%), rgba(18, 20, 24, 0.9);
  border: 0.5px solid rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 24px 48px -16px rgba(0, 0, 0, 0.75), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  transition: left 420ms cubic-bezier(.2,.8,.2,1), top 420ms cubic-bezier(.2,.8,.2,1), width 420ms cubic-bezier(.2,.8,.2,1), height 420ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms;
  font-family: var(--mono);
}
.mod.awaiting { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 24px 48px -16px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 77, 0, 0.55); }
.mod.peeked { z-index: 5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 60px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--accent); }
.mstrip {
  height: 26px; flex: none;
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: linear-gradient(180deg, rgba(9, 10, 12, 0.85), rgba(4, 5, 6, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 9px; letter-spacing: 0.08em; color: var(--ink-dim);
  white-space: nowrap; overflow: hidden;
}
.mstrip .ord { color: var(--ink); }
.mstrip .tagdot { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.mstrip .proc { color: var(--ink); }
.mstrip .cwd { color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.mstrip .sp { flex: 1; }
.mstrip .st { color: var(--ink-dim); }
.mstrip .st.run { color: var(--led-run); }
.mstrip .st.await { color: var(--accent); }
.mstrip .rcpt { color: var(--ink-faint); }
.mstrip .x { color: var(--ink-faint); }

.led { width: 7px; height: 7px; border-radius: 50%; background: var(--led-off); flex: none; }
.led.run { background: var(--led-run); box-shadow: 0 0 6px var(--led-run); animation: pulse 1.2s ease-in-out infinite; }
.led.await { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.led.exit { background: var(--led-exit); }
@keyframes pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .led.run { animation: none; }
  .mod { transition: none; }
}

.mscreen {
  flex: 1; padding: 10px 12px;
  font-family: var(--mono);
  background: rgba(10, 11, 13, 0.94);
  font-size: 11px; line-height: 1.55; color: #c9c7c2;
  overflow: hidden; white-space: pre;
}
.mscreen .g { color: var(--led-run); }
.mscreen .o { color: var(--accent); }
.mscreen .f { color: var(--ink-faint); }
.mscreen .c { color: var(--cyan); }
.mscreen .a { color: var(--amber); }
.mscreen .v { color: var(--violet); }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* hub — mirrors .hub in the app */
.hub {
  position: absolute; width: 230px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 30%), rgba(18, 20, 24, 0.92);
  border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 24px 48px -16px rgba(0, 0, 0, 0.75), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
}
.hub-mast { padding: 14px 14px 10px; border-bottom: 1px solid var(--hairline); display: grid; gap: 4px; }
.hub-mast .wm { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; }
.hub-mast .ct { font-size: 9px; letter-spacing: 0.1em; color: var(--ink-faint); }
.hub-fleet { padding: 6px; display: grid; gap: 2px; }
.hrow { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font-size: 9px; letter-spacing: 0.08em; color: var(--ink-dim); }
.hrow.hot { background: var(--accent-soft); }
.hrow .ord { color: var(--ink); }
.hrow .sp { flex: 1; }
.hrow .s.run { color: var(--led-run); }
.hrow .s.await { color: var(--accent); }
.hub-rack { padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-top: 1px solid var(--hairline); }
.hkey {
  height: 30px; display: grid; place-items: center;
  font-size: 9px; letter-spacing: 0.1em; color: var(--ink-dim);
  background: linear-gradient(180deg, #1d2025, #15171b);
  border: 1px solid var(--bezel); border-bottom-color: #000; border-radius: 6px;
}
.hkey.primary { grid-column: span 2; color: #120600; background: linear-gradient(180deg, #ff5f17, #e94600); border-color: #ff6a2a; }

.desk-caption {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--hairline); background: rgba(0, 0, 0, 0.3);
}
.desk-caption .live { display: flex; align-items: center; gap: 8px; }

/* -------------------------------------------------------------- bento grid */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tile {
  grid-column: span 2;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  min-height: 260px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%), var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile .num { position: absolute; top: 20px; right: 22px; }
.tile h3 { padding-right: 72px; }
.tile p { color: var(--ink-dim); font-size: 15px; }
.tile .viz { margin-top: auto; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.w3, .tile.w4 { grid-column: span 1; }
  .tile.w4 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.w3, .tile.w4 { grid-column: span 1; min-height: 0; }
}

/* tile visuals */
.legend { display: grid; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; }
.legend div { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--screen); }
.legend .sp { flex: 1; }
.notches { display: flex; align-items: flex-end; gap: 10px; }
.notches .n { border: 1px solid var(--bezel); border-radius: 6px; background: var(--screen); display: grid; place-items: end start; padding: 6px; font: 500 9px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-faint); }
.notches .n.on { border-color: var(--accent); color: var(--accent); }
.receipt {
  font: 500 12px/1 var(--mono); letter-spacing: 0.06em;
  padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--screen);
  display: flex; gap: 10px; align-items: center; color: var(--ink-dim);
}
.receipt b { color: var(--ink); font-weight: 500; }
.tones { display: flex; flex-wrap: wrap; gap: 8px; }
.tone-btn {
  font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  color: var(--ink-dim); background: var(--screen); border: 1px solid var(--bezel);
  display: inline-flex; gap: 8px; align-items: center;
}
.tone-btn:hover, .tone-btn.playing { color: var(--ink); border-color: var(--accent); }
.tone-btn .led { width: 6px; height: 6px; }
.snapviz { position: relative; height: 96px; }
.snapviz .b { position: absolute; top: 18px; height: 64px; border: 1px solid var(--bezel); border-radius: 6px; background: var(--screen); }
.snapviz .b1 { left: 0; width: 44%; }
.snapviz .b2 { width: 44%; left: calc(44% + 8px); border-color: var(--accent); animation: snap 3.2s cubic-bezier(.2,.9,.2,1) infinite; }
.snapviz .gap { position: absolute; top: 4px; left: 44%; width: 8px; font: 500 9px/1 var(--mono); color: var(--accent); text-align: center; }
@keyframes snap { 0%, 15% { transform: translate(38px, 10px); } 45%, 100% { transform: translate(0, 0); } }
.peekviz { position: relative; height: 110px; }
.peekviz .p { position: absolute; border: 1px solid var(--bezel); border-radius: 6px; background: var(--screen); }
.peekviz .p1 { left: 0; top: 30px; width: 40%; height: 64px; }
.peekviz .p2 { left: 30%; top: 22px; width: 40%; height: 64px; animation: peek 3.6s ease-in-out infinite; transform-origin: center; }
.peekviz .p3 { left: 60%; top: 30px; width: 40%; height: 64px; }
@keyframes peek { 0%, 20%, 80%, 100% { transform: scale(1); border-color: var(--bezel); z-index: 0; } 35%, 65% { transform: scale(1.32); border-color: var(--accent); z-index: 3; } }
@media (prefers-reduced-motion: reduce) { .snapviz .b2, .peekviz .p2 { animation: none; } }

/* -------------------------------------------------------------- keys table */

.keys { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
@media (max-width: 760px) { .keys { grid-template-columns: 1fr; } }
.keys div { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--ink-dim); }
.keys div span:last-child { display: flex; gap: 4px; flex: none; }

/* -------------------------------------------------------------- price band */

.band {
  border: 1px solid var(--hairline); border-radius: 18px;
  padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: radial-gradient(70% 120% at 100% 0%, rgba(255, 77, 0, 0.16), transparent 60%), var(--bg-2);
}
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.bigprice { font: 600 clamp(56px, 8vw, 88px)/1 var(--sans); letter-spacing: -0.04em; }
.bigprice sup { font-size: 0.4em; vertical-align: 0.95em; margin-right: 2px; color: var(--ink-dim); }

/* -------------------------------------------------------------- sales page */

.prose { max-width: 680px; display: grid; gap: 20px; font-size: 18px; color: var(--ink-dim); }
.prose strong { color: var(--ink); font-weight: 600; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.pain { padding: 24px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--bg-2); display: grid; gap: 12px; align-content: start; }
.pain p { color: var(--ink-dim); font-size: 15px; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.compare th { font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.compare td:first-child { color: var(--ink); width: 26%; }
.compare td:nth-child(2) { color: var(--ink-faint); }
.compare td:nth-child(3) { color: var(--ink); }
.compare td:nth-child(3)::before { content: '■ '; color: var(--accent); font-size: 10px; vertical-align: 2px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100% !important; }
  .compare thead { display: none; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .compare td { border: 0; padding: 4px 0; }
  .compare td:nth-child(2)::before { content: 'Tabs: '; color: var(--ink-faint); }
}

#how .section-head { margin-bottom: 24px !important; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: 56px 0; border-top: 1px solid var(--hairline); }
.feature:nth-child(even) .feature-viz { order: -1; }
.feature-copy { display: grid; gap: 16px; }
.feature-copy p { color: var(--ink-dim); }
.feature-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-dim); font-size: 15px; }
.feature-copy li { position: relative; padding-left: 22px; }
.feature-copy li::before { content: '—'; color: var(--accent); position: absolute; left: 0; }
.feature-viz { border: 1px solid var(--hairline); border-radius: 14px; padding: 24px; background: var(--bg-2); min-height: 220px; display: grid; align-content: center; gap: 12px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-viz { order: 0; }
}
.mini-mod { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--bezel); }
.mini-mod .mscreen { min-height: 110px; font-size: 12px; }

.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  padding: clamp(28px, 4vw, 44px); border-radius: 18px;
  border: 1px solid rgba(255, 77, 0, 0.45);
  background: radial-gradient(90% 80% at 100% 0%, rgba(255, 77, 0, 0.16), transparent 60%), var(--bg-2);
  display: grid; gap: 22px; align-content: start;
}
.price-card .checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.price-card .checks li { position: relative; padding-left: 24px; }
.price-card .checks li::before { content: '✓'; color: var(--accent); font-family: var(--mono); position: absolute; left: 0; }
.req { padding: clamp(28px, 4vw, 44px); border-radius: 18px; border: 1px solid var(--hairline); background: var(--bg-2); display: grid; gap: 18px; align-content: start; }
.req dl { margin: 0; display: grid; gap: 0; }
.req dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.req dt { font: 500 11px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.req dd { margin: 0; color: var(--ink-dim); }
.checkout-note { font: 500 11px/1.5 var(--mono); letter-spacing: 0.06em; color: var(--ink-faint); min-height: 1.5em; }

.faq { max-width: 760px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px;
  display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 4px 22px; color: var(--ink-dim); font-size: 16px; max-width: 64ch; }

/* -------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

code { font: 500 0.88em/1 var(--mono); color: var(--ink); background: var(--chassis); border: 1px solid var(--hairline); border-radius: 4px; padding: 2px 5px; }

/* ================================================================ desktop hero */

.desktop {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #1d3318;
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', sans-serif;
}
.wallpaper {
  position: absolute; inset: 0; z-index: -1;
  background: url(wallpaper.jpg) center / cover no-repeat;
  animation: wpin 1.4s ease-out both;
}
@media (max-width: 900px) { .wallpaper { background-image: url(wallpaper-sm.jpg); } }
.wallpaper::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.45), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0) 30%);
}
@keyframes wpin { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* menu bar — generic, drawn for this page */
.menubar {
  position: absolute; z-index: 30; top: 0; left: 0; right: 0;
  height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 14px;
  color: #fff; font-size: 13px;
  background: rgba(20, 24, 18, 0.32);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.menubar a { text-decoration: none; color: inherit; }
.mb-app { display: flex; align-items: center; gap: 8px; }
.mb-app img { width: 16px; height: 16px; border-radius: 4px; }
.mb-menu { display: flex; gap: 18px; }
.mb-menu a { opacity: 0.92; }
.mb-menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.mb-sound { all: unset; cursor: pointer; display: grid; place-items: center; width: 24px; height: 22px; border-radius: 5px; }
.mb-sound:hover { background: rgba(255,255,255,0.18); }
.mb-sound .wave { opacity: 0.35; }
.mb-sound[aria-pressed="true"] { color: #ffb38a; }
.mb-sound[aria-pressed="true"] .wave { opacity: 1; }
.mb-buy { font-weight: 600; padding: 2px 10px; border-radius: 6px; background: rgba(255, 77, 0, 0.9); color: #140600 !important; text-shadow: none; }
.mb-clock { font-variant-numeric: tabular-nums; white-space: pre; }
@media (max-width: 760px) { .mb-menu, .mb-clock { display: none; } }

/* stage of real captures, in macOS points */
.desktop .stage {
  position: absolute; top: 0; left: 0;
  width: 2080px; height: 1240px;
  transform-origin: 0 0;
  padding: 0; margin: 0;
}
.win {
  position: absolute; cursor: pointer;
  opacity: 0;
  transform: translateY(70px) scale(0.72);
  transition: opacity 380ms ease-out, transform 620ms cubic-bezier(.18,1.35,.32,1),
    left 220ms cubic-bezier(.3,1.25,.4,1), top 220ms cubic-bezier(.3,1.25,.4,1), width 220ms ease-out, height 220ms ease-out;
}
.win.raised { z-index: 6; }

.win.in { opacity: 1; transform: none; }
.win img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.win:hover { z-index: 4; }

.notes { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.fnote {
  position: absolute; line-height: 1; font-family: 'Apple Symbols', 'Segoe UI Symbol', serif;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  font-size: 44px;
  animation: fnote 2.5s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes fnote {
  0% { opacity: 0; transform: translate(0, 10px) scale(0.4) rotate(0); }
  15% { opacity: 1; transform: translate(calc(var(--dx) * .2), -30px) scale(1.1) rotate(calc(var(--rot) * .3)); }
  100% { opacity: 0; transform: translate(var(--dx), -180px) scale(0.9) rotate(var(--rot)); }
}

/* dock — generic, drawn for this page */
.dock {
  position: absolute; z-index: 25; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 20px 50px -10px rgba(0,0,0,0.5);
}
.dk {
  all: unset; position: relative; cursor: pointer;
  width: 58px; height: 58px; display: grid; place-items: center;
  transition: transform 180ms cubic-bezier(.3,1.6,.5,1);
  transform-origin: 50% 100%;
}
.dk img, .dk svg { width: 58px; height: 58px; border-radius: 14px; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }
.dk:hover { transform: translateY(-10px) scale(1.28); }
.dk:hover + .dk, .dk:has(+ .dk:hover) { transform: translateY(-4px) scale(1.1); }
.dk:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 14px; }
.tip {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%) scale(0.78);
  padding: 4px 10px; border-radius: 7px; white-space: nowrap;
  font: 500 12px/1.3 -apple-system, var(--sans); color: #fff;
  background: rgba(30, 32, 28, 0.85); border: 1px solid rgba(255,255,255,0.15);
  opacity: 0; pointer-events: none; transition: opacity 120ms;
}
.dk:hover .tip, .dk:focus-visible .tip { opacity: 1; }
.run-dot { position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.dk[aria-pressed="true"]::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #ffb38a; }
.dk-sep { width: 1px; align-self: stretch; margin: 6px 2px; background: rgba(255,255,255,0.3); }
.dk.bounce { animation: dockbounce 0.9s cubic-bezier(.3,.6,.4,1); }
@keyframes dockbounce { 0%,100% { transform: none; } 25% { transform: translateY(-26px); } 50% { transform: none; } 70% { transform: translateY(-12px); } }

@media (max-width: 640px) {
  .dock { gap: 6px; padding: 6px 8px; border-radius: 18px; }
  .dk, .dk img, .dk svg { width: 42px; height: 42px; border-radius: 10px; }
  .desk-copy { bottom: 80px; }
  .desk-copy p { font-size: 15px; }
  .hud { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .win { transform: none; transition: opacity 300ms; }
  .wallpaper { animation: none; }
}

/* ================================================================ gallery */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; align-items: start; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figure img { width: 100%; height: auto; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery figcaption { font-size: 14px; color: var(--ink-dim); padding: 0 22px; display: block; }
.gallery figcaption b { color: var(--ink); font-weight: 600; }
.gallery figcaption .led { display: inline-block; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .gallery .g-wide { grid-column: span 1; } .gallery .g-tall { grid-row: span 1; } }

/* ================================================================ instrument */

.instrument-sec { background: radial-gradient(80% 60% at 50% 0%, rgba(255,77,0,0.12), transparent 70%); }
.keyboard { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.pkey {
  all: unset; cursor: pointer; box-sizing: border-box;
  display: grid; gap: 6px; justify-items: center; align-content: end;
  height: 180px; padding: 14px 4px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #1a1c20, #121417);
  border: 1px solid var(--bezel); border-bottom: 4px solid color-mix(in srgb, var(--c) 70%, #000);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 80ms, box-shadow 160ms;
  font-family: var(--mono);
}
.pkey b { font-size: 12px; color: var(--ink-faint); }
.pkey span { font-size: 28px; font-weight: 700; color: var(--c); }
.pkey small { font-size: 9px; letter-spacing: 0.1em; color: var(--ink-faint); }
.pkey:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 30px -6px var(--c); }
.pkey:active, .pkey.playing { transform: translateY(3px); box-shadow: 0 0 40px -4px var(--c); border-bottom-width: 1px; }
@media (max-width: 640px) { .keyboard { grid-template-columns: repeat(5, 1fr); } .pkey { height: 110px; } .pkey span { font-size: 20px; } }
.phrases { margin-top: 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.phrase {
  all: unset; cursor: pointer; box-sizing: border-box;
  display: grid; gap: 6px; align-content: start;
  padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink-dim);
}
.phrase .sym { font: 700 22px/1 var(--mono); color: var(--accent); }
.phrase b { color: var(--ink); font-weight: 600; }
.phrase:hover, .phrase.playing { border-color: var(--accent); }
@media (max-width: 900px) { .phrases { grid-template-columns: 1fr 1fr; } }

.feature-viz.shot { padding: 0; background: none; border: 0; min-height: 0; justify-items: center; }
.feature-viz.shot img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }

/* headline, set straight on the desktop */
.desk-copy {
  position: absolute; z-index: 20; left: clamp(16px, 3vw, 48px); bottom: 104px;
  width: min(560px, calc(100% - 32px));
  display: grid; gap: 14px; color: #fff; font-family: var(--sans);
  animation: cardin 700ms cubic-bezier(.2,.9,.3,1) 2.6s both;
}
.desk-copy::before {
  content: ''; position: absolute; z-index: -1; inset: -120px -160px -110px -80px;
  background: radial-gradient(closest-side, rgba(8, 10, 6, 0.72), rgba(8, 10, 6, 0.45) 55%, transparent);
  pointer-events: none;
}
.desk-copy .micro { color: rgba(255,255,255,0.75); }
.desk-copy h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,0.35); }
.desk-copy p { color: rgba(255,255,255,0.88); font-size: 17px; max-width: 44ch; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.desk-copy .btn:not(.primary) { background: rgba(20,22,18,0.55); border-color: rgba(255,255,255,0.25); }
@keyframes cardin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* walkthrough caption */
.hud {
  position: absolute; z-index: 22; right: clamp(16px, 3vw, 40px); bottom: 104px;
  width: min(440px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start;
  padding: 14px 16px; border-radius: 14px; color: #fff;
  background: rgba(16, 18, 14, 0.72);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.14);
  opacity: 0; transform: translateY(8px); transition: opacity 260ms, transform 260ms;
  pointer-events: none;
}
.hud.on { opacity: 1; transform: none; }
.hud-keys { display: flex; gap: 4px; padding-top: 2px; }
.hud-keys kbd { font-size: 13px; padding: 6px 8px; background: #22252a; color: #fff; border-color: rgba(255,255,255,0.25); }
.hud-body { display: grid; gap: 3px; font-family: var(--sans); }
.hud-title { font-size: 15px; font-weight: 600; }
.hud-text { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.45; }
.hud-dots { grid-column: 1 / -1; display: flex; gap: 5px; justify-content: flex-end; }
.hud-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.hud-dots i.on { background: var(--accent); }
@media (max-width: 1100px) { .hud { display: none; } }

/* walkthrough pointer */
.cursor-sprite {
  position: absolute; left: 0; top: 0; z-index: 12; pointer-events: none;
  opacity: 0; transition: opacity 240ms ease-out; will-change: transform;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}
.cursor-sprite.on { opacity: 1; }
.cursor-sprite svg { display: block; transform-origin: 8px 5px; transition: transform 90ms ease-out; }
.cursor-sprite.press svg { transform: scale(0.86); }
.win.held { transition: opacity 380ms ease-out, transform 620ms cubic-bezier(.18,1.35,.32,1); }

.license-box { margin-top: 40px; max-width: 720px; display: grid; gap: 14px; padding: 24px; border-radius: 16px; border: 1px solid rgba(255,77,0,0.45); background: var(--bg-2); }
.lkey { display: block; font: 500 13px/1.6 var(--mono); word-break: break-all; padding: 14px; border-radius: 10px; background: var(--screen); border: 1px solid var(--hairline); user-select: all; }
