:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101014;
    --fg: #f5f5f7;
    --muted: #98989d;
    --card: #1b1b20;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --accent-fg: #0b0b0e;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
  text-align: center;
}

.app-icon {
  width: 112px;
  height: 112px;
}

h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.tagline {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.subtitle {
  max-width: 30rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-fg);
}

.fineprint {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.sunburst-wrap {
  margin-top: 2.5rem;
}

#sunburst {
  max-width: 100%;
  touch-action: manipulation;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1.5rem;
}

footer a {
  color: inherit;
}
