@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap");

:root {
--font-main: "Inter", system-ui, sans-serif;
--font-title: "Outfit", system-ui, sans-serif;

--bg: #090C0B;
--bg-soft: #0D1211;

--surface: rgba(16, 22, 20, 0.88);
--surface-solid: #111916;
--surface-hover: #17211D;

--header: rgba(9, 12, 11, 0.78);

--text: #F7F8F7;
--text-soft: #A7B1AB;
--muted: #707B75;

--primary: #00FFFF;
--primary-light: #7AFFFF;
--primary-dark: #00B8D4;
--primary-soft: rgba(0, 255, 255, 0.14);

--green: #00D9B8;
--green-soft: rgba(0, 217, 184, 0.13);

--blue: #008CFF;

--border: rgba(255, 255, 255, 0.09);
--border-strong: rgba(255, 255, 255, 0.16);

--shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
--shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.2);

--radius-sm: 13px;
--radius-md: 21px;
--radius-lg: 31px;

--header-height: 78px;
--container: 1220px;
--ease: 260ms ease;
}

html[data-theme="light"] {
  --bg: #f7f2f4;
  --bg-soft: #fffafb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-hover: #fff4f7;
  --header: rgba(255, 250, 251, 0.82);
  --text: #1d241c;
  --text-soft: #685c61;
  --muted: #92868b;
  --primary: #54d94f;
  --primary-light: #83ed79;
  --primary-dark: #33b62f;
  --primary-soft: rgba(123, 217, 79, 0.11);
  --green: #3d9e55;
  --green-soft: rgba(61, 158, 85, 0.1);
  --border: rgba(45, 28, 36, 0.1);
  --border-strong: rgba(45, 28, 36, 0.18);
  --shadow: 0 24px 70px rgba(77, 45, 58, 0.14);
  --shadow-soft: 0 14px 42px rgba(77, 45, 58, 0.1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(239, 114, 160, 0.08), transparent 26%),
    radial-gradient(circle at 92% 20%, rgba(118, 220, 131, 0.05), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  transition: background-color var(--ease), color var(--ease);
}

body.menu-open,
body.cart-open,
body.lightbox-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 105px 0;
}

.section-small {
  padding: 72px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.section-title {
  max-width: 760px;
  font-family: var(--font-title);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.section-title span {
  color: var(--primary);
}

.section-copy {
  max-width: 650px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.85;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 48px;
}

.section-heading > p {
  color: var(--text-soft);
  line-height: 1.85;
}

/* Pixel Minecraft cherry leaves */
.petals-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.petal {
  position: absolute;
  top: -48px;
  left: var(--left);
  width: 6px;
  height: 6px;
  opacity: var(--opacity);
  pointer-events: none;
  will-change: transform;
  animation-name: leaf-fall;
  animation-duration: var(--fall-duration);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.petal::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: var(--leaf-main);
  box-shadow:
    6px 0 var(--leaf-main),
    12px 0 var(--leaf-light),
    0 6px var(--leaf-main),
    6px 6px var(--leaf-dark),
    12px 6px var(--leaf-main),
    6px 12px var(--leaf-main);
  image-rendering: pixelated;
  transform-origin: center;
  transform:
    scale(var(--leaf-scale))
    rotate(var(--start-rotation));
  animation-name: leaf-spin;
  animation-duration: var(--spin-duration);
  animation-timing-function: steps(8);
  animation-iteration-count: infinite;
  filter:
    drop-shadow(0 3px 2px rgba(65, 20, 39, 0.32))
    drop-shadow(0 0 4px rgba(255, 158, 194, 0.18));
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -10vh, 0);
  }

  20% {
    transform: translate3d(var(--drift-one), 22vh, 0);
  }

  45% {
    transform: translate3d(var(--drift-two), 50vh, 0);
  }

  72% {
    transform: translate3d(var(--drift-three), 80vh, 0);
  }

  100% {
    transform: translate3d(var(--drift-four), 115vh, 0);
  }
}

@keyframes leaf-spin {
  to {
    transform:
      scale(var(--leaf-scale))
      rotate(calc(var(--start-rotation) + 720deg));
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-header.scrolled {
  background: var(--header);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  font-family: var(--font-title);
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(239, 114, 160, 0.25);
  transition: transform var(--ease);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -60% -80%;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.55), transparent 60%);
  transform: translateX(-65%) rotate(8deg);
  transition: transform 650ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-5deg) scale(1.05);
}

