:root {
  color-scheme: dark;
  --accent: #0a84ff;
  --accent-hi: #409cff;
  --fg: #fff;
  --bg: #000;
  --fg-5: rgb(255 255 255 / 0.05);
  --fg-8: rgb(255 255 255 / 0.08);
  --fg-10: rgb(255 255 255 / 0.1);
  --fg-20: rgb(255 255 255 / 0.2);
  --fg-50: rgb(255 255 255 / 0.5);
  --fg-60: rgb(255 255 255 / 0.6);
  --fg-70: rgb(255 255 255 / 0.7);
  --accent-35: rgb(10 132 255 / 0.35);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --gutter: 2rem;
}
html, body { margin: 0; padding: 0; }
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}
body { background: var(--bg); color: var(--fg); overflow-x: hidden; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
img, svg { display: block; }
h1, h2 { text-align: center; }
h1, h2, h3, h4, p { margin: 1rem 0; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 2.5rem; font-weight: 100; }
h2 { font-size: 2rem; font-weight: 100; }
h3 { font-size: 1.7rem; font-weight: 100; }
h4 { font-size: 1.1rem; font-weight: 100; }
p, li { font-weight: 200; text-wrap: pretty; }
strong { font-weight: 500; }
figure { margin: 2.5rem 0; }
a { color: var(--fg-60); font-weight: 400; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 0.4rem; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); }

.container { max-width: 40rem; margin: 0 auto; position: relative; }
.section-padding { padding: 4rem var(--gutter); }
.text-center { text-align: center; }
.secondary { opacity: 0.7; }
.narrow { max-width: 20rem; }
.text-center .narrow { max-width: 26rem; }
.margin-center { margin-left: auto; margin-right: auto; }
.text-center p, p.text-center, .sm-text-center p { text-wrap: balance; }

.cta {
  display: inline-block;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 2rem var(--accent-35), inset 0 1px 0 rgb(255 255 255 / 0.18);
  border-radius: 4rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.cta:hover { color: #fff; background: #1f8fff; box-shadow: 0 0 2.5rem rgb(10 132 255 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.22); }
.cta:active { transform: scale(0.98); }
.cta.small { padding: 0.5rem 0.95rem; font-size: 0.78rem; font-weight: 400; box-shadow: 0 0 1.25rem var(--accent-35); }

/* Header */
header.sticky {
  position: sticky; top: 0; z-index: 3;
  line-height: 1;
  white-space: nowrap;
  background: rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  backdrop-filter: blur(40px) saturate(1.6);
  border-bottom: 1px solid var(--fg-8);
}
header.sticky .bar {
  display: flex; align-items: center; gap: 1.6rem;
  max-width: 60rem; height: 3.25rem; margin: 0 auto; padding: 0 1.25rem;
}
header.sticky .logo { display: flex; align-items: center; gap: 0.45rem; color: var(--fg); font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em; }
header.sticky .logo img { width: 1.9rem; height: 1.9rem; margin: -0.2rem; }
header.sticky nav { display: flex; align-items: center; gap: 1.6rem; font-size: 0.78rem; }
.spacer { flex: 1 0 auto; }

/* Install line (landing, welcome, support) */
.install {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 34rem; margin: 0.9rem auto 0;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  border: 1px solid var(--fg-20);
  border-radius: 4rem;
  background: var(--fg-5);
}
.install code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 0.72rem; line-height: 1.4; color: rgb(255 255 255 / 0.85); scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent); }
.install code::-webkit-scrollbar { display: none; }
.install button {
  flex: none; font: inherit; font-size: 0.72rem; font-weight: 500;
  color: var(--fg); background: var(--fg-10);
  border: 0; border-radius: 4rem; padding: 0.5rem 0.95rem; cursor: pointer;
  min-width: 4.6rem; transition: background 0.2s;
}
.install button:hover { background: var(--fg-20); }

/* ---- Landing ---- */
main > section { padding: 0 var(--gutter); }
.eyebrow { margin: 0 0 0.75rem; text-align: center; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi); }

.hero {
  text-align: center;
  padding-top: 5rem !important;
  background: radial-gradient(28rem 20rem at 50% 8rem, rgb(90 200 255 / 0.12), transparent 70%);
}
.hero img { width: 8rem; height: 8rem; margin: 0 auto; filter: drop-shadow(0 1rem 2.5rem rgb(10 132 255 / 0.35)); }
.hero h1 { font-size: 3.6rem; font-weight: 200; letter-spacing: -0.035em; line-height: 1.05; margin: 1.75rem 0 1.25rem; }
.hero .tagline { color: var(--fg-70); font-size: 1.15rem; font-weight: 300; line-height: 1.55; max-width: 31rem; margin: 0 auto 2.25rem; text-wrap: balance; }
.hero .meta { margin: 1rem 0 0; font-size: 0.75rem; color: var(--fg-50); font-weight: 300; }
.hero .demo { max-width: 56rem; margin: 4.5rem auto 0; }
.demo-video {
  width: 100%; height: auto; display: block;
  border-radius: 1.1rem; box-shadow: 0 0 0 1px var(--fg-10), 0 2rem 5rem -1.5rem rgb(10 132 255 / 0.25), 0 2rem 4rem -1rem rgb(0 0 0 / 0.9);
  user-select: none; -webkit-user-select: none;
}

