:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --raised: #1a1a1a;
  --ink: #ededed;
  --muted: #a1a1a1;
  --faint: #6b6b6b;
  --line: #262626;
  --line-strong: #333333;
  --accent: #7f73ff;
  --on-accent: #0a0a0a;
  --lime: #d4ff00;
  --bar-height: 72px;
  --gutter: 40px;
  --stage-gap: 16px;
  --content-width: calc((100svh - var(--bar-height) - var(--stage-gap)) * 1.6);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html.landing {
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

.bar {
  scroll-snap-align: start;
  position: relative;
  z-index: 10;
  height: var(--bar-height);
  padding: 0 var(--gutter);
  background: var(--bg);
}

.bar-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.bar-inner {
  height: 100%;
}

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

.bar-logo img {
  display: block;
}

.footer-links a {
  transition: color 0.15s ease;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding-inline: var(--gutter);
  scroll-margin-top: var(--bar-height);
}

.hero-body,
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-body {
  gap: clamp(18px, 1.945vw, 28px);
  max-width: 100%;
}

.hero-lead,
.hero-text {
  margin: 0;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 1.06;
}

.hero-text {
  color: var(--ink);
  font-size: clamp(36px, 4.515vw, 65px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-text strong {
  font-weight: 600;
}

.hero-cta,
.hero-actions {
  gap: 20px;
}

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

.bar-inner .button,
.hero-actions .button {
  border-radius: 8px;
  justify-content: center;
}

.bar-inner .bar-watch,
.hero-actions .button-accent {
  min-width: 136px;
}

.hero-actions .button-ghost {
  min-width: 182px;
}

.stage {
  width: 100%;
  height: 100svh;
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.stage-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 110px 130px 120px;
  scroll-margin-top: var(--bar-height);
}

.cta-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 100%;
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 66px);
  font-weight: 600;
  line-height: 0.924;
  letter-spacing: -0.03em;
  color: var(--bg);
}

.headline-line {
  display: block;
  padding: 0.09em 0.333em 0.152em;
  background: var(--lime);
  white-space: nowrap;
}

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

.button {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.button-accent:hover {
  background: #9389ff;
}

.bar-watch {
  background: transparent;
  color: var(--ink);
}

.bar-watch:hover {
  background: var(--raised);
}

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  background: var(--raised);
}

.button:focus-visible,
.bar-logo:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.install {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-align: center;
  scroll-margin-top: calc(var(--bar-height) + 160px);
}

.install-command {
  color: var(--ink);
}

.footer {
  scroll-snap-align: end;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-logo img {
  display: block;
  width: auto;
  height: 14px;
}

.footer-copy {
  font-size: 13px;
  line-height: 18px;
  color: var(--faint);
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 128px var(--gutter) 56px;
  text-align: center;
}

.legal-title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.028;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-lead {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}

.legal-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--faint);
}

.legal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px var(--gutter) 96px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 760px;
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  border-top: 0;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal-index {
  flex: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lime);
}

.legal-section p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}

@media (min-width: 641px) {
  .landing .bar-inner {
    width: 100%;
  }

  .hero {
    height: calc(100svh - var(--bar-height));
    container-type: size;
  }

  .hero-body {
    margin-bottom: min(7.35cqi, 11.9cqh, 100px);
    gap: clamp(8px, min(2.06cqi, 3.33cqh), 28px);
  }

  .hero-text {
    font-size: clamp(26px, min(4.78cqi, 7.74cqh), 65px);
  }

  .hero-lead {
    font-size: clamp(14px, min(1.47cqi, 2.38cqh), 20px);
  }

  .hero-cta,
  .hero-actions {
    gap: clamp(8px, min(1.47cqi, 2.38cqh), 20px);
  }

  @container (max-width: 600px) or (max-height: 370px) {
    .hero-actions .button {
      min-width: 0;
      padding: 7px 14px;
    }

    .hero-body {
      margin-bottom: min(4cqi, 6.5cqh);
    }
  }
}

@media (max-width: 1024px) {
  .cta {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

@media (max-width: 640px) {
  html.landing {
    scroll-snap-type: y proximity;
  }

  :root {
    --bar-height: 56px;
    --gutter: 16px;
    --content-width: 100%;
  }

  .bar-logo img {
    width: 99px;
    height: 17px;
  }

  .hero {
    min-height: 0;
    max-height: calc(100svh - var(--bar-height));
    padding: 0 0 min(48px, 6svh);
  }

  .hero-body {
    flex: none;
    padding-inline: var(--gutter);
  }

  .hero-lead {
    line-height: 1.4;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 16px;
  }

  .stage {
    min-height: 0;
  }

  .stage-frame {
    width: 100%;
    aspect-ratio: auto;
    height: min(calc(100svh - var(--bar-height) - var(--stage-gap)), 760px);
  }

  .cta {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .headline {
    font-size: clamp(28px, 9vw, 40px);
    text-align: center;
  }

  .headline-line {
    white-space: normal;
    text-wrap: balance;
  }

  .legal-dates {
    flex-direction: column;
    gap: 4px;
  }

  .legal-dates span:nth-child(2) {
    display: none;
  }

  .footer {
    padding-bottom: 32px;
  }

  .legal-head {
    padding-top: 72px;
    padding-bottom: 32px;
  }

  .legal-section h2 {
    font-size: 24px;
    line-height: 30px;
  }
}
