:root {
  --bg: #0A0A0A;
  --surface: #111113;
  --border: #222226;
  --white: #FFFFFF;
  --muted: #A1A1AA;
  --green: #10B981;
  --red: #EF4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--muted);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
code { font-size: .88em; color: #D4D4D8; }
h1, h2, h3 { color: var(--white); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #04130D; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: var(--green); color: #04130D; }
.btn-primary:hover { background: #34D399; }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--border); }
.btn-secondary:hover { border-color: #3F3F46; background: var(--surface); }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-inner .brand { justify-self: start; }
.wordmark { color: var(--white); font-weight: 700; letter-spacing: .24em; font-size: 14px; }
.nav-links { justify-self: center; display: flex; gap: clamp(18px, 2.2vw, 28px); font-size: 14px; white-space: nowrap; }
.nav-cta { justify-self: end; white-space: nowrap; }
.nav-links a:hover { color: var(--white); }
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--border);
  background: radial-gradient(60% 50% at 50% 0%, rgba(16,185,129,.10), transparent 70%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 999px; font-size: 13px; font-family: var(--mono); color: var(--muted); }
.pill:hover { border-color: var(--green); color: var(--white); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(34px, 5.6vw, 64px); max-width: 880px; margin: 24px 0 20px; }
.lead { max-width: 740px; font-size: 18px; margin: 0 0 32px; }

.install { width: min(520px, 100%); }
.install-tabs { display: flex; gap: 4px; margin-bottom: 8px; justify-content: center; }
.install-tabs button { background: none; border: 1px solid transparent; color: var(--muted); padding: 4px 12px; border-radius: 6px; font: 13px var(--mono); cursor: pointer; }
.install-tabs button[aria-selected="true"] { color: var(--white); border-color: var(--border); background: var(--surface); }
.install-bar { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; text-align: left; color: var(--white); font-family: var(--mono); transition: border-color .15s; }
.install-bar:hover { border-color: var(--green); }
.install-bar .prompt { color: var(--green); }
.install-bar code { flex: 1; color: var(--white); font-size: 15px; overflow-x: auto; white-space: nowrap; }
.copy-state { font-size: 12px; color: var(--muted); min-width: 52px; text-align: right; }
.copy-state.ok { color: var(--green); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--green); font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 760px; }
.section-lead { max-width: 700px; margin: 16px 0 40px; }
.note { font-size: 14px; margin: 14px 0 0; }
.sim { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.sim-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sim-view { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sim-view button { background: none; border: 0; color: var(--muted); padding: 7px 14px; font: 13px var(--sans); cursor: pointer; }
.sim-view button.active { background: var(--border); color: var(--white); }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.term { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; }
.term-bad { border-color: rgba(239,68,68,.35); }
.term-good { border-color: rgba(16,185,129,.4); }
.term-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); gap: 8px; flex-wrap: wrap; }
.tag { font: 600 13px var(--mono); }
.tag-bad { color: var(--red); }
.tag-good { color: var(--green); }
.meter { font: 12px var(--mono); }
.meter b { font-size: 15px; }
.meter-bad b { color: var(--red); }
.meter-good b { color: var(--green); }
.term-body { margin: 0; padding: 14px; font-size: 12.5px; line-height: 1.7; min-height: 300px; max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #D4D4D8; }
.term-body .bad { color: var(--red); }
.term-body .good { color: var(--green); }
.term-body .muted { color: #71717A; }
.term-foot { padding: 12px 14px; border-top: 1px solid var(--border); font: 600 13px var(--mono); min-height: 46px; }
.term-bad .term-foot { color: var(--red); }
.term-good .term-foot { color: var(--green); }
.sim-video video { width: 100%; border-radius: 10px; border: 1px solid var(--border); background: #000; }
.tabs { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.tab-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tab-list button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 14px 20px; font: 600 14px var(--sans); cursor: pointer; white-space: nowrap; }
.tab-list button[aria-selected="true"] { color: var(--white); border-bottom-color: var(--green); }
.tab-panel { padding: 20px; }
.code { position: relative; }
.code pre { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: #E4E4E7; }
.code code { color: inherit; font-size: inherit; }
.copy { position: absolute; top: 10px; right: 10px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font: 12px var(--sans); cursor: pointer; }
.copy:hover { color: var(--white); border-color: #3F3F46; }
.copy.ok { color: var(--green); border-color: var(--green); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.card:hover { border-color: #3F3F46; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card .tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.card .tools code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--green); overflow-wrap: anywhere; }
dl { margin: 0; font-size: 14px; }
dt { color: var(--white); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
dd { margin: 2px 0 0; }
.card-note { background: transparent; border-style: dashed; }
.card-note p { font-size: 14px; margin: 0 0 12px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan-featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 12px 48px rgba(16,185,129,.12); }
.badge { position: absolute; top: -12px; left: 24px; margin: 0; background: var(--green); color: #04130D; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.price { color: var(--white); font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 4px; }
.price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.license { font-size: 13px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 24px; position: relative; border-top: 1px solid var(--border); font-size: 14px; }
.plan li::before { content: "✓"; color: var(--green); position: absolute; left: 0; }
.footer { padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; max-width: 320px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; align-items: flex-start; }
.footer-links a:hover { color: var(--white); }
.copy-row { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }
@media (max-width: 960px) {
  html { scroll-padding-top: 116px; }
  .nav-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "links links"; row-gap: 4px; padding-top: 12px; }
  .nav-inner .brand { grid-area: brand; }
  .nav-cta { grid-area: cta; }
  .nav-links { grid-area: links; justify-self: stretch; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:first-child { margin-left: auto; }
  .nav-links a:last-child { margin-right: auto; }
  .grid-cards, .pricing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .sim-grid, .grid-cards, .pricing { grid-template-columns: 1fr; }
  .term-body { min-height: 240px; max-height: 240px; }
}
@media (max-width: 420px) {
  .nav-inner .wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

video { object-fit: contain; height: auto; }
