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

*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: 'Outfit', system-ui, sans-serif;
  background: #eef3ff;
  color: #0a0f1e;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: 'Outfit', sans-serif; cursor: pointer; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #eef3ff; }
::-webkit-scrollbar-thumb { background: var(--blue); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; position: relative; }

.s-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.s-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 48px;
  letter-spacing: -1px;
}

.mc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 13px 24px;
  border: none;
  outline: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s, filter .15s, box-shadow .15s;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.mc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,.22) 50%,
    transparent 75%
  );
  background-size: 300% 100%;
  background-position: 200% 0;
  animation: btn-shine 2.8s ease infinite;
  z-index: 1;
  pointer-events: none;
}

.mc-btn > * { position: relative; z-index: 2; }

.mc-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.mc-btn:active { transform: translateY(2px); }

.mc-btn-blue {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 4px 0 0 #1e3a8a,
    0 6px 0 0 rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.mc-btn-blue:hover {
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 6px 0 0 #1e3a8a,
    0 8px 0 0 rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.mc-btn-blue:active {
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 1px 0 0 #1e3a8a,
    inset 0 2px 0 rgba(0,0,0,.2);
}

.mc-btn-discord {
  background: linear-gradient(180deg, #8b96f8 0%, #5865f2 50%, #4752c4 100%);
  box-shadow:
    0 0 0 2px #3730a3,
    0 4px 0 0 #3730a3,
    0 6px 0 0 rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.mc-btn-discord:hover {
  box-shadow:
    0 0 0 2px #3730a3,
    0 6px 0 0 #3730a3,
    0 8px 0 0 rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.mc-btn-discord:active {
  box-shadow:
    0 0 0 2px #3730a3,
    0 1px 0 0 #3730a3,
    inset 0 2px 0 rgba(0,0,0,.2);
}

.mc-btn-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 100%);
  box-shadow:
    0 0 0 2px rgba(255,255,255,.35),
    0 4px 0 0 rgba(0,0,0,.3),
    0 6px 0 0 rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.2);
  color: #fff;
}
.mc-btn-ghost:hover {
  box-shadow:
    0 0 0 2px rgba(255,255,255,.45),
    0 6px 0 0 rgba(0,0,0,.3),
    0 8px 0 0 rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.mc-btn-ghost:active {
  box-shadow:
    0 0 0 2px rgba(255,255,255,.35),
    0 1px 0 0 rgba(0,0,0,.3),
    inset 0 2px 0 rgba(0,0,0,.15);
}

.mc-btn-outline {
  background: linear-gradient(180deg, #f8faff 0%, #eff6ff 100%);
  color: var(--blue);
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 4px 0 0 #1e3a8a,
    0 6px 0 0 rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.9);
  text-shadow: none;
}
.mc-btn-outline:hover {
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 6px 0 0 #1e3a8a,
    0 8px 0 0 rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.mc-btn-outline:active {
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 1px 0 0 #1e3a8a,
    inset 0 2px 0 rgba(0,0,0,.08);
}

@keyframes btn-shine {
  0% { background-position: 200% 0; }
  50% { background-position: -50% 0; }
  100% { background-position: 200% 0; }
}

.mc-frame {
  position: relative;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  padding: 32px 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px #bfdbfe,
    0 0 0 4px rgba(37,99,235,.12),
    0 4px 0 4px #93c5fd,
    0 8px 16px rgba(37,99,235,.1);
  transition: transform .3s, box-shadow .3s;
}

.mc-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    transparent 20%,
    rgba(96,165,250,.07) 40%,
    rgba(59,130,246,.1) 50%,
    rgba(96,165,250,.07) 60%,
    transparent 80%
  );
  background-size: 350% 100%;
  animation: frame-shine 4.5s ease infinite;
  pointer-events: none;
  z-index: 0;
}
.mc-frame > * { position: relative; z-index: 1; }

.mc-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px #93c5fd,
    0 0 0 4px rgba(37,99,235,.15),
    0 6px 0 4px #60a5fa,
    0 12px 28px rgba(37,99,235,.15);
}

.mc-frame-dark {
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 2px #334155,
    0 0 0 4px rgba(0,0,0,.2),
    0 4px 0 4px #1e293b,
    0 8px 16px rgba(0,0,0,.25);
}
.mc-frame-dark::before {
  background: linear-gradient(
    130deg,
    transparent 20%,
    rgba(255,255,255,.03) 40%,
    rgba(255,255,255,.05) 50%,
    rgba(255,255,255,.03) 60%,
    transparent 80%
  );
  background-size: 350% 100%;
  animation: frame-shine 4.5s ease infinite;
}
.mc-frame-dark:hover {
  box-shadow:
    0 0 0 2px #475569,
    0 0 0 4px rgba(0,0,0,.2),
    0 6px 0 4px #334155,
    0 12px 28px rgba(0,0,0,.3);
}

@keyframes frame-shine {
  0% { background-position: 300% 0; }
  50% { background-position: -100% 0; }
  100% { background-position: 300% 0; }
}

.btn-discord {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  padding: 11px 20px;
  overflow: hidden;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  background: linear-gradient(180deg, #8b96f8 0%, #5865f2 50%, #4752c4 100%);
  box-shadow:
    0 0 0 2px #3730a3,
    0 4px 0 0 #3730a3,
    0 6px 0 0 rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn-discord::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.22) 50%, transparent 75%);
  background-size: 300% 100%;
  background-position: 200% 0;
  animation: btn-shine 2.8s ease infinite;
  pointer-events: none;
}
.btn-discord > * { position: relative; z-index: 1; }
.btn-discord:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 2px #3730a3,
    0 6px 0 0 #3730a3,
    0 8px 0 0 rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-discord:active { transform: translateY(2px); }

.btn-shop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  padding: 11px 20px;
  overflow: hidden;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 4px 0 0 #1e3a8a,
    0 6px 0 0 rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn-shop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.22) 50%, transparent 75%);
  background-size: 300% 100%;
  background-position: 200% 0;
  animation: btn-shine 2.8s ease infinite;
  pointer-events: none;
}
.btn-shop > * { position: relative; z-index: 1; }
.btn-shop:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 6px 0 0 #1e3a8a,
    0 8px 0 0 rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-shop:active { transform: translateY(2px); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.25,.46,.45,.94), transform .55s cubic-bezier(.25,.46,.45,.94);
}
.reveal.on { opacity: 1; transform: translateY(0); }

.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 4px 0 0 #1e3a8a,
    0 6px 0 0 rgba(0,0,0,.25);
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s, transform .35s, filter .15s;
  pointer-events: none;
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 2px #1e3a8a,
    0 6px 0 0 #1e3a8a,
    0 8px 0 0 rgba(0,0,0,.25);
}
.to-top:active { transform: translateY(2px); }

.subpage-hero {
  padding: calc(var(--nav-h) + 48px) 0 56px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bd);
  position: relative;
  overflow: hidden;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink3);
  margin-bottom: 24px;
  transition: color var(--t);
}
.back-link:hover { color: var(--blue); }
.subpage-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.subpage-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink3);
  max-width: 500px;
  line-height: 1.7;
}
.nav-active { color: var(--blue) !important; }

.pixel-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.pixel-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body > *:not(.pixel-bg) {
  position: relative;
  z-index: 1;
}