/* ============================================================
   Smash Cards — landing site
   Extends in-game brand: Cinzel + Rajdhani, gold/bone, Emberfall.
   ============================================================ */

:root {
  /* surfaces */
  --ink: #0d0a07;
  --ink-2: #1a1410;
  --ink-3: #241b13;
  --panel: rgba(28, 21, 15, 0.72);
  --line: rgba(232, 192, 116, 0.18);

  /* brand */
  --gold: #e8c074;
  --gold-bright: #f5d98a;
  --gold-deep: #b8893f;
  --bone: #ece3d0;
  --bone-dim: #b9b09c;
  --ember: #ff6a2c;
  --ember-soft: #ff8a52;

  /* races */
  --race-red: #c0392b;
  --race-white: #e8e3d6;
  --race-black: #2b2b33;

  /* rarities */
  --bronze: #a97142;
  --silver: #c8ccd0;
  --rarity-gold: #e8c074;
  --platinum: #9fe2e6;

  /* layout */
  --measure: 68rem;
  --pad-x: clamp(1.1rem, 4vw, 4rem);
  --nav-h: 4rem;
  --radius: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body.landing {
  margin: 0;
  font-family: "Rajdhani", system-ui, sans-serif;
  font-weight: 500;
  color: var(--bone);
  background:
    radial-gradient(1200px 700px at 50% -10%, #2a1d12 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 38%, #08060400 100%),
    var(--ink);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

.display { font-family: "Cinzel", serif; letter-spacing: 0.02em; }

h2, h3 { font-family: "Cinzel", serif; font-weight: 700; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-block;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  color: #2a1c08;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 6px 22px rgba(232, 192, 116, 0.28), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 106, 44, 0.4); }
.btn-ghost {
  color: var(--bone);
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-lg { font-size: 1.1rem; padding: 0.85em 2.2em; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(10,7,4,0.92), rgba(10,7,4,0.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}
.nav-logo span { color: var(--bone); margin-left: 0.25em; }
.nav-links {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.nav-links a { color: var(--bone-dim); position: relative; padding: 0.3em 0; transition: color 0.2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--ember)); transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 3rem;
  overflow: hidden;
}
.orb {
  position: absolute;
  top: 14%; left: 50%;
  width: min(70vw, 720px); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,106,44,0.32) 0%, rgba(232,192,116,0.12) 35%, transparent 68%);
  filter: blur(8px);
  animation: orbPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.embers {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 80%, rgba(255,138,82,0.9), transparent),
    radial-gradient(2px 2px at 70% 90%, rgba(232,192,116,0.8), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,106,44,0.8), transparent),
    radial-gradient(1.5px 1.5px at 85% 75%, rgba(245,217,138,0.7), transparent),
    radial-gradient(2px 2px at 55% 95%, rgba(255,138,82,0.7), transparent);
  background-repeat: no-repeat;
  animation: emberRise 9s linear infinite;
}
.hero-inner { position: relative; z-index: 2; max-width: 52rem; }
.kicker {
  font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--ember-soft); margin: 0 0 0.8rem;
}
.hero-title {
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.95;
  margin: 0;
  color: var(--gold-bright);
  text-shadow: 0 0 28px rgba(255,106,44,0.35), 0 2px 0 rgba(0,0,0,0.4);
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--bone);
  margin: 1.1rem 0 1.8rem;
  letter-spacing: 0.02em;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: relative; z-index: 2;
  font-size: 1.6rem; color: var(--gold);
  animation: bob 1.8s ease-in-out infinite;
  margin-top: 0.5rem;
}

