/* ============================================================
   TÁCTICA USDt — landing.css
   Landing-page-only styles. Scoped to avoid collision with
   brand.css / rebrand.css used by the live functional pages.
   Source: tactical-redesign/css/pages.css + landing <style> block.
   ============================================================ */

/* ============================================================
   MISSING TOKENS (not in tactica-rebrand/css/brand.css — sourced
   from tactical-redesign/css/brand.css §1 Tokens)
   ============================================================ */

:root {
  /* Typography */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-ui:      'Rajdhani', 'Arial Narrow', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;

  /* Layout */
  --container:     1240px;
  --container-pad: clamp(16px, 5vw, 48px);
}

/* ============================================================
   NAVIGATION — topbar + mobile drawer
   (tactica-rebrand/css/brand.css does not include these rules;
    copied from tactical-redesign/css/brand.css §10 Navigation)
   ============================================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(27,30,36,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 rgba(200,155,60,0.15), 0 4px 20px rgba(0,0,0,.4);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  gap: var(--sp-6);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.topbar__logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
  line-height: 1;
}
.topbar__logo-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 2px;
}
/* En celular, solo el escudo: "FINAL MARCH" (136px) empujaba "Ranking" debajo de "Entrar" a 390px.
   Mismo criterio que .brandline-txt en css/topbar.css (guardián: server/marca-visible.test.js). */
@media (max-width:480px){.topbar__logo-text{display:none}}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar__nav a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r);
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}
.topbar__nav a:hover,
.topbar__nav a.active {
  color: var(--ivory);
  background: rgba(255,255,255,0.06);
}
.topbar__nav a.active {
  color: var(--gold-hi);
  background: rgba(200,155,60,0.08);
}

/* Hamburger — hidden on desktop, shown on mobile */
.topbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px 8px;
}
.topbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}

.topbar__account {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Mobile nav drawer — hidden by default, only visible when .open added via JS */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(27,30,36,.98);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) var(--sp-4);
  z-index: 99;
  flex-direction: column;
  gap: var(--sp-1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: var(--r);
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--ivory);
  background: rgba(255,255,255,0.06);
}

/* Responsive: ≤768px — hide desktop nav, show hamburger */
@media (max-width: 768px) {
  .topbar__nav     { display: none; }
  .topbar__hamburger { display: flex; }
}
/* ≥769px — ensure mobile drawer stays hidden */
@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
}

/* ---- HERO BASE ---- */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* VARIANT B — art/image (default) */
#hero-variant-b {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-variant-b .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
#hero-variant-b .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27,30,36,.72) 0%,
    rgba(27,30,36,.40) 40%,
    rgba(27,30,36,.12) 100%
  );
}
#hero-variant-b .hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 65% 40%, rgba(143,47,47,.08) 0%, transparent 65%),
    radial-gradient(ellipse 1400px 900px at 72% -10%, #2a2f3a 0%, transparent 65%),
    var(--obsidian);
  display: none;
}
#hero-variant-b .hero-img[data-failed="true"] + .hero-scrim { display: none; }
#hero-variant-b .hero-img[data-failed="true"] ~ .hero-fallback { display: block; }

/* Hero content */
.lp-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 120px 80px;
}
.lp-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(200,155,60,.1);
  border: 1px solid rgba(200,155,60,.25);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 28px;
  margin-top: 32px;
}
.lp-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  max-width: 700px;
  margin-bottom: 24px;
}
.lp-hero__headline .line-gold {
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero__tagline {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.lp-hero__cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lp-hero__cta-row .btn-gold {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* FACTION TRIANGLE SECTION DIVIDER */
.lp-faction-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-block: 48px;
  position: relative;
  overflow: hidden;
}
.lp-faction-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.lp-faction-divider__nodes {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--obsidian);
  padding: 0 16px;
  position: relative;
  z-index: 1;
  max-width: 100%;
  flex-wrap: nowrap;
}
@media (max-width: 480px) {
  .lp-faction-divider__nodes { gap: 8px; padding: 0 12px; }
  .lp-faction-node__arrow { font-size: 14px !important; }
  .lp-faction-node__shield { width: 40px !important; height: 44px !important; }
}
.lp-faction-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lp-faction-node__shield {
  width: 52px;
  height: 58px;
  clip-path: polygon(50% 0%, 100% 22%, 100% 68%, 50% 100%, 0% 68%, 0% 22%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-faction-node__shield--caos   { background: linear-gradient(160deg, rgba(143,47,47,.6) 0%, rgba(80,20,20,.9) 100%); }
.lp-faction-node__shield--orden  { background: linear-gradient(160deg, rgba(46,95,155,.6) 0%, rgba(20,50,90,.9) 100%); }
.lp-faction-node__shield--natura { background: linear-gradient(160deg, rgba(86,112,77,.6) 0%, rgba(40,70,40,.9) 100%); }
.lp-faction-node__name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lp-faction-node__arrow {
  font-size: 20px;
  color: var(--border-2);
  margin-top: -4px;
}

/* PROOF / GRID SECTION */
.lp-proof-section {
  padding-block: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(35,39,47,.3) 50%, transparent 100%);
}
.lp-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .lp-proof-grid { grid-template-columns: 1fr; gap: 40px; }
}
.lp-proof__caption {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-top: var(--sp-4);
}
.lp-proof__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 6px;
}
.lp-proof__legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.lp-proof__legend-dot--unit   { background: rgba(46,95,155,.4);  border: 2px solid rgba(74,130,204,.7); }
.lp-proof__legend-dot--move   { background: rgba(200,155,60,.18); border: 2px solid rgba(200,155,60,.55); }
.lp-proof__legend-dot--result { background: rgba(111,174,95,.22); border: 2px solid rgba(111,174,95,.65); }
.lp-proof__legend-dot--enemy  { background: rgba(143,47,47,.35);  border: 2px solid rgba(224,96,96,.65); }

