:root {
  color-scheme: light;
  --bg: #1A1528;
  --card: #251E36;
  --text: #F0ECF8;
  --muted: #A89BD4;
  --accent: #9B8FD8;
  --accent-2: #F2A65A;
  --border: #362D4A;
  --success: #5BBD8A;
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #251E36 0%, #1A1528 55%) fixed;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

/* ── Header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--accent-2);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

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

/* ── Hero ── */
.hero {
  background: linear-gradient(145deg, rgba(124,107,196,0.15), rgba(242,166,90,0.08));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px 32px;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.appstore-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.appstore-badge:hover { opacity: 0.8; }

/* ── Section Title ── */
.section-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 28px;
  color: var(--text);
}

/* ── Features Grid ── */
.features {
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Privacy Banner ── */
.privacy-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(91,189,138,0.1), rgba(124,107,196,0.08));
  border: 1px solid rgba(91,189,138,0.25);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.privacy-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.privacy-banner h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--success);
}

.privacy-banner p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card p + p {
  margin-top: 10px;
}

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

/* ── Migration Section ── */
.migration h2 {
  color: var(--accent-2);
}

/* ── Twisty Section ── */
.twisty-section h2 {
  color: var(--accent-2);
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 20px;
}

.cta-section h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 36px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  background: #7C6BC4;
  transform: translateY(-1px);
}

/* ── Disclaimer ── */
.disclaimer {
  background: rgba(232,115,108,0.06);
  border-color: rgba(232,115,108,0.2);
}

.disclaimer p {
  font-size: 0.9rem;
}

/* ── Footer ── */
footer {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

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

footer p {
  color: var(--muted);
}

/* ── General links ── */
a { color: var(--accent-2); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero {
    padding: 32px 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .privacy-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cta-section h2 {
    font-size: 1.3rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 12px 28px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Language switch (used on other pages) ── */
.lang-switch {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(242,166,90,0.2);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  margin-left: 8px;
}
