:root {
  --bg-main: #0c0d11;
  --bg-card: #14161d;
  --bg-card-hover: #1a1d26;
  --accent-blue: #6892c0;
  --accent-blue-glow: rgba(104, 146, 192, 0.25);
  --text-white: #f4f5f8;
  --text-muted: #8b92a5;
  --border-color: #252834;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Навигация */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* Бургер (только мобильные) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 10px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Главный экран (Hero) */
.hero {
  padding: 90px 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  max-width: 600px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(104, 146, 192, 0.12);
  border: 1px solid rgba(104, 146, 192, 0.3);
  color: var(--accent-blue);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-blue);
}

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

h1 span {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* Блок копирования IP */
.ip-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 6px 6px 20px;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ip-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.btn-copy {
  background: var(--accent-blue);
  color: #0c0d11;
  border: none;
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #7ca3ce;
  box-shadow: 0 0 20px var(--accent-blue-glow);
}

.version-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Карточка с арт-аватаркой */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.art-frame {
  width: 300px;
  height: 300px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 10px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-blue-glow);
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.checker-tag {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--text-white);
  color: var(--bg-main);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid var(--bg-main);
}

/* Полоса статистики */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stat {
  background: var(--bg-card);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-white);
}

/* Секции */
section {
  padding: 70px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Сетка особенностей */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.card-icon {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(104, 146, 192, 0.1);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Турнирный баннер */
.tournament-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 34px;
  background: linear-gradient(160deg, #171a23 0%, var(--bg-card) 55%, #101219 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 38px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tournament-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

.tournament-main {
  position: relative;
  z-index: 1;
}

.tournament-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.tournament-title span {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tournament-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 22px;
  max-width: 520px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  background: rgba(104, 146, 192, 0.1);
  border: 1px solid rgba(104, 146, 192, 0.28);
  padding: 5px 11px;
  border-radius: 6px;
}

.tournament-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-solid {
  display: inline-block;
  background: var(--accent-blue);
  color: #0c0d11;
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-solid:hover {
  background: #7ca3ce;
  box-shadow: 0 0 20px var(--accent-blue-glow);
}

.btn-ghost {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.tournament-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tournament-status {
  background: rgba(12, 13, 17, 0.6);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-blue);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-value {
  font-weight: 800;
  font-size: 1.05rem;
}

.status-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tournament-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.tournament-facts li {
  background: rgba(12, 13, 17, 0.6);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.tournament-facts span {
  color: var(--text-muted);
}

.tournament-facts strong {
  font-weight: 700;
  text-align: right;
}

/* Шаги */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s, background 0.2s;
}

.step:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

.step span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Правила */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  padding: 18px 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.rule-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 1.1rem;
}

/* Подвал */
footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0 40px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand p {
  margin-top: 10px;
  line-height: 1.7;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-white);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.social-links a:hover {
  border-color: var(--accent-blue);
}

/* Всплывающее уведомление */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-white);
  color: var(--bg-main);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Адаптив под мобильные */
@media (max-width: 900px) {
  .tournament-banner {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 0 40px;
  }
  h1 {
    font-size: 2.3rem;
  }
  .tournament-title {
    font-size: 1.7rem;
  }
  .art-frame {
    width: 240px;
    height: 240px;
  }
  .ip-box {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
    width: 100%;
  }
  .ip-text {
    text-align: center;
  }
  .btn-copy {
    width: 100%;
  }

  /* Мобильное меню */
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(12, 13, 17, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 20px 16px;
    display: none;
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }

  .footer-cols {
    gap: 32px;
  }

  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .tournament-actions .btn-solid,
  .tournament-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
}