/* POT MATH STRIP */
.lp-pot-strip {
  background: var(--obsidian-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 32px;
}
.lp-pot-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.lp-pot-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 32px;
  text-align: center;
}
.lp-pot-step__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-hi);
}
.lp-pot-step__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-pot-arrow {
  font-size: 1.2rem;
  color: var(--border-2);
  padding-inline: 8px;
  align-self: center;
}

/* HOW IT WORKS */
.lp-how-section { padding-block: 80px; }
.lp-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.lp-how-card {
  padding: var(--sp-6);
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}
.lp-how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-lo));
  opacity: 0.5;
}
.lp-how-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(200,155,60,.15);
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.lp-how-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ivory);
  margin-bottom: var(--sp-2);
}
.lp-how-card__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}
.lp-how-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 7px;
}

/* CTA BAND */
.lp-cta-band {
  padding-block: 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 50%, rgba(200,155,60,.05) 0%, transparent 70%);
  pointer-events: none;
}
.lp-cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.lp-cta-band__sub {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.6;
}
.lp-cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FOOTER */
.lp-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  background: var(--obsidian);
}
.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lp-footer-copy {
  font-size: var(--text-xs);
  color: var(--dim);
  line-height: 1.6;
}
.lp-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-footer-links a {
  font-size: var(--text-xs);
  color: var(--dim);
  transition: color 0.18s;
}
.lp-footer-links a:hover { color: var(--muted); }

/* GAME MODES GRID */
.lp-modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .lp-modes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .lp-modes-grid { grid-template-columns: 1fr; }
}

/* Mode card — uniform height */
.lp-mode-card {
  padding: var(--sp-5);
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s, transform 0.22s;
}
.lp-mode-card:hover {
  border-color: var(--gold-lo);
  transform: translateY(-3px);
}
.lp-mode-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
}
.lp-mode-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.lp-mode-card__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.lp-mode-card__status {
  margin-top: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lp-mode-card__badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
}

/* Board — 10×10 demo (smaller cells to fit reasonably) */
.lp-board-10x10 {
  display: grid;
  grid-template-columns: repeat(10, 32px);
  grid-template-rows: repeat(10, 32px);
  gap: 2px;
  background: rgba(27,30,36,.6);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 3px;
  box-shadow:
    0 0 0 1px rgba(200,155,60,.08),
    inset 0 0 32px rgba(0,0,0,.4),
    0 8px 32px rgba(0,0,0,.5);
}
.lp-bc {
  width: 32px;
  height: 32px;
  background: var(--obsidian-3);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lp-bu {
  background: rgba(46,95,155,.25);
  border-color: rgba(74,130,204,.7);
  box-shadow: inset 0 0 10px rgba(46,95,155,.3), 0 0 6px rgba(74,130,204,.2);
}
.lp-bm {
  background: rgba(200,155,60,.12);
  border-color: rgba(200,155,60,.5);
  box-shadow: inset 0 0 6px rgba(200,155,60,.1);
}
.lp-bm::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(200,155,60,.35);
  border-radius: 2px;
}
.lp-br {
  background: rgba(111,174,95,.18);
  border-color: rgba(111,174,95,.65);
  box-shadow: inset 0 0 10px rgba(111,174,95,.2), 0 0 8px rgba(111,174,95,.2);
}
.lp-be {
  background: rgba(143,47,47,.28);
  border-color: rgba(224,96,96,.65);
  box-shadow: inset 0 0 10px rgba(143,47,47,.3), 0 0 6px rgba(143,47,47,.2);
}
/* Leader cell — special glow */
.lp-bl {
  background: rgba(224,96,96,.35);
  border-color: rgba(224,96,96,.9);
  box-shadow: inset 0 0 12px rgba(224,96,96,.4), 0 0 12px rgba(224,96,96,.3);
}

/* Telegraph arrow over 10×10 */
.lp-telegraph-arrow {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(10 * 32px + 9 * 2px);
  height: calc(10 * 32px + 9 * 2px);
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .lp-telegraph-arrow path { animation: none !important; }
}

/* Board container: relative for arrow overlay */
.lp-board-wrap {
  display: inline-block;
  position: relative;
}

/* Ember particles */
.lp-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