.brand:hover .brand-mark::after {
  transform: translateX(65%) rotate(8deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-copy strong {
  font-family: var(--font-title);
  font-size: 19px;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 22px;
}

.nav-store {
  margin-left: 4px;
  padding-inline: 18px;
  background: var(--primary-soft);
  color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.icon-button:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 114, 160, 0.45);
  box-shadow: var(--shadow-soft);
}

.theme-icon {
  position: absolute;
  font-size: 20px;
  transition: opacity var(--ease), transform var(--ease);
}

.theme-sun {
  opacity: 0;
  transform: translateY(24px) rotate(90deg);
}

.theme-moon {
  opacity: 1;
}

html[data-theme="light"] .theme-sun {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

html[data-theme="light"] .theme-moon {
  opacity: 0;
  transform: translateY(-24px) rotate(-90deg);
}

.menu-button {
  display: none;
  padding: 10px;
}

.menu-button span {
  width: 21px;
  height: 2px;
  display: block;
  margin: 3px 0;
  border-radius: 99px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-button.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.button {
  position: relative;
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  padding: 14px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-25deg);
  transition: left 650ms ease;
}

.button:hover::before {
  left: 150%;
}

.button:hover {
  transform: translateY(-4px);
}

.button:active {
  transform: translateY(-1px) scale(.98);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  box-shadow: 0 18px 42px rgba(239, 114, 160, .26);
}

.button-primary:hover {
  box-shadow: 0 24px 54px rgba(239, 114, 160, .36);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.button-secondary:hover {
  border-color: rgba(239, 114, 160, .45);
  background: var(--primary-soft);
}

.button-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 18px 42px rgba(88, 101, 242, .28);
}

.button-small {
  min-height: 46px;
  padding: 11px 17px;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 82px) 0 95px;
}

.hero-background,
.page-hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,12,11,.98) 0%, rgba(9,12,11,.88) 46%, rgba(9,12,11,.46) 100%),
    linear-gradient(to bottom, transparent 58%, var(--bg));
}

html[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(247,242,244,.98) 0%, rgba(247,242,244,.9) 46%, rgba(247,242,244,.5) 100%),
    linear-gradient(to bottom, transparent 58%, var(--bg));
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  gap: 72px;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 9px 14px;
  border: 1px solid rgba(118,220,131,.24);
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(118,220,131,.5); }
  70% { box-shadow: 0 0 0 9px rgba(118,220,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(118,220,131,0); }
}

.hero h1 {
  max-width: 760px;
  font-family: var(--font-title);
  font-size: clamp(52px, 6.5vw, 86px);
  line-height: .98;
  letter-spacing: -3px;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(100deg, var(--primary-light), var(--primary), #ffd0df);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 630px;
  margin-top: 26px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.82;
}

.ip-button {
  min-width: 260px;
  justify-content: flex-start;
}

.ip-button .button-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.16);
}

.ip-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
}

.ip-copy small {
  margin-bottom: 4px;
  opacity: .75;
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.copy-toast {
  height: 0;
  overflow: hidden;
  margin-top: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-5px);
  transition: all var(--ease);
}

.copy-toast.show {
  height: 24px;
  margin-top: 11px;
  opacity: 1;
  transform: translateY(0);
}

.server-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transition: transform 420ms ease, border-color var(--ease), box-shadow var(--ease);
}

.server-card:hover {
  transform: translateY(-9px) rotateX(1deg) rotateY(-1deg);
  border-color: rgba(239,114,160,.45);
}

.server-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 7px 16px;
}

.server-card-head small,
.info-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.server-card-head h2 {
  margin-top: 2px;
  font-family: var(--font-title);
  font-size: 20px;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(118,220,131,.22);
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255,0,0,.22);
  border-radius: 99px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}


.server-preview,
.media-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239,114,160,.2), rgba(118,220,131,.07)),
    #101712;
}

.server-preview {
  min-height: 300px;
  border-radius: 21px;
}

.server-preview img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,9,8,.62), transparent 62%);
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 11px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.info-item:hover {
  transform: translateY(-3px);
  border-color: rgba(239,114,160,.42);
  background: var(--primary-soft);
}

.info-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 17px;
}

.info-item div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.info-item strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Shared cards */
.stats-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 25px;
  border-right: 1px solid var(--border);
  transition: transform var(--ease), background var(--ease);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--primary-soft);
}

.stat-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  font-size: 20px;
}

