:root {
  color-scheme: dark;
  --background: #0f1117;
  --card: #171a22;
  --text: #f4f1ea;
  --muted: #b8b0a3;
  --line: #2a2f3a;
  --accent: #d7b46a;
  --accent-dark: #9a742b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(15, 17, 23, 0.46), rgba(15, 17, 23, 0.9)),
    url("/assets/hero-background.png") center / cover no-repeat;
}

body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(15, 17, 23, 0.08), rgba(15, 17, 23, 0.62));
}

a {
  color: inherit;
}

.page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 32px 20px;
}

.page-center {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
}

.card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(23, 26, 34, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-card {
  max-width: 680px;
  padding: clamp(32px, 8vw, 72px);
  text-align: center;
}

.brand {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  border-radius: 12px;
  text-decoration: none;
}

.app-store-link img {
  display: block;
  width: min(220px, 82vw);
  height: auto;
}

.app-store-link:focus-visible,
.site-footer a:focus-visible,
.legal-back:focus-visible {
  outline: 3px solid rgba(215, 180, 106, 0.45);
  outline-offset: 4px;
}

.contact {
  margin: 28px 0 0;
  color: var(--muted);
}

.contact a,
.legal a,
.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 20px 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal {
  max-width: 760px;
}

.legal-card {
  padding: clamp(24px, 6vw, 56px);
}

.legal h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
}

.legal p {
  margin: 12px 0;
  color: var(--muted);
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal li + li {
  margin-top: 10px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 520px) {
  .page {
    padding: 20px 14px;
  }

  .hero-card,
  .legal-card {
    border-radius: 18px;
  }

  .app-store-link img {
    width: min(200px, 78vw);
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
