/* ═══════════════════════════════════════════════════════════
   INFINITY KINGDOM — WARLORD LANDING PAGE
   style.css
   ═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════
   1. DESIGN TOKENS
   Edit this block to retheme the entire page.
   ═══════════════════════════════════════ */
:root {
  --gold:      #C9912A;
  --gold2:     #F0C555;
  --gold3:     #FFE8A0;
  --deep:      #06080F;
  --card:      #0C1020;
  --card2:     #111829;
  --card3:     #162036;
  --teal:      #1EC9A8;
  --purple:    #7C4DCC;
  --text:      #EDE8D8;
  --muted:     #7A8099;
  --border:    rgba(201,145,42,.15);
  --border2:   rgba(255,255,255,.07);
  --radius:    14px;
  --max:       1100px;
  --ff-head:   'Cinzel', Georgia, serif;
  --ff-body:   'Barlow', system-ui, sans-serif;
}


/* ═══════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--deep);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* Disable text selection on non-interactive elements (CRO) */
p, h1, h2, h3, h4, h5, li, span, div { user-select: none; }


/* ═══════════════════════════════════════
   3. ANIMATED CANVAS BACKGROUND
   ═══════════════════════════════════════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
}


/* ═══════════════════════════════════════
   4. OS GATE — full-screen block for non-Windows
   ═══════════════════════════════════════ */
#os-gate {
  display: none; /* toggled to flex by script.js */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6,8,15,.97);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.gate-card {
  background: var(--card2);
  border: 1px solid rgba(220,60,50,.35);
  border-radius: 22px;
  padding: 48px 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
}

.gate-icon { font-size: 56px; margin-bottom: 18px; display: block; }

.gate-card h2 {
  font-family: var(--ff-head);
  font-size: 22px;
  color: #FF8585;
  margin-bottom: 14px;
}

.gate-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.gate-skip {
  margin-top: 24px;
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--muted);
  cursor: pointer;
  padding-bottom: 2px;
}


/* ═══════════════════════════════════════
   5. LEGAL POPUPS (Privacy / Cookies / Terms)
   ═══════════════════════════════════════ */
.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8888;
  background: rgba(6,8,15,.93);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-overlay.active { display: flex; }

.legal-modal {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
}

.legal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.legal-header h3 {
  font-family: var(--ff-head);
  font-size: 17px;
  color: var(--gold2);
}

.legal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  transition: all .15s;
  flex-shrink: 0;
}

.legal-close:hover { background: rgba(255,255,255,.12); color: var(--text); }

.legal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-body h4 {
  font-family: var(--ff-head);
  font-size: 14px;
  color: var(--gold2);
  margin: 20px 0 8px;
}

.legal-body p { margin-bottom: 10px; }

.legal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.legal-footer p { font-size: 12px; color: var(--muted); }


/* ═══════════════════════════════════════
   6. BUTTONS — all CTAs point to affiliate link
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover  { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(0px);  filter: brightness(.97);  }

/* Gold — primary CTA */
.btn-gold {
  padding: 15px 32px;
  background: linear-gradient(135deg, #D4A030 0%, #9A6A10 100%);
  color: #1C0E00;
  box-shadow: 0 8px 32px rgba(212,160,48,.32), inset 0 1px 0 rgba(255,255,255,.18);
}

.btn-gold:hover { box-shadow: 0 14px 44px rgba(212,160,48,.48); }

/* Extra-large modifier */
.btn-xl { padding: 18px 40px; font-size: 17px; border-radius: 13px; }

/* Ghost — secondary action */
.btn-ghost {
  padding: 13px 26px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid var(--border2);
  box-shadow: none;
}

.btn-ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }


/* ═══════════════════════════════════════
   7. NAVIGATION
   ═══════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 500;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(6,8,15,.85);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-brand { display: flex; align-items: center; gap: 11px; }

.nav-crown {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(201,145,42,.3);
}

.nav-name {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold2);
  letter-spacing: .03em;
}

.nav-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(201,145,42,.05);
}


/* ═══════════════════════════════════════
   8. HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 80px 24px 0;
  text-align: center;
}

/* Ambient glow orbs */
.hero-glow-l {
  position: absolute;
  width: 700px; height: 700px;
  top: -250px; left: -200px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .1;
  filter: blur(130px);
  pointer-events: none;
}

.hero-glow-r {
  position: absolute;
  width: 500px; height: 500px;
  top: -100px; right: -150px;
  border-radius: 50%;
  background: var(--purple);
  opacity: .12;
  filter: blur(110px);
  pointer-events: none;
}

/* Animated live dot (eyebrow) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold2);
  border: 1px solid rgba(201,145,42,.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(201,145,42,.07);
  position: relative;
  z-index: 1;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: ldot 1.8s ease-in-out infinite;
}

@keyframes ldot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.65); }
}

/* Gradient headline */
.hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(36px, 6.5vw, 74px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.01em;
  background: linear-gradient(140deg, var(--gold3) 0%, var(--gold2) 35%, var(--gold) 65%, #CDBB94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 19px;
  color: var(--muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.hero-sub strong { color: var(--text); }

.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Trust bar beneath hero CTA */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.trust-item { display: flex; align-items: center; gap: 7px; }
.trust-item em { color: var(--gold2); font-style: normal; }

/* ── Hero image slot ── */
.hero-img-slot {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -20px 80px rgba(201,145,42,.08), 0 0 0 1px var(--border);
}


/* ═══════════════════════════════════════
   9. IMAGE PLACEHOLDER BLOCKS
   Remove these once real images are added
   ═══════════════════════════════════════ */
.img-placeholder {
  width: 100%;
  background: var(--card2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
}

.img-placeholder .ph-icon { font-size: 40px; opacity: .4; }

.img-placeholder .ph-label {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  text-align: center;
  line-height: 1.5;
  opacity: .7;
}

/* Height presets */
.ph-hero       { height: 420px; }
.ph-feature    { height: 260px; border-radius: var(--radius); }
.ph-screenshot { height: 200px; border-radius: 12px; }
.ph-banner     { height: 180px; border-radius: var(--radius); }


/* ═══════════════════════════════════════
   10. MARQUEE TICKER
   ═══════════════════════════════════════ */
.marquee-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 15px 0;
  background: rgba(201,145,42,.04);
}

.marquee-track {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: mscroll 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes mscroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mq-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gold2);
}

.mq-stars { letter-spacing: 2px; color: #F0C555; }


/* ═══════════════════════════════════════
   11. SECTION LAYOUT
   ═══════════════════════════════════════ */
.section { position: relative; z-index: 1; }

.s-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

.s-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.s-title {
  font-family: var(--ff-head);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
}

.s-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
}

/* Striped alternate section background */
.bg-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(201,145,42,.03) 50%, transparent 100%);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
}


