/* ============================================================
   FIFA WORLD CUP ($FIFAWC) — STYLES
   Theme: deep pitch + trophy gold. Edit --color-* to rebrand.
   ============================================================ */

:root {
  --color-bg:        #04100a;
  --color-bg-alt:    #07180e;
  --color-surface:   #0d2517;
  --color-surface-2: #133320;
  --color-border:    #1f4a30;
  --color-text:      #f5f7f3;
  --color-muted:     #9bb5a4;

  --color-primary:   #00d26a;   /* pitch green */
  --color-secondary: #ffd700;   /* trophy gold */
  --color-gold-soft: #ffe97a;
  --color-accent:    #ff2d55;   /* red card */

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-glow:      0 0 40px rgba(0, 210, 106, 0.35);
  --shadow-gold-glow: 0 0 60px rgba(255, 215, 0, 0.35);

  --font-display: 'Bungee', system-ui, sans-serif;
  --font-impact:  'Anton', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------- ambient pitch background ---------- */
.pitch {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%,   rgba(0,210,106,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%,  rgba(255,215,0,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%,  rgba(0,210,106,0.10), transparent 60%);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 2rem;
  background: rgba(4, 16, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__mark   { font-size: 1.5rem; }
.nav__ticker { color: var(--color-secondary); font-size: 0.78rem; margin-left: 0.4rem; }
.nav__links  { display: flex; gap: 1.4rem; font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.nav__links a {
  color: var(--color-muted);
  transition: color 0.2s;
  position: relative;
}
.nav__links a:hover { color: var(--color-secondary); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn--small { padding: 0.55rem 1rem; font-size: 0.75rem; }
.btn--lg    { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--primary {
  background: var(--color-primary);
  color: #00170c;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 60px rgba(0,210,106,0.6);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 5rem;
}
.hero__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.5rem;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.55);
  border-radius: 999px;
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--font-impact);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title--gold  { color: var(--color-secondary); text-shadow: 0 0 30px rgba(255,215,0,0.5); }
.hero__title--green { color: var(--color-primary);   text-shadow: 0 0 30px rgba(0,210,106,0.5); }

.hero__sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero__sub strong { color: var(--color-text); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.45rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

/* ---------- Trophy visual ---------- */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero__trophy {
  position: relative;
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 25px 60px rgba(255, 215, 0, 0.35));
  animation: bob 5s ease-in-out infinite;
}
.hero__trophy img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
}
.hero__trophy::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.35), transparent 60%);
  filter: blur(20px);
  z-index: 1;
}
.hero__trophy-shine {
  position: absolute;
  top: -10%; left: 50%;
  width: 140%; height: 130%;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg, transparent 70%, rgba(255,215,0,0.18) 75%, transparent 80%);
  animation: spin 16s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

/* ---------- CA box ---------- */
.ca { max-width: 560px; margin-bottom: 1.25rem; }
.ca__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.ca__box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.ca__box code {
  flex: 1;
  font-family: 'Menlo', monospace;
  font-size: 0.9rem;
  color: var(--color-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca__copy {
  padding: 0.5rem 1rem;
  background: var(--color-secondary);
  color: #1a1300;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  font-family: var(--font-display);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.ca__copy:hover      { background: var(--color-gold-soft); }
.ca__copy:active     { transform: scale(0.95); }
.ca__copy.copied     { background: var(--color-primary); color: #00170c; }

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-secondary);
  color: #1a1300;
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee__track span { padding-right: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}
.section--alt { background: var(--color-bg-alt); }
.container    { max-width: 1180px; margin: 0 auto; }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(255,215,0,0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.4);
  margin-bottom: 1rem;
}
.kicker.center { display: block; width: max-content; margin: 0 auto 1rem; }

.section__title {
  font-family: var(--font-impact);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.section__title.center { text-align: center; }
.section__sub {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.ink--gold  { color: var(--color-secondary); }
.ink--green { color: var(--color-primary); }

/* ---------- LORE ---------- */
.lore { max-width: 820px; }
.lore .kicker { margin-bottom: 0.75rem; }
.lore__body { margin-top: 1.5rem; }
.lore__body p { font-size: 1.1rem; margin-bottom: 1rem; }
.lore__punch  {
  font-family: var(--font-impact);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin-top: 1.5rem !important;
  line-height: 1.1;
}

/* ---------- SQUAD (mascots) ---------- */
.mascots {
  max-width: 880px;
  margin: 0 auto 3rem;
}
.mascots__img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
  animation: float-soft 6s ease-in-out infinite;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.squad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  padding: 1.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
  box-shadow: 0 16px 40px rgba(255,215,0,0.12);
}
.squad__flag  { font-size: 2.2rem; margin-bottom: 0.5rem; }
.squad__card h3 {
  font-family: var(--font-impact);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.1rem;
}
.squad__role {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.squad__card p:last-child { color: var(--color-muted); font-size: 0.95rem; }

/* ---------- TOKENOMICS ---------- */
.tokenomics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tcard {
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tcard:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,210,106,0.18);
}
.tcard__icon  { font-size: 2.4rem; margin-bottom: 0.5rem; }
.tcard__num   {
  font-family: var(--font-impact);
  font-size: 1.9rem;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}
.tcard__label { color: var(--color-muted); font-size: 0.9rem; }

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: #00170c;
  font-family: var(--font-display);
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: var(--font-impact);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}
.step p  { color: var(--color-muted); font-size: 0.95rem; }
.step a  { color: var(--color-secondary); }
.how__cta { text-align: center; margin-top: 2.5rem; }

/* ---------- BRACKET ---------- */
.bracket {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.match {
  padding: 1.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.match:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.match--final {
  background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface));
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-gold-glow);
}
.match__stage {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--color-primary);
  color: #00170c;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.match--final .match__stage {
  background: var(--color-secondary);
  color: #1a1300;
}
.match h3 {
  font-family: var(--font-impact);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.match ul { list-style: none; }
.match ul li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.88rem;
}
.match ul li:last-child { border-bottom: none; }

/* ---------- COMMUNITY ---------- */
.community { text-align: center; }
.socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.15s, border-color 0.2s, color 0.2s, background 0.2s;
}
.social__icon  { font-size: 2rem; }
.social__label { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.05em; }
.social:hover {
  transform: translateY(-4px);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.footer__cup   { font-size: 2.5rem; margin-bottom: 0.5rem; }
.footer__main  { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.75rem; }
.footer__small { color: var(--color-muted); font-size: 0.8rem; max-width: 760px; margin: 0 auto; line-height: 1.6; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav__links     { display: none; }
}
@media (max-width: 980px) {
  .hero__grid     { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero__copy     { display: flex; flex-direction: column; align-items: center; }
  .hero__sub      { margin-inline: auto; }
  .hero__cta      { justify-content: center; }
  .hero__chips    { justify-content: center; }
  .ca             { margin-inline: auto; }
  .squad          { grid-template-columns: repeat(2, 1fr); }
  .tokenomics     { grid-template-columns: repeat(2, 1fr); }
  .steps          { grid-template-columns: repeat(2, 1fr); }
  .bracket        { grid-template-columns: repeat(2, 1fr); }
  .socials        { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav            { padding: 0.7rem 1rem; }
  .nav__links     { display: none; }
  .hero           { padding: 2.5rem 1rem 3.5rem; }
  .section        { padding: 4rem 1rem; }
  .squad          { grid-template-columns: 1fr; }
  .tokenomics     { grid-template-columns: 1fr; }
  .steps          { grid-template-columns: 1fr; }
  .bracket        { grid-template-columns: 1fr; }
  .socials        { grid-template-columns: 1fr 1fr; }
  .ca__box code   { font-size: 0.75rem; }
}
