/* Geo-Blitz Landing Page styles.
   Brand: cream paper #f1e7d2, ink #221410, dark #1d120e, rust #c14a2f, gold #b89968. */

:root {
  --cream: #f1e7d2;
  --cream-2: #e8dcc1;
  --cream-3: #ddd0b1;
  --ink: #221410;
  --ink-soft: #3a241c;
  --dark: #1d120e;
  --dark-2: #2a1b14;
  --rust: #c14a2f;
  --rust-2: #a23c25;
  --gold: #b89968;
  --gold-soft: #d8b986;
  --muted: #6e4f3d;
  --muted-dark: #a98963;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Geist Mono', monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Topographic background motif */
.topo {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
.topo svg { display: block; }

/* Reusable wrappers */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 0;
  text-wrap: balance;
}
.h-display em {
  font-style: italic;
  color: var(--rust);
}
[dir="rtl"] .h-display {
  font-family: 'Amiri', 'Noto Naskh Arabic', 'Arabic', serif;
  letter-spacing: 0;
  line-height: 1.15;
}

.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 14px 0 0;
}
.h-section em { font-style: italic; color: var(--rust); }
[dir="rtl"] .h-section { line-height: 1.18; letter-spacing: 0; }

.lede {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 22px 0 0;
}

/* Page numbers / decorative rules */
.rule-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.rule-row .rule { flex: 1; height: 1px; background: currentColor; opacity: 0.3; }

/* ------------------ NAVIGATION ------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 231, 210, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 20, 16, 0.08);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--rust); }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--rust);
  transition: width 220ms ease;
}
.nav-links a:hover::after { width: 100%; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(34, 20, 16, 0.06);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: inherit;
  transition: all 160ms ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active {
  background: var(--ink);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ------------------ HERO ------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy { min-width: 0; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 220ms ease, background 220ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 14px 28px rgba(34, 20, 16, 0.22), 0 2px 6px rgba(34, 20, 16, 0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px rgba(34, 20, 16, 0.3); }
.btn-secondary {
  background: var(--cream);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink), 0 4px 0 rgba(34, 20, 16, 0.04);
}
.btn-secondary:hover { background: var(--cream-2); transform: translateY(-2px); }
.btn-rust {
  background: var(--rust);
  color: var(--cream);
  box-shadow: 0 14px 28px rgba(193, 74, 47, 0.32);
}
.btn-rust:hover { background: var(--rust-2); transform: translateY(-2px); }
.btn .glyph { font-size: 16px; }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(34, 20, 16, 0.18);
}
.hero-stat .n {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Hero phone display */
.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}
.device-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1.15;
}
.device {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64%;
  aspect-ratio: 1080 / 2340;
  border-radius: 38px;
  background: #1a110d;
  padding: 8px;
  box-shadow: 0 50px 80px rgba(45, 28, 18, 0.32), 0 20px 40px rgba(45, 28, 18, 0.22);
}
.device.behind-left {
  left: -10%;
  top: 8%;
  transform: rotate(-8deg);
  width: 52%;
  opacity: 0.85;
  z-index: 1;
}
.device.behind-right {
  right: -10%;
  top: 8%;
  left: auto;
  transform: rotate(8deg);
  width: 52%;
  opacity: 0.85;
  z-index: 1;
}
.device.center { z-index: 3; }
.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--cream);
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* iOS-style status bar overlay for hero device */
.ios-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 7.4%;
  background: var(--cream);
  border-radius: 30px 30px 0 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  pointer-events: none;
}

@media (max-width: 980px) {
  .hero { padding: 56px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-device { order: 2; min-height: 480px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .hero-stat .n { font-size: 32px; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------ SECTIONS ------------------ */
section { position: relative; overflow: hidden; }
.section-pad { padding: 110px 0; }
.section-dark {
  background: var(--dark);
  color: var(--cream);
}
.section-dark .h-section, .section-dark .h-display { color: var(--cream); }
.section-dark .lede { color: var(--muted-dark); }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-dark .rule-row { color: var(--muted-dark); }

/* Features grid */
.features-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-card {
  background: var(--dark);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-height: 260px;
  transition: background 220ms ease;
}
.feature-card:hover { background: var(--dark-2); }
.feature-card .ix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-card .ix .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust);
}
.feature-card .ft-t {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--cream);
}
.feature-card .ft-d {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-dark);
}
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr; } }

