:root {
  --bg: #06110e;
  --bg-raised: #0b1c17;
  --surface: #0f251f;
  --surface-2: #143029;
  --line: #1f4037;
  --line-strong: #2c5a4d;
  --text: #e9f6f1;
  --muted: #9fbdb3;
  --faint: #6f8f85;
  --accent: #63e6c3;
  --accent-strong: #8ef0d5;
  --accent-ink: #052019;
  --warn: #ffd27a;
  --win-blue: #1f6fd1;
  --radius: 16px;
  --radius-small: 10px;
  --wrap: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 17, 14, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(99, 230, 195, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(99, 230, 195, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  color: var(--accent-ink);
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(99, 230, 195, 0.32);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-small {
  padding: 7px 18px;
  font-size: 0.92rem;
  box-shadow: none;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button-ghost:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.button-large {
  padding: 16px 32px;
  font-size: 1.08rem;
}

.button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 88px 0 56px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 720px;
  background:
    radial-gradient(closest-side at 50% 60%, rgba(99, 230, 195, 0.18), transparent 70%),
    radial-gradient(closest-side at 20% 30%, rgba(40, 120, 200, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-small {
  padding: 72px 0 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 37, 31, 0.7);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 34px;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.trust li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 7px;
}

.hero-art {
  margin: 56px auto 0;
  max-width: 880px;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  border-top: 1px solid rgba(99, 230, 195, 0.06);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  background: rgba(15, 37, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps > li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}

.steps > li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.card p,
.card li {
  color: var(--muted);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(99, 230, 195, 0.1);
  color: var(--accent);
  margin-bottom: 18px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: 3px;
  background: rgba(99, 230, 195, 0.14);
  color: var(--accent);
}

.tag-plain {
  background: var(--surface-2);
  color: var(--muted);
}

/* Free vs Pro */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.compare th,
.compare td {
  padding: 15px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-raised);
}

.compare thead th.pro {
  color: var(--accent);
}

.compare tbody th {
  font-weight: 500;
}

.compare td {
  width: 26%;
  color: var(--muted);
}

.compare tr:last-child > * {
  border-bottom: 0;
}

.yes,
.no {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 0.8rem;
  font-weight: 700;
}

.yes {
  background: rgba(99, 230, 195, 0.16);
  color: var(--accent);
}

.no {
  background: var(--surface-2);
  color: var(--faint);
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
  background: rgba(99, 230, 195, 0.05);
  padding: 14px 18px;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  margin: 24px 0 0;
}

.note-warn {
  border-left-color: var(--warn);
  background: rgba(255, 210, 122, 0.06);
}

.note strong {
  color: var(--text);
}

/* Store badges */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #555;
  border-radius: 10px;
  padding: 9px 18px;
  text-decoration: none;
  font-weight: 600;
}

.store-badge:hover {
  color: #fff;
  border-color: #999;
}

.store-badge svg {
  width: 22px;
  height: 22px;
}

.store-soon {
  color: var(--muted);
  text-align: center;
  margin: 0;
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-group + .faq-group {
  margin-top: 48px;
}

.faq-group > h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  color: var(--muted);
  padding: 0 0 20px;
}

.faq .answer ol,
.faq .answer ul {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.faq .answer li + li {
  margin-top: 4px;
}

.faq .answer strong {
  color: var(--text);
}

/* Download page */

.download-meta {
  color: var(--faint);
  font-size: 0.92rem;
  margin: 16px 0 0;
}

.download-meta [data-release] {
  color: var(--muted);
}

.walkthrough {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.walkthrough li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.walkthrough p {
  color: var(--muted);
  margin: 14px 4px 2px;
  font-size: 0.95rem;
}

.walkthrough p b {
  color: var(--text);
}

.ss-dialog {
  background: var(--win-blue);
  color: #fff;
  border-radius: 8px;
  padding: 16px 16px 12px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.ss-dialog .ss-title {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.ss-dialog .ss-body {
  opacity: 0.92;
  flex: 1;
}

.ss-dialog .ss-link {
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
}

.ss-dialog .ss-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
}

.ss-dialog .ss-button {
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 3px 14px;
  font-size: 0.78rem;
}

.ss-dialog .hot {
  outline: 3px solid var(--warn);
  outline-offset: 2px;
  border-radius: 2px;
}

.ss-dialog dl {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  opacity: 0.92;
}

.ss-dialog dd {
  margin: 0;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.requirements dl {
  margin: 0;
}

.requirements dt {
  color: var(--text);
  font-weight: 600;
  margin-top: 12px;
}

.requirements dt:first-child {
  margin-top: 0;
}

.requirements dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.hash {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--bg-raised);
}

.hash code {
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  color: var(--text);
}

.hash button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  padding: 0 16px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.hash button:hover {
  background: var(--surface-2);
}

.hash-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 8px;
}

pre {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 1em;
}

.release h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.release h3 small {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.9rem;
}

/* Legal pages */

.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose p,
.prose li {
  color: #c9ddd6;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text);
}

.prose .updated {
  color: var(--faint);
  font-size: 0.95rem;
}

.prose .table-scroll {
  margin: 0 0 1.2em;
}

.prose .compare {
  min-width: 560px;
  font-size: 0.95rem;
}

.prose .compare td {
  width: auto;
}

/* CTA band */

.cta-band {
  text-align: center;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(99, 230, 195, 0.16), transparent 80%),
    var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 24px;
}

.cta-band p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-band .store-badges,
.cta-band .store-soon {
  margin-top: 26px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.footer-grid a:not(.brand) {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.footer-grid a:not(.brand):hover {
  color: var(--text);
}

.footer-brand p {
  color: var(--faint);
  margin-top: 12px;
  max-width: 300px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(99, 230, 195, 0.06);
  color: var(--faint);
  font-size: 0.88rem;
}

/* Responsive */

@media (max-width: 960px) {
  .site-nav {
    gap: 16px;
  }

  .cards,
  .requirements,
  .walkthrough {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a:not(.button) {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .button {
    margin-top: 14px;
    padding: 12px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 36px;
  }

  .section {
    padding: 64px 0;
  }

  .cards,
  .cards-2,
  .requirements,
  .walkthrough {
    grid-template-columns: minmax(0, 1fr);
  }

  .actions .button {
    width: 100%;
  }

  .compare th,
  .compare td {
    padding: 12px 14px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    padding: 40px 18px;
  }
}

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

  .button {
    transition: none;
  }
}

/* Small helpers (no inline styles: the CSP blocks them) */

.section-tight {
  padding: 0 0 8px;
}

.stack-top {
  margin-top: 20px;
}

.more-link {
  text-align: center;
  margin: 28px 0 0;
}

.release-only {
  display: none;
}

.has-release .release-only {
  display: inline;
}
