:root {
  --bg: #070707;
  --panel: #121212;
  --panel-hover: #171717;
  --text: #f4f4f4;
  --muted: #9b9b9b;
  --red: #b3131b;
  --red-bright: #e11d2e;
  --gold: #d6a849;
  --gold-soft: #8f6d2b;
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at top, rgba(179,19,27,0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  background: rgba(7,7,7,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 900;
  letter-spacing: 1.6px;
  color: var(--gold);
}

nav { display: flex; gap: 28px; }
nav a { color: #d0d0d0; font-size: 14px; transition: 0.2s ease; }
nav a:hover { color: white; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 70px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(214,168,73,0.3);
  border-radius: 50px;
  background: rgba(214,168,73,0.06);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(58px, 10vw, 118px);
  line-height: 0.92;
  font-weight: 1000;
  letter-spacing: -4px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 20%, #d8d8d8 65%, #8d8d8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.motto {
  font-size: clamp(20px, 3vw, 34px);
  color: #d5d5d5;
  line-height: 1.35;
  margin-bottom: 42px;
}

.motto span {
  display: block;
  color: var(--gold);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.6px;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  box-shadow: 0 10px 35px rgba(225,29,46,0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 45px rgba(225,29,46,0.32);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: #dddddd;
}

.btn-secondary:hover { background: rgba(255,255,255,0.07); }

.hero-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179,19,27,0.12), transparent 68%);
  bottom: -260px;
}

.section { padding: 120px 7%; }

.section-heading {
  max-width: 650px;
  margin-bottom: 52px;
}

.section-heading span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--gold);
}

.section-heading h2 {
  font-size: clamp(38px, 5vw, 64px);
  margin-top: 10px;
  margin-bottom: 14px;
  letter-spacing: -2px;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.clan-card,
.loading-card {
  min-height: 290px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.02), transparent),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.clan-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.clan-card:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
  border-color: rgba(214,168,73,0.22);
}

.clan-card.featured {
  border-color: rgba(214,168,73,0.35);
  box-shadow: inset 0 0 0 1px rgba(214,168,73,0.05);
}

.hot-clan {
  border-color: rgba(255, 105, 0, 0.30);
}

.clan-number {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.clan-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.clan-badge {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}

.clan-title-wrap h3 {
  font-size: 23px;
  margin-bottom: 5px;
}

.clan-tag {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.clan-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 22px;
}

.stat {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 9px;
  padding: 10px 11px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  font-weight: 800;
  color: white;
}

.streak-value {
  color: #ffb14a;
}

.clan-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.7px;
  max-width: 75%;
}

.fire-badge {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: 0.98;
  transform: rotate(-8deg);
  filter:
    drop-shadow(0 5px 12px rgba(0,0,0,0.55))
    drop-shadow(0 0 10px rgba(255,90,0,0.32));
  pointer-events: none;
  user-select: none;
}

.loading-card {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.tournament-section { padding: 30px 7% 120px; }

.tournament-box {
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 16px;
  border: 1px solid rgba(179,19,27,0.24);
  background:
    radial-gradient(circle at top right, rgba(179,19,27,0.15), transparent 40%),
    #101010;
}

.tournament-label {
  color: var(--red-bright);
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 900;
}

.tournament-box h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -1.7px;
}

.tournament-box p { color: var(--muted); }

.btn-tournament {
  border: 1px solid rgba(225,29,46,0.35);
  background: rgba(225,29,46,0.08);
  color: #ffffff;
  white-space: nowrap;
}

.btn-tournament:hover {
  background: var(--red);
  border-color: var(--red);
}

footer {
  min-height: 120px;
  padding: 30px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer strong { color: var(--gold); }

@media (max-width: 900px) {
  .clan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .topbar { padding: 0 20px; }
  nav { gap: 14px; }
  nav a:nth-child(1) { display: none; }
  .hero h1 { letter-spacing: -2px; }
  .section { padding: 90px 20px; }
  .clan-grid { grid-template-columns: 1fr; }
  .tournament-section { padding: 0 20px 90px; }
  .tournament-box { padding: 30px; }
  footer {
    padding: 28px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .fire-badge {
    width: 78px;
    height: 78px;
  }
}
