:root {
  color-scheme: light;
  --canvas: oklch(91.5% 0.025 302);
  --paper: oklch(97.5% 0.01 302);
  --graphite: oklch(21% 0.018 292);
  --graphite-raised: oklch(28% 0.02 292);
  --muted: oklch(47% 0.02 292);
  --rule: oklch(76% 0.03 302);
  --lilac: oklch(70% 0.11 302);
  --lilac-strong: oklch(53% 0.14 302);
  --lilac-bright: oklch(79% 0.13 302);
  --focus: oklch(49% 0.16 302);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.page-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: clamp(20px, 2.2vw, 34px) clamp(22px, 4vw, 68px) 0;
}

.brand,
.github-link {
  display: inline-flex;
  align-items: center;
  color: var(--graphite);
  text-decoration: none;
}

.brand {
  gap: 11px;
  font-size: 1.1rem;
  font-weight: 820;
  letter-spacing: -0.045em;
  transition:
    color 180ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.brand img {
  width: 34px;
  height: 34px;
  transition: transform 260ms var(--ease-out);
}

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

.brand:hover img {
  transform: rotate(-10deg) scale(1.08);
}

.brand:active {
  transform: scale(0.97);
}

.github-link {
  position: relative;
  gap: 7px;
  min-height: 40px;
  padding: 0 0 2px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    color 180ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.github-link::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms var(--ease-out);
}

.github-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms var(--ease-out);
}

.github-link:hover {
  color: var(--lilac-strong);
  transform: translateY(-1px);
}

.github-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.github-link:hover svg {
  transform: translate(2px, -2px);
}

.github-link:active {
  transform: translateY(0) scale(0.96);
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(500px, 1.12fr);
  align-items: center;
  width: min(100%, 1600px);
  margin: 0 auto;
  gap: clamp(44px, 6vw, 110px);
  padding: clamp(42px, 4.4vw, 82px) clamp(22px, 4vw, 68px)
    clamp(38px, 4vw, 70px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: arrive 700ms var(--ease-out) both;
}

.eyebrow {
  margin: 0 0 clamp(18px, 2.1vw, 30px);
  color: var(--lilac-strong);
  font-size: clamp(0.73rem, 0.8vw, 0.86rem);
  font-weight: 780;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.8rem, 6.2vw, 7.5rem);
  font-weight: 830;
  letter-spacing: -0.038em;
  line-height: 0.9;
  word-spacing: 0.035em;
}

h1 span {
  display: inline-block;
  margin-top: 0.08em;
  color: var(--lilac-strong);
}

.intro {
  max-width: 35rem;
  margin: clamp(24px, 2.5vw, 38px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 46px);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.release-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--lilac-strong);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.release-status[hidden] {
  display: none;
}

.release-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: status-pulse 1.8s ease-in-out infinite;
}

.download-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--graphite);
  border-radius: 11px;
  font-weight: 760;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition:
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 150ms var(--ease-out);
}

.download-button {
  padding: 0 14px 0 20px;
  background: var(--graphite);
  color: var(--paper);
  cursor: default;
  opacity: 1;
  box-shadow: 0 7px 0 oklch(53% 0.14 302 / 0.45);
}

.download-button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.66;
}

.download-button:not([aria-disabled="true"]) {
  cursor: pointer;
}

.download-button:not([aria-disabled="true"]):hover {
  background: var(--graphite-raised);
  box-shadow: 0 10px 0 oklch(53% 0.14 302 / 0.52);
  transform: translateY(-3px) scale(1.012);
}

.download-button:not([aria-disabled="true"]):active {
  box-shadow: 0 2px 0 oklch(53% 0.14 302 / 0.4);
  transform: translateY(3px) scale(0.985);
}

.download-button svg {
  flex: 0 0 auto;
  width: 19px;
  height: 22px;
  overflow: visible;
  fill: currentColor;
  transition: transform 180ms var(--ease-out);
}

.download-button:not([aria-disabled="true"]):hover svg {
  transform: translateY(2px);
}

.demo {
  min-width: 0;
  animation: arrive 800ms 90ms var(--ease-out) both;
}

.demo-window {
  overflow: hidden;
  border: 1px solid var(--graphite);
  border-radius: clamp(16px, 1.6vw, 24px);
  background: var(--paper);
  box-shadow: clamp(9px, 1.1vw, 16px) clamp(9px, 1.1vw, 16px) 0
    var(--graphite);
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid var(--graphite);
  background: var(--paper);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  background: var(--lilac);
}

.window-dots span:nth-child(2) {
  background: var(--canvas);
}

