/* Arena landing page — adapted from the Arena design prototype.
   Vanilla CSS (no Tailwind): the site CSP only allows self-hosted scripts. */

:root {
  --neon-pink: #ff006e;
  --neon-cyan: #00f5ff;
  --neon-yellow: #ffbe0b;
  --neon-purple: #8338ec;
  --neon-green: #38b000;

  --pink-600: #db2777;
  --purple-600: #9333ea;
  --cyan-600: #0891b2;
  --yellow-600: #ca8a04;

  --paper: #f4f1ea;
  --ink: #111827;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  margin: 0;
}

.font-display {
  font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}

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

.grid-bg {
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Glass card */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* 3D button */
.btn-3d {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
  transform: translateY(0);
}
.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.15), 0 12px 30px rgba(0,0,0,0.15);
}
.btn-3d:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-light:hover { background: #f9fafb; }
.btn-purple { background: var(--purple-600); color: #fff; }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 24px;
  transition: all 0.4s;
  background: transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-name { font-size: 24px; letter-spacing: 0.08em; color: var(--ink); }

.nav-links { display: flex; gap: 32px; font-weight: 500; color: #1f2937; }
.nav-link { position: relative; padding-bottom: 2px; transition: color 0.2s; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  transition: width 0.3s;
}
.nav-link-pink:hover { color: var(--pink-600); }
.nav-link-pink::after { background: #ec4899; }
.nav-link-purple:hover { color: var(--purple-600); }
.nav-link-purple::after { background: #a855f7; }
.nav-link:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-cta:hover { background: #1f2937; box-shadow: 0 8px 20px rgba(17,24,39,0.2); }

/* Language switcher */
.lang-switcher, .user-menu { position: relative; }
.lang-btn, .login-btn, .user-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-btn:hover, .login-btn:hover, .user-btn:hover { background: #fff; }
.lang-caret { font-size: 10px; color: #9ca3af; }
.lang-dropdown, .user-dropdown, .login-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 6px;
  min-width: 170px;
  display: none;
  z-index: 60;
}
.lang-dropdown.open, .user-dropdown.open, .login-dropdown.open { display: block; }
.lang-option, .user-option, .provider-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
.lang-option:hover, .user-option:hover, .provider-option:hover { background: #f3f4f6; }
.lang-option.active { background: #f3f4f6; font-weight: 700; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; display: block; }
.user-avatar-placeholder { font-size: 18px; }
.user-btn { padding: 5px; }
.user-info { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; margin-bottom: 4px; }
.user-name { font-weight: 700; font-size: 14px; }
.user-email { font-size: 12px; color: #9ca3af; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 128px 0 80px;
}
.hero-grid {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}
.hero-content {
  position: relative;
  z-index: 30;
  max-width: 560px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(229,231,235,0.5);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.pulse-dot { position: relative; width: 10px; height: 10px; display: inline-block; }
.pulse-ring {
  position: absolute; inset: 0;
  background: #22c55e;
  border-radius: 50%;
  animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-core { position: relative; display: block; width: 10px; height: 10px; background: #22c55e; border-radius: 50%; }
@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(6rem, 11vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.hero-title-gradient {
  background: linear-gradient(135deg, #f97316, var(--pink-600), #7e22ce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 430px;
  line-height: 1.6;
  font-weight: 300;
  margin: 24px 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-note-big { display: block; font-size: 36px; }
.note-purple { color: var(--purple-600); }
.note-pink { color: var(--pink-600); }
.note-cyan { color: var(--cyan-600); }
.hero-note-small { font-size: 14px; color: var(--gray-600); font-weight: 500; max-width: 140px; }

.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13vw;
  line-height: 1;
  color: rgba(229,231,235,0.4);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.hero-art-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-art {
  position: relative;
  z-index: 20;
  display: block;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.28);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-art img { width: 100%; height: auto; display: block; }
.hero-art:hover { transform: translateY(-4px); }

.hero-fade {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 128px;
  background: linear-gradient(to top, var(--paper), transparent);
  z-index: 25;
  pointer-events: none;
}

/* ============ Sections ============ */
.section { padding: 112px 24px; position: relative; z-index: 10; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 80px; }
.section-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--ink);
  margin: 0 0 20px;
}
.section-sub { font-size: 20px; color: var(--gray-500); font-weight: 300; margin: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============ Features ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  border-radius: 24px;
  padding: 32px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  display: block;
}
.feature-card:hover { box-shadow: 0 25px 50px rgba(0,0,0,0.12); }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px;
  margin-bottom: 32px;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(3deg); }
.icon-pink { background: linear-gradient(135deg, #f472b6, var(--purple-600)); box-shadow: 0 10px 20px rgba(236,72,153,0.25); }
.icon-cyan { background: linear-gradient(135deg, #22d3ee, #2563eb); box-shadow: 0 10px 20px rgba(34,211,238,0.25); }
.icon-yellow { background: linear-gradient(135deg, #facc15, #f97316); box-shadow: 0 10px 20px rgba(250,204,21,0.25); }
.feature-title { font-size: 34px; color: var(--ink); margin: 0 0 16px; }
.feature-desc { color: var(--gray-600); line-height: 1.6; font-size: 17px; margin: 0; }
.feature-link {
  margin-top: 32px;
  display: flex; align-items: center;
  font-weight: 700;
  transition: transform 0.3s;
}
.feature-card:hover .feature-link { transform: translateX(12px); }
.link-pink { color: var(--pink-600); }
.link-cyan { color: var(--cyan-600); }
.link-yellow { color: var(--yellow-600); }
.arrow { margin-left: 8px; font-size: 20px; }

/* ============ Climbing split section ============ */
.climbing-section { background: #fff; }
.split {
  display: flex;
  gap: 64px;
  align-items: center;
}
.split-text { flex: 1; }
.tag {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.tag-purple { background: #faf5ff; color: #7e22ce; }
.split-title { line-height: 0.95; margin-bottom: 32px; }
.text-purple { color: var(--purple-600); }
.split-desc {
  font-size: 20px;
  color: var(--gray-600);
  margin: 0 0 40px;
  line-height: 1.6;
  font-weight: 300;
}
.check-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.check-pill {
  display: flex; align-items: center; gap: 12px;
  background: #f9fafb;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.check {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

.split-card { flex: 1; position: relative; }
.split-card-glow {
  position: absolute;
  inset: -16px;
  background: linear-gradient(to right, #e9d5ff, #fbcfe8);
  border-radius: 24px;
  filter: blur(40px);
  opacity: 0.3;
}
.ranking-card { border-radius: 24px; padding: 32px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); position: relative; }
.ranking-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.ranking-title { font-weight: 700; color: #1f2937; font-size: 18px; letter-spacing: 0.03em; }
.ranking-count { font-size: 12px; font-weight: 600; color: var(--gray-500); background: #f3f4f6; padding: 4px 12px; border-radius: 9999px; }
.ranking-rows { display: flex; flex-direction: column; gap: 14px; }
.ranking-row {
  display: flex; align-items: center; gap: 16px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px 16px;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ranking-row:hover { border-color: #c084fc; background: rgba(250,245,255,0.4); }
.ranking-row.dim { opacity: 0.6; }
.rank-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #9ca3af;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.rank-1 { background: linear-gradient(135deg, #facc15, #f97316); }
.rank-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); }
.rank-3 { background: linear-gradient(135deg, #fb923c, #b45309); }
.rank-name { flex: 1; font-weight: 700; color: #1f2937; }
.rank-score { font-size: 24px; color: var(--ink); }
.ranking-progress { margin-top: 32px; padding-top: 24px; border-top: 1px solid #f3f4f6; }
.ranking-progress-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray-500); font-weight: 500; margin-bottom: 12px; }
.bold { font-weight: 700; }
.progress-track { height: 16px; background: #f3f4f6; border-radius: 9999px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #ec4899, #a855f7, #06b6d4);
  border-radius: 9999px;
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.2);
  animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ Presets ============ */
.presets-section { background: #f9fafb; padding-top: 96px; padding-bottom: 96px; }
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.preset-card {
  border-radius: 16px;
  padding: 24px;
  display: block;
  transition: box-shadow 0.3s, transform 0.3s;
}
.preset-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: translateY(-3px); }
.preset-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.preset-sport { font-size: 12px; font-weight: 700; color: var(--gray-500); letter-spacing: 0.1em; }
.live-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-soft 1.6s ease-in-out infinite;
}
.preset-teams { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.preset-score { font-size: 30px; color: var(--ink); margin-bottom: 12px; }
.preset-meta { font-size: 12px; color: var(--gray-500); }

/* ============ CTA ============ */
.cta-section {
  padding: 128px 24px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple-600), #ec4899, #fb923c);
}
.cta-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.cta-title { font-size: clamp(4rem, 8vw, 6rem); color: #fff; margin: 0 0 32px; }
.cta-sub { font-size: 24px; color: rgba(255,255,255,0.9); margin: 0 0 56px; font-weight: 300; }
.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  padding: 20px 48px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.cta-button:hover { transform: scale(1.05); box-shadow: 0 25px 60px rgba(255,255,255,0.25); }

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 64px 24px;
  position: relative;
  z-index: 10;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer .brand-name { color: #fff; }
.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-tagline { color: #9ca3af; font-size: 14px; font-weight: 300; }
.footer-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.footer-links a { color: #9ca3af; transition: color 0.2s, transform 0.2s; display: inline-block; }
.footer-links a:hover { color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #4b5563;
  flex-wrap: wrap;
}
.footer-langs { display: flex; gap: 14px; font-size: 16px; }
.footer-langs a { opacity: 0.5; transition: opacity 0.2s; }
.footer-langs a:hover, .footer-langs a.active { opacity: 1; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .split { flex-direction: column; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 120px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-art-stack { max-width: 560px; }
}

@media (max-width: 720px) {
  .hero { padding: 112px 0 48px; }
  .hero-grid { padding: 0 24px; }
  .hero-bg-text { display: none; }
  .preset-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .section { padding: 72px 20px; }
}
