:root {
  --bg: #0b0f17;
  --bg-soft: #111827;
  --surface: #151c2c;
  --border: #1f2a44;
  --text: #e6ecf5;
  --text-muted: #9aa6bc;
  --accent: #6ea8ff;
  --accent-strong: #4f8cff;
  --gradient: linear-gradient(135deg, #6ea8ff 0%, #a78bfa 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --border: #e3e8f1;
    --text: #0e1424;
    --text-muted: #5a6478;
    --accent: #2f6bff;
    --accent-strong: #1f56e6;
    --shadow: 0 12px 32px rgba(15, 30, 60, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav a { color: var(--text-muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}
.hero .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.hero .icon-wrap img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-store-badge {
  display: inline-block;
  transition: transform 0.15s ease;
}
.app-store-badge:hover { transform: translateY(-1px); }
.app-store-badge img { height: 54px; display: block; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }

/* Features */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.section .lede {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 40px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 20px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Legal pages */
.legal {
  padding: 72px 0 96px;
}
.legal h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--text-muted);
  margin: 0 0 36px;
  font-size: 15px;
}
.legal h2 {
  margin-top: 36px;
  font-size: 22px;
}
.legal h3 {
  margin-top: 22px;
  font-size: 18px;
}
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .hero { padding: 56px 0 40px; }
  .hero .icon-wrap img { width: 96px; height: 96px; border-radius: 22px; }
  .section { padding: 48px 0; }
}