/* Modes section — staggered cards */
.modes-list {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mode-row {
  display: grid;
  grid-template-columns: 0.4fr 1fr 0.4fr;
  align-items: center;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid rgba(34, 20, 16, 0.18);
}
.mode-row:last-child { border-bottom: 1px solid rgba(34, 20, 16, 0.18); }
.mode-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
}
.mode-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rust);
  text-transform: uppercase;
}
.mode-title {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mode-desc {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.mode-thumb {
  justify-self: end;
  width: 130px;
  aspect-ratio: 1080 / 2340;
  border-radius: 18px;
  background: var(--dark);
  padding: 4px;
  overflow: hidden;
  box-shadow: 0 20px 36px rgba(34, 20, 16, 0.2);
}
.mode-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
}
@media (max-width: 760px) {
  .mode-row { grid-template-columns: 80px 1fr; gap: 20px; }
  .mode-tag { font-size: 56px; }
  .mode-title { font-size: 32px; }
  .mode-thumb { display: none; }
}

/* Screens — marquee gallery */
.screens-gallery {
  margin-top: 56px;
  position: relative;
  display: flex;
  gap: 28px;
  padding: 32px 0 56px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.screens-gallery::-webkit-scrollbar { display: none; }
.screen-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.screen-frame {
  width: 100%;
  aspect-ratio: 1080 / 2340;
  border-radius: 28px;
  background: #1a110d;
  padding: 6px;
  box-shadow: 0 30px 50px rgba(34, 20, 16, 0.18);
  position: relative;
}
.screen-frame .screen-screen {
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 22px;
}
.screen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen-card .cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  padding: 0 8px;
  line-height: 1.5;
}

/* Premium section */
.premium-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--cream);
}
.perks-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--rust);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 5px;
  transform: rotate(45deg);
}
.premium-card {
  position: relative;
  padding: 44px 36px;
  background: var(--cream);
  border-radius: 24px;
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.premium-card .crown {
  font-family: var(--serif);
  font-style: italic;
  font-size: 96px;
  line-height: 0.9;
  color: var(--rust);
}
.premium-card .pc-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.05;
}
.premium-card .pc-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 8px;
}
@media (max-width: 880px) {
  .premium-grid { grid-template-columns: 1fr; gap: 36px; }
  .perks-list { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid rgba(34, 20, 16, 0.16);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(34, 20, 16, 0.16); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: inherit;
  padding: 0;
  font-weight: 500;
}
.faq-q .marker {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(34, 20, 16, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--mono);
  color: var(--ink);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.faq-item.open .marker {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, margin-top 320ms ease;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}
.faq-item.open .faq-a { max-height: 400px; margin-top: 18px; }

/* Final CTA */
.cta-final {
  position: relative;
  padding: 130px 0;
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.cta-final .h-display { color: var(--cream); }
.cta-final .lede { color: var(--muted-dark); margin-inline: auto; }
.cta-final .hero-cta { justify-content: center; }
.cta-final .eyebrow { color: var(--gold-soft); }
.cta-final .eyebrow::before, .cta-final .eyebrow::after { display: none; }
.cta-final .eyebrow { display: inline-block; }

/* Footer */
footer {
  background: var(--dark-2);
  color: var(--muted-dark);
  padding: 80px 0 32px;
  font-family: var(--mono);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .brand {
  color: var(--cream);
}
.footer-brand p { margin: 0; max-width: 36ch; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--muted-dark); transition: color 160ms; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ----------- Legal page (privacy/terms) ----------- */
.legal-page {
  display: none;
  padding: 80px 0 100px;
  min-height: 60vh;
}
.legal-page.active { display: block; }
.legal-page .back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}
.legal-page .back:hover { color: var(--ink); }
[dir="rtl"] .legal-page .back svg { transform: scaleX(-1); }
.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  margin: 0;
  line-height: 1.05;
  color: var(--ink);
  font-weight: 500;
}
.legal-page .legal-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 12px;
}
.legal-intro {
  margin: 32px 0 48px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-sections .legal-section {
  padding: 32px 0;
  border-top: 1px solid rgba(34, 20, 16, 0.16);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.legal-sections .legal-section:last-child { border-bottom: 1px solid rgba(34, 20, 16, 0.16); }
.legal-sections h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
  color: var(--ink);
}
.legal-sections p {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .legal-sections .legal-section { grid-template-columns: 1fr; gap: 14px; }
}

/* When showing legal, hide main */
.is-legal main { display: none; }

/* Hide section dark dividers seam */
.section-dark + .section-dark { border-top: none; }

/* Subtle reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
