@font-face {
  font-family: "Instrument Sans";
  src: url("/media/InstrumentSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --accent: #ccff33;
  --ground: #101113;
  --ink: #f7f7f4;
  --muted: rgba(255, 255, 255, 0.68);
  --quiet: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.15);
  --glass: rgba(17, 20, 20, 0.58);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: -20vmax;
  background:
    radial-gradient(circle at 18% 20%, rgba(204, 255, 51, 0.18), transparent 23%),
    radial-gradient(circle at 80% 18%, rgba(58, 161, 132, 0.25), transparent 25%),
    conic-gradient(from 222deg at 62% 38%, #15171a, #273f35, #121416, #5b5b1e, #101113, #284a3e, #101113);
  content: "";
  filter: saturate(0.88);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 5, 0.18), rgba(4, 5, 5, 0.72) 72%, #101113 98%);
  content: "";
}

a {
  color: inherit;
}

.site-shell {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: max(8px, env(safe-area-inset-top));
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
}

.nav-cluster,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-cluster {
  gap: 22px;
}

.nav-links {
  gap: 20px;
}

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

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

.nav-download,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(20, 21, 24, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  text-decoration: none;
}

.nav-download {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 730;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 8vw, 104px);
  padding: clamp(54px, 9vw, 108px) 0 92px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 770px;
  margin: 16px 0 22px;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.lede {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
}

.app-store-badge img {
  display: block;
  width: 162px;
  height: auto;
}

.secondary-button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 730;
}

.device {
  position: relative;
  max-width: 414px;
  margin: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 49px;
  background: rgba(5, 6, 7, 0.56);
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
}

.device::after {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  content: "";
  pointer-events: none;
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}

.device-note {
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.steps {
  padding: 88px 0 112px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.steps h2 {
  max-width: 720px;
  margin: 10px 0 40px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--glass);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.step-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.step-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(5, 7, 7, 0.28));
  content: "";
  pointer-events: none;
}

.step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-copy {
  padding: 24px 24px 27px;
}

.step-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.06em;
}

.step h3 {
  margin: 32px 0 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--quiet);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-main {
  padding: clamp(58px, 9vw, 108px) 0 112px;
}

.legal-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.legal-intro h1 {
  margin: 14px 0 16px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-intro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.legal-card {
  width: min(100%, 780px);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--glass);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.legal-card h2 {
  margin: 36px 0 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

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

.legal-card a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.updated {
  color: var(--quiet) !important;
  font-size: 13px !important;
}

@media (max-width: 800px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    display: none;
  }

  .nav-cluster {
    gap: 10px;
  }

  .nav-download {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-copy {
    text-align: center;
  }

  .lede {
    margin-inline: auto;
  }

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

  .device {
    width: min(100%, 390px);
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-copy {
    padding: 22px 22px 26px;
  }

  .step h3 {
    margin-top: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .nav-download {
    font-size: 12px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-download,
  .secondary-button,
  .device,
  .step,
  .legal-card {
    background: #1c2020;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
