:root {
  color-scheme: light dark;
  --bg: #0f1419;
  --bg-elevated: #161d26;
  --text: #e8eef5;
  --text-muted: #9aa7b2;
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --max: 960px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-elevated: #ffffff;
    --text: #121826;
    --text-muted: #5c667a;
    --accent: #1b6ef3;
    --accent-soft: rgba(27, 110, 243, 0.12);
    --border: rgba(18, 24, 38, 0.08);
    --shadow: 0 12px 32px rgba(18, 24, 38, 0.08);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-note {
  margin: 0 0 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 0.875rem;
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: transparent;
}

.features {
  padding: 2.5rem 0 1rem;
}

.features h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.download {
  padding: 2.5rem 0 4rem;
}

.download h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.download-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.store-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-store {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  min-width: 10rem;
}

.btn-store:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
