:root {
  color-scheme: dark;
  --bg: #10082f;
  --surface: #20105a;
  --surface-soft: #2f1875;
  --text: #fff;
  --muted: #cdc5f4;
  --accent: #ff8a00;
  --line: rgba(255, 255, 255, 0.14);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 5%, rgba(92, 64, 255, 0.55), transparent 34rem),
    linear-gradient(160deg, #180746, var(--bg) 45%, #08031c);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: #fff;
  color: #111;
  border-radius: .5rem;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 8, 47, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  max-width: var(--max);
  margin: auto;
  min-height: 4.5rem;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .65rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a, footer a { color: var(--muted); }
nav a:hover, footer a:hover { color: #fff; }

main { min-height: 70vh; }

.hero {
  max-width: var(--max);
  margin: auto;
  padding: 5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  color: #ffb35c;
  font-weight: 750;
  letter-spacing: .08em;
}

h1, h2, h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: .4rem 0 1rem;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  letter-spacing: -.055em;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.app-icon {
  width: min(100%, 20rem);
  justify-self: center;
  border-radius: 25%;
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, .45);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: .8rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #241000;
}

.section {
  max-width: var(--max);
  margin: auto;
  padding: 2.5rem 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(65, 37, 143, .72), rgba(26, 11, 74, .82));
}

.card p, .muted { color: var(--muted); }

.score {
  font-variant-numeric: tabular-nums;
  color: #ffd7a6;
}

.document {
  max-width: 760px;
  margin: auto;
  padding: 3.5rem 1.25rem 5rem;
}

.document h1 {
  font-size: clamp(2rem, 7vw, 3.8rem);
}

.document h2 {
  margin-top: 2.5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
  font-size: 1.4rem;
}

.document a { color: #ffb35c; }

.notice {
  padding: 1rem 1.2rem;
  border-left: .25rem solid var(--accent);
  background: rgba(255, 138, 0, .1);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: auto;
  padding: 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 720px) {
  .nav { align-items: flex-start; }
  nav ul { justify-content: flex-end; font-size: .9rem; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-copy { order: 2; }
  .app-icon { order: 1; width: 9rem; }
  .grid { grid-template-columns: 1fr; }
}

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