:root {
  color-scheme: dark;
  --page: #06070a;
  --page-soft: #0a0d12;
  --ink: #f4f7fb;
  --muted: #a4afbd;
  --muted-strong: #c3ccd8;
  --line: rgba(180, 196, 216, 0.18);
  --line-strong: rgba(202, 215, 232, 0.32);
  --glass: rgba(15, 19, 27, 0.72);
  --glass-strong: rgba(24, 31, 43, 0.84);
  --accent: #8ab8ff;
  --accent-strong: #c8dcff;
  --accent-ink: #05101f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(138, 184, 255, 0.13), transparent 38%),
    linear-gradient(225deg, rgba(226, 232, 240, 0.08), transparent 46%),
    linear-gradient(180deg, #0b0d12 0%, #06070a 54%, #040507 100%),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(220, 230, 244, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 230, 244, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 72%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.12em 0.34em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

:focus-visible {
  outline: 3px solid rgba(138, 184, 255, 0.78);
  outline-offset: 4px;
}

.site-shell {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(1120px, calc(100% - 28px));
  min-height: 58px;
  margin: 12px auto 0;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 10, 15, 0.82);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.brand,
.primary-nav,
.action-row,
.route-strip,
.feature-rail,
.release-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  min-height: 44px;
  font-weight: 750;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.primary-nav {
  justify-content: center;
  gap: 6px;
}

.primary-nav a,
.nav-action,
.button,
.segmented button,
.release-links a,
.route-strip a,
.feature-rail a {
  min-height: 44px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
}

.nav-action,
.button.primary {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.nav-action:hover,
.button:hover,
.route-strip a:hover,
.feature-rail a:hover,
.release-links a:hover {
  transform: translateY(-2px);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(520px, 1fr);
  gap: 56px;
  align-items: center;
  width: min(1160px, calc(100% - 36px));
  min-height: min(700px, calc(100svh - 82px));
  margin: 0 auto;
  padding: 42px 0 30px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 980px;
  font-size: 72px;
  line-height: 0.95;
}

h2 {
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-line,
.page-hero p,
.shot-copy p,
.install-flow p,
.release-grid p {
  color: var(--muted);
  font-size: 18px;
}

.hero-line {
  margin-top: 20px;
}

.action-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.screenshot-stage,
.shot-frame,
.install-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: clamp(22px, 3vw, 34px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(26px);
}

.screenshot-stage {
  z-index: 1;
  padding: clamp(10px, 1.2vw, 16px);
  animation: stage-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screenshot-stage img,
.shot-frame img,
.install-panel img {
  border-radius: clamp(16px, 2vw, 26px);
}

.stage-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 6, 12, 0.66);
  color: rgba(244, 247, 251, 0.86);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

.route-strip {
  gap: 10px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 62px;
}

.route-strip a {
  flex: 1;
  min-width: 0;
  padding: 20px 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.route-strip span,
.feature-rail span,
.release-grid span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.route-strip strong,
.feature-rail strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.route-strip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.page-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 78px;
}

.page-hero {
  max-width: 1030px;
  padding-bottom: 34px;
}

.page-hero.narrow {
  max-width: 820px;
}

.page-hero p {
  max-width: 720px;
  margin-top: 16px;
}

.shot-lab {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(480px, 1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.042);
}

.shot-copy p {
  margin-top: 12px;
}

.segmented {
  display: inline-flex;
  gap: 6px;
  margin-top: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.20);
}

.segmented button {
  border: 0;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
}

.segmented button.is-active {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.shot-frame {
  padding: 10px;
}

.shot-frame img {
  transition: opacity 220ms ease, transform 260ms ease;
}

.shot-frame.is-switching img {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.feature-rail,
.release-links {
  gap: 10px;
  margin-top: 14px;
}

.feature-rail a,
.release-links a {
  flex: 1;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.install-flow {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
}

.install-flow ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-flow li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.install-flow span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.install-flow strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.install-flow p {
  margin-top: 8px;
  font-size: 16px;
}

.install-panel {
  padding: 10px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.release-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.release-grid h2 {
  margin-top: 14px;
}

.release-grid p {
  margin-top: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.reveal {
  opacity: 1;
  transform: none;
}

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

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1320px) {
  h1 {
    font-size: 96px;
  }

  h2 {
    font-size: 48px;
  }

  .screenshot-stage {
    animation-name: stage-in-wide;
    transform: perspective(1200px) rotateX(0deg) rotateY(-4deg);
  }
}

@keyframes stage-in-wide {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(8deg) rotateY(-10deg) translateY(28px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) rotateY(-4deg) translateY(0);
  }
}

@media (max-width: 960px) {
  .site-shell {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-home,
  .shot-lab,
  .install-flow {
    grid-template-columns: 1fr;
  }

  .hero-home {
    padding-top: 40px;
  }

  .screenshot-stage {
    transform: none;
  }

  h1 {
    font-size: 72px;
  }

  .page-hero h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 38px;
  }

  .route-strip,
  .feature-rail,
  .release-links,
  .release-grid {
    flex-direction: column;
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .hero-home,
  .route-strip,
  .page-main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-shell {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .primary-nav {
    display: grid;
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .primary-nav a {
    justify-content: center;
    padding: 0 4px;
    font-size: 13px;
  }

  .nav-action {
    width: 100%;
    padding: 0 14px;
  }

  h1 {
    font-size: 56px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-line,
  .page-hero p,
  .shot-copy p,
  .release-grid p {
    font-size: 16px;
  }

  .stage-caption {
    right: 14px;
    bottom: 14px;
  }

  .route-strip a,
  .feature-rail a,
  .release-links a {
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 0 10px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
