/* Planet Cup — dark neon design system */

:root {
  --bg: #0d0d0d;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --green: #4eff8d;
  --green-dim: rgba(78, 255, 141, 0.15);
  --purple: #9b5cff;
  --purple-dim: rgba(155, 92, 255, 0.15);
  --red: #ff6b6b;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Poppins", "Outfit", sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 64px;
  --ticker-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--ticker-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(78, 255, 141, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 255, 141, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.bg-glow-a { width: 50vw; height: 50vw; top: -10%; left: -10%; background: var(--purple); }
.bg-glow-b { width: 40vw; height: 40vw; bottom: 10%; right: -5%; background: var(--green); opacity: 0.2; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.brand em { font-style: normal; color: var(--green); font-size: 13px; margin-left: 2px; }
.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .header-inner .btn-sm { margin-left: 8px; }
}
.site-header.nav-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 12px 16px 20px;
  background: rgba(13, 13, 13, 0.98);
  border-bottom: 1px solid var(--border);
}

.ticker-bar {
  display: flex;
  align-items: center;
  height: var(--ticker-h);
  border-top: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,0.4);
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--bg);
  background: var(--green);
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 32px;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.ticker-item strong { color: var(--text); margin-right: 6px; }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green), #2dd4a0);
  color: #0d0d0d;
  box-shadow: 0 0 24px rgba(78, 255, 141, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(78, 255, 141, 0.5);
  box-shadow: 0 0 20px rgba(78, 255, 141, 0.08);
}
.btn-outline:hover { border-color: var(--green); box-shadow: 0 0 28px rgba(78, 255, 141, 0.2); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
}

/* Hero */
main { padding-top: calc(var(--header-h) + var(--ticker-h)); }
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 64px;
  overflow: hidden;
}
.hero-globe {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(78, 255, 141, 0.2);
}
.globe-ring-1 {
  width: min(420px, 85vw);
  height: min(420px, 85vw);
  animation: spin 24s linear infinite;
}
.globe-ring-2 {
  width: min(520px, 95vw);
  height: min(520px, 95vw);
  border-color: rgba(155, 92, 255, 0.15);
  animation: spin 36s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.globe-core {
  position: relative;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-logo { filter: drop-shadow(0 0 40px rgba(78, 255, 141, 0.4)); }
.globe-lights {
  position: absolute;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(78, 255, 141, 0.08), transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin-top: min(200px, 28vh);
}
.hero-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 20px auto 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.hero-countdown {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
}
.countdown-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
}
.countdown-match { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.cd-box {
  min-width: 3.5rem;
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.cd-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.cd-lbl {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.countdown-done { margin: 8px 0 0; font-weight: 700; color: var(--green); }

/* Sections */
.section { padding: 72px 0; }
.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-desc {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
}

/* Features */
.features-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(78, 255, 141, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 16px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}
.feature-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* Tokenomics */
.tokenomics { background: linear-gradient(180deg, transparent, rgba(155, 92, 255, 0.04), transparent); }
.tokenomics-layout {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .tokenomics-layout { grid-template-columns: 1fr 1fr; }
}
.tokenomics-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tokenomics-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.tokenomics-list strong { color: var(--text); }
.dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
}
.dot-burn { background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot-growth { background: var(--purple); box-shadow: 0 0 12px var(--purple); }

.hub-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 500px) {
  .hub-strip { grid-template-columns: repeat(4, 1fr); }
}
.hub-stat {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.hub-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hub-stat-val {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}
.hub-mint {
  margin: 16px 0 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
}
.tokenomics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pie-chart {
  position: relative;
  width: min(280px, 80vw);
  margin: 0 auto;
}
.pie-svg { width: 100%; height: auto; display: block; }
.pie-svg circle:nth-child(3) { animation: pie-pulse 3s ease-in-out infinite; }
@keyframes pie-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.pie-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pie-ticker {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
}
.pie-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.pie-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.pie-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.leg-burn { background: var(--green); }
.leg-growth { background: var(--purple); }

/* Country tokens grid */
.tokens-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.token-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 520px) { .token-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .token-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .token-grid { grid-template-columns: repeat(4, 1fr); } }

.token-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.token-card:hover {
  border-color: rgba(78, 255, 141, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.token-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.token-card .flag {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.token-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.token-card .trade-link {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(78, 255, 141, 0.4);
}
.token-card .trade-link:hover { background: var(--green-dim); }
.token-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.token-stat dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.token-stat dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.token-change {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}
.token-change.up { color: var(--green); }
.token-change.down { color: var(--red); }
.token-change.flat { color: var(--text-muted); }
.token-sparkline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.token-card:hover .token-sparkline { opacity: 1; }
.token-sparkline svg { width: 100%; height: 100%; display: block; }
.tokens-foot {
  text-align: center;
  margin-top: 28px;
}
.tokens-foot a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.tokens-foot a:hover { text-decoration: underline; }

.error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
  font-size: 14px;
}

/* Roadmap */
.roadmap-timeline {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--border);
}
.roadmap-item {
  position: relative;
  padding: 0 0 32px 24px;
}
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-icon {
  position: absolute;
  left: -39px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.roadmap-done .roadmap-icon {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
}
.roadmap-active .roadmap-icon {
  border-color: var(--purple);
  background: var(--purple-dim);
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.4);
}
.roadmap-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.roadmap-item p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* About */
.about { background: var(--bg-card); border-block: 1px solid var(--border); }
.about-text {
  margin: 20px 0 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}

/* Schedule */
.schedule-section .schedule-desc { margin-bottom: 20px; }
.schedule-fifa { margin-bottom: 32px; }
.schedule-day { margin-top: 32px; }
.schedule-day-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--green);
}
.match-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.match-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.match-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
}
.match-meta span:last-child { text-transform: none; font-weight: 500; color: var(--text-muted); }
.match-body { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) {
  .match-body { flex-direction: row; align-items: center; justify-content: space-between; }
}
.match-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.match-team { display: inline-flex; align-items: center; gap: 8px; }
.match-flag {
  width: 28px; height: 20px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.match-name { font-weight: 600; }
.match-vs { color: var(--text-muted); font-weight: 700; }
.match-trade {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid rgba(78, 255, 141, 0.35);
  border-radius: 999px;
}
.match-venue { font-size: 12px; color: var(--text-muted); text-align: left; }
@media (min-width: 720px) { .match-venue { text-align: right; } }
.schedule-knockout {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.schedule-knockout h3 { margin: 0 0 12px; font-size: 1.1rem; }
.schedule-knockout ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: #080808;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
}
.footer-brand img { margin-bottom: 12px; }
.footer-brand strong { display: block; font-size: 1.1rem; }
.footer-ticker { color: var(--green); font-weight: 700; margin-left: 6px; }
.footer-tagline { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.footer-links h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  opacity: 0.85;
}
.footer-links a:hover { color: var(--green); opacity: 1; }
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}
.newsletter-note { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-legal p { margin: 0 0 8px; }

/* Passport modal */
.passport-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100% - 32px);
}
.passport-modal::backdrop { background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); }
.passport-modal-inner {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(78, 255, 141, 0.3);
  text-align: center;
  max-width: 380px;
}
.passport-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.passport-preview { font-size: 48px; margin-bottom: 12px; }
.passport-modal-inner h3 { margin: 0 0 8px; }
.passport-modal-inner p { margin: 0 0 20px; font-size: 14px; color: var(--text-muted); }
