/* ── Google Fonts ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Custom Properties ──────────────────────────────── */
:root {
  --blue:      #0033a0;
  --blue-dark: #001a6e;
  --blue-mid:  #1a56db;
  --gold:      #d4af37;
  --dark:      #1a1a3e;
  --light-bg:  #f0f4ff;
  --white:     #ffffff;
  --muted:     #666666;
  --border:    #dde3ff;
  --radius:    12px;
  --max-w:     1100px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.12s;
  text-align: center;
}
.btn:hover  { opacity: 0.9; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold  { background: var(--gold); color: var(--dark); }
.btn--sm    { padding: 10px 22px; font-size: 13px; }

/* ── Sticky Nav ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  padding: 14px 0;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  box-shadow: 0 2px 12px rgba(0,0,51,0.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover         { background: rgba(255,255,255,0.25); color: var(--white); }
.lang-btn--active       { background: rgba(255,255,255,0.3);  color: var(--white); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.png');
  background-image: image-set(url('assets/hero.webp') type("image/webp"), url('assets/hero.png') type("image/png"));
  background-size: cover;
  background-position: center 32%;
  transform: scale(1.03);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 211, 110, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(6, 12, 29, 0.18) 0%, rgba(4, 10, 24, 0.62) 42%, rgba(5, 8, 18, 0.88) 100%),
    linear-gradient(135deg, rgba(8, 28, 84, 0.78) 0%, rgba(9, 17, 36, 0.58) 46%, rgba(182, 129, 19, 0.18) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 104px 24px 96px;
  max-width: 820px;
}
.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 24px;
}
.hero__tagline {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.18;
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero__subline {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.7;
  opacity: 0.88;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero__trust {
  font-size: 13px;
  opacity: 0.78;
  margin-top: 16px;
  letter-spacing: 0.2px;
}

/* ── Stats Bar ──────────────────────────────────────── */
.stats {
  background: var(--white);
  padding: 40px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  position: relative;
  z-index: 1;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 16px;
}
.stats__value {
  font-size: 38px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.stats__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.stats__intro {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--blue-dark);
  margin-bottom: 22px;
}

.story-intro {
  padding: 72px 0 20px;
  background: var(--white);
}

.story-intro--light {
  background: var(--light-bg);
}

.story-intro__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.story-intro__headline {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.9px;
  color: var(--dark);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}


/* ── Feature Sections ────────────────────────────────── */
.feature {
  padding: 56px 0 88px;
}
.feature--alt {
  background: var(--light-bg);
}

.feature__grid {
  display: flex;
  gap: 64px;
  align-items: center;
}
/* Desktop alternation is achieved by DOM order in HTML:
   text-first → text left, image right
   image-first → image left, text right
   Mobile order is fixed via the order properties in the responsive block. */

.feature__text { flex: 1; }
.feature__img  { flex: 1; }

.feature__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.feature__label--blue   { color: var(--blue); }
.feature__label--gold   { color: var(--gold); }
.feature__label--purple { color: #7c3aed; }
.feature__label--green  { color: #16a34a; }
.feature__headline {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
}
.feature__body {
  font-size: 17px;
  line-height: 1.75;
  color: #555;
}

/* Screenshot — background shows as placeholder when src is missing */
.screenshot {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  object-fit: cover;
  background: linear-gradient(135deg, var(--border), var(--light-bg));
  margin: 0 auto;
}

/* ── Mid-Page CTA Interrupt ──────────────────────────── */
.cta-interrupt {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}
.cta-interrupt__copy {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* ── Closing CTA ─────────────────────────────────────── */
.closing-cta {
  background: linear-gradient(160deg, var(--blue), var(--blue-dark));
  padding: 108px 0;
  text-align: center;
  color: var(--white);
}
.closing-cta__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.closing-cta__headline {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 16px;
}
.closing-cta__sub {
  font-size: 18px;
  opacity: 0.72;
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.closing-cta__trust {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 16px;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 28px 0;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__logo {
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}
.footer__meta {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}
.footer__meta a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer__meta a:hover { color: var(--white); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .feature__grid {
    flex-direction: column;
    gap: 36px;
  }
  /* Always show text before image on mobile regardless of DOM order */
  .feature__img  { order: 2; }
  .feature__text { order: 1; }
  .screenshot { max-width: 100%; max-height: 60vh; }

  .story-intro {
    padding: 56px 0 12px;
  }

  .story-intro__headline {
    font-size: clamp(24px, 8vw, 32px);
  }

  /* Hide nav CTA on small screens — hero CTA is visible */
  .nav__cta { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { letter-spacing: -2px; }
  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── Privacy Page ────────────────────────────────────── */
.privacy-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
  color: var(--dark);
}
.privacy-body h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.privacy-body .last-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}
.privacy-body h2 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--blue);
}
.privacy-body p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 16px;
}
.privacy-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.privacy-body li {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 8px;
}
.privacy-body a {
  color: var(--blue);
  text-decoration: underline;
}
.privacy-back-link {
  margin-top: 40px;
}
