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

:root {
  --navy:    #1a2744;
  --navy-dk: #0f1729;
  --gold:    #c9a227;
  --gold-lt: #e8c55a;
  --white:   #ffffff;
  --off-white: #f5f3ee;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --card-bg: #ffffff;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
  --radius:  12px;
  --max-w:   1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--alt { background: var(--off-white); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  background: var(--navy-dk);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.nav__logo {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}

.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  white-space: nowrap;
  transition: color .2s;
}

.nav__links a:hover { color: var(--gold-lt); text-decoration: none; }

.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 16px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.6);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  transition: all .2s;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dk);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '✡';
  position: absolute;
  font-size: 360px;
  opacity: .03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--gold-lt);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 12px;
}

.hero__tagline {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-dk);
}

.btn--gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,.35);
  text-decoration: none;
  color: var(--navy-dk);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--navy-dk);
  text-decoration: none;
}

/* ── Features grid ───────────────────────────────────────────────────────── */
.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Principle banner ─────────────────────────────────────────────────────── */
.principle {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.principle__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-lt);
  margin-bottom: 16px;
}

.principle__text {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Download section ────────────────────────────────────────────────────── */
.download {
  text-align: center;
  padding: 80px 24px;
}

.download__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.download__subtitle {
  color: var(--muted);
  margin-bottom: 32px;
}

.store-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: .95rem;
  transition: opacity .2s;
}

.store-badge:hover { opacity: .85; text-decoration: none; color: #fff; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact {
  background: var(--off-white);
  text-align: center;
  padding: 60px 24px;
}

.contact__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact__text { color: var(--muted); margin-bottom: 8px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 32px 24px;
  font-size: .875rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer__links a { color: rgba(255,255,255,.6); }
.footer__links a:hover { color: var(--gold); text-decoration: none; }

/* ── Privacy / Delete pages ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--gold-lt);
  margin-bottom: 8px;
}

.page-hero__sub {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}

.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.prose p, .prose li {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: .975rem;
  line-height: 1.75;
}

.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); }

/* Delete account page */
.method-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.method-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.method-card__title .badge {
  background: var(--gold);
  color: var(--navy-dk);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.steps { list-style: none; counter-reset: steps; padding: 0; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.steps li::before {
  content: counter(steps);
  background: var(--navy);
  color: white;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.note {
  background: #fef3cd;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: .9rem;
  color: #7a5c00;
  margin-top: 16px;
}

.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .95rem;
}
.checklist li::before { content: '✓'; color: #16a34a; font-weight: 700; }

.email-link {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  color: var(--navy) !important;
  font-weight: 600;
  margin: 12px 0;
  font-size: 1rem;
}

/* ── RTL support ─────────────────────────────────────────────────────────── */
[dir="rtl"] .nav__links  { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-switcher { border-left: none; border-right: 1px solid rgba(255,255,255,.15); padding-left: 0; padding-right: 16px; }
[dir="rtl"] .prose ul    { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .steps li    { flex-direction: row; }
[dir="rtl"] .prose h2    { border-bottom: none; border-top: 2px solid var(--gold); padding-top: 8px; }
[dir="rtl"] .method-card__title { flex-direction: row-reverse; }
[dir="rtl"] .checklist li { flex-direction: row-reverse; }
[dir="rtl"] .note { border-left: none; border-right: 4px solid var(--gold); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav__links a:not(.lang-btn) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
