:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #14141A;
  --muted: #5B5B66;
  --accent: #3D3BB8;
  --accent-text: #FFFFFF;
  --border: #E6E6EC;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101014;
    --surface: #1A1A20;
    --text: #ECECF1;
    --muted: #A4A4B0;
    --accent: #8F8DF2;
    --accent-text: #101014;
    --border: #2A2A33;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header, main, .site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.wordmark {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }

.hero { padding: 56px 0 40px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero p { margin: 0; color: var(--muted); font-size: 19px; max-width: 36em; }

.apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 8px 0 56px;
}

@media (min-width: 720px) {
  .apps { grid-template-columns: repeat(3, 1fr); }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 22%;
}

.app-name { margin: 8px 0 0; font-size: 20px; }
.app-copy { margin: 0; color: var(--muted); flex: 1; }

.play-link {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease;
}
.play-link:hover { transform: translateY(-1px); }

.contact { padding: 0 0 56px; }
.contact h2 { margin: 0 0 4px; font-size: 24px; }
.contact a { font-weight: 600; font-size: 19px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play-link { transition: none; }
  .play-link:hover { transform: none; }
}