.stat-card strong {
  display: block;
  font-family: var(--font-title);
  font-size: 22px;
}

.stat-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.content-card,
.product-card,
.rule-card,
.step-card,
.mode-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.content-card:hover,
.product-card:hover,
.rule-card:hover,
.step-card:hover,
.mode-card:hover {
  transform: translateY(-8px);
  border-color: rgba(239,114,160,.44);
  box-shadow: var(--shadow);
}

.content-card {
  min-height: 305px;
  padding: 28px;
}

.card-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(239,114,160,.15);
  border-radius: 17px;
  background: var(--primary-soft);
  font-size: 25px;
}

.content-card h3,
.rule-card h3,
.step-card h3,
.mode-card h3 {
  margin-bottom: 11px;
  font-family: var(--font-title);
  font-size: 23px;
}

.content-card p,
.rule-card p,
.step-card p,
.mode-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.feature-split {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-split .media-frame {
  min-height: 450px;
}

.feature-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
}

.feature-split-copy h2 {
  margin-bottom: 16px;
  font-family: var(--font-title);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.feature-split-copy p {
  color: var(--text-soft);
  line-height: 1.85;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--text-soft);
  font-size: 14px;
}

.check-item span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

/* Page hero */
.page-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-height) + 100px) 0 85px;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(9,12,11,.72) 55%, rgba(9,12,11,.45)),
    linear-gradient(90deg, rgba(9,12,11,.9), transparent 70%);
}

html[data-theme="light"] .page-hero-shade {
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(247,242,244,.7) 55%, rgba(247,242,244,.42)),
    linear-gradient(90deg, rgba(247,242,244,.9), transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(52px, 7vw, 86px);
  line-height: .98;
  letter-spacing: -3px;
}

.page-hero p {
  max-width: 650px;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.85;
}

/* Gallery */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  padding: 10px 15px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  transition: all var(--ease);
}

.filter-button:hover,
.filter-button.active {
  border-color: rgba(239,114,160,.45);
  background: var(--primary-soft);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 245px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), border-color var(--ease), opacity var(--ease);
}

.gallery-item.large {
  grid-column: span 8;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:hover {
  z-index: 2;
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(239,114,160,.46);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,7,.78), transparent 62%);
}

.gallery-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 19px;
  z-index: 2;
  color: #fff;
}

.gallery-caption strong {
  display: block;
  font-family: var(--font-title);
  font-size: 20px;
}

.gallery-caption small {
  opacity: .72;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(4,6,5,.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 13px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 24px;
}

/* Server */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mode-card {
  min-height: 350px;
}

.mode-image {
  height: 190px;
  overflow: hidden;
  background: var(--surface-solid);
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms ease;
}

.mode-card:hover .mode-image img {
  transform: scale(1.06);
}

.mode-copy {
  padding: 25px;
}

.progress-wrap {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.progress-line {
  display: grid;
  gap: 7px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
}

.progress-track span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}

/* Join */
.platform-switch {
  width: fit-content;
  display: flex;
  gap: 7px;
  margin-bottom: 28px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.platform-button {
  padding: 11px 18px;
  cursor: pointer;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 800;
  transition: all var(--ease);
}

.platform-button.active {
  background: var(--primary-soft);
  color: var(--primary-light);
}

.platform-panel {
  display: none;
}

.platform-panel.active {
  display: block;
}

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

.step-card {
  min-height: 270px;
  padding: 28px;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
}

.join-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.join-address strong {
  display: block;
  font-family: var(--font-title);
  font-size: 21px;
}

.join-address small {
  color: var(--muted);
}

/* Discord */
.discord-panel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 50px;
  padding: 60px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.14), transparent 30%),
    linear-gradient(135deg, #3943a9, #5865f2 55%, #7b84ff);
  color: #fff;
  box-shadow: 0 28px 80px rgba(52,63,184,.34);
}

.discord-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 38px 38px;
}

.discord-copy,
.discord-visual {
  position: relative;
  z-index: 2;
}

.discord-copy h2 {
  font-family: var(--font-title);
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -2px;
}

.discord-copy p {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(255,255,255,.76);
  line-height: 1.85;
}

.discord-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.discord-stat {
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}

.discord-stat strong {
  font-family: var(--font-title);
  font-size: 30px;
}

.discord-stat small {
  color: rgba(255,255,255,.72);
}

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

.rule-card {
  min-height: 230px;
  padding: 27px;
}

