:root {
  color-scheme: dark;
  --bg: #040d1a;
  --surface: rgba(11, 34, 62, 0.72);
  --surface-2: #0a1f38;
  --line: rgba(125, 211, 252, 0.22);
  --line-glow: rgba(56, 189, 248, 0.55);
  --text: #f0f9ff;
  --muted: #93c5fd;
  --ice-light: #e0f2fe;
  --primary: #38bdf8;
  --primary-2: #0284c7;
  --cyan: #7dd3fc;
  --shadow: 0 24px 70px rgba(2, 132, 199, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 16% 8%, rgba(56, 189, 248, 0.22), transparent 36rem),
    radial-gradient(ellipse at 86% 28%, rgba(14, 165, 233, 0.16), transparent 34rem),
    linear-gradient(180deg, #040d1a 0%, #071b33 52%, #041020 100%);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(186, 230, 253, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

header.topbar,
main,
footer,
.toast {
  position: relative;
}

header.topbar,
footer,
.toast {
  z-index: 20;
}

main {
  z-index: 2;
}

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

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

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

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 13, 26, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 800 1.38rem "Outfit", sans-serif;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand span:last-child {
  background: linear-gradient(90deg, #ffffff, #bae6fd, #38bdf8);
  color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cfe8ff;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a {
  padding: 6px 8px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 19px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-primary {
  color: #031527;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 55%, #0284c7);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.42);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(125, 211, 252, 0.06);
  color: var(--ice-light);
}

.btn-ghost:hover {
  border-color: var(--line-glow);
  background: rgba(56, 189, 248, 0.14);
}

.btn-soon,
.btn:disabled {
  width: 100%;
  background: rgba(15, 42, 74, 0.65);
  color: #bae6fd;
  border: 1px dashed rgba(125, 211, 252, 0.42);
  cursor: not-allowed;
  opacity: 0.85;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.btn-soon-sm {
  width: auto;
  padding: 8px 12px;
  font-size: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ice-light);
  background: var(--surface-2);
}

/* HERO */
.hero {
  min-height: 670px;
  display: grid;
  align-items: center;
  position: relative;
  padding: 90px 0 76px;
}

.hero-content {
  max-width: 850px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.32);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 14px #38bdf8;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  line-height: 1.1;
}

h1 {
  margin: 24px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  letter-spacing: -0.04em;
  font-weight: 900;
}

.gradient-text {
  background: linear-gradient(95deg, #ffffff, #7dd3fc 52%, #38bdf8);
  color: transparent;
  background-clip: text;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  width: 320px;
  height: 320px;
  left: -120px;
  top: 18%;
  background: rgba(56, 189, 248, 0.16);
  filter: blur(85px);
}

.orb-two {
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: 6%;
  background: rgba(2, 132, 199, 0.2);
  filter: blur(100px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 56px auto 0;
}

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 34, 62, 0.56);
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  color: #7dd3fc;
  font: 800 1.75rem "Outfit", sans-serif;
}

.stat span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* SECTIONS & GLASS CARDS */
section {
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(8, 28, 52, 0.52), transparent);
  border-block: 1px solid rgba(125, 211, 252, 0.12);
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.story-copy {
  color: #cfe8ff;
  font-size: 1.02rem;
}

.story-copy p {
  margin: 0 0 18px;
}

.story-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.story-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.22);
  filter: blur(42px);
}

.icon-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.32);
  font-size: 1.2rem;
}

.story-card h3 {
  margin: 20px 0 10px;
  font-size: 1.45rem;
}

.story-card p {
  margin: 0;
  color: var(--muted);
}

.notice {
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 14px;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.28);
  font-size: 0.85rem;
  font-weight: 600;
}

/* MINECRAFT IP */
.server-card {
  max-width: 820px;
  margin: auto;
  padding: clamp(25px, 5vw, 44px);
  text-align: center;
}

.server-card .icon-tile {
  margin: 0 auto 20px;
  width: 66px;
  height: 66px;
  font-size: 1.6rem;
}

.server-card h3 {
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.server-card > p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 28px;
}

.ip-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 15, 30, 0.75);
}

.ip-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#server-ip {
  display: block;
  color: #7dd3fc;
  font: 700 1.05rem "Outfit", sans-serif;
  margin-top: 3px;
}

/* STAFF (3 SCHEDE) */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 310px));
  justify-content: center;
  gap: 22px;
}

.staff-card {
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-glow);
}

.avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  border: 2px solid rgba(125, 211, 252, 0.6);
  background: #081e38;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

.avatar-hiring-box {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #7dd3fc;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), rgba(5, 22, 42, 0.92));
}

.role-icon {
  position: absolute;
  right: -8px;
  bottom: -7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #031527;
  background: linear-gradient(135deg, #bae6fd, #38bdf8);
  border: 3px solid #0b223e;
  font-size: 0.78rem;
}

.staff-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.role {
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discord-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ice-light);
  background: rgba(4, 15, 30, 0.55);
  font-size: 0.82rem;
}

.hiring-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* UNBAN APPEAL */
.appeal-wrap {
  max-width: 720px;
  margin: auto;
}

.appeal-form {
  padding: clamp(22px, 5vw, 42px);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ice-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: rgba(4, 15, 30, 0.78);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(147, 197, 253, 0.52);
}

.field textarea {
  min-height: 135px;
  resize: vertical;
}

.field select option {
  background: #081e38;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: -4px 0 0;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 0.96rem;
}

/* STORE & UPGRADES */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.vip-card {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.vip-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-glow);
}

.vip-card-top {
  border-color: rgba(125, 211, 252, 0.6);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.22), rgba(11, 34, 62, 0.82));
}

.vip-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.mc-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.mc-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.top-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #031527;
  background: linear-gradient(135deg, #e0f2fe, #38bdf8);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.vip-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.vip-price {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #7dd3fc;
  margin-bottom: 16px;
}

.upgrades-panel {
  padding: 28px;
}

.upgrades-head {
  margin-bottom: 18px;
}

.upgrades-head h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.upgrades-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.upgrades-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.upgrade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(4, 15, 30, 0.62);
}

.upgrade-route {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.upgrade-price {
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
}

/* FOOTER & TOAST */
footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: rgba(3, 10, 20, 0.78);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-link {
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border: 1px solid var(--line-glow);
  border-radius: 12px;
  color: #ffffff;
  background: #092240;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: minmax(0, 340px);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: #061426;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .nav > .btn {
    display: none;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1140px);
  }
  .hero {
    min-height: auto;
    padding: 86px 0 68px;
  }
  .stats {
    gap: 8px;
    margin-top: 42px;
  }
  .stat {
    padding: 15px 8px;
  }
  .stat strong {
    font-size: 1.35rem;
  }
  .stat span {
    font-size: 0.64rem;
  }
  section {
    padding: 74px 0;
  }
  .ip-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .ip-panel .btn {
    width: 100%;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

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