/* ═══════════════════════════════════════
   12. SOCIAL PROOF
   ═══════════════════════════════════════ */
.proof-stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
}

.stat-num {
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold2);
}

.stat-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.proof-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}

.proof-card:hover { border-color: rgba(201,145,42,.4); }

.proof-stars { font-size: 15px; color: #F0C555; margin-bottom: 10px; letter-spacing: 1px; }

.proof-quote {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 12px;
}

.proof-from { font-size: 12px; color: var(--muted); opacity: .6; }


/* ═══════════════════════════════════════
   13. FEATURE CARDS
   ═══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }

.feat-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all .22s;
}

.feat-card:hover {
  border-color: rgba(201,145,42,.38);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.feat-ico   { font-size: 34px; margin-bottom: 14px; display: block; }
.feat-title { font-family: var(--ff-head); font-size: 16px; color: var(--gold2); margin-bottom: 9px; }
.feat-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }

.feat-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(124,77,204,.3);
  background: rgba(124,77,204,.12);
  color: #B59EE0;
}


/* ═══════════════════════════════════════
   14. SCREENSHOTS STRIP
   ═══════════════════════════════════════ */
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 40px;
}

@media (max-width: 700px) { .screenshots-row { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════
   15. PERSONA CARDS
   ═══════════════════════════════════════ */
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .persona-grid { grid-template-columns: 1fr; } }

.persona-card {
  border-radius: 18px;
  padding: 30px 26px;
  border: 2px solid transparent;
}

.persona-war {
  background: linear-gradient(160deg, rgba(201,145,42,.07) 0%, rgba(201,145,42,.02) 100%);
  border-color: rgba(201,145,42,.28);
}

.persona-col {
  background: linear-gradient(160deg, rgba(124,77,204,.08) 0%, rgba(124,77,204,.02) 100%);
  border-color: rgba(124,77,204,.28);
}

.persona-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.persona-war .persona-tag { background: rgba(201,145,42,.14); color: var(--gold2); }
.persona-col .persona-tag { background: rgba(124,77,204,.16); color: #B59EE0; }

.persona-title { font-family: var(--ff-head); font-size: 19px; margin-bottom: 10px; }
.persona-desc  { font-size: 14px; color: var(--muted); margin-bottom: 18px; line-height: 1.65; }
.persona-list  { list-style: none; }

.persona-list li {
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0 5px 22px;
  position: relative;
}

.persona-war .persona-list li::before { content:'→'; position:absolute; left:0; color:var(--gold); }
.persona-col .persona-list li::before { content:'→'; position:absolute; left:0; color:#B59EE0; }


/* ═══════════════════════════════════════
   16. INSTALL STEPS
   ═══════════════════════════════════════ */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}

.step-num {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 900;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(201,145,42,.25);
}

.step-title { font-family: var(--ff-head); font-size: 15px; color: var(--gold2); margin-bottom: 9px; }
.step-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }


/* ═══════════════════════════════════════
   17. ACCORDION / OBJECTIONS
   ═══════════════════════════════════════ */
.accordion-list { display: flex; flex-direction: column; gap: 12px; }

.acc-item {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
}

.acc-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}

.acc-head:hover { background: rgba(201,145,42,.04); }

.acc-q   { font-weight: 600; font-size: 15px; }
.acc-ico { color: var(--gold); font-size: 18px; transition: transform .2s; flex-shrink: 0; }

.acc-item.open .acc-ico { transform: rotate(180deg); }

.acc-body {
  display: none;
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.acc-item.open .acc-body { display: block; }


/* ═══════════════════════════════════════
   18. SYSTEM REQUIREMENTS CHIPS
   ═══════════════════════════════════════ */
.sysreq-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.sys-chip {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.02);
}


/* ═══════════════════════════════════════
   19. FINAL CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(140deg, rgba(201,145,42,.1) 0%, rgba(124,77,204,.1) 100%);
  border: 1px solid rgba(201,145,42,.18);
  border-radius: 22px;
  padding: 60px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 70% at 50% 110%, rgba(201,145,42,.1), transparent 65%);
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  font-family: var(--ff-head);
  font-size: clamp(26px, 4vw, 42px);
  color: var(--gold2);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* ═══════════════════════════════════════
   20. FOOTER
   ═══════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border2);
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-legal a {
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid rgba(122,128,153,.3);
  padding-bottom: 1px;
  transition: color .15s;
}

.footer-legal a:hover { color: var(--gold2); }

footer p { line-height: 1.7; max-width: 700px; margin: 0 auto; }


/* ═══════════════════════════════════════
   21. SCROLL REVEAL ANIMATION
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }
