:root {
  --bg: #080509;
  --bg-soft: #120914;
  --purple: #34124f;
  --purple-bright: #8f2de2;
  --red: #8d0c1f;
  --red-bright: #d41438;
  --gold: #c99a45;
  --gold-light: #f0cf83;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(240, 207, 131, 0.22);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 5%, rgba(141, 12, 31, 0.32), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(143, 45, 226, 0.28), transparent 28%),
    linear-gradient(180deg, #050306 0%, #100711 54%, #070407 100%);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1180px);
  height: 76px;
  padding: 10px 14px 10px 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(5, 3, 6, 0.52);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: 0.28s ease;
}

.site-header.scrolled {
  top: 10px;
  height: 66px;
  background: rgba(8, 5, 9, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

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

.nav a {
  padding: 12px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 140px 18px 96px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease, transform 6.5s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 3, 6, 0.86) 0%, rgba(5, 3, 6, 0.55) 38%, rgba(5, 3, 6, 0.18) 78%),
    linear-gradient(180deg, rgba(5, 3, 6, 0.2) 0%, rgba(5, 3, 6, 0.5) 68%, #080509 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo-card {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(240, 207, 131, 0.36);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.64);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-logo-card img {
  width: 128px;
  height: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions, .modal-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border 0.22s ease;
}

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

.btn-primary {
  color: #160a09;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 14px 34px rgba(201, 154, 69, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 18px 45px rgba(201, 154, 69, 0.38);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 12px;
}

.carousel-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: 0.25s ease;
}

.carousel-dot.active {
  width: 76px;
  background: linear-gradient(90deg, var(--red-bright), var(--gold-light));
}

.section {
  position: relative;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2, .code-copy h2, .contact-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading p, .code-copy p, .contact-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card, .event-card, .contact-card, .faq-list details, .code-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.value-card {
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.value-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -74px;
  bottom: -68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 20, 56, 0.52), transparent 68%);
}

.card-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: rgba(240, 207, 131, 0.76);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.value-card h3, .event-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.value-card p, .event-card p {
  color: var(--muted);
  line-height: 1.65;
}

.code-section {
  width: min(1260px, calc(100% - 36px));
}

.code-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  padding: clamp(26px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(52, 18, 79, 0.72), rgba(141, 12, 31, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.code-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.rules-grid {
  display: grid;
  gap: 12px;
}

.rules-grid article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.rules-grid strong {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #160a09;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.rules-grid span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.event-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.event-card-body {
  padding: 24px;
}

.event-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.faq-list summary {
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--gold-light);
  font-size: 1.3rem;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-section {
  padding-bottom: 110px;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 20, 56, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
}

.contact-card > div:first-child {
  max-width: 620px;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 46px 18px 54px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: #050306;
}

.site-footer img {
  width: 82px;
  height: auto;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.56);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 18px;
}

.modal.active {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border: 1px solid rgba(240, 207, 131, 0.28);
  border-radius: 30px;
  background: #0d070e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68);
}

.modal-panel > img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.modal-content {
  padding: clamp(26px, 4vw, 46px);
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.modal-content p, .modal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.modal-content ul {
  margin: 20px 0 26px;
  padding-left: 19px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 68px;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 5, 9, 0.94);
    box-shadow: var(--shadow);
  }

  .nav.active {
    display: grid;
  }

  .nav a {
    padding: 15px 16px;
  }

  .value-grid, .event-grid, .faq-section, .code-wrap, .contact-card {
    grid-template-columns: 1fr;
  }

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

  .code-copy {
    position: static;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-panel > img {
    min-height: 0;
    height: 270px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding-left: 12px;
  }

  .brand img {
    width: 45px;
    height: 45px;
  }

  .hero {
    align-items: end;
    padding-top: 120px;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5, 3, 6, 0.18) 0%, rgba(5, 3, 6, 0.72) 48%, #080509 100%),
      linear-gradient(90deg, rgba(5, 3, 6, 0.78), rgba(5, 3, 6, 0.18));
  }

  .hero-logo-card {
    width: 128px;
    height: 128px;
    border-radius: 24px;
  }

  .hero-logo-card img {
    width: 105px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .section {
    width: min(100% - 24px, var(--max-width));
    padding: 68px 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: auto;
  }

  .rules-grid article {
    grid-template-columns: 1fr;
  }

  .event-card img {
    height: 220px;
  }

  .contact-card {
    align-items: stretch;
  }

  .contact-actions, .hero-actions, .modal-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
