:root {
  --bg: #000;
  --fg: #f4f4f4;
  --mute: #8b8b8b;
  --dim: #5c5c5c;
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .18);
  --panel: rgba(10, 10, 10, .78);
  --glow: 0 0 6px rgba(255, 255, 255, .9), 0 0 18px rgba(255, 255, 255, .45);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
kbd {
  font: 600 .8em var(--mono);
  border: 1px solid var(--line2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .05em .45em;
}
.mono { font-family: var(--mono); }
.muted { color: var(--mute); }
.small { font-size: .85rem; }
.dim { color: var(--dim); }

/* ---------- background + lamp cursor ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

@media (pointer: fine) {
  body.lamp-on, body.lamp-on a, body.lamp-on button, body.lamp-on summary, body.lamp-on input { cursor: none; }
}
#lamp {
  position: fixed; left: 0; top: 0; z-index: 100;
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
body.lamp-on #lamp { opacity: 1; }
#lamp span {
  position: absolute; left: -6px; top: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: var(--glow), 0 0 40px rgba(255, 255, 255, .35);
  transition: transform .15s ease;
}
body.lamp-hover #lamp span { transform: scale(1.8); }
body.lamp-down #lamp span { transform: scale(.7); }

/* cards light up near the lamp */
.lit { position: relative; }
.lit::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .75), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: var(--glow); margin-right: .55em; vertical-align: middle;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 12px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: #fff; color: #000; box-shadow: 0 0 30px rgba(255, 255, 255, .25); }
.btn-solid:hover { box-shadow: 0 0 44px rgba(255, 255, 255, .45); }
.btn-ghost { border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .6em 1.1em; font-size: .85rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.05rem var(--display); letter-spacing: .02em; }
.brand img { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .6)); }
.nav-links { display: flex; gap: 26px; font-size: .9rem; color: var(--mute); }
.nav-links a:hover { color: var(--fg); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line2); border-radius: 9px; padding: 2px; }
.lang button { font: 600 .72rem var(--mono); letter-spacing: .08em; padding: 6px 9px; border-radius: 7px; color: var(--mute); }
.lang button.on { background: #fff; color: #000; }

/* ---------- hero ---------- */
.hero { padding: 170px 20px 40px; text-align: center; }
.eyebrow { font: 600 .75rem var(--mono); letter-spacing: .25em; text-transform: uppercase; color: var(--mute); margin: 0 0 22px; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-size: clamp(2.6rem, 8vw, 6.6rem); }
.hero-title span { display: block; }
.hero-title .dimline { color: #3d3d3d; }
.hero-title .glowline { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .55), 0 0 60px rgba(255, 255, 255, .25); }
.hero-sub { max-width: 600px; margin: 28px auto 0; color: #b5b5b5; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hint { margin: 18px 0 0; color: var(--mute); font-size: .85rem; }

/* ---------- app preview: control deck window ---------- */
.app {
  width: min(1000px, 100%); margin: 70px auto 0; text-align: left;
  border: 1px solid var(--line2); border-radius: 20px;
  background: rgba(8, 8, 8, .82); backdrop-filter: blur(8px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .85);
  font-size: .9rem;
}
.app.running { box-shadow: 0 40px 100px rgba(0, 0, 0, .85), 0 0 70px rgba(255, 255, 255, .12); }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.win-bar b { font: 600 .92rem var(--display); }
.pill { font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #fff; color: #000; }
.win-ctl { margin-left: auto; display: flex; gap: 4px; color: var(--dim); font-size: .75rem; }
.win-ctl i { font-style: normal; width: 30px; text-align: center; }

.win { display: grid; grid-template-columns: 76px 1fr; }
.rail { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-right: 1px solid var(--line); }
.rail button {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px; border-radius: 12px;
  color: var(--dim); font-size: .66rem; font-weight: 600; transition: .2s;
}
.rail button:hover { color: var(--fg); }
.rail button.on { color: var(--fg); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 18px rgba(255, 255, 255, .08); }
.rail svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.win-main { padding: 16px; min-width: 0; }
.pane { display: none; flex-direction: column; gap: 14px; animation: fade .25s ease; }
.pane.on { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pane-head h4 { margin: 0; font: 600 1.05rem var(--display); }
.tip { color: var(--dim); font-size: .8rem; margin: 0; }

/* deck: curve on top, physical controls below */
.graph { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 8px; background: rgba(255, 255, 255, .012); }
.graph-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.live b { display: block; font-size: 2.8rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.live > span { color: var(--mute); font-size: .8rem; }
#appState { color: var(--fg); font-weight: 700; }
.app.running .live b { text-shadow: var(--glow); }
.graph-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.graph-tools .seg button { padding: 5px 10px; font-size: .75rem; }

.controls { display: grid; grid-template-columns: 150px 150px 1fr 1.5fr; gap: 12px; }
.ctl { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .012); }
.ctl h5 { margin: 0; font: 600 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.keyctl { align-items: center; }
.keyctl h5 { align-self: stretch; text-align: center; }

.keycap {
  position: relative; width: 92px; height: 86px; border-radius: 16px;
  font: 700 1.9rem var(--display); color: #fff;
  background: linear-gradient(180deg, #2a2a2a, #0b0b0b);
  border: 1px solid #3a3a3a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .7);
  transition: .12s;
}
.keycap::before { /* top face of the key */
  content: ""; position: absolute; inset: 7px 9px 15px; border-radius: 11px; z-index: -1;
  background: linear-gradient(180deg, #1c1c1c, #121212); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 6px rgba(0, 0, 0, .6);
}
.keycap { isolation: isolate; padding-bottom: 8px; }
.keycap:hover { border-color: #777; }
.keycap.listening { border-color: #fff; color: #fff; font-size: 1rem; animation: blink 1s infinite; box-shadow: 0 0 24px rgba(255, 255, 255, .35); }
.keycap.firing { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 0 26px rgba(255, 255, 255, .55); animation: fire .09s infinite alternate; }
@keyframes blink { 50% { opacity: .6; } }
@keyframes fire { to { transform: translateY(2px); box-shadow: 0 0 0 1px #fff, 0 0 40px rgba(255, 255, 255, .8); } }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line2); font-size: .8rem; font-weight: 600; color: var(--mute); transition: .2s; }
.chip:hover { color: var(--fg); }
.chip.on { color: var(--fg); border-color: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .25), inset 0 0 10px rgba(255, 255, 255, .08); }
.speed { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--mute); font-size: .85rem; }
.speed b { color: var(--fg); font-size: 1rem; }
.ctl input[type=range] { margin: 4px 0 2px; }

.hold {
  margin-top: auto; padding: 9px; border: 1px dashed var(--line2); border-radius: 10px;
  color: var(--mute); font-size: .78rem; user-select: none; touch-action: none; transition: .2s;
}
.hold:hover, .app.running .hold { color: var(--fg); border-color: #fff; }

.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 9px; padding: 2px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 6px 12px; border-radius: 7px; font-size: .8rem; color: var(--mute); transition: .2s; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: #fff; color: #000; }
.seg.wide { display: flex; margin: 8px 0 14px; }
.seg.wide button { flex: 1; padding: 9px 6px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line2); margin: 14px 0 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--glow); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--glow); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .015); }
.tile > span { display: block; color: var(--mute); font-size: .8rem; }
.tile b { font-size: 1.8rem; font-weight: 600; }
.tile .speed { margin-bottom: 4px; }
.tile input[type=range] { margin: 8px 0 14px; }
.bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: 0; background: #fff; box-shadow: var(--glow); transition: width .2s; }

.list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--mute); }
.li:first-child { border-top: 0; }
.li b { color: var(--fg); font-weight: 600; }
.li.on { background: rgba(255, 255, 255, .05); box-shadow: inset 2px 0 0 #fff; }

.curve-cv { width: 100%; height: 300px; display: block; touch-action: none; }
.app .curve-cv { height: 250px; }
.curvebar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.curvecard .curvebar { margin-bottom: 14px; }

/* ---------- stats ---------- */
.stats { width: min(1180px, calc(100% - 40px)); margin: 110px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats .card { padding: 24px 26px; }
.stats b { display: block; font: 800 clamp(1.8rem, 3.4vw, 2.8rem) var(--display); letter-spacing: -.02em; }
.stats span { color: var(--mute); font-size: .92rem; }

/* ---------- sections ---------- */
.sec { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker { color: var(--mute); font-size: .9rem; font-weight: 600; margin: 0 0 18px; }
.sec h2, .cta h2 { font: 800 clamp(2rem, 5vw, 3.8rem)/1.04 var(--display); letter-spacing: -.03em; margin: 0; }
.lead { max-width: 620px; color: #a9a9a9; font-size: 1.08rem; margin: 22px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev > :first-child { order: 0; }

.card {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 26px; backdrop-filter: blur(4px);
}
.card h3 { font: 600 1.15rem var(--display); margin: 14px 0 8px; }
.card p { margin: 0; color: #a3a3a3; }
.card h4 { margin: 0; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.cards3 .card { display: flex; flex-direction: column; }
.pulse { width: 100%; height: 70px; display: block; border-bottom: 1px solid var(--line); }
.tag {
  margin-top: 18px; align-self: flex-start; font: .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line2); border-radius: 5px; padding: 2px 8px; color: var(--mute);
}

/* calc */
.calc input { margin-bottom: 22px; }
.calc .row { border: 0; padding: 0; }
.meter { display: grid; grid-template-columns: 90px 1fr 80px; align-items: center; gap: 14px; margin: 0 0 16px; font-size: .9rem; }
.meter b { text-align: right; }
.track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.track i { display: block; height: 100%; background: rgba(255, 255, 255, .45); border-radius: 4px; transition: width .25s; }
.track i.full { background: #fff; box-shadow: var(--glow); }
.track i.over { width: 100%; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 0 6px, transparent 6px 12px); }
.calc p { margin-top: 10px; }

/* lab */
.labcard .row { border: 0; padding: 0 0 14px; color: var(--mute); }
.labnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.labnums span { display: block; font-size: .78rem; color: var(--mute); }
.labnums b { font-size: 1.9rem; font-weight: 600; }
#labChart { width: 100%; height: 120px; display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }

/* curve */
.curvecard { margin-top: 40px; padding: 18px; }

/* plans table */
.table { margin-top: 44px; padding: 8px 0; }
.tr { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 16px; padding: 14px 26px; border-top: 1px solid var(--line); font-size: .95rem; }
.tr:first-child { border-top: 0; }
.tr span:nth-child(2) { color: var(--mute); }
.tr span:nth-child(3) { color: var(--fg); }
.tr.th { font: .72rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.tr.th span { color: var(--mute) !important; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.price { display: flex; flex-direction: column; gap: 6px; }
.price h3 { margin: 0; font-size: 1rem; color: var(--mute); }
.amount { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 2px; }
.amount b { font: 800 2.6rem var(--display); letter-spacing: -.03em; }
.amount s { color: var(--dim); font-family: var(--mono); }
.price .btn { margin-top: auto; justify-content: center; }
.price p { margin-bottom: 22px; }
.price.best { border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 50px rgba(255, 255, 255, .1); }
.badge {
  position: absolute; top: -11px; left: 24px; background: #fff; color: #000;
  font-size: .62rem; letter-spacing: .16em; padding: 3px 9px; border-radius: 5px;
}
.paynote { margin-top: 26px; }

/* faq */
.faq { display: grid; gap: 12px; margin-top: 40px; }
.faq details { padding: 0; }
.faq summary { padding: 20px 26px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--mute); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; }

/* cta + footer */
.cta { text-align: center; padding: 150px 20px 120px; }
.cta-logo { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .8)) drop-shadow(0 0 40px rgba(255, 255, 255, .35)); margin-bottom: 34px; }
.foot {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 2; }
  .cards3 { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .win { grid-template-columns: 1fr; }
  .rail { flex-direction: row; justify-content: space-around; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .rail button { flex: 1; }
  .controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .graph-tools { align-items: flex-start; }
  .keycap { width: 76px; height: 72px; }
  .nav .btn-sm { display: none; }
  .win-main { padding: 14px; }
  .pane-head .tip { display: none; }
  .prices { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1fr 1fr; padding: 12px 18px; }
  .tr span:first-child { grid-column: 1 / -1; font-weight: 700; }
  .tr.th span:first-child { display: none; }
  .labnums b { font-size: 1.4rem; }
}
@media (pointer: coarse) { .hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