/* ---------- card showcase (real .card-tile from WebUI card-tile.css) ---------- */
.card-trio {
  position: relative; z-index: 2;
  display: flex; gap: clamp(0.6rem, 2.5vw, 1.8rem);
  justify-content: center; align-items: flex-end;
  perspective: 1200px;
  /* clear the hero buttons even after the featured card lifts (-26px) */
  margin-top: clamp(3rem, 6vw, 4.5rem); flex-wrap: wrap;
}
/* size + fan the real card tiles (card-tile is width:100% by default) */
.card-trio .card-tile {
  width: clamp(8.5rem, 21vw, 12rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.card-trio .card-tile:first-child { transform: rotate(-7deg); }
.card-trio .card-tile:last-child { transform: rotate(7deg); }
.card-trio .card-tile.featured { transform: translateY(-26px) scale(1.07); z-index: 3; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) var(--pad-x); }
.section > .reveal, main > section > .reveal { max-width: var(--measure); margin: 0 auto; }
.section.alt { background: linear-gradient(180deg, rgba(36,27,19,0.5), rgba(13,10,7,0)); }

.ribbon { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 1.4rem; }
.ribbon-rule { height: 1px; flex: 1; max-width: 7rem; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ribbon h2 {
  margin: 0; text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--bone);
}
.lead {
  max-width: 44rem; margin: 0 auto 2.4rem; text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--bone-dim);
}
.lead strong { color: var(--gold-bright); font-weight: 700; }

/* feature grid */
.feature-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; transition: transform 0.25s var(--ease), border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); }
.feature h3 { margin: 0 0 0.5rem; color: var(--gold-bright); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--bone-dim); }

/* combat diagram */
.combat-diagram {
  display: flex; gap: clamp(1.5rem, 6vw, 4.5rem); justify-content: center; margin: 0 auto 2.6rem;
}
.rps-node {
  display: grid; place-items: center; gap: 0.1rem;
  width: clamp(7rem, 16vw, 8.5rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--ink-3), var(--ink));
  border: 1px solid var(--line); font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1;
  box-shadow: inset 0 0 18px rgba(255,106,44,0.15);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rps-node:hover { transform: translateY(-4px); box-shadow: inset 0 0 18px rgba(255,106,44,0.15), 0 0 22px rgba(255,106,44,0.3); }
.rps-node span { font-family: "Rajdhani"; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--bone-dim); }

/* rarity row */
.rarity-row { display: flex; gap: clamp(0.6rem, 2.2vw, 1.4rem); justify-content: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.rarity-row .card-tile { width: clamp(7rem, 17vw, 9.5rem); transition: transform 0.25s var(--ease); }
.rarity-row .card-tile:hover { transform: translateY(-8px); }

/* stat band */
.stat-band {
  display: flex; gap: clamp(1.5rem, 6vw, 4rem); justify-content: center; flex-wrap: wrap;
  margin-top: 1rem;
}
.stat { text-align: center; }
.stat .count {
  font-family: "Cinzel", serif; font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--gold-bright);
  display: block; line-height: 1; text-shadow: 0 0 20px rgba(255,106,44,0.25);
}
.stat label { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--bone-dim); }

