/* ── LifestealMC ─────────────────────────────────────────── */

@property --ga {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@view-transition {
  navigation: auto;
}

:root {
  --bg: #0a0a0d;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f1f3;
  --muted: #a6a4ae;
  --faint: #6f6d78;
  --red: #e8393f;
  --red-2: #ff5157;
  --red-deep: #8f1219;
  --glow: rgba(232, 57, 63, 0.35);
  --gold: #f0bf4c;
  --silver: #c8d2dc;
  --bronze: #cd8a52;
  --blurple: #5865f2;
  --green: #3ecf77;
  --font-d: 'Unbounded', system-ui, sans-serif;
  --font-b: 'Outfit', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

#main {
  flex: 1 0 auto;
}

#embers,
#embers3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.fx .h-1,
.fx .h-2,
.fx .h-3,
.fx .h-4,
.fx .h-5 {
  animation: none;
}

.fx .reveal {
  transition: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 150;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red-2), #ff9a76);
  box-shadow: 0 0 14px rgba(232, 57, 63, 0.65);
}

.burst {
  position: fixed;
  z-index: 210;
  pointer-events: none;
  color: var(--red-2);
  filter: drop-shadow(0 0 6px rgba(232, 57, 63, 0.7));
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

@keyframes glow-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(44px, 26px, 0) scale(1.12);
  }
}

