:root {
  --bg: #0b0f14;
  --bg-alt: #121822;
  --card: #161d29;
  --border: #232c3a;
  --text: #eef2f6;
  --text-muted: #9aa7b6;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --radius: 16px;
  --max-width: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --border: #e4e8ee;
    --text: #131a24;
    --text-muted: #5b6673;
    --accent: #2f6fed;
    --accent-soft: rgba(47, 111, 237, 0.08);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 24px 0;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-left: 28px;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

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

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

.btn-store {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 9px 16px;
  cursor: default;
}

.btn-store.enabled {
  color: var(--text);
  cursor: pointer;
  border-color: var(--accent);
}

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

/* Apps section */
.apps {
  padding: 40px 0 96px;
}

.apps h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.apps .section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 48px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card .app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card img.icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.app-card .tagline {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.app-card .description {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  flex-grow: 1;
}

.app-card .store-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer a {
  text-decoration: none;
  color: var(--text-muted);
}

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