/* ==================================================
   LigaLeyendas landing
   Same visual language as the app:
   dark pitch background, green accent, heavy uppercase
   labels, rounded cards.
   ================================================== */

:root {
  --bg: #0b0e13;
  --bg-alt: #0d1117;
  --card: #12161e;
  --card-2: #151a22;
  --card-3: #181d26;
  --line: #222a35;
  --line-2: #2a313c;

  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #8b95a6;
  --muted-2: #697385;

  --green: #4ade80;
  --green-soft: #18251f;
  --green-line: #263c31;
  --blue: #60a5fa;
  --star: #facc15;

  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green);
  color: #0b0e13;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

.container.narrow {
  max-width: 820px;
}

/* ==================================================
   Typography helpers
   ================================================== */

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.accent {
  color: var(--green);
}

.kicker {
  display: inline-block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 22px;
}

/* ==================================================
   Buttons
   ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 13px;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #0b0e13;
}

.btn-small {
  font-size: 0.75rem;
  padding: 10px 18px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-row.center {
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card-3);
  border: 1px solid var(--line-2);
  border-radius: 15px;
  padding: 11px 20px 11px 16px;
  transition: border-color 0.2s, transform 0.15s;
}

.store-btn:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.store-icon {
  font-size: 1.6rem;
  line-height: 1;
  width: 26px;
  text-align: center;
}

.store-btn small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
}

.store-btn strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

/* ==================================================
   Nav
   ================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 14, 19, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--card-3);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==================================================
   Hero
   ================================================== */

.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 78% 10%, rgba(74, 222, 128, 0.16), transparent 70%),
    radial-gradient(40% 40% at 5% 90%, rgba(96, 165, 250, 0.08), transparent 70%),
    repeating-linear-gradient(
      90deg,
      rgba(74, 222, 128, 0.028) 0,
      rgba(74, 222, 128, 0.028) 90px,
      transparent 90px,
      transparent 180px
    ),
    var(--bg);
}

/* pitch center circle */
.hero::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  right: -180px;
  top: 40px;
  border: 2px solid rgba(74, 222, 128, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-points li::before {
  content: '●';
  color: var(--green);
  font-size: 0.55rem;
  margin-right: 8px;
  vertical-align: middle;
}

.hero-points b {
  color: var(--text);
}

/* ==================================================
   Phone mockup (mirrors the real game screen)
   ================================================== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  background: #06080b;
  border: 1px solid var(--line-2);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 6px #0f1319;
  transform: rotate(2.5deg);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 22px;
  background: #06080b;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 31px;
  padding: 32px 14px 16px;
}

.m-kicker {
  color: #208aef;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.m-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 2px 0 10px;
}

.m-card {
  background: #11151d;
  border: 1px solid #1d2430;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
}

.m-date {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.m-time {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.m-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.45rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.m-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px 0 12px;
}

.m-score b {
  display: block;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.m-score em {
  color: var(--muted-2);
  font-style: normal;
  font-size: 1.3rem;
}

.m-players {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  overflow: hidden;
}

.m-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.m-player + .m-player {
  border-top: 1px solid #202731;
}

.m-player p {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.m-player small {
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 700;
}

.stars {
  color: var(--star);
  font-style: normal;
  letter-spacing: 0.5px;
}

.m-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #202733;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 900;
}

.m-avatar.sm {
  width: 22px;
  height: 22px;
  font-size: 0.55rem;
}

.m-mvp {
  margin-top: 10px;
  background: var(--card-2);
  border: 1px solid var(--green-line);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}

.m-mvp > p {
  color: var(--green);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.m-mvp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.m-mvp-row.selected {
  background: var(--green-soft);
  border-color: var(--green);
}

.radio {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #394150;
}

.radio.on {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 40%, transparent 45%);
}

.m-btn {
  margin-top: 7px;
  background: var(--green);
  color: #0b0e13;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 8px;
  border-radius: 9px;
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(21, 26, 34, 0.94);
  border: 1px solid var(--line-2);
  border-radius: 15px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}

.float span {
  font-size: 1.5rem;
}

.float b {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}

.float small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.float-rank {
  left: -10px;
  top: 90px;
}

.float-mvp {
  right: -6px;
  bottom: 70px;
  border-color: var(--green-line);
  animation-delay: -2.5s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ==================================================
   Sections
   ================================================== */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--green-line);
  transform: translateY(-3px);
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 8px;
}

.card b {
  color: var(--text-soft);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--card-3);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

/* ==================================================
   Steps
   ================================================== */

.steps {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #0b0e13;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.step b {
  color: var(--text-soft);
}

/* ==================================================
   Roles / lists
   ================================================== */

.role-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.role-head .icon {
  margin-bottom: 0;
}

.role-head h3 {
  font-size: 1.3rem;
}

.role-admin {
  border-color: var(--green-line);
  background: linear-gradient(180deg, var(--green-soft), var(--card) 70%);
}

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  background: #263246;
  color: var(--blue);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 7px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 50%;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
}

.check-list b {
  color: var(--text-soft);
}

/* ==================================================
   MVP
   ================================================== */

.mvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.mvp-results {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.mvp-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.mvp-results-head b {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mvp-results-head small {
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 800;
}

.mvp-row + .mvp-row {
  margin-top: 18px;
}

.mvp-row-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mvp-row-top div {
  flex: 1;
  line-height: 1.25;
}

.mvp-row-top b {
  display: block;
  font-size: 0.92rem;
}

.mvp-row-top small {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.mvp-row-top strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-soft);
}

.mvp-row-top strong.top {
  color: var(--green);
}

.bar {
  height: 7px;
  margin-top: 10px;
  background: #202733;
  border-radius: 4px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: #2f7a4f;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar i.top {
  background: var(--green);
}

/* ==================================================
   Achievements
   ================================================== */

.achievement {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.achievement .icon {
  margin-bottom: 0;
  width: 54px;
  height: 54px;
  font-size: 1.6rem;
  flex: none;
}

.achievement h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.achievement p {
  margin-top: 3px;
  font-size: 0.85rem;
}

.achievement h3 small {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted-2);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.achievement.soon {
  opacity: 0.6;
}

/* ==================================================
   FAQ
   ================================================== */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: var(--green-line);
}

.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  font-weight: 800;
  font-size: 0.97rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--card-3);
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 900;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq details b {
  color: var(--text-soft);
}

/* ==================================================
   CTA
   ================================================== */

.cta-section {
  padding-top: 90px;
}

.cta {
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(74, 222, 128, 0.16), transparent 70%),
    var(--card-2);
  border: 1px solid var(--green-line);
  border-radius: 28px;
  padding: 64px 24px;
}

.cta h2 {
  margin-top: 4px;
}

.cta p {
  color: var(--muted);
  max-width: 480px;
  margin: 16px auto 0;
}

/* ==================================================
   Footer
   ================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 38px 0 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

.copy {
  width: 100%;
  color: var(--muted-2);
  font-size: 0.78rem;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ==================================================
   Scroll reveal
   ================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bar i {
    transition: none;
  }
}

/* ==================================================
   Responsive
   ================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .mvp-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-visual {
    margin-top: 30px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 14, 19, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .nav-cta {
    margin-top: 16px;
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 18px;
    gap: 14px;
  }

  .phone {
    width: 272px;
  }

  .float-rank {
    left: -4px;
    top: 40px;
  }

  .float-mvp {
    right: -4px;
    bottom: 40px;
  }

  .float {
    padding: 8px 11px;
  }

  .store-btn {
    flex: 1 1 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