@keyframes glow-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.06);
  }
  to {
    transform: translate3d(-52px, -22px, 0) scale(0.94);
  }
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #26252c;
  border-radius: 8px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3941;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.ic {
  width: 18px;
  height: 18px;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.vh,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  width: auto;
  height: auto;
  clip-path: none;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(10, 10, 13, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.brand-name em {
  font-style: normal;
  color: var(--red-2);
}

.brand-logo {
  height: 29px;
  width: auto;
  border-radius: 0 !important;
  filter: drop-shadow(0 3px 12px rgba(232, 57, 63, 0.35));
}

.footer .brand-logo {
  height: 27px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red-2);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--red-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.mobile-only {
  display: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.icon-btn:hover {
  color: #8893ff;
  border-color: rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
  opacity: 0;
}

.menu-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons & chips ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.78rem 1.45rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  border-radius: 14px;
  font-size: 1.02rem;
}

.btn-primary,
.btn-store {
  background: linear-gradient(135deg, #ff4046, #c11d27);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover,
.btn-store:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 38px -10px rgba(232, 57, 63, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-store {
  position: relative;
  overflow: hidden;
  animation: store-pulse 2.6s ease-in-out infinite;
}

.btn-store::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: store-shine 3.4s ease-in-out infinite;
}

@keyframes store-shine {
  0%, 54% {
    transform: translateX(0) skewX(-20deg);
  }
  78%, 100% {
    transform: translateX(420%) skewX(-20deg);
  }
}

@keyframes store-pulse {
  0%, 100% {
    box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  50% {
    box-shadow: 0 12px 38px -8px rgba(232, 57, 63, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(232, 57, 63, 0.55);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.btn-discord {
  background: linear-gradient(135deg, #5d6af3, #4351e8);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(88, 101, 242, 0.5);
}

.btn-discord:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ip-chip .ic {
  width: 14px;
  height: 14px;
  color: var(--faint);
  transition: color 0.25s ease;
}

.ip-chip:hover {
  border-color: rgba(232, 57, 63, 0.55);
  box-shadow: 0 0 22px -6px var(--glow);
}

.ip-chip:hover .ic {
  color: var(--red-2);
}

.ic-check {
  display: none;
  color: var(--green);
}

.copied .ic-copy {
  display: none;
}

.copied .ic-check {
  display: block;
  animation: pop 0.35s cubic-bezier(0.16, 1.4, 0.3, 1);
}

.copied {
  border-color: rgba(62, 207, 119, 0.6) !important;
}

@keyframes pop {
  from {
    transform: scale(0.4);
  }
  to {
    transform: scale(1);
  }
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 155px 0 110px;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 13, 0.85) 70%, var(--bg));
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(65% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(65% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-glow i:nth-child(1) {
  width: 900px;
  height: 520px;
  left: 50%;
  top: -300px;
  margin-left: -450px;
  background: rgba(232, 57, 63, 0.2);
  animation: glow-a 16s ease-in-out infinite alternate;
}

.hero-glow i:nth-child(2) {
  width: 540px;
  height: 420px;
  right: -170px;
  bottom: -120px;
  background: rgba(232, 57, 63, 0.09);
  animation: glow-b 21s ease-in-out infinite alternate;
}

.hero-glow i:nth-child(3) {
  width: 480px;
  height: 380px;
  left: -150px;
  bottom: -90px;
  background: rgba(255, 122, 80, 0.07);
  animation: glow-a 19s ease-in-out infinite alternate-reverse;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-logo {
  margin: 2.7rem auto 0;
  width: min(94%, 780px);
  height: auto;
  filter: drop-shadow(0 18px 55px rgba(232, 57, 63, 0.38));
}

.hero-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  margin-top: 2.1rem;
}

.hero-wordmark img {
  border-radius: 19px;
  box-shadow: 0 14px 44px -8px rgba(232, 57, 63, 0.45), 0 0 0 1px var(--line-2);
}

.hero-wordmark span {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.3rem, 6.4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff, #cfccd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-wordmark em {
  font-style: normal;
  background: linear-gradient(180deg, var(--red-2), #b3161f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-inner {
  margin-top: 2.2rem;
}

.hero-title {
  margin-top: 2.3rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.1vw, 2.15rem);
  line-height: 1.35;
}

.hero-title em {
  font-style: normal;
  color: var(--red-2);
}

.hero-lede {
  margin: 1.25rem auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.68;
}

.hero-cta {
  margin-top: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-cta .ip-pill {
  padding: 1.15rem 2.8rem 1.25rem;
  border-radius: 24px;
}

.hero-cta .ip-pill-text {
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
}

.hero-cta .ip-pill .ic {
  width: 22px;
  height: 22px;
}

.ip-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 2.1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(232, 57, 63, 0.3);
  background: rgba(17, 15, 20, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: ip-breathe 4.2s ease-in-out infinite;
}

.ip-pill:hover {
  border-color: rgba(232, 57, 63, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 18px 55px -14px rgba(232, 57, 63, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@keyframes ip-breathe {
  0%, 100% {
    box-shadow: 0 8px 38px -14px rgba(232, 57, 63, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
  50% {
    box-shadow: 0 12px 52px -12px rgba(232, 57, 63, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

.ip-pill-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.ip-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.ip-pill-text {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.02em;
}

.ip-pill .ic {
  width: 20px;
  height: 20px;
  color: var(--faint);
  transition: color 0.25s ease;
}

.ip-pill:hover .ic-copy {
  color: var(--red-2);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  animation: cue-bob 2.4s ease-in-out infinite;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--text);
  border-color: rgba(232, 57, 63, 0.55);
}

@keyframes cue-bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
}

/* hero entrance */

.h-1, .h-2, .h-3, .h-4, .h-5 {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.h-2 { animation-delay: 0.08s; }
.h-3 { animation-delay: 0.16s; }
.h-4 { animation-delay: 0.24s; }
.h-5 { animation-delay: 0.34s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Sections ────────────────────────────────────────────── */

.section-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  flex: 1;
}

.section-divider::before {
  background: linear-gradient(90deg, transparent, rgba(232, 57, 63, 0.4));
}

.section-divider::after {
  background: linear-gradient(90deg, rgba(232, 57, 63, 0.4), transparent);
}

.section-divider .ic {
  width: 15px;
  height: 15px;
  color: var(--red-2);
  filter: drop-shadow(0 0 9px rgba(232, 57, 63, 0.8));
}

.section {
  padding: 6.5rem 0;
}

.section-alt {
  background: rgba(15, 14, 19, 0.6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 3.2rem;
}

.section-head h2,
.discord-copy h2,
.lb-head h2 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.25;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 1rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 57, 63, 0.7));
}

.eyebrow::after {
  background: linear-gradient(90deg, rgba(232, 57, 63, 0.7), transparent);
}

.section-lede {
  margin: 1rem auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.04rem;
}

/* cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.card {
  padding: 1.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 57, 63, 0.42);
  box-shadow: 0 20px 46px -20px var(--glow);
}

.card-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--red-2);
  background: rgba(232, 57, 63, 0.1);
  border: 1px solid rgba(232, 57, 63, 0.28);
}

.card-ico .ic {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  margin: 1rem 0 0.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.step {
  padding: 1.9rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.step:hover {
  border-color: var(--line-2);
}

.step-num {
  display: block;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
  margin-bottom: 1.1rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 57, 63, 0.75);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

.ip-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--red-2);
  cursor: pointer;
  border-bottom: 1px dashed rgba(232, 57, 63, 0.5);
  transition: color 0.2s ease;
}

.ip-inline:hover {
  color: #ff7478;
}

.ip-inline.copied {
  color: var(--green);
  border-bottom-color: rgba(62, 207, 119, 0.6);
}

/* discord + cta duo */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1.3rem;
}

.discord-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 1.6rem;
  padding: 3.2rem 2.2rem;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.09), rgba(232, 57, 63, 0.05) 55%, rgba(255, 255, 255, 0.015));
}

.fancy {
  position: relative;
}

.fancy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ga), transparent 4%, rgba(88, 101, 242, 0.9) 14%, rgba(232, 57, 63, 0.9) 32%, transparent 44%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spin-border 8s linear infinite;
  pointer-events: none;
}

@keyframes spin-border {
  to {
    --ga: 360deg;
  }
}

.discord-copy p {
  color: var(--muted);
  margin: 1rem auto 1.7rem;
  max-width: 50ch;
  line-height: 1.65;
}

.discord-art {
  display: grid;
  place-items: center;
}

.discord-logo {
  width: 104px;
  height: 104px;
  color: var(--blurple);
  opacity: 0.9;
  filter: drop-shadow(0 0 38px rgba(88, 101, 242, 0.45));
  animation: float 5s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(-8px);
  }
}

/* cta */

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  text-align: center;
  padding: 3.2rem 2.2rem;
  border-radius: 30px;
  border: 1px solid rgba(232, 57, 63, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01) 60%);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(232, 57, 63, 0.55), rgba(232, 57, 63, 0.06) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(75% 95% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(75% 95% at 50% 0%, #000 25%, transparent 80%);
  pointer-events: none;
}

.cta-glow i:nth-child(1) {
  width: 740px;
  height: 380px;
  left: 50%;
  top: -230px;
  margin-left: -370px;
  background: rgba(232, 57, 63, 0.22);
  animation: glow-a 14s ease-in-out infinite alternate;
}

.cta-glow i:nth-child(2) {
  width: 440px;
  height: 300px;
  right: -130px;
  bottom: -160px;
  background: rgba(255, 122, 80, 0.1);
  animation: glow-b 18s ease-in-out infinite alternate;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

.cta-inner h2 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.cta-lede {
  margin: 1rem 0 2.3rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44ch;
}

.ip-pill-cta {
  padding: 1.1rem 2.6rem 1.2rem;
}

.ip-pill-cta .ip-pill-text {
  font-size: clamp(1.15rem, 3vw, 1.7rem);
}

.cta-note {
  margin-top: 1.6rem;
  color: var(--faint);
  font-size: 0.95rem;
}

/* ── Leaderboards ────────────────────────────────────────── */

.page-head {
  position: relative;
  padding: calc(72px + 5rem) 0 0;
  text-align: center;
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.page-glow {
  overflow: visible;
}

.page-glow i {
  width: 820px;
  height: 460px;
  left: 50%;
  top: -280px;
  margin-left: -410px;
  background: rgba(232, 57, 63, 0.18);
  animation: glow-a 16s ease-in-out infinite alternate;
}

.page-head h1 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.page-lede {
  margin: 1rem auto 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.demo-badge {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(240, 191, 76, 0.08);
  border: 1px solid rgba(240, 191, 76, 0.32);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.66rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tab .ic {
  width: 16px;
  height: 16px;
}

.tab:hover {
  color: var(--text);
  border-color: var(--line-2);
  transform: translateY(-1px);
}

.tab.active {
  background: linear-gradient(135deg, #ff4046, #bb1c25);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--glow);
}

.lb-section {
  padding-top: 3.6rem;
}

.lb-soon {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
}

.lb-soon-ic {
  width: 52px;
  height: 52px;
  color: var(--gold);
  opacity: 0.9;
}

.lb-soon h2 {
  margin: 1rem 0 0.6rem;
}

.lb-soon p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto;
}

.lb-soon-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.lb-head {
  text-align: center;
  margin-bottom: 2.7rem;
}

.lb-head p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  gap: 1rem;
  align-items: end;
  max-width: 780px;
  margin: 0 auto;
}

.pod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1.8rem 1rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.pod.p1 {
  padding: 2.7rem 1rem 1.9rem;
  border-color: rgba(240, 191, 76, 0.38);
  background: linear-gradient(180deg, rgba(240, 191, 76, 0.07), rgba(255, 255, 255, 0.012));
}

.pod-crown {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translateX(-50%) rotate(-11deg);
  color: var(--gold);
  filter: drop-shadow(0 4px 14px rgba(240, 191, 76, 0.55));
}

.pod-rank {
  position: absolute;
  top: 0.9rem;
  left: 1.1rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.85rem;
}

.p1 .pod-rank { color: var(--gold); }
.p2 .pod-rank { color: var(--silver); }
.p3 .pod-rank { color: var(--bronze); }

.pod-avatar {
  border-radius: 18px;
}

.p1 .pod-avatar {
  box-shadow: 0 0 0 3px rgba(240, 191, 76, 0.85), 0 16px 44px -12px rgba(240, 191, 76, 0.5);
}

.p2 .pod-avatar {
  box-shadow: 0 0 0 3px rgba(200, 210, 220, 0.7), 0 14px 36px -14px rgba(200, 210, 220, 0.4);
}

.p3 .pod-avatar {
  box-shadow: 0 0 0 3px rgba(205, 138, 82, 0.75), 0 14px 36px -14px rgba(205, 138, 82, 0.45);
}

.pod-name {
  font-weight: 700;
  font-size: 1.04rem;
  margin-top: 0.4rem;
}

.pod-value {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--red-2);
}

.pod-value em {
  font-style: normal;
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--faint);
}

.lb-rows {
  list-style: none;
  margin: 2.5rem auto 0;
  columns: 3;
  column-gap: 1rem;
}

.lb-row {
  display: grid;
  grid-template-columns: 2.5rem 38px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.95rem;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid transparent;
  break-inside: avoid;
  margin-bottom: 0.55rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.lb-row:hover {
  border-color: rgba(232, 57, 63, 0.38);
  background: var(--panel-2);
  box-shadow: 0 8px 24px -12px var(--glow);
}

.lb-row img {
  border-radius: 9px;
}

.lb-rank {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--faint);
}

.lb-row.top .lb-rank {
  color: var(--red-2);
}

.lb-name {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-val {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 0.82rem;
  text-align: right;
}

.lb-val em {
  font-style: normal;
  font-family: var(--font-b);
  font-size: 0.78rem;
  color: var(--faint);
}

.lb-note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--faint);
  font-size: 0.92rem;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(12, 11, 15, 0.78);
  padding: 4.5rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 1.1rem 0 1.5rem;
  max-width: 38ch;
}

.footer-banner {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.footer-col h2 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.32rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-meta {
  display: block;
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.86rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 3.4rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.86rem;
}

.footer-ip {
  font-family: var(--font-d);
  font-size: 0.76rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-legal a {
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--gold);
}

/* ── Legal pages ─────────────────────────────────────────── */

.legal-section {
  padding-top: 3.2rem;
}

.legal {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.legal h2 {
  font-family: var(--font-d);
  font-size: 1.18rem;
  color: var(--text);
  margin: 2.4rem 0 0.7rem;
}

.legal p {
  margin: 0 0 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal strong {
  color: var(--text);
}

.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Toast ───────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  background: rgba(16, 15, 19, 0.94);
  border: 1px solid rgba(62, 207, 119, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast .ic {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Error page ──────────────────────────────────────────── */

.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  background: radial-gradient(50% 40% at 50% 20%, rgba(232, 57, 63, 0.12), transparent 70%);
}

.error-page .container {
  width: 100%;
}

.error-code {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(232, 57, 63, 0.8);
}

.error-page h1 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--muted);
  margin: 1.2rem 0 2.2rem;
}

.error-page .hero-buttons {
  margin: 0;
}

/* ── Reveal on scroll ────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.stagger > :nth-child(2) {
  transition-delay: 0.1s;
}

.stagger > :nth-child(3) {
  transition-delay: 0.2s;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1020px) {
  .lb-rows {
    columns: 2;
  }

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

@media (max-width: 920px) {
  .nav-inner {
    height: 64px;
    gap: 1rem;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.4rem 1.4rem;
    background: rgba(10, 10, 13, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.7rem 0.2rem;
    font-size: 1.05rem;
  }

  .nav-link.active::after {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .nav .icon-btn,
  .nav .btn-store {
    display: none;
  }

  .page-head {
    padding-top: calc(64px + 4rem);
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.5rem 0;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .discord-card {
    padding: 2.4rem 1.6rem;
  }

  .discord-logo {
    width: 90px;
    height: 90px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .podium {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .pod.p1 {
    order: -1;
  }

  .lb-rows {
    columns: 1;
    max-width: 480px;
  }

  .lb-row {
    grid-template-columns: 2.2rem 36px 1fr auto;
    gap: 0.7rem;
    padding: 0.5rem 0.8rem;
  }

  .lb-row img {
    width: 36px;
    height: 36px;
  }

  .cta-card {
    padding: 2.6rem 1.4rem;
    border-radius: 24px;
  }

  .hero-buttons .btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 0.96rem;
  }
}

@media (max-width: 460px) {
  .nav .brand-name {
    display: none;
  }

  .brand-logo {
    height: 24px;
  }

  .nav .ip-chip span {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ip-pill {
    padding: 0.85rem 1.4rem 0.95rem;
  }

  .hero-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .hero-wordmark span {
    font-size: clamp(1.7rem, 9vw, 2.3rem);
  }

  .hero-wordmark img {
    width: 60px;
    height: 60px;
  }
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  #embers,
  #embers3d {
    display: none;
  }
}
