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

html, body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: stretch;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: floatBlob 22s ease-in-out infinite alternate;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: #f97316;
  top: -140px;
  left: -80px;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: #22c55e;
  top: 38%;
  right: -140px;
  animation-delay: -6s;
}

.blob-3 {
  width: 360px;
  height: 360px;
  background: #0ea5e9;
  bottom: -180px;
  left: 8%;
  animation-delay: -12s;
}

@keyframes floatBlob {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(20px, -30px, 0) scale(1.05); }
}

.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  padding: 24px 20px 32px;
  margin: 0 auto;
}

/* Topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #ff7c00, #fea800, #fdd300, #fcff00, #a8f055, #54e0aa, #00d1ff, #ff7c00);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
}

.brand-name {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #9ca3af;
}

.nav-link {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0.9));
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.nav-link:hover {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.3), rgba(15, 23, 42, 1));
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.65);
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero-inner {
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.logo-hex {
  margin-top: 6px;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 0.08em;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 20px rgba(0, 209, 255, 0.35));
  animation: logoGlow 6s ease-in-out infinite alternate;
}

.logo-hex .cz {
  display: inline-block;
}

.logo-hex .c1 { color: #FF7C00; }
.logo-hex .c2 { color: #FEA800; }
.logo-hex .c3 { color: #FDD300; }
.logo-hex .c4 { color: #FCFF00; }
.logo-hex .c5 { color: #A8F055; }
.logo-hex .c6 { color: #54E0AA; }
.logo-hex .c7 { color: #00D1FF; }

.logo-hex .pl {
  margin-left: 0.25em;
  color: #e5e7eb;
  opacity: 0.9;
}

@keyframes logoGlow {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 0 14px rgba(0, 209, 255, 0.25));
  }
  100% {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 26px rgba(0, 209, 255, 0.55));
  }
}

.hero-sub {
  margin-top: 12px;
  font-size: 15px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #9ca3af;
}

.hero-ip-band {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.hero-ip-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: #6b7280;
}

.hero-ip-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.hero-ip-copy {
  position: relative;
  overflow: hidden;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
  color: #e5e7eb;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background 0.18s ease-out, color 0.18s ease-out;
}

.hero-ip-copy:hover {
  background: linear-gradient(135deg, rgba(15, 23, 42, 1), rgba(30, 64, 175, 0.9));
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
}

.hero-ip-copy-done {
  border-color: #4ade80;
  color: #bbf7d0;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.6);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.btn-outline {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out, border-color 0.18s ease-out;
}

.btn-primary {
  background-image: linear-gradient(90deg, #ff7c00, #fea800, #fdd300, #fcff00, #a8f055, #54e0aa, #00d1ff);
  color: #020617;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.45);
}

.btn-discord {
  background-image: linear-gradient(90deg, #6366f1, #22c1c3);
  color: #f9fafb;
}

.btn-ghost {
  padding-inline: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
}

.btn-outline {
  padding-inline: 16px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
}

.hero-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline: 22px;
}

.hero-main-done {
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.5);
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 12px;
  color: #9ca3af;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.dot-green {
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

.dot-blue {
  background: #0ea5e9;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.8);
}

/* Tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.tile {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.99));
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.tile::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 55%);
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.tile:hover::before {
  opacity: 1;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.3);
}

.primary-tile {
  border-color: rgba(250, 204, 21, 0.45);
}

.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.4), rgba(15, 23, 42, 1));
}

.tile-icon {
  font-size: 20px;
}

.tile-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #9ca3af;
}

.tag-gold {
  border-color: rgba(250, 204, 21, 0.7);
  color: #facc15;
}

.tag-blue {
  border-color: rgba(56, 189, 248, 0.7);
  color: #7dd3fc;
}

.tile h2 {
  font-size: 18px;
  font-weight: 700;
}

.tile-text {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.5;
}

.ip-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.tile-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

/* Modes */

.modes {
  margin-bottom: 30px;
}

.section-head {
  text-align: left;
  margin-bottom: 16px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #9ca3af;
}

.section-head h2 {
  margin-top: 8px;
  font-size: 20px;
}

.section-head p {
  margin-top: 4px;
  font-size: 14px;
  color: #9ca3af;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.mode-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border-radius: 16px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 13px;
  color: #9ca3af;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.18), transparent 60%);
  transition: opacity 0.18s ease-out;
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mode-icon {
  font-size: 20px;
}

.mode-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-hot {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.badge-blue {
  border-color: rgba(56, 189, 248, 0.8);
  color: #bae6fd;
}

.badge-green {
  border-color: rgba(34, 197, 94, 0.8);
  color: #bbf7d0;
}

.badge-purple {
  border-color: rgba(167, 139, 250, 0.8);
  color: #ddd6fe;
}

.mode-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.mode-card p {
  margin-bottom: 6px;
}

.mode-list {
  list-style: none;
  font-size: 12px;
  color: #6b7280;
}

/* Info grid */

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

.info-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
}

.info-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
}

/* Footer */

.footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ripple */

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.35);
  animation: ripple 0.5s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

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

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

  .page-wrapper {
    padding-block: 20px 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-main,
  .btn-ghost,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

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

  .hero-ip-band {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ip-band > * {
    justify-content: center;
    text-align: center;
  }
}