.window-dots span:nth-child(3) {
  background: var(--graphite);
}

.window-label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 730;
  letter-spacing: 0.035em;
}

.window-mark {
  justify-self: end;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.demo-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--graphite);
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid oklch(97.5% 0.01 302 / 0.65);
  border-radius: 10px;
  background: oklch(21% 0.018 292 / 0.88);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 4px 14px oklch(12% 0.01 292 / 0.28);
  transition:
    background 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.video-toggle:hover {
  background: var(--lilac-strong);
  box-shadow: 0 7px 18px oklch(12% 0.01 292 / 0.34);
  transform: translateY(-2px) scale(1.05);
}

.video-toggle:active {
  box-shadow: 0 2px 8px oklch(12% 0.01 292 / 0.25);
  transform: translateY(1px) scale(0.92);
}

.video-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.video-toggle .play-icon,
.video-toggle[data-state="paused"] .pause-icon {
  display: none;
}

.video-toggle[data-state="paused"] .play-icon {
  display: block;
}

.install-strip {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.72fr)
    minmax(570px, 2.55fr)
    minmax(190px, 0.88fr);
  align-items: center;
  min-height: 96px;
  gap: clamp(28px, 3.5vw, 68px);
  padding: 17px clamp(22px, 4vw, 68px);
  background: var(--graphite);
  color: var(--paper);
}

.strip-intro,
.strip-meta {
  display: flex;
  flex-direction: column;
}

.strip-intro {
  gap: 7px;
}

.strip-meta {
  align-items: flex-end;
  gap: 8px;
}

.strip-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 730;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.strip-note,
.privacy {
  margin: 0;
  color: oklch(77% 0.022 302);
  font-size: 0.7rem;
  font-weight: 620;
  line-height: 1.4;
}

.strip-note {
  max-width: 13rem;
}

.legal-links {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 680;
}

.legal-links a {
  display: inline-flex;
  color: oklch(81% 0.025 302);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 160ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.legal-links a:hover {
  color: var(--paper);
  transform: translateY(-1px);
}

.legal-links a:active {
  transform: translateY(1px) scale(0.96);
}

.strip-label {
  color: var(--lilac-bright);
}

.install-strip ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 54px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.76rem, 0.85vw, 0.92rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.install-strip li span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--lilac);
  border-radius: 50%;
  color: var(--lilac-bright);
  font-size: 0.65rem;
  font-weight: 820;
}

.privacy {
  max-width: 18rem;
  text-align: right;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(300px, 0.78fr) minmax(440px, 1.22fr);
    gap: 42px;
  }

  h1 {
    font-size: clamp(3.5rem, 5.8vw, 5.35rem);
  }

  .install-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .strip-intro {
    align-items: baseline;
    flex-direction: row;
    gap: 18px;
  }

  .strip-note {
    max-width: none;
  }

  .strip-meta {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .privacy {
    max-width: none;
    text-align: left;
  }
}

@media (min-width: 861px) and (max-height: 850px) {
  .site-header {
    padding-top: 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .hero {
    gap: clamp(34px, 4vw, 62px);
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.68rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.4rem, 5.35vw, 4.8rem);
    line-height: 0.9;
  }

  .intro {
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .actions {
    margin-top: 20px;
  }

  .download-button {
    min-height: 50px;
  }

  .window-bar {
    min-height: 42px;
  }

  .install-strip {
    min-height: 82px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    overflow: visible;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 64px;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(3.8rem, 12vw, 6.6rem);
  }

  .intro {
    max-width: 34rem;
  }

  .demo-window {
    box-shadow: 9px 9px 0 var(--graphite);
  }

  .install-strip {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .install-strip ol {
    gap: 14px;
  }

}

@media (max-width: 620px) {
  .site-header {
    padding-top: 18px;
  }

  .hero {
    gap: 56px;
    padding-top: 54px;
    padding-bottom: 62px;
  }

  .eyebrow {
    max-width: 20rem;
    line-height: 1.4;
  }

  h1 {
    font-size: clamp(3.3rem, 15vw, 5rem);
  }

  .actions {
    gap: 14px;
  }

  .download-button {
    justify-content: center;
  }

  .action-buttons {
    width: 100%;
  }

  .download-button {
    flex: 1 1 220px;
    justify-content: center;
  }

  .window-label {
    display: none;
  }

  .window-bar {
    grid-template-columns: 1fr 1fr;
  }

  .install-strip ol {
    grid-template-columns: 1fr;
  }

  .strip-intro,
  .strip-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@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;
  }
}
