:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #111111;
  --surface-soft: #161616;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #a7a7a7;
  --muted-strong: #d3d3d3;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  padding: 24px 0;
  text-decoration: none;
}

.brand img,
.brand-logo {
  display: block;
  width: auto;
  height: 84px;
  max-width: none;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a,
.site-footer a,
.app-links a {
  text-decoration: none;
  color: var(--muted-strong);
  transition: color 160ms ease;
}

.nav a:hover,
.site-footer a:hover,
.app-links a:hover {
  color: var(--text);
}

.hero {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}

.eyebrow,
.app-status {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 32px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--text);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--text);
  color: var(--bg);
}

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 1.15rem;
}

.apps-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  min-height: 280px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.app-card-muted {
  background: var(--surface-soft);
}

.app-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
}

.app-card h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.app-card p:not(.app-status) {
  color: var(--muted);
}

.app-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 650;
}

.site-footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0;
}

.legal {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
  padding: 96px 0 120px;
}

.legal-header {
  margin-bottom: 60px;
}

.back-link {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.legal h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.legal-subtitle {
  color: var(--muted);
  font-size: 1.2rem;
}

.legal-content {
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.legal-content p {
  margin-bottom: 24px;
}

.legal-content a {
  color: var(--text);
}

.effective-date {
  padding-top: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
  }

  .brand {
    padding: 18px 0;
  }

  .brand img,
  .brand-logo {
    width: auto;
    height: 34px;
    max-width: none;
  }

  .nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 590px;
  }

  .section {
    padding: 80px 0;
  }

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

  .app-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 34px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .nav a:nth-child(1) {
    display: none;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .app-card {
    padding: 22px;
  }
}
