:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --panel: #131519;
  --panel-2: #1a1d22;
  --border: #262a31;
  --text: #eaecef;
  --muted: #9aa3af;
  --accent: #6ee7ff;
  --accent-2: #7c6fff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(760px 420px at 50% -80px, rgba(124, 111, 255, 0.16), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; color: var(--muted); }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

/* Reserves the correct aspect ratio (2465x527, via the img's width/height
   attributes) at any rendered size, so there's no layout shift once the
   real file replaces this placeholder path -- see site/assets/README.md. */
.logo {
  display: block;
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
}

.nav-links a,
.nav-links .nav-link-button {
  text-decoration: none;
  color: black;
}

.nav-links a:hover,
.nav-links .nav-link-button:hover { color: hotpink; }

.nav-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 64px 0 48px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 24px;
}

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

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05141a;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(110, 231, 255, 0.18);
}

.btn-secondary {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.value-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0 44px;
}

.value-prop {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.value-prop:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.value-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 8px;
}

.value-prop h3 { font-size: 1rem; margin-bottom: 4px; }
.value-prop p { margin: 0; font-size: 0.88rem; }

.how-it-works { padding: 40px 0; border-top: 1px solid var(--border); }
.how-it-works h2 { text-align: center; font-size: 1.6rem; margin-bottom: 20px; }

.prereq-note {
  max-width: 640px;
  margin: 0 auto 28px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* Direct-child selector, deliberately: .substeps nests its own <li>
   elements inside a top-level step's <li>, and a plain ".steps li"
   descendant selector was matching those too, wrapping every individual
   sub-instruction in its own card -- exactly the kind of thing that's
   obvious in a screenshot and easy to miss just reading the CSS. */
.steps > li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}

.step-number {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}

.step-body { width: 100%; }

.steps h3 { font-size: 1.02rem; margin-bottom: 4px; }

.step-os {
  margin: 14px 0 4px;
  font-size: 0.9rem;
  color: var(--text);
}

.step-os:first-of-type { margin-top: 10px; }

.substeps {
  margin: 0 0 4px;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.substeps code, .step-body p code {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--text);
  white-space: nowrap;
}

.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.split-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
}

.split-card h2 { font-size: 1.2rem; }

.fineprint {
  font-size: 0.82rem;
  margin-top: 14px;
}

.fineprint code {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* Site modals (Legal & Privacy, FAQ) -- native <dialog>, so centering,
   backdrop, Esc-to-close, and focus trapping are all free from the browser. */
dialog.site-modal {
  max-width: 560px;
  width: calc(100% - 48px);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 26px 22px;
}

dialog.site-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

dialog.site-modal h2 { font-size: 1.3rem; margin-bottom: 14px; }

dialog.site-modal ul {
  padding-left: 20px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

dialog.site-modal li { margin-bottom: 8px; }

dialog.site-modal dl {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}

dialog.site-modal dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 14px;
}

dialog.site-modal dt:first-child { margin-top: 0; }

dialog.site-modal dd {
  margin: 4px 0 0;
  color: var(--muted);
}

dialog.site-modal p { font-size: 0.88rem; }
dialog.site-modal .btn { margin-top: 6px; }

@media (max-width: 720px) {
  .value-props { grid-template-columns: repeat(2, 1fr); }
  .steps > li { flex-direction: column; }
  .split { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; font-size: 0.8rem; }
  .hero { padding: 48px 0 36px; }
  .logo { height: 24px; }
}

@media (max-width: 460px) {
  .value-props { grid-template-columns: 1fr; }
}