/* deck strip */
.deck-strip { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.deck-card {
  width: 2.2rem; height: 3rem; border-radius: 6px;
  background: linear-gradient(160deg, var(--ink-3), #14101a);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
}
.deck-card.more { display: grid; place-items: center; color: var(--gold); font-weight: 700; font-size: 1.2rem; border-style: dashed; }

/* ladder */
.ladder { display: flex; gap: 0.5rem; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-bottom: 2.4rem; }
.rung {
  padding: 0.6em 1em; border-radius: 8px; font-family: "Cinzel", serif; font-weight: 700;
  font-size: 0.85rem; border: 1px solid var(--line); color: var(--bone);
  background: var(--panel);
}
.rung.r-bronze  { color: #d49a63; }
.rung.r-silver  { color: #d6dade; }
.rung.r-gold    { color: var(--gold-bright); }
.rung.r-plat    { color: #c4f4f7; }
.rung.r-diamond { color: #b39df0; }
.rung.r-champ {
  color: #2a1c08; background: linear-gradient(135deg, var(--gold-bright), var(--ember));
  border-color: var(--gold-bright); box-shadow: 0 6px 22px rgba(255,106,44,0.35);
  transform: translateY(-6px);
}

/* battle pass track */
.bp-track { display: flex; gap: clamp(0.4rem, 2vw, 1rem); justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 2.4rem; }
.bp-node {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; border: 1px solid var(--line); background: var(--panel); color: var(--bone-dim);
}
.bp-node.free { color: var(--bone); }
.bp-node.prem { color: var(--gold-bright); border-color: var(--gold); }
.bp-node.apex {
  color: #2a1c08; background: linear-gradient(135deg, var(--gold-bright), var(--ember));
  border-color: var(--gold-bright); transform: scale(1.18); box-shadow: 0 6px 20px rgba(255,106,44,0.4);
}

/* vault */
.vault { display: flex; gap: clamp(1.5rem, 6vw, 4rem); justify-content: center; }
.vault-coin, .vault-gem {
  display: grid; place-items: center; gap: 0.3rem;
  width: 6rem; height: 6rem; border-radius: 16px; font-size: 2.4rem;
  background: var(--panel); border: 1px solid var(--line);
}
.vault-coin { color: var(--gold-bright); }
.vault-gem { color: #9fe2e6; }
.vault span { font-family: "Rajdhani"; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bone-dim); }

/* CTA */
.cta-band { text-align: center; background: radial-gradient(800px 400px at 50% 50%, rgba(255,106,44,0.14), transparent 70%); }
.cta-title { font-size: clamp(2.6rem, 8vw, 4.5rem); color: var(--gold-bright); margin: 0 0 0.6rem; text-shadow: 0 0 30px rgba(255,106,44,0.4); }
.cta-soon { margin-top: 1rem; color: var(--ember-soft); font-weight: 600; letter-spacing: 0.06em; }

/* footer */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 2rem var(--pad-x); border-top: 1px solid var(--line); color: var(--bone-dim);
}
.footer-logo { color: var(--gold); letter-spacing: 0.08em; font-weight: 700; }
.footer-social { color: var(--gold-deep); letter-spacing: 0.3em; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes orbPulse { 0%,100% { opacity: 0.7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
@keyframes emberRise { 0% { background-position: 0 0,0 0,0 0,0 0,0 0; opacity: 0.5; } 50% { opacity: 1; } 100% { background-position: 0 -120px, 0 -160px, 0 -100px, 0 -140px, 0 -180px; opacity: 0.4; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* phones */
@media (max-width: 640px) {
  :root { --nav-h: 3.4rem; }

  .hero {
    min-height: auto;            /* don't force 100svh — let content breathe, no clipping */
    padding: calc(var(--nav-h) + 1.5rem) var(--pad-x) 2.5rem;
    gap: 1.4rem;
  }
  .kicker { letter-spacing: 0.3em; font-size: 0.7rem; }
  .hero-tagline { font-size: clamp(1rem, 4.4vw, 1.25rem); }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { flex: 1 1 auto; text-align: center; }

  /* keep all three cards on one row, just smaller */
  .card-trio { gap: 0.5rem; flex-wrap: nowrap; margin-top: 2rem; }
  .card-trio .card-tile { width: clamp(5rem, 29vw, 8rem); }
  .card-trio .card-tile:first-child { transform: rotate(-5deg); }
  .card-trio .card-tile:last-child { transform: rotate(5deg); }
  .card-trio .card-tile.featured { transform: translateY(-14px) scale(1.04); }

  /* shrink RPS circles so three fit a phone row */
  .combat-diagram { gap: clamp(0.6rem, 4vw, 1.5rem); }
  .rps-node { width: clamp(5rem, 27vw, 7rem); font-size: clamp(2rem, 10vw, 3rem); }
  .rps-node span { font-size: 0.64rem; letter-spacing: 0.1em; }

  .ribbon-rule { max-width: 2.5rem; }
  .vault-coin, .vault-gem { width: 5rem; height: 5rem; font-size: 2rem; }
  .bp-node { width: 2.6rem; height: 2.6rem; font-size: 0.85rem; }
  .rung { font-size: 0.78rem; padding: 0.5em 0.8em; }
  .site-footer { justify-content: center; text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .embers, .scroll-cue { animation: none; }
  .card-tile, .feature, .btn-primary, .btn-ghost, .rps-node { transition: none; }
}
