/* ═══════════════════════════════════════════════════════════
   Latinitas – Landing Page Styles
   Theme: Warm Sanctuary (dark) / Swiss Guard (light)
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Dark theme (default) */
  --bg: #1A1412;
  --bg-card: #252019;
  --bg-elevated: #2E2821;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --gold-dim: #A07D2E;
  --gold-faint: rgba(212, 168, 67, 0.12);
  --cream: #F5E6C8;
  --cream-dim: #C4B69A;
  --text-primary: #F0E8DC;
  --text-secondary: #9A8E82;
  --text-muted: #756A5E;
  --border: #3D352D;
  --red: #E8534A;
  --green: #4CAF6A;
  --blue: #6BA3D6;
  --purple: #B088D4;
  --on-gold: #1A1412;
  --shadow: rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #E2E9F4;
    --bg-card: #FFFFFF;
    --bg-elevated: #D0D9EA;
    --gold: #D4940A;
    --gold-light: #E8B030;
    --gold-dim: #A87208;
    --gold-faint: #ECD8A8;
    --cream: #14203A;
    --cream-dim: #2E3E5C;
    --text-primary: #0A1020;
    --text-secondary: #3D4E66;
    --text-muted: #5C6E88;
    --border: #7E94B8;
    --red: #CC2233;
    --green: #158C3C;
    --blue: #1B3A8C;
    --purple: #6A2CC0;
    --on-gold: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

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

/* ─── Typography ────────────────────────────────────────── */
.brand-font {
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  font-weight: 700;
}

.body-font {
  font-family: 'Crimson Pro', 'Georgia', serif;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.nav-brand {
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-faint) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}

.hero-tagline {
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--cream-dim);
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-dim);
  margin: 0 auto 24px;
  border: none;
}

/* ─── Store Badges ──────────────────────────────────────── */
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.store-badge {
  height: 52px;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 8px;
}

.store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ─── Feature Cards ─────────────────────────────────────── */
.features {
  padding: 60px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─── Modules Section ───────────────────────────────────── */
.modules {
  padding: 60px 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s;
}

.module-card:hover {
  transform: translateY(-2px);
}

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

.module-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.module-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Section Headings ──────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 16px;
}

.section-heading h2 {
  color: var(--gold);
  font-size: 1.75rem;
  letter-spacing: 1px;
}

.section-heading p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--gold-dim);
  margin: 0 auto 16px;
  border: none;
}

/* ─── CTA Section ───────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 80px 24px;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-faint) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  color: var(--gold);
  font-size: 1.75rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
}

.cta p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

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

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--on-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

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

.btn-outline:hover {
  background: var(--gold-faint);
  transform: translateY(-2px);
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── Legal Pages ───────────────────────────────────────── */
.legal-page {
  padding: 60px 0 80px;
}

.legal-page h1 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .effective-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legal-page h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-page ul,
.legal-page ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ─── Support Page ──────────────────────────────────────── */
.support-page {
  padding: 60px 0 80px;
}

.support-page h1 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}

.support-page .support-intro {
  color: var(--text-secondary);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 40px;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.support-card .support-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.support-card h3 {
  color: var(--gold);
  margin-bottom: 8px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.faq-section {
  margin-top: 48px;
}

.faq-section h2 {
  color: var(--gold);
  text-align: center;
  margin-bottom: 24px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-item h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ─── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ─── Cross (decorative) ───────────────────────────────── */
.cross-decoration {
  color: var(--gold-dim);
  font-size: 1.5rem;
  opacity: 0.5;
  display: block;
  text-align: center;
  margin: 32px 0;
  letter-spacing: 16px;
}
