@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-700.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700.woff2") format("woff2");
}

:root {
  --ink: #06080d;
  --graphite: #0d131d;
  --slate: #1a2433;
  --ice: #f5f9ff;
  --muted: #a9b9ce;
  --blue: #2868ff;
  --cyan: #62e8ff;
  --orange: #ff6f1f;
  --green: #0cdb46;
  --line: rgba(165, 195, 238, 0.16);
  --line-strong: rgba(165, 195, 238, 0.28);
  --flow: linear-gradient(105deg, #4682ff 0%, #62e8ff 100%);
  --max: 1120px;
  --header: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% -8%, rgba(40, 104, 255, 0.2), transparent 34%),
    radial-gradient(circle at 8% 12%, rgba(98, 232, 255, 0.08), transparent 26%),
    var(--ink);
  color: var(--ice);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 78%);
}

h1, h2, h3, .brand, .window-brand {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

h1, h2, h3, p { margin-top: 0; }

a { color: inherit; }

img { max-width: 100%; height: auto; }

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ice);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header);
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(6, 8, 13, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ice);
  font-size: 1.05rem;
  text-decoration: none;
}

.brand-icon { width: 28px; height: 28px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ice); }

.menu-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--graphite);
  color: var(--ice);
  font: inherit;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #041018;
  background: var(--flow);
  box-shadow: 0 12px 36px rgba(40, 104, 255, 0.28);
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary,
.header-cta {
  color: var(--ice);
  background: rgba(13, 19, 29, 0.9);
  border-color: var(--line-strong);
}

.header-cta { min-height: 42px; margin-left: 8px; }

.btn-disabled,
.btn:disabled {
  color: var(--ice);
  background: var(--slate);
  border-color: var(--line-strong);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.hero,
.section,
.page-hero,
.page-section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 36px;
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 19, 29, 0.72);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(98, 232, 255, 0.8);
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  line-height: 0.98;
}

.gradient-text {
  background: linear-gradient(105deg, #7eb0ff, #62e8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.prose p,
.feature-card p,
.step p,
.local-card p,
.faq p,
.support-card p,
.page-hero p {
  color: var(--muted);
}

.lead { max-width: 40rem; font-size: 1.12rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.meta-row li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.stage { margin: 0; }

.window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #080c12;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.window-bar,
.window-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.window-bar {
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--graphite);
  font-size: 0.78rem;
}

.window-brand { display: inline-flex; align-items: center; gap: 8px; }
.window-brand img { width: 16px; height: 16px; }
.window-project { color: var(--muted); }
.window-status { color: #8ef0b0; }

.window-body { padding: 16px; }

.preview {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: end start;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 28%, rgba(98, 232, 255, 0.35), transparent 22%),
    radial-gradient(circle at 36% 60%, rgba(40, 104, 255, 0.55), transparent 32%),
    linear-gradient(145deg, #121a28, #0b1018);
}

.preview-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(98, 232, 255, 0.35);
  border-radius: 8px;
}

.preview-frame::before,
.preview-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--cyan);
}

.preview-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.preview-frame::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }

.preview-caption {
  position: relative;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(6, 8, 13, 0.72);
  font-size: 0.82rem;
}

.timeline { margin-top: 14px; }

.timeline-track {
  position: relative;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(40, 104, 255, 0.18) 8% 22%, transparent 22% 30%, rgba(40, 104, 255, 0.18) 30% 46%, transparent 46% 70%, rgba(40, 104, 255, 0.18) 70% 84%, transparent 84%),
    #101721;
}

.clip-region {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 28%;
  width: 34%;
  border-radius: 5px;
  background: linear-gradient(90deg, #245bdb, #3d8dff);
  box-shadow: inset 0 0 0 1px rgba(98, 232, 255, 0.35);
}

.playhead {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 46%;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(98, 232, 255, 0.75);
}

.window-tools {
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.window-tools li {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.stage figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section { padding: 88px 0; }

.section h2,
.page-hero h1,
.local-card h2,
.closing h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.section-intro { max-width: 40rem; }

.feature-grid,
.support-grid,
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-card,
.support-card,
.spec-card,
.local-card,
.download-card,
.step,
.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(17, 25, 37, 0.96), rgba(8, 12, 18, 0.96));
}

.feature-card,
.support-card,
.spec-card { padding: 22px; }

.feature-card h3,
.support-card h2,
.spec-card h2 { margin-bottom: 8px; font-size: 1.25rem; }

.card-index {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 22px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.step:first-child { border-radius: 18px 18px 0 0; }
.step:last-child { border-radius: 0 0 18px 18px; }
.step + .step { border-top: 0; }

.step b { color: #6f829b; }

.local-card,
.closing,
.download-card {
  padding: clamp(24px, 4vw, 48px);
}

.local-card { background:
  radial-gradient(circle at 88% 10%, rgba(40, 104, 255, 0.18), transparent 28%),
  linear-gradient(160deg, #121a27, #090d14);
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 8, 13, 0.35);
}

.faq { display: grid; gap: 10px; margin-top: 22px; }

.faq details { padding: 6px 18px; }

.faq summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 700;
}

.faq details p { margin: 0 0 16px; max-width: 46rem; }

.closing { text-align: center; }

.closing .actions { justify-content: center; }

.page-hero { padding: 72px 0 12px; }
.page-hero p { max-width: 42rem; font-size: 1.08rem; }
.page-section { padding: 12px 0 88px; }

.download-card { max-width: 760px; margin: 28px auto 0; text-align: center; }
.download-card .actions { justify-content: center; }

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 28px 0;
  text-align: left;
}

.spec-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-list dd { margin: 4px 0 0; }

.note {
  margin: 18px auto 0;
  max-width: 40rem;
  color: var(--muted);
}

.draft-banner {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 111, 31, 0.45);
  border-radius: 14px;
  background: rgba(255, 111, 31, 0.1);
  color: #ffd7c2;
}

.prose { max-width: 44rem; padding-bottom: 72px; }
.stack { margin-top: 28px; }
.prose h2 { margin: 36px 0 10px; font-size: 1.6rem; }
.prose ul { color: var(--muted); padding-left: 1.2rem; }
.prose a { color: #b7ecff; }

.support-card a,
.text-link {
  color: #b7ecff;
  font-weight: 700;
  text-decoration: none;
}

.support-card a:hover,
.text-link:hover { text-decoration: underline; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 42px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-brand p { margin-bottom: 6px; color: var(--muted); font-size: 0.92rem; }

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-label { margin: 0 0 4px; font-size: 0.78rem; font-weight: 700; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.footer-nav a:hover { color: var(--ice); }

.footer-copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .playhead { animation: sweep 4.8s ease-in-out infinite alternate; }
}

@keyframes sweep {
  from { left: 18%; }
  to { left: 76%; }
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .support-grid,
  .spec-grid,
  .site-footer,
  .check-list { grid-template-columns: 1fr 1fr; }
  .hero { align-items: start; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #0b1018;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
  .nav a:hover { background: rgba(40, 104, 255, 0.12); }
  .hero,
  .feature-grid,
  .support-grid,
  .spec-grid,
  .site-footer,
  .check-list,
  .spec-list,
  .footer-nav { grid-template-columns: 1fr; }
  .hero,
  .section { padding-top: 48px; }
  .section { padding-bottom: 56px; }
  .window-project { display: none; }
  .step { grid-template-columns: 52px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .playhead { animation: none; }
}

@media (forced-colors: active) {
  .gradient-text {
    background: none;
    color: CanvasText;
  }
  .btn-primary,
  .btn-disabled,
  .btn:disabled { border: 1px solid ButtonText; }
}
