:root {
  --bg: #030302;
  --panel: #0c0a06;
  --panel-soft: #121008;
  --line: rgba(230, 168, 35, 0.28);
  --line-strong: rgba(230, 168, 35, 0.48);
  --gold: #e5a51f;
  --gold-soft: #ffdc78;
  --text: #fff8e7;
  --muted: #b9aa83;
  --green: #16c784;
  --danger: #f87171;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(229, 165, 31, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(255, 220, 120, 0.08), transparent 24rem),
    linear-gradient(180deg, #050402 0%, #030302 55%, #080704 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1480px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(6.75rem, 8vw, 8.75rem);
  height: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(9, 7, 3, 0.72);
}

.desktop-nav a,
.owner-link,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 1rem;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 900;
}

.desktop-nav a {
  color: var(--muted);
}

.desktop-nav a:hover {
  color: var(--gold-soft);
  background: rgba(229, 165, 31, 0.08);
}

.owner-link,
.ghost-button {
  border: 1px solid var(--line-strong);
  background: rgba(9, 7, 3, 0.7);
  color: var(--gold-soft);
}

.owner-link:hover,
.ghost-button:hover {
  border-color: var(--gold);
  background: rgba(229, 165, 31, 0.1);
}

.hero,
.section,
.cta-section,
.site-footer {
  width: min(1480px, calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(660px, 1.18fr) minmax(360px, 0.62fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  min-height: calc(92vh - 5rem);
  padding: 3.5rem 0 4.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 5.1vw, 5.85rem);
  font-weight: 900;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.02;
}

.hero-text,
.section-heading p,
.steps-grid p,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.75;
}

.hero-text {
  max-width: 760px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.primary-button {
  min-width: 12rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #050402;
  box-shadow: 0 1rem 3rem rgba(229, 165, 31, 0.25);
}

.primary-button:hover {
  filter: brightness(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 760px;
  margin: 2rem 0 0;
}

.hero-stats div,
.hero-panel,
.steps-grid article,
.cta-section,
.loading-card,
.empty-card,
.raffle-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 16, 8, 0.92), rgba(5, 4, 2, 0.92));
  box-shadow: 0 1.6rem 5rem rgba(0, 0, 0, 0.42);
}

.hero-stats div {
  min-height: 6.4rem;
  border-radius: 1.25rem;
  padding: 1.05rem;
}

.hero-stats dt {
  font-size: 1.65rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: 1rem;
  width: min(100%, 520px);
  justify-self: end;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -6rem -4rem auto auto;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: rgba(229, 165, 31, 0.2);
  filter: blur(50px);
}

.panel-top {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.panel-top span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 220, 120, 0.35);
}

.raffle-preview {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
}

.raffle-preview p {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.raffle-preview h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
}

.quota-control {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0;
}

.quota-control button {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #050402;
  color: var(--gold-soft);
  font-size: 1.25rem;
  font-weight: 900;
}

.quota-control strong {
  display: grid;
  min-height: 3.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--gold-soft);
  font-size: 1.25rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.preview-grid span {
  height: 2.4rem;
  border: 1px solid rgba(255, 220, 120, 0.25);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(229, 165, 31, 0.2), rgba(255, 255, 255, 0.02));
}

.preview-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.preview-total small {
  color: var(--muted);
  font-weight: 800;
}

.preview-total strong {
  color: var(--gold-soft);
  font-size: 1.45rem;
  font-weight: 900;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.raffle-carousel {
  display: grid;
  grid-auto-columns: minmax(280px, 360px);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) rgba(229, 165, 31, 0.12);
}

.raffle-carousel::-webkit-scrollbar {
  height: 0.65rem;
}

.raffle-carousel::-webkit-scrollbar-track {
  background: rgba(229, 165, 31, 0.12);
  border-radius: 999px;
}

.raffle-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
}

.carousel-button {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(9, 7, 3, 0.8);
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 700;
}

.carousel-button:hover {
  background: rgba(229, 165, 31, 0.13);
}

.raffle-card,
.loading-card,
.empty-card {
  min-height: 24rem;
  border-radius: 1.5rem;
  overflow: hidden;
  scroll-snap-align: start;
}

.loading-card,
.empty-card {
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.empty-card-simple {
  min-height: 10rem;
  box-shadow: none;
}

.raffle-card-image {
  position: relative;
  height: 13rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 15%, rgba(255, 220, 120, 0.26), transparent 7rem),
    linear-gradient(135deg, #181005, #050402);
}

.raffle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  border-radius: 999px;
  background: rgba(22, 199, 132, 0.16);
  padding: 0.45rem 0.75rem;
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.raffle-card-body {
  padding: 1.1rem;
}

.raffle-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.raffle-card p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.raffle-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

.raffle-meta span {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.raffle-meta strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 0.9rem;
}

.raffle-card .primary-button {
  width: 100%;
  min-width: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps-grid article {
  border-radius: 1.4rem;
  padding: 1.3rem;
}

.steps-grid span {
  display: inline-grid;
  min-width: 2.6rem;
  min-height: 2.6rem;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(229, 165, 31, 0.14);
  color: var(--gold);
  font-weight: 900;
}

.steps-grid h3 {
  margin: 1.1rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  border-radius: 2rem;
  padding: 2rem;
}

.cta-section h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
  font-weight: 900;
}

.footer-logo {
  display: block;
  width: 10rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--gold-soft);
  font-weight: 900;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-panel {
    width: 100%;
    justify-self: stretch;
  }

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

  .cta-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 1rem, 1480px);
  }

  .brand-logo {
    width: 6.75rem;
  }

  .owner-link {
    min-height: 2.55rem;
    padding-inline: 0.85rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .carousel-shell {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    display: none;
  }

  .raffle-carousel {
    grid-auto-columns: minmax(255px, 86vw);
  }
}
