:root {
  --bg: #070707;
  --panel: #101010;
  --panel-2: #151515;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --red: #d31224;
  --red-dark: #7c0712;
  --line: #2b2b2b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 5%, rgba(211, 18, 36, 0.22), transparent 34rem),
    radial-gradient(circle at 12% 45%, rgba(150, 0, 20, 0.11), transparent 30rem),
    radial-gradient(circle at 88% 45%, rgba(170, 0, 20, 0.11), transparent 30rem),
    linear-gradient(180deg, #0b0708 0%, #080707 45%, #050505 100%);
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

/* One large animated smoke layer. No repeating / tiling. */
body::before {
  content: "";
  position: fixed;
  top: -12vh;
  left: -12vw;
  width: 124vw;
  height: 124vh;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/warmutts-smoke-seamless.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.78;
  filter: brightness(1.20) contrast(1.03);
  animation: smokeFloat 18s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 10%, rgba(225, 20, 42, 0.19), transparent 34%),
    radial-gradient(circle at 15% 60%, rgba(170, 0, 24, 0.10), transparent 32%),
    radial-gradient(circle at 85% 55%, rgba(175, 0, 24, 0.10), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(130, 0, 20, 0.09), transparent 35%);
  animation: redAtmosphere 10s ease-in-out infinite;
  will-change: transform, opacity;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

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

button,
input {
  font: inherit;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(211, 18, 36, 0.35));
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d4d4d4;
  font-weight: 700;
}

.nav-button,
.primary,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: 1px solid #f22b3d;
  box-shadow: 0 0 28px rgba(211, 18, 36, 0.24);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

.nav-button:hover,
.primary:hover,
.buy-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(211, 18, 36, 0.38);
  filter: brightness(1.10);
}

.buy-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
  border-color: #4a3033;
}

.secondary {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #444;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  font-weight: 900;
  backdrop-filter: blur(6px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  min-height: 720px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px 100px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: 1150px;
  height: 480px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(211, 18, 36, 0.11);
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: rgba(211, 18, 36, 0.15);
  filter: blur(100px);
  pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite;
}

.hero-logo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  filter:
    drop-shadow(0 0 30px rgba(211, 18, 36, 0.55))
    drop-shadow(0 0 70px rgba(120, 0, 15, 0.25));
}

.eyebrow {
  color: #ff4251;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  font-weight: 900;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  margin: 8px 0 12px;
  letter-spacing: -0.055em;
  line-height: 0.88;
  position: relative;
}

h1 span {
  color: #fff;
  text-shadow:
    0 0 42px rgba(211, 18, 36, 0.42),
    0 0 90px rgba(211, 18, 36, 0.14);
}

.lead {
  max-width: 720px;
  margin: 12px auto 26px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  position: relative;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.domain {
  margin-top: 28px;
  color: #777;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.section-heading h2,
.cta h2,
.checkout-modal h2 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.section-heading > p:last-child {
  color: var(--muted);
}

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

.card,
.rank-card {
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.82), rgba(10, 10, 10, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 60, 75, 0.30);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(211, 18, 36, 0.06);
}

.card h3,
.rank-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

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

.ranks {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.rank-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.rank-card > span {
  color: #666;
  font-weight: 900;
  font-size: 0.8rem;
}

.rank-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.rank-price {
  color: #ff4b5a;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.rank-card.featured {
  border-color: rgba(255, 55, 73, 0.72);
  background:
    linear-gradient(180deg, rgba(40, 12, 15, 0.86), rgba(14, 8, 9, 0.82));
  box-shadow: 0 0 38px rgba(211, 18, 36, 0.18);
}

.purchase-note {
  margin-top: 22px;
  padding: 18px 20px;
  display: flex;
  gap: 8px;
  flex-direction: column;
  color: var(--muted);
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.purchase-note strong {
  color: #e8e8e8;
}

.cta {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 90px;
  padding: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  background:
    linear-gradient(135deg, rgba(24, 18, 19, 0.92), rgba(12, 12, 12, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  box-shadow:
    0 0 45px rgba(211, 18, 36, 0.09),
    0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.cta img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 20px rgba(211, 18, 36, 0.32));
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #777;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

/* Checkout modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.checkout-modal {
  width: min(520px, 100%);
  position: relative;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(211, 18, 36, 0.13), transparent 55%),
    #0d0d0d;
  border: 1px solid rgba(255, 72, 88, 0.34);
  border-radius: 18px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(211, 18, 36, 0.10);
}

.checkout-modal h2 {
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #8d8d8d;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-copy {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

#checkout-form {
  display: grid;
  gap: 10px;
}

#checkout-form label {
  color: #dedede;
  font-weight: 800;
}

#discord-handle {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: #fff;
  background: #080808;
  border: 1px solid #383838;
  border-radius: 8px;
  outline: none;
}

#discord-handle:focus {
  border-color: #b70e1e;
  box-shadow: 0 0 0 3px rgba(211, 18, 36, 0.10);
}

.field-help {
  margin: 0 0 10px;
  color: #777;
  font-size: 0.82rem;
  line-height: 1.5;
}

.modal-submit {
  width: 100%;
  margin-top: 4px;
}

.checkout-error {
  min-height: 20px;
  margin: 2px 0 0;
  color: #ff6473;
  font-size: 0.88rem;
}

@keyframes smokeFloat {
  0% {
    transform: translate3d(-1%, 1%, 0) scale(1.03);
  }

  25% {
    transform: translate3d(0.5%, -0.5%, 0) scale(1.045);
  }

  50% {
    transform: translate3d(1%, -1%, 0) scale(1.05);
  }

  75% {
    transform: translate3d(0.5%, 0.5%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-0.5%, 1%, 0) scale(1.035);
  }
}

@keyframes redAtmosphere {
  0% {
    opacity: 0.76;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    opacity: 0.80;
    transform: scale(1);
  }
}

@keyframes heroGlow {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.09);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  .grid.three {
    grid-template-columns: 1fr;
  }

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

  .cta {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  body::before {
    left: -20vw;
    width: 140vw;
    opacity: 0.72;
  }
}

@media (max-width: 650px) {
  .nav {
    padding: 14px 0;
  }

  nav > a:not(.nav-button) {
    display: none;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero-logo {
    width: 135px;
    height: 135px;
  }

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

  footer {
    flex-direction: column;
  }

  body::before {
    top: -10vh;
    left: -30vw;
    width: 160vw;
    height: 125vh;
    opacity: 0.68;
  }

  .checkout-modal {
    padding: 28px 20px;
  }
}
