* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #ff3b4a;
  --blue: #2ea8ff;
  --dark: #05060a;
  --dark-2: #0b0f17;
  --text: #f0f4f9;
  --text-muted: #b3bcc9;
  --border: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.02);
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--text);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #051021;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(46, 168, 255, 0.12);
}

.brand-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar__links {
  display: flex;
  gap: 8px;
  flex: 1;
  margin-left: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(255, 59, 74, 0.1), rgba(46, 168, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.08);
}

.navbar__actions {
  margin-left: auto;
}

/* BUTTONS */
.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  letter-spacing: -0.3px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--red), var(--blue));
  color: #051021;
  box-shadow: 0 12px 32px rgba(46, 168, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(46, 168, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

/* HERO SECTION */
.hero {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 20% 30%, rgba(255, 59, 74, 0.08) 0%, transparent 60%),
              radial-gradient(500px 400px at 80% 20%, rgba(46, 168, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 100px;
  background: linear-gradient(90deg, rgba(255, 59, 74, 0.1), rgba(46, 168, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1px;
  background: linear-gradient(180deg, var(--text) 0%, rgba(240, 244, 249, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__stats {
  display: flex;
  gap: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  font-size: 20px;
}

.stat-text {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero__image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05) brightness(0.95);
}

/* FEATURES SECTION */
.features {
  padding: 80px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(46, 168, 255, 0.03) 100%);
  position: relative;
}

.features__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.5px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(46, 168, 255, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* HIGHLIGHTS SECTION */
.highlights {
  padding: 80px 20px;
  background: linear-gradient(180deg, rgba(255, 59, 74, 0.03) 0%, transparent 100%);
  position: relative;
}

.highlights__container {
  max-width: 1200px;
  margin: 0 auto;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.highlight-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 59, 74, 0.04) 0%, rgba(46, 168, 255, 0.04) 100%);
  backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  background: linear-gradient(135deg, rgba(255, 59, 74, 0.08) 0%, rgba(46, 168, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.highlight-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.6;
}

.highlight-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.highlight-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA SECTION */
.cta {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 500px at center, rgba(46, 168, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta__container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta__container h2 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta__container p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* FOOTER */
.footer {
  padding: 48px 20px;
  border-top: 1px solid var(--border);
  background: rgba(8, 10, 15, 0.5);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer__section h4 {
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.footer__section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__section a {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer__section a:hover {
  color: var(--text);
}

/* PAGE HEADER */
.page-header {
  padding: 64px 20px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 20% 50%, rgba(255, 59, 74, 0.06) 0%, transparent 60%),
              radial-gradient(500px 400px at 80% 30%, rgba(46, 168, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header__container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-header__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.page-header__actions {
  display: flex;
  gap: 12px;
}

/* TOURNAMENT SECTION */
.tournament-section {
  padding: 48px 20px;
}

.tournament-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.bracket-panel,
.teams-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-glass);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.bracket-embed {
  margin-bottom: 16px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 10px;
}

.bracket-iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.panel-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.team-search {
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ABOUT SECTION */
.about-section {
  padding: 48px 20px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.about-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-glass);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.about-panel h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.social-buttons,
.panel-text {
  margin-bottom: 16px;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-block {
  width: 100%;
}

.panel-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* CREDITS SECTION */
.credits-section {
  padding: 48px 20px;
  background: linear-gradient(180deg, rgba(255, 59, 74, 0.02) 0%, transparent 100%);
}

.credits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.credit-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-glass);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.credit-label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.credit-value {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal__badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: #051021;
}

.modal__title {
  font-weight: 800;
  font-size: 16px;
}

.modal__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal__body {
  padding: 24px;
}

.modal__foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.iconBtn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  margin-left: auto;
  transition: color 0.2s ease;
}

.iconBtn:hover {
  color: var(--text);
}

.rosterGrid {
  display: grid;
  gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .tournament-container {
    grid-template-columns: 1fr;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }

  .page-header__title {
    font-size: 32px;
  }

  .page-header__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 36px 16px;
  }

  .tournament-section {
    padding: 32px 16px;
  }

  .about-section {
    padding: 32px 16px;
  }

  .credits-section {
    padding: 32px 16px;
  }

  .page-header__title {
    font-size: 24px;
  }
}

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar__container {
    gap: 20px;
  }

  .navbar__links {
    display: none;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .highlights__grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 16px;
  }

  .hero__title {
    font-size: 28px;
  }

  .features {
    padding: 48px 16px;
  }

  .highlights {
    padding: 48px 16px;
  }

  .cta {
    padding: 48px 16px;
  }

  .cta__container h2 {
    font-size: 28px;
  }
}
