/* ============ Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #07070d;
  color: #e9eaf2;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: #9ea3ff; text-decoration: none; }
a:hover { color: #c7c9ff; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ============ Background ============ */
.bg-grid { display: none; }
.bg-glow {
  position: fixed; z-index: -2;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.bg-glow--cyan {
  top: -180px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, #2bd2ff 0%, rgba(43,210,255,0) 70%);
}
.bg-glow--violet {
  bottom: -260px; right: -200px;
  background: radial-gradient(circle, #7c5cff 0%, rgba(124,92,255,0) 70%);
  animation-delay: -6s;
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,-30px) scale(1.05); }
}

/* ============ Topbar ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: 'Russo One', sans-serif; font-size: 14px;
  color: #0b0b14;
  background: linear-gradient(135deg, #6ee7ff 0%, #7c5cff 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(124,92,255,0.4), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 15px; color: #fff; }
.brand__sub { font-size: 11px; color: #8a8fa3; letter-spacing: 0.4px; }
.topbar__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 12px; color: #cfd1e0;
  backdrop-filter: blur(10px);
}
.topbar__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #29d96b;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(41,217,107,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(41,217,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(41,217,107,0); }
}

/* ============ Hero ============ */
.hero { padding: 30px 24px 60px; }
.hero__inner { width: 100%; max-width: 760px; margin: 0 auto; text-align: center; animation: fadeUp 0.7s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: #6ee7ff;
  background: rgba(110,231,255,0.08);
  border: 1px solid rgba(110,231,255,0.25);
  border-radius: 999px; margin-bottom: 28px;
}
.hero__title {
  font-family: 'Russo One', 'Inter', sans-serif;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.05; letter-spacing: -0.5px; color: #fff;
}
.hero__title-accent {
  display: inline-block;
  background: linear-gradient(135deg, #6ee7ff 0%, #7c5cff 60%, #ff5cf3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(124,92,255,0.4));
}
.hero__subtitle {
  margin: 22px auto 30px; max-width: 580px;
  font-size: clamp(15px, 1.6vw, 17px); line-height: 1.55; color: #a9adc1;
}
.hero__subtitle strong { color: #cfd1e0; font-weight: 600; }

/* Stats */
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 30px 0;
}
.stat {
  padding: 18px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.stat__value {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  background: linear-gradient(135deg, #6ee7ff, #7c5cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 4px;
}
.stat__label { font-size: 12px; color: #8a8fa3; }

/* ============ Auth (MAX) ============ */
.auth-block { margin: 0 auto 24px; max-width: 480px; }
.auth-block__divider { position: relative; text-align: center; margin-bottom: 14px; }
.auth-block__divider::before, .auth-block__divider::after {
  content: ""; position: absolute; top: 50%;
  width: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.auth-block__divider::before { left: 0; }
.auth-block__divider::after  { right: 0; }
.auth-block__divider span {
  font-size: 11px; color: #8a8fa3; letter-spacing: 1.4px; text-transform: uppercase;
}
.auth-block__hint { margin-top: 10px; font-size: 12px; color: #7e8298; }

.max-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.max-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124,92,255,0.55);
  background: linear-gradient(180deg, rgba(124,92,255,0.08) 0%, rgba(124,92,255,0.02) 100%);
}
.max-card.is-done {
  border-color: rgba(41,217,107,0.5);
  background: linear-gradient(180deg, rgba(41,217,107,0.08) 0%, rgba(41,217,107,0.02) 100%);
}
.max-card__avatar {
  position: relative; width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; display: grid; place-items: center;
  font-family: 'Russo One', sans-serif; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, #7c5cff 0%, #4b2dff 60%, #1c0cb0 100%);
  box-shadow: 0 8px 24px rgba(124,92,255,0.5), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.max-card__ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(124,92,255,0.4);
  animation: ring 2.4s ease-in-out infinite;
}
@keyframes ring {
  0%,100% { transform: scale(1);   opacity: 0.7; }
  50%     { transform: scale(1.1); opacity: 0;   }
}
.max-card__body { flex: 1; text-align: left; }
.max-card__title { font-family: 'Russo One', sans-serif; font-size: 18px; letter-spacing: 1px; color: #fff; }
.max-card__sub { margin-top: 2px; font-size: 13px; color: #9ea3b8; }
.max-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(124,92,255,0.18);
  border: 1px solid rgba(124,92,255,0.4);
  border-radius: 10px; transition: background .2s ease;
}
.max-card:hover .max-card__cta { background: rgba(124,92,255,0.35); }

/* ============ CTA ============ */
.cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 48px; min-width: 280px;
  font-family: 'Russo One', sans-serif; font-size: 18px; letter-spacing: 0.6px;
  color: #0b0b14;
  background: linear-gradient(135deg, #6ee7ff 0%, #7c5cff 60%, #ff5cf3 100%);
  border-radius: 18px; border: none; cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(124,92,255,0.45),
    0 4px 12px rgba(124,92,255,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
  text-transform: uppercase;
}
.cta:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}
.cta:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.cta__arrow { transition: transform .25s ease; }
.cta:hover:not(:disabled) .cta__arrow { transform: translateX(4px); }
.cta__shine {
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s infinite;
}
@keyframes shine {
  0%   { left: -120%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}
.cta--locked {
  background: linear-gradient(135deg, #2a2a3a 0%, #1c1c28 100%);
  color: #6b7088; cursor: not-allowed; opacity: 0.85;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.cta--locked .cta__shine { display: none; }
.cta__lock { display: none; align-items: center; }
.cta--locked .cta__lock { display: inline-flex; }

/* ============ Sections common ============ */
.section-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  color: #fff; text-align: center; margin-bottom: 8px;
}
.section-title span {
  background: linear-gradient(135deg, #ffd86b, #ff7a18);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { text-align: center; color: #8a8fa3; margin-bottom: 30px; font-size: 14px; }

/* ============ Info cards ============ */
.info { padding: 60px 24px; }
.info__grid {
  max-width: 980px; margin: 0 auto;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.info-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(110,231,255,0.4); }
.info-card__icon { font-size: 28px; margin-bottom: 12px; }
.info-card h3 { font-family: 'Russo One', sans-serif; font-size: 16px; color: #fff; margin-bottom: 8px; letter-spacing: 0.3px; }
.info-card p { font-size: 14px; color: #cfd1e0; line-height: 1.5; }
.info-card span { color: #8a8fa3; font-size: 13px; }

/* ============ Prizes ============ */
.prizes { padding: 60px 24px; max-width: 980px; margin: 0 auto; }
.prizes__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.prize {
  position: relative;
  padding: 28px 24px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  transition: transform .2s ease;
}
.prize:hover { transform: translateY(-4px); }
.prize--gold   { border-color: rgba(255,216,107,0.4); box-shadow: 0 0 40px rgba(255,180,40,0.1); }
.prize--silver { border-color: rgba(180,200,220,0.3); }
.prize--bronze { border-color: rgba(205,127,50,0.3); }
.prize__rank {
  display: inline-block; padding: 6px 14px; margin-bottom: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  border-radius: 999px;
}
.prize--gold   .prize__rank { background: linear-gradient(135deg,#ffe58a,#ff9f1c); color: #0b0b14; }
.prize--silver .prize__rank { background: linear-gradient(135deg,#dfe7ee,#9aa6b3); color: #0b0b14; }
.prize--bronze .prize__rank { background: linear-gradient(135deg,#e8a96b,#a05a26); color: #0b0b14; }
.prize__sum {
  font-family: 'Russo One', sans-serif;
  font-size: 36px; color: #fff; margin-bottom: 10px;
}
.prize__desc { font-size: 13px; color: #a9adc1; line-height: 1.5; }

/* ============ FAQ ============ */
.faq { padding: 60px 24px; max-width: 760px; margin: 0 auto; }
.faq__item {
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.faq__item summary {
  padding: 18px 22px; cursor: pointer;
  font-weight: 600; color: #fff; font-size: 15px;
  list-style: none; position: relative;
  transition: background .2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: #6ee7ff; font-weight: 300;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { background: rgba(110,231,255,0.05); }
.faq__item p { padding: 0 22px 18px; font-size: 14px; color: #c2c5d6; line-height: 1.6; }

/* ============ Final CTA ============ */
.final-cta {
  padding: 60px 24px; text-align: center;
  max-width: 720px; margin: 0 auto;
}
.final-cta h2 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px); color: #fff; margin-bottom: 12px;
}
.final-cta p { color: #a9adc1; margin-bottom: 28px; font-size: 15px; }
.final-cta strong { color: #ff5cf3; }

/* ============ Footer ============ */
.foot {
  padding: 32px 24px;
  text-align: center;
  font-size: 12px; color: #5b6076;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 40px;
}
.foot__row { margin: 6px 0; max-width: 760px; margin-left: auto; margin-right: auto; }
.foot__row--big { color: #cfd1e0; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.foot__row--small { font-size: 11px; opacity: 0.7; }
.foot a { color: #7e8298; }
.foot a:hover { color: #cfd1e0; }

/* ============ Responsive ============ */
@media (max-width: 540px) {
  .topbar { padding: 16px 18px; }
  .brand__sub { display: none; }
  .cta { padding: 18px 24px; font-size: 15px; min-width: 240px; }
  .max-card { padding: 14px; gap: 12px; }
  .max-card__avatar { width: 48px; height: 48px; font-size: 22px; }
  .max-card__cta { padding: 8px 12px; font-size: 13px; }
  .hero__stats { grid-template-columns: 1fr; }
  .info, .prizes, .faq, .final-cta { padding: 40px 18px; }
}
