/* ═══════════════════════════════════════════════════════════
   FORTIFY — Design System v2.0
   Bold + Empowering art direction
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Inter:wght@400;500;600;700&display=swap');
@import url('/css/tokens.css');

/* ─── SHARED TOKENS (from tokens.css) ──────────────────── */
/* tokens.css defines: --navy, --navy-deep, --navy-mid,
   --plum, --plum-dark, --gold, --gold-light, --cream,
   --font-display, --font-body, --t-*, --sp-*, --ease-* */

/* ─── APP-SPECIFIC TOKENS ──────────────────────────────── */
/* Maps tokens.css brand colors to /app variable names */
:root {
  /* App background layers */
  --bg:           var(--navy);
  --bg-deep:      var(--navy-deep);
  --bg-mid:       var(--navy-mid);
  --bg-plum:      rgba(74, 31, 74, 0.15);
  --bg-card:      rgba(22, 36, 71, 0.6);
  --bg-elevated:  rgba(22, 36, 71, 0.8);
  --bg-gold-tint: rgba(212, 175, 55, 0.06);

  /* Text on dark backgrounds */
  --fg:           var(--cream);
  --fg-muted:     rgba(245, 241, 232, 0.5);
  --fg-dim:       rgba(245, 241, 232, 0.28);

  /* Accent = brand gold */
  --accent:       var(--gold);
  --accent-light: var(--gold-light);
  --accent-glow:  var(--gold-glow);

  /* Borders */
  --border:       rgba(212, 175, 55, 0.08);
  --border-soft:  rgba(245, 241, 232, 0.06);
  --border-plum:  rgba(74, 31, 74, 0.3);

  /* Surfaces */
  --plum-surface: rgba(46, 16, 48, 0.5);
  --plum-border:  rgba(74, 31, 74, 0.35);

  /* Semantic */
  --green:        #4CAF7A;

  /* Spacing overrides for app scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  40px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.22s; }
.anim-delay-3 { animation-delay: 0.34s; }
.anim-delay-4 { animation-delay: 0.46s; }
.anim-delay-5 { animation-delay: 0.58s; }
.anim-delay-6 { animation-delay: 0.70s; }

/* ─── LAYOUT ──────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* ─── STICKY NAV ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-3) 0;
  background: rgba(15, 27, 61, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  animation: slideDown 0.5s var(--ease-out);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(212, 175, 55, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 241, 232, 0.25);
}

.btn-ghost:hover {
  background: rgba(245, 241, 232, 0.07);
  border-color: rgba(245, 241, 232, 0.4);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--t-xs);
  border-radius: 8px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--t-lg);
  border-radius: 16px;
}

/* ─── TRUST LINE ──────────────────────────────────────── */
.trust-line {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--t-xs);
  color: rgba(245, 241, 232, 0.55);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-line .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/generated-images/company_121241/01ab2153-1c28-459d-8973-bae6ef172727.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(15, 27, 61, 0.97) 0%, rgba(15, 27, 61, 0.88) 50%, rgba(15, 27, 61, 0.4) 100%),
    radial-gradient(ellipse at 80% 50%, rgba(74, 31, 74, 0.25) 0%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-4);
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 100px;
}

.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: var(--sp-4);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
}

.hero-subhead {
  font-size: var(--t-lg);
  color: rgba(245, 241, 232, 0.72);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--sp-5);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* ─── STATS BAR ───────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-7) 0;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-item {
  text-align: center;
  padding: var(--sp-4);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.03em;
  display: block;
}

.stat-label {
  font-size: var(--t-sm);
  color: rgba(245, 241, 232, 0.5);
  margin-top: 6px;
  line-height: 1.4;
}

/* ─── FEATURES — ALTERNATING ASYMMETRIC ROWS ───────────── */
.features {
  padding: var(--sp-8) 0;
  background: var(--navy);
}

.features-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-3);
  padding: 4px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-7) 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
}

.feature-row:last-child { border-bottom: none; }

.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 27, 61, 0.3) 0%, transparent 60%);
}

.feature-icon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.feature-content { padding: var(--sp-3) 0; }

.feature-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: var(--sp-3);
}

.feature-desc {
  font-size: var(--t-body);
  color: rgba(245, 241, 232, 0.6);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
  max-width: 420px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.feature-tag {
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.feature-tag--gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.feature-tag--plum {
  background: rgba(74, 31, 74, 0.3);
  color: #C99FD4;
  border: 1px solid rgba(74, 31, 74, 0.5);
}

/* ─── STATEMENT BAND ───────────────────────────────────── */
.statement {
  padding: var(--sp-8) 0;
  background: var(--plum);
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(74, 31, 74, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
}

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

.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 800px;
  margin: 0 auto;
}

.statement-quote em { color: var(--gold); }

/* ─── HOW IT WORKS ────────────────────────────────────── */
.how-it-works {
  padding: var(--sp-8) 0;
  background: var(--navy-deep);
  position: relative;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.how-step {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  background: var(--navy);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.08);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.how-step:hover {
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateY(-4px);
}

.how-step-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 900;
  color: rgba(212, 175, 55, 0.12);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.how-step-title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: var(--sp-3);
}

.how-step-desc {
  font-size: var(--t-body);
  color: rgba(245, 241, 232, 0.55);
  line-height: 1.7;
}

.how-step-icon {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ─── FINAL CTA ────────────────────────────────────────── */
.final-cta {
  padding: var(--sp-8) 0;
  background: linear-gradient(to bottom, var(--navy-deep) 0%, #030810 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: var(--sp-4);
}

.final-cta-headline em {
  font-style: italic;
  color: var(--gold);
}

.final-cta-sub {
  font-size: var(--t-lg);
  color: rgba(245, 241, 232, 0.55);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #020509;
  border-top: 1px solid rgba(212, 175, 55, 0.06);
  padding: var(--sp-6) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: var(--t-xs);
  color: rgba(245, 241, 232, 0.35);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: var(--sp-4);
}

.footer-links a {
  font-size: var(--t-xs);
  color: rgba(245, 241, 232, 0.4);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: var(--t-xs);
  color: rgba(245, 241, 232, 0.25);
  width: 100%;
  text-align: center;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(245, 241, 232, 0.06);
  margin-top: var(--sp-4);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .feature-row--reverse { direction: ltr; }
  .feature-visual { max-height: 260px; }
  .how-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --t-display: clamp(2.4rem, 9vw, 3.5rem);
    --t-h1:      clamp(1.9rem, 7vw, 2.6rem);
  }

  .container { padding: 0 var(--sp-3); }
  .hero { padding: 100px 0 60px; min-height: auto; }

  .hero-glow { display: none; }

  .nav-wordmark { font-size: 1.1rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .stats-bar { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .stat-item { padding: var(--sp-3); }

  .feature-row { padding: var(--sp-6) 0; }
  .feature-num { font-size: 3rem; }

  .how-step { padding: var(--sp-5) var(--sp-4); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

/* ─── FOCUS STATES ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}