.rule-card .rule-number {
  margin-bottom: 15px;
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 800;
}

/* Store */
.store-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding: 18px 21px;
  border: 1px solid rgba(239,114,160,.24);
  border-radius: 17px;
  background: var(--primary-soft);
}

.store-notice p {
  color: var(--text-soft);
  font-size: 14px;
}

.store-notice strong {
  color: var(--primary-light);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.product-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--surface-solid);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(8,11,9,.74);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.product-copy h3 {
  font-family: var(--font-title);
  font-size: 24px;
}

.product-copy p {
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
}

.price {
  font-family: var(--font-title);
  font-size: 25px;
  font-weight: 800;
}

.cart-trigger {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding-inline: 5px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(3,5,4,.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1100;
  width: min(420px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-left: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: -24px 0 70px rgba(0,0,0,.32);
  transform: translateX(105%);
  transition: transform 360ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-head h2 {
  font-family: var(--font-title);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0;
}

.cart-empty {
  padding: 45px 20px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-copy {
  flex: 1;
}

.cart-item-copy strong {
  display: block;
  font-size: 14px;
}

.cart-item-copy small {
  color: var(--muted);
}

.cart-remove {
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-title);
  font-size: 20px;
}

/* CTA and footer */
.cta-card {
  position: relative;
  min-height: 405px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 62px;
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(52,20,34,.98), rgba(119,39,72,.88) 58%, rgba(239,114,160,.58));
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.cta-content h2 {
  font-family: var(--font-title);
  font-size: clamp(40px, 5vw, 63px);
  line-height: 1;
  letter-spacing: -2px;
}

.cta-content p {
  max-width: 520px;
  margin-top: 18px;
  color: rgba(255,255,255,.76);
  line-height: 1.85;
}

.site-footer {
  margin-top: 95px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  padding-top: 65px;
  padding-bottom: 52px;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand p {
  margin-top: 21px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3 {
  margin-bottom: 4px;
  font-family: var(--font-title);
  font-size: 16px;
}

.footer-column a {
  color: var(--text-soft);
  font-size: 13px;
  transition: color var(--ease), transform var(--ease);
}

.footer-column a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

/* Missing image fallback */
.media-frame.image-missing,
.server-preview.image-missing,
.mode-image.image-missing,
.product-image.image-missing,
.gallery-item.image-missing {
  background:
    linear-gradient(135deg, rgba(239,114,160,.22), rgba(118,220,131,.08)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    var(--surface-solid);
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: var(--header);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    opacity: 0;
    transform: translateY(-13px);
    pointer-events: none;
    transition: max-height 420ms ease, padding 420ms ease, opacity var(--ease), transform var(--ease), border-color var(--ease);
  }

  .site-nav.open {
    max-height: 520px;
    padding: 14px;
    border-color: var(--border);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
  }

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .server-card {
    max-width: 760px;
  }

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

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .card-grid,
  .mode-grid,
  .rules-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-item {
    grid-column: span 6;
  }

  .gallery-item.large {
    grid-column: span 12;
  }

  .discord-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    display: none;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    left: 14px;
    right: 14px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 66px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(45px, 14vw, 66px);
    letter-spacing: -2px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 15px;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .ip-button {
    min-width: 0;
  }

  .server-preview {
    min-height: 235px;
  }

  .server-info-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-card {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: clamp(37px, 11vw, 50px);
  }

  .card-grid,
  .mode-grid,
  .rules-grid,
  .product-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-split .media-frame {
    min-height: 285px;
  }

  .feature-split-copy {
    padding: 32px 27px;
  }

  .page-hero {
    min-height: 500px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item,
  .gallery-item.large {
    grid-column: auto;
  }

  .gallery-item.tall {
    grid-row: auto;
  }

  .join-address {
    align-items: flex-start;
    flex-direction: column;
  }

  .discord-panel {
    padding: 38px 28px;
  }

  .discord-visual {
    grid-template-columns: 1fr;
  }

  .store-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-card {
    min-height: 450px;
    align-items: flex-start;
    padding: 45px 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 54px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .header-actions {
    gap: 6px;
  }

  .server-card {
    padding: 11px;
  }

  .server-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .petals-container {
    display: block !important;
  }

  .petal {
    animation-duration: var(--fall-duration) !important;
    animation-iteration-count: 1 !important;
  }

  .petal::before {
    animation-duration: var(--spin-duration) !important;
    animation-iteration-count: infinite !important;
  }
}