:root {
  color-scheme: light;
  --ink: #10161f;
  --muted: #566072;
  --paper: #f6f8fa;
  --panel: #ffffff;
  --line: #dbe3ec;
  --accent: #184e8b;
  --accent-light: #1b76a8;
  --accent-dark: #12395f;
  --on-accent: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef6;
  --muted: #a3b3c7;
  --paper: #0e1622;
  --panel: #172335;
  --line: #2c3b54;
  --accent: #5ea7dd;
  --accent-light: #93c5ec;
  --accent-dark: #93c5ec;
  --on-accent: #0e1622;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

main, header, footer {
  width: min(760px, 92vw);
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 0.9rem;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 16px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

nav a:hover, nav a:focus-visible { color: var(--accent-dark); }

#theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

#theme-toggle:hover, #theme-toggle:focus-visible {
  border-color: var(--accent);
}

section { padding: 40px 0; }

section + section { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; overflow-wrap: break-word; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

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

.button {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.card.featured {
  margin-bottom: 16px;
  padding: 24px;
  border-color: var(--accent);
  border-width: 2px;
}

.card .app-tagline {
  color: var(--accent-dark);
  font-weight: 700;
}

.card .app-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag.soon {
  background: var(--line);
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card p { color: var(--muted); }
.card a { font-weight: 800; }

ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.plain li { margin-bottom: 14px; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}