.problem { max-width: 40rem; margin: 9rem auto 0; text-align: center; }
.problem h2, .how h2, .questions h2, .closer h2 { font-size: 2.6rem; font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 1.25rem; }
.problem .sub { color: var(--fg-60); font-size: 1.05rem; font-weight: 300; line-height: 1.6; margin: 0 auto; max-width: 33rem; text-wrap: balance; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 58rem; margin: 4.5rem auto 0; }
.pillar { padding: 2rem 1.75rem; border-radius: 1.25rem; background: linear-gradient(to bottom, var(--fg-5), transparent); border: 1px solid var(--fg-8); }
.pillar svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--accent-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.25rem; }
.pillar h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.pillar p { margin: 0; color: var(--fg-60); font-size: 0.92rem; font-weight: 300; line-height: 1.5; }
.trust { text-align: center; color: var(--fg-50); font-size: 0.82rem; font-weight: 300; margin: 1.75rem auto 0; padding: 0 var(--gutter); }

.how { max-width: 58rem; margin: 9rem auto 0; text-align: center; }
.setup-steps { counter-reset: setup; list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: left; }
.setup-steps li { counter-increment: setup; position: relative; padding-top: 1.25rem; border-top: 1px solid var(--fg-20); }
.setup-steps li::before { content: "0" counter(setup); display: block; font: 500 0.75rem var(--mono); color: var(--accent-hi); margin-bottom: 0.75rem; }
.setup-steps strong { display: block; font-size: 1.1rem; font-weight: 500; margin-bottom: 0.3rem; }
.setup-steps span { display: block; color: var(--fg-60); font-size: 0.92rem; font-weight: 300; line-height: 1.5; }

