:root {
  --bg: #0b0b0c;
  --surface: #121214;
  --surface-2: #19191c;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --text-2: #c7c7cc;
  --muted: #8e8e96;
  --navy: #1f3a73;
  --navy-hi: #2c4f9e;
  --navy-text: #9fb6ea;
  --err: #e5736e;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, 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: 80px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--navy-text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.section { padding: 3rem 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 99; background: #fff; color: #000; padding: .5rem 1rem; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--navy-hi); outline-offset: 3px; border-radius: 6px; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11,11,12,.92); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 1rem; flex-wrap: wrap; }
.brand { color: var(--text); text-decoration: none; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-link:hover, .nav-link[aria-current] { color: var(--text); }
.nav-link.nav-cta { color: var(--text); border: 1px solid var(--navy-hi); background: var(--navy); padding: .4rem .9rem; border-radius: 8px; font-weight: 600; }
.nav-link.nav-cta:hover { background: var(--navy-hi); }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* hero */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--navy-text); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.hero .lead { margin: 1rem 0 2rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: .6rem 1.1rem; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { color: #0b0b0c; background: #f4f4f5; }
.btn-primary:hover:not(:disabled) { background: #fff; }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: #46464d; background: var(--surface-2); }
.btn-navy { color: #fff; background: var(--navy); border-color: var(--navy-hi); }
.btn-navy:hover { background: var(--navy-hi); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; width: 100%; }
.hero .btn-lg { width: auto; }
.action { display: flex; flex-direction: column; gap: .4rem; }
.action-error { color: var(--err); font-size: .85rem; margin: 0; max-width: 28ch; }

/* catalog */
.section-head { margin-bottom: 1.25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.product-card { display: flex; flex-direction: column; gap: .5rem; transition: border-color .15s; }
.product-card:hover { border-color: #46464d; }
.product-card .slot { margin: -1.5rem -1.5rem .5rem; }
.product-card .slot-img, .product-card .slot-ph { border-radius: var(--radius) var(--radius) 0 0; border-width: 0 0 1px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-desc { color: var(--text-2); margin: 0; }
.card-bottom { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.price { font: 700 1.5rem var(--mono); }
.price-lg { font-size: 2.2rem; }
.badge { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 6px; border: 1px solid var(--line); color: var(--text-2); }
.badge-paid { color: #fff; background: var(--navy); border-color: var(--navy-hi); }
.ticks, .steps { padding-left: 0; margin: .25rem 0; }
.ticks { list-style: none; }
.ticks li { padding-left: 1.4rem; position: relative; color: var(--text-2); font-size: .92rem; }
.ticks li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: .5rem; color: var(--text-2); }
.skeleton { display: grid; gap: .8rem; min-height: 220px; }
.skeleton i { display: block; height: 16px; border-radius: 6px; background: var(--surface-2); animation: pulse 1.2s infinite alternate; }
.skeleton i:first-child { width: 30%; } .skeleton i:last-child { width: 70%; }

/* image slots */
.slot { margin: 0; }
.slot-img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.slot-ph { aspect-ratio: 16/9; display: grid; place-content: center; justify-items: center; gap: .35rem; text-align: center; padding: 1rem; border: 1px dashed #46464d; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); }
.slot-ph strong { color: var(--text-2); font-size: .95rem; }
.slot-ph code { font-size: .78rem; }
.slot figcaption { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }

/* product page */
.back { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }
.product-head { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.buy-box { position: sticky; top: 92px; display: grid; gap: .6rem; }
.block { margin-top: 2.5rem; }

/* installer page */
.install-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.step-num { font: 700 .8rem var(--mono); color: var(--navy-text); letter-spacing: .08em; text-transform: uppercase; }
.codebox { display: flex; gap: .5rem; align-items: stretch; margin: .75rem 0; }
.codebox code { flex: 1; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #000; color: #e6e6ea; font-size: .9rem; overflow-x: auto; white-space: nowrap; user-select: all; }
.codebox .btn { padding: .4rem .8rem; font-size: .85rem; }

/* status + success */
.status { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status p { color: var(--text-2); margin: .25rem 0 .75rem; }
.status-error { border-color: rgba(229,115,110,.5); }
.status-info { padding: 2.5rem; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: #fff; animation: spin .8s linear infinite; flex: none; margin-top: 2px; }
.success-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.success-head h1 { font-size: 2rem; margin: 0; }
.success-head .lead { margin: 0; }
.check { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.4rem; flex: none; }
.license-card { display: grid; gap: .75rem; }
.license { display: block; font: 700 clamp(1.2rem, 4.5vw, 1.9rem) var(--mono); letter-spacing: .08em; padding: 1rem; border-radius: 8px; background: #000; border: 1px solid var(--line); user-select: all; word-break: break-all; text-align: center; }

/* faq */
details { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1.1rem; margin-bottom: .6rem; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; color: var(--text-2); }

@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .product-head, .install-step { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .nav { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
