:root {
  --bg: #eff3ff;
  --bg-alt: #e2ebff;
  --surface: #ffffff;
  --surface-soft: #f4f7ff;
  --text: #101c42;
  --muted: #5f6f98;
  --primary: #5f7cff;
  --primary-strong: #4160ea;
  --accent: #6fe5ff;
  --border: #dde5ff;
  --success: #1db77a;
  --shadow: 0 14px 34px rgba(37, 57, 117, 0.12);
}

body.dark {
  --bg: #090d1f;
  --bg-alt: #121739;
  --surface: #131a35;
  --surface-soft: #1a2448;
  --text: #edf1ff;
  --muted: #9ca8d1;
  --primary: #748dff;
  --primary-strong: #95a7ff;
  --accent: #71e3ff;
  --border: #2a3566;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top right, rgba(95, 124, 255, 0.2), transparent 42%),
    radial-gradient(circle at top left, rgba(111, 229, 255, 0.16), transparent 36%), var(--bg);
  color: var(--text);
  min-height: 100%;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__ring {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(39, 180, 255, 0.22);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.container {
  width: min(1150px, 92%);
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(39, 180, 255, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong) 60%, var(--accent));
  color: #fff;
  box-shadow: 0 10px 20px rgba(95, 124, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
}

.mobile-toggle {
  display: none;
}

main {
  padding: 36px 0 70px;
}

.hero {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  margin-bottom: 40px;
}

.hero-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card {
  padding: 34px;
}

.eyebrow {
  color: var(--primary-strong);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 10px 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-preview {
  padding: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.stat-item strong {
  display: block;
  font-size: 1.15rem;
}

.section {
  margin-top: 32px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.product-grid,
.benefit-grid,
.testimonial-grid,
.policy-grid,
.trust-grid {
  display: grid;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 20px 35px rgba(56, 76, 145, 0.2);
}

.product-thumb {
  height: 160px;
  background: #041018;
  display: block;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.03);
}

.product-body {
  padding: 14px;
}

.product-title-link {
  color: inherit;
}

.product-title-link:hover {
  color: var(--primary-strong);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.product-badge {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-new {
  background: rgba(39, 180, 255, 0.14);
  color: var(--primary-strong);
  border: 1px solid rgba(39, 180, 255, 0.4);
}

.badge-top {
  background: rgba(255, 200, 61, 0.16);
  color: #9b6b00;
  border: 1px solid rgba(255, 200, 61, 0.5);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
}

.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.9rem;
}

.benefit-grid,
.testimonial-grid,
.policy-grid,
.trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.stars {
  color: #ffc83d;
  letter-spacing: 1px;
}

.filter-bar {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr repeat(3, minmax(130px, 170px));
  margin-bottom: 18px;
}

.input,
.select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.content-block h2,
.content-block h3 {
  letter-spacing: 0.01em;
}

.discord-embed {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface-soft);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 12, 26, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 120;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  width: min(620px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-code {
  font-family: Consolas, monospace;
  font-size: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: inline-block;
}

.toast-wrap {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  min-width: 240px;
}

.admin-mock {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.founder-note {
  border-left: 4px solid var(--primary);
}

.detail-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.screenshot-box {
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  min-height: 145px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  color: var(--muted);
  font-weight: 600;
}

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 260;
}

.chat-fab {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-strong) 65%, var(--accent));
  box-shadow: 0 12px 24px rgba(78, 102, 199, 0.38);
}

.chat-panel {
  width: min(360px, 88vw);
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
}

.chat-panel.open {
  display: block;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.chat-body {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
}

.chat-msg {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.chat-msg.bot {
  background: var(--surface-soft);
}

.chat-msg.user {
  background: rgba(39, 180, 255, 0.2);
}

.chat-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  flex-wrap: wrap;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 10px 10px;
}

.chat-msg.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-msg.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: blinkDot 1s infinite ease-in-out;
}

.chat-msg.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-msg.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blinkDot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.ticket-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 4%;
    right: 4%;
    display: none;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}