.pricing { max-width: 58rem; margin: 9rem auto 0; }
.tier {
  max-width: 21rem; margin: 0 auto; padding: 2.25rem 2rem 1.75rem; text-align: center;
  border-radius: 1.75rem; border: 1px solid var(--fg-20);
  background: radial-gradient(18rem 10rem at 50% 0, rgb(10 132 255 / 0.14), transparent 75%), var(--fg-5);
  box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / 0.9);
}
.tier .price { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; margin: 0.5rem 0 1.75rem; }
.tier .price strong { font-size: 4.5rem; font-weight: 200; line-height: 1; letter-spacing: -0.04em; }
.tier .price small { color: var(--fg-50); font-size: 1rem; font-weight: 300; }
.tier .features { margin: 0 0 2rem; padding: 0; text-align: left; font-size: 0.9rem; }
.tier .features li { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-top: 1px solid var(--fg-8); font-weight: 300; color: var(--fg-70); }
.tier .features li::before { content: ""; flex: none; width: 1rem; height: 1rem; background: var(--accent-hi); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cta.block { display: block; padding: 0.9rem 1.4rem; font-size: 0.95rem; font-weight: 400; }
.tier .fine { margin: 0.9rem 0 0; font-size: 0.75rem; color: var(--fg-50); font-weight: 300; }
.installed { margin: 3.5rem auto 0; text-align: center; }
.installed p { margin: 0; font-size: 0.82rem; color: var(--fg-50); font-weight: 300; }

.questions { max-width: 36rem; margin: 9rem auto 0; }
.questions h2 { text-align: center; margin-bottom: 2.25rem; }
.questions details.faq summary { font-size: 1rem; padding: 0.35rem 0; }
.questions details.faq p { color: var(--fg-60); font-size: 0.92rem; font-weight: 300; line-height: 1.6; }
.questions details.faq a { color: var(--accent-hi); }
.questions code { font-size: 0.85em; color: rgb(255 255 255 / 0.85); }

.closer { text-align: center; margin: 9rem auto 7rem; padding-top: 5rem !important; padding-bottom: 1rem !important; background: radial-gradient(26rem 14rem at 50% 70%, rgb(90 200 255 / 0.1), transparent 70%); }
.closer h2 { margin-bottom: 2rem; }

@media (max-width: 760px) {
  :root { --gutter: 1.25rem; }
  html { font-size: 17px; }
  header.sticky .bar { gap: 1.1rem; padding: 0 1rem; }
  header.sticky nav { gap: 1.1rem; }
  header.sticky nav .wide { display: none; }
  .hero { padding-top: 3.25rem !important; }
  .hero img { width: 6.5rem; height: 6.5rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero .demo { margin-top: 3rem; }
  .problem h2, .how h2, .questions h2, .closer h2 { font-size: 2rem; }
  .problem, .how, .pricing, .questions { margin-top: 6rem; }
  .pillars, .setup-steps { grid-template-columns: 1fr; }
  .setup-steps { gap: 1.75rem; }
  .closer { margin: 6rem auto 4rem; }
}
@media (max-width: 360px) {
  header.sticky nav a:not(.cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}

/* ---- Shared page chrome (subpages) ---- */
.page { max-width: 38rem; margin: 0 auto; padding: 3.5rem var(--gutter) 4rem; }
.page h1 { text-align: left; font-size: 2.4rem; font-weight: 200; margin: 0 0 0.5rem; }
.page .kicker { color: var(--fg-50); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.75rem; font-weight: 400; }
.page .intro { color: var(--fg-70); font-size: 1.05rem; margin: 0 0 2.5rem; }
.page h2 { text-align: left; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.005em; margin: 2.75rem 0 0.6rem; }
.page h3 { font-size: 1rem; font-weight: 500; margin: 1.75rem 0 0.4rem; }
.page p, .page li { color: var(--fg-70); font-size: 0.95rem; }
.page p strong, .page li strong { color: var(--fg); }
.page ul.bullets { list-style: disc; padding-left: 1.25rem; }
.page ul.bullets li { margin: 0.35rem 0; }
.page a:not(.cta):not(.btn) { color: var(--accent-hi); }
.page a:not(.cta):not(.btn):hover { text-decoration: underline; }
.page code { font-size: 0.85em; color: var(--fg); background: var(--fg-8); padding: 0.1em 0.35em; border-radius: 0.3em; }
.page .updated { color: var(--fg-50); font-size: 0.8rem; margin: 0 0 2rem; }

.card { background: var(--fg-5); border: 1px solid var(--fg-10); border-radius: 1.25rem; padding: 1.5rem; margin: 1.5rem 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-size: 0.85rem; font-weight: 500; line-height: 1;
  color: var(--fg); background: var(--fg-10);
  border: 0; border-radius: 4rem; padding: 0.7rem 1.2rem; cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn:hover { background: var(--fg-20); color: var(--fg); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 0 1.5rem var(--accent-35); }
.btn.primary:hover { background: #1f8fff; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; }

/* License key display */
.key {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem; margin: 1rem 0 0;
  border: 1px solid var(--fg-20); border-radius: 0.9rem; background: rgb(0 0 0 / 0.35);
}
.key code { flex: 1; min-width: 0; font: 500 1.05rem var(--mono); letter-spacing: 0.04em; color: var(--fg); background: none; padding: 0; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

/* Numbered steps */
.steps { counter-reset: step; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--fg-10); color: var(--fg); font-size: 0.85rem; font-weight: 600;
}
.steps > li::after { content: ""; position: absolute; left: 0.94rem; top: 2.1rem; bottom: 0.3rem; width: 1px; background: var(--fg-10); }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; color: var(--fg); font-weight: 500; margin-bottom: 0.2rem; }
.steps .install { margin: 0.75rem 0 0; max-width: none; }

/* Forms */
.field { display: flex; gap: 0.5rem; margin: 1rem 0 0; }
.field input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; color: var(--fg);
  background: rgb(0 0 0 / 0.35); border: 1px solid var(--fg-20); border-radius: 4rem; padding: 0.65rem 1.1rem;
}
.field input:focus { outline: 2px solid var(--accent-hi); outline-offset: 1px; border-color: transparent; }
.note { font-size: 0.82rem !important; color: var(--fg-50) !important; margin: 0.75rem 0 0; }
.status { min-height: 1.4em; font-size: 0.88rem !important; margin: 0.75rem 0 0; }
.status.ok { color: #5fd38d !important; }
.status.err { color: #ff6961 !important; }

.spinner { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--fg-20); border-top-color: var(--fg); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-row { display: flex; align-items: center; gap: 0.75rem; }

.check-badge { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: rgb(48 209 88 / 0.15); color: #30d158; margin: 0 0 1.25rem; }
.check-badge svg { width: 1.6rem; height: 1.6rem; }

details.faq { border-top: 1px solid var(--fg-10); padding: 0.9rem 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--fg-10); }
details.faq summary { cursor: pointer; list-style: none; color: var(--fg); font-weight: 500; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--fg-50); font-weight: 300; font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > :not(summary) { margin: 0.6rem 0 0.2rem; }

.simple-footer { border-top: 1px solid var(--fg-8); padding: 2rem var(--gutter); text-align: center; font-size: 0.8rem; color: var(--fg-50); }
.simple-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin: 0 0 0.9rem; }
.simple-footer a { font-weight: 300; }

@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.page .install code { background: none; padding: 0; font-size: 0.72rem; color: rgb(255 255 255 / 0.85); }
.page .key code { background: none; padding: 0; }

