:root {
  --color-primary: #007bee;
  --color-primary-light: #4da3ff;
  --color-primary-dark: #0056b3;
  --color-primary-glow: rgba(0, 123, 238, 0.4);
  
  --color-gold: #ffbe23;
  --color-gold-light: #ffe778;
  --color-gold-glow: rgba(255, 190, 35, 0.4);

  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.4);

  --bg-deep: #030b18;
  --bg-navy: #06152b;
  --bg-card: rgba(8, 25, 52, 0.72);
  --bg-card-hover: rgba(13, 37, 75, 0.85);
  --bg-surface: rgba(4, 19, 41, 0.9);
  --bg-dropdown: rgba(6, 21, 45, 0.96);

  --text-main: #f0f6ff;
  --text-body: #d5e2f5;
  --text-muted: #8fa5c4;
  --heading: #ffffff;

  --border-subtle: rgba(77, 163, 255, 0.16);
  --border-focus: rgba(77, 163, 255, 0.5);
  --border-strong: rgba(147, 197, 253, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-card: 0 16px 40px rgba(0, 14, 34, 0.55);
  --shadow-glow: 0 0 35px rgba(0, 123, 238, 0.25);
  --shadow-gold: 0 0 25px rgba(255, 190, 35, 0.3);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Paytone One', 'Inter', sans-serif;

  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb {
  background: rgba(77, 163, 255, 0.2);
  border-radius: 6px;
  border: 3px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 163, 255, 0.5);
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0d254c 0%, var(--bg-deep) 75%);
  color: var(--text-body);
  position: relative;
}

body.loaded {
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 123, 238, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.shell {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  background: rgba(3, 11, 24, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.site-header.is-scrolled {
  background: rgba(3, 11, 24, 0.94);
  border-bottom: 1px solid rgba(77, 163, 255, 0.24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--heading);
  letter-spacing: -0.01em;
  width: 220px;
  flex: 0 0 220px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 123, 238, 0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.brand:hover .brand-logo {
  transform: translateY(-2px) translateZ(0);
  filter: drop-shadow(0 6px 18px rgba(0, 150, 255, 0.85)) brightness(1.12);
}

.brand-name {
  display: inline-block;
  width: 142px;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 35%, var(--color-primary-light) 70%, #ffffff 100%);
  background-size: 250% 100%;
  background-position: left center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: letter-spacing 0.35s ease, filter 0.35s ease, background-position 0.5s ease;
  will-change: letter-spacing, filter, background-position;
}

.brand:hover .brand-name {
  letter-spacing: 0.04em;
  background-position: right center;
  filter: drop-shadow(0 0 10px rgba(77, 163, 255, 0.65));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--heading);
  background: rgba(77, 163, 255, 0.12);
}

.swap-text {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    line-height: 1.25;
    height: 1.25em;
    vertical-align: middle;
    pointer-events: none;
}
.swap-line {
    display: inline-flex;
    white-space: pre;
    pointer-events: none;
}
.swap-line-top {
    display: inline-flex;
}
.swap-line-bottom {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    color: var(--color-primary-light);
    font-weight: 600;
}
.shop-badge-link .swap-line-bottom {
    color: #ffffff;
}
.swap-char {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--char-index, 0) * 22ms);
    will-change: transform;
}
.swap-line-top .swap-char {
    transform: translateY(0%);
}
.swap-line-bottom .swap-char {
    transform: translateY(115%);
}
.nav-link:hover .swap-line-top .swap-char,
.dropdown-trigger:hover .swap-line-top .swap-char,
.shop-badge-link:hover .swap-line-top .swap-char {
    transform: translateY(-115%);
}
.nav-link:hover .swap-line-bottom .swap-char,
.dropdown-trigger:hover .swap-line-bottom .swap-char,
.shop-badge-link:hover .swap-line-bottom .swap-char {
    transform: translateY(0%);
}

.nav-link .material-symbols-outlined {
  font-size: 19px;
  color: var(--color-primary-light);
}

.shop-badge-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-gold-light);
  background: linear-gradient(135deg, rgba(255, 190, 35, 0.22), rgba(255, 231, 120, 0.1));
  border: 1px solid rgba(255, 216, 77, 0.55);
  box-shadow: 0 0 15px rgba(255, 190, 35, 0.15);
  transition: all var(--transition-smooth);
}

.shop-badge-link::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -70%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 3.6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shine-sweep {
  0%, 55% { left: -70%; }
  85%, 100% { left: 130%; }
}

.shop-badge-link:hover {
  background: linear-gradient(135deg, rgba(255, 190, 35, 0.35), rgba(255, 231, 120, 0.2));
  border-color: var(--color-gold-light);
  box-shadow: 0 0 25px rgba(255, 190, 35, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.shop-badge-link .material-symbols-outlined {
  color: var(--color-gold);
  font-size: 20px;
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.dropdown-trigger:hover,
.nav-dropdown.is-active .dropdown-trigger {
  color: var(--heading);
  background: rgba(77, 163, 255, 0.12);
}

.dropdown-trigger .material-symbols-outlined {
  font-size: 19px;
  color: var(--color-primary-light);
}

.dropdown-chevron {
  font-size: 17px !important;
  transition: transform var(--transition-fast);
}

.nav-dropdown.is-active .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-dropdown);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 110;
}

.nav-dropdown.is-active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(0, 123, 238, 0.15);
  color: var(--heading);
}

.dropdown-item .material-symbols-outlined {
  color: var(--color-primary-light);
  font-size: 20px;
}

.dropdown-item-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--heading);
}

.dropdown-item-info small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

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

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.84rem;
  font-weight: 700;
  color: #34d399;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #c7d2fe;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.header-discord-btn:hover {
  background: rgba(88, 101, 242, 0.35);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}

.header-discord-btn .discord-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(77, 163, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--heading);
  align-items: center;
  justify-content: center;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-strong);
  padding: 20px;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  z-index: 99;
}

.mobile-nav-drawer.is-open {
  display: flex;
}

.mobile-nav-drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(77, 163, 255, 0.08);
  font-weight: 600;
  color: var(--text-body);
}

.mobile-nav-drawer a:hover {
  background: rgba(77, 163, 255, 0.2);
  color: var(--heading);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  visibility: hidden;
  background: rgba(6, 23, 49, 0.95);
  border: 1px solid var(--color-primary-light);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--color-primary-glow);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
}

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

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.toast-icon .material-symbols-outlined {
  font-size: 18px;
}

.toast-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  border: 1px solid rgba(77, 163, 255, 0.4);
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  box-shadow: 0 8px 30px var(--color-primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(13, 37, 75, 0.7);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(20, 52, 104, 0.9);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, #ffc107 0%, #d97706 100%);
  color: #1e1001;
  border: 1px solid #ffd54f;
  box-shadow: 0 4px 20px var(--color-gold-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffd54f 0%, #f59e0b 100%);
  box-shadow: 0 8px 30px var(--color-gold-glow);
  transform: translateY(-2px);
  color: #000000;
}

.site-footer {
  margin-top: 100px;
  background: #020610;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 35px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(77, 163, 255, 0.1);
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    width: auto;
    flex: 0 1 auto;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .header-status-pill span:not(.status-pulse) {
    display: none;
  }
  .header-status-pill strong {
    font-size: 0.82rem;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 123, 238, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: preloader-spin 1s linear infinite;
}

@keyframes preloader-spin {
  100% { transform: rotate(360deg); }
}

body.loaded .preloader {
  opacity: 0;
  visibility: hidden;
}
