/* === Design Tokens (matching iOS app) === */
:root {
  --bg: #F8F6F2;
  --bg-dark: #1A1A2E;
  --surface: #FFFFFF;
  --surface-dark: #252547;
  --surface-light: #E8E4DE;
  --border: #DDD8D0;
  --text-primary: #1A1A2E;
  --text-secondary: #6B6B8D;
  --text-disabled: #B0A8C0;
  --marigold: #F5A623;
  --magenta: #E91E8C;
  --purple: #6B2FA0;
  --teal: #2ABFBF;
  --red: #E04050;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* === Nav === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

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

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

/* === Hero === */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 24px 48px;
  overflow: hidden;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
  text-decoration: underline dotted var(--text-disabled);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.hero-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  background: rgba(107, 47, 160, 0.08);
  border-radius: 20px;
}

.hero-subtitle {
  margin-top: 56px;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* === CTA Button === */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #C06088);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(224, 64, 80, 0.25);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 64, 80, 0.35);
}

.cta-icon { flex-shrink: 0; }

/* === Sections === */
.section {
  padding: 56px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-dark);
  color: #F5F0E8;
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.section-dark .section-title { color: #F5F0E8; }

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 36px;
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
}

.step { text-align: center; }

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 14px;
}

.step-icon svg { width: 24px; height: 24px; }

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* === Languages Grid === */
.languages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s;
}

.lang-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-radius: 50%;
}

/* === Features === */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

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

.feature-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple);
  margin-bottom: 6px;
}

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

/* === CTA Section === */
.section-cta {
  text-align: center;
  padding: 56px 24px 72px;
}

.cta-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
}

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

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

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

.footer-copy {
  font-size: 13px;
  color: var(--text-disabled);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* === Legal Pages === */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 13px;
  color: var(--text-disabled);
  margin-bottom: 40px;
}

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

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

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

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

.legal a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(107, 47, 160, 0.3);
  text-underline-offset: 2px;
}

.legal a:hover {
  text-decoration-color: var(--purple);
}

/* === Support Page === */
.support-card {
  margin-top: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.support-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.support-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}

/* === Responsive === */
@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 16px; }
  .hero { min-height: 60vh; padding: 48px 20px 36px; }
  .hero-subtitle { font-size: 16px; }
  .section { padding: 44px 20px; }
  .section-title { font-size: 24px; margin-bottom: 28px; }
  .cta-button { padding: 14px 24px; font-size: 15px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .features { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta-title { font-size: 26px; }
}
