:root {
  --accent: #007aff;
  --accent-dark: #0a84ff;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --hero-gradient: linear-gradient(160deg, #e8f2ff 0%, #f5f5f7 45%, #f5f5f7 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --accent-dark: #409cff;
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --border: rgba(255, 255, 255, 0.1);
    --hero-gradient: linear-gradient(160deg, #0a1628 0%, #000000 50%, #000000 100%);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.logo:hover {
  text-decoration: none;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}

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

/* Hero */

.hero {
  background: var(--hero-gradient);
  padding: 72px 0 88px;
  text-align: center;
}

.hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.hero .tagline {
  font-size: clamp(19px, 2.5vw, 24px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.app-store-badge {
  height: 54px;
  width: auto;
}

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

/* Sections */

section {
  padding: 80px 0;
}

section.alt {
  background: var(--bg-elevated);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-intro {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 48px;
}

/* Features */

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

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

section.alt .feature-card {
  background: var(--bg);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

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

/* Platforms */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
}

/* Legal / Support pages */

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.page-hero .meta {
  color: var(--text-secondary);
  font-size: 15px;
}

.prose {
  padding: 48px 0 80px;
  max-width: 720px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--text-secondary);
  line-height: 1.65;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 8px;
}

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

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-box {
  margin-top: 48px;
  padding: 28px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  max-width: 720px;
}

.contact-box h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.contact-box p {
  margin: 0;
  color: var(--text-secondary);
}

/* Footer */

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

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Mobile nav */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .site-header .container {
    position: relative;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }
}
