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

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-border: #e2e6ec;
  --color-text: #1a1a2e;
  --color-text-secondary: #555770;
  --color-accent: #2C5AA0;
  --color-accent-light: #e8eef7;
  --color-accent-hover: #1e4580;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 720px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0e0e1a;
    --color-surface: #1a1a2e;
    --color-border: #2a2a40;
    --color-text: #e8e8f0;
    --color-text-secondary: #9898b0;
    --color-accent: #5b8fd9;
    --color-accent-light: #1a2540;
    --color-accent-hover: #7aaaf0;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Navigation ─────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports (backdrop-filter: blur(12px)) {
  .nav {
    background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  }
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* ── Layout ─────────────────────────────── */

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

.page-content {
  padding: 48px 0 96px;
}

/* ── Hero ────────────────────────────────── */

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

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .hero-logo {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}

.hero .cta:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.app-store-badge {
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.8;
}

/* ── Sections ────────────────────────────── */

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ── Feature grid ────────────────────────── */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── How it works ────────────────────────── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.step-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ── Footer ──────────────────────────────── */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

/* ── Legal pages ─────────────────────────── */

.legal h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .effective-date {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--color-text);
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero .tagline {
    font-size: 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .page-content {
    padding: 32px 0 64px;
  }
}
