/* ===== Guest Landing Page ===== */
/* Static CSS — renders without JS. Linked in index.html <head>.
   Hardcoded values (not Tailwind vars) because this loads before the SPA. */

/* Pre-paint visibility control */
.likely-authed #seo-hero { display: none !important; }
.route-enter #seo-hero { display: none !important; }
/* 2026-08-16: /ui (UI preview + gate check) — full-bleed .pv page; hide the
   static hero AND the fixed static footer so they can't overlap it. */
.route-ui #seo-hero { display: none !important; }
.route-ui #site-footer-static { display: none !important; }

#seo-hero {
  background: #0D1826;
  color: #fff;
  margin: 0;
  padding: 0;
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#seo-hero a { color: #D6A44F; }

/* --- Sticky nav --- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(13, 24, 38, 0.92); /* --chrome leather, 92% for blur */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(214, 164, 79, 0.15);
}
.landing-brand {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #D6A44F;
  letter-spacing: 0.04em;
}
.landing-nav-links { display: flex; gap: 8px; align-items: center; }
.landing-nav-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: color 0.15s;
}
.landing-nav-link:hover { color: #fff; }
.landing-nav-cta {
  background: #E8611C;
  color: #fff !important;
  font-weight: 600;
}
.landing-nav-cta:hover { background: #C24F14; color: #fff; }

/* --- Hero (two-column: text + map screenshot) --- */
.landing-hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='none' stroke='%23D6A44F' stroke-opacity='0.06' stroke-width='1.4'%3E%3Cpath d='M20 380 C120 300 90 210 200 170 S380 90 400 30'/%3E%3Cpath d='M0 340 C110 270 80 190 190 150 S360 70 420 20'/%3E%3Cpath d='M40 420 C140 330 110 230 220 190 S400 110 420 60'/%3E%3C/g%3E%3C/svg%3E");
}
.landing-hero-content { max-width: 540px; position: relative; z-index: 1; text-align: left; }
.landing-hero-content .landing-subtitle { margin-left: 0; }
.landing-hero-content .landing-cta-row { justify-content: flex-start; }
/* Hero visual = the game map/chrome screenshot (the "looks like Civ" money shot) */
.landing-hero-visual { position: relative; z-index: 1; }
.landing-hero-visual img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(214, 164, 79, 0.25);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.landing-hero-watch {
  display: inline-block;
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: #D6A44F;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.landing-hero-watch:hover { color: #fff; }
.landing-kicker {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #D6A44F;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.landing-headline {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.18;
  margin: 0 0 24px;
  color: #fff;
}
.landing-subtitle {
  font-family: 'Bitter', Georgia, serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 30em;
  margin: 0 auto 32px;
}
.landing-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing-cta-primary {
  background: #E8611C;
  color: #fff !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.15s;
}
.landing-cta-primary:hover { background: #C24F14; }
.landing-cta-secondary {
  background: transparent;
  color: #D6A44F !important;
  border: 1px solid #D6A44F;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 0.15s;
}
.landing-cta-secondary:hover { background: rgba(214, 164, 79, 0.1); }
.landing-microcopy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  margin: 16px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}

/* --- Section headings --- */
.landing-section {
  padding: 64px 24px;
  max-width: 960px;
  margin: 0 auto;
}
.landing-section h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #D6A44F;
  text-align: center;
  margin: 0 0 40px;
}

/* --- Showcase --- */
.landing-showcase { background: #152232; }
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.landing-card {
  background: #0D1826;
  border: 1px solid rgba(214, 164, 79, 0.12);
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  transition: border-color 0.2s;
}
.landing-card:hover { border-color: rgba(214, 164, 79, 0.4); }
.landing-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.landing-card figcaption {
  padding: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Public Sans', sans-serif;
}

/* --- Demo video (thumbnail-swap pattern) --- */
.landing-demo { background: #0D1826; text-align: center; }
.landing-video-wrap {
  max-width: 720px;
  margin: 0 auto;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(214, 164, 79, 0.15);
}
.landing-video-poster { width: 100%; display: block; }
.landing-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(232, 97, 28, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.landing-video-wrap:hover .landing-play-btn { background: rgba(194, 79, 20, 0.95); }
.landing-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: #D6A44F;
  margin: 14px 0 0;
  letter-spacing: 0.04em;
}

/* --- How it works --- */
.landing-howto { background: #152232; }
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}
.landing-step-num {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2.5rem;
  color: #D6A44F;
  opacity: 0.4;
  margin: 0 0 8px;
}
.landing-step h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 8px;
}
.landing-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* --- Trust block --- */
.landing-trust {
  text-align: center;
  padding: 40px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}

/* --- Final CTA --- */
.landing-final-cta {
  text-align: center;
  padding: 80px 24px;
  background: #0D1826;
  border-top: 1px solid rgba(214, 164, 79, 0.1);
}
.landing-final-cta h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0 0 24px;
}

/* --- Restyle existing SEO content for dark chrome --- */
#seo-hero .seo-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
}
#seo-hero .seo-section h2 {
  font-family: 'Cinzel', Georgia, serif;
  color: #D6A44F;
  font-size: 1.5rem;
  margin: 0 0 16px;
}
#seo-hero .seo-section p,
#seo-hero .seo-section li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}
#seo-hero details {
  background: #152232;
  border: 1px solid rgba(214, 164, 79, 0.1);
  border-radius: 6px;
  padding: 0;
  margin: 0 0 12px;
  overflow: hidden;
}
#seo-hero details summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #D6A44F;
  font-size: 0.95rem;
  list-style: none;
}
#seo-hero details summary::-webkit-details-marker { display: none; }
#seo-hero details summary::before { content: '▸ '; color: rgba(214, 164, 79, 0.5); }
#seo-hero details[open] summary::before { content: '▾ '; }
#seo-hero details[open] { background: #0D1826; }
#seo-hero details > div, #seo-hero details > p {
  padding: 0 18px 14px;
  color: rgba(255, 255, 255, 0.7);
}
#seo-hero .seo-nav {
  text-align: center;
  padding: 32px 24px;
}
#seo-hero .seo-nav a {
  display: inline-block;
  margin: 4px 8px;
  font-size: 0.85rem;
  text-decoration: underline;
  color: rgba(214, 164, 79, 0.7);
}

/* --- Responsive --- */
@media (max-width: 880px) {
  /* Stack the two-column hero on tablet/mobile */
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 32px;
  }
  .landing-hero-content { text-align: center; }
  .landing-hero-content .landing-subtitle { margin-left: auto; margin-right: auto; }
  .landing-hero-content .landing-cta-row { justify-content: center; }
}
@media (max-width: 640px) {
  .landing-nav { padding: 10px 16px; }
  .landing-brand { font-size: 0.95rem; }
  .landing-nav-link { padding: 6px 12px; font-size: 0.8rem; }
  .landing-hero { min-height: auto; padding: 48px 20px; }
  .landing-cta-row { flex-direction: column; align-items: stretch; }
  .landing-cta-primary, .landing-cta-secondary { text-align: center; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
