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

:root {
  --bg:         #0D0A1A;
  --bg2:        #13102A;
  --surface:    #1A1535;
  --surface2:   #221D3A;
  --border:     rgba(147,123,209,0.15);
  --border2:    rgba(255,255,255,0.07);
  --accent:     #937BD1;
  --accent-hi:  #C4B0F0;
  --accent-dim: rgba(147,123,209,0.18);
  --accent-glow:rgba(147,123,209,0.08);
  --text:       #E8E0F8;
  --text-2:     rgba(232,224,248,0.6);
  --text-3:     rgba(232,224,248,0.35);
  --discord:    #5865F2;
  --sidebar-w:  220px;
  --radius:     10px;
  --radius-lg:  16px;
  --transition: 0.2s ease;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

img { user-select: none; -webkit-user-drag: none; }

::selection { background: rgba(147,123,209,0.25); color: inherit; }


.bg-radial {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 0.05s linear;

  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    #3b2d72 0%,
    #0D0A1A 65%
  );
}


.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: rgba(13,10,26,0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  padding: 24px 0 20px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 28px;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 12px;
}

.sidebar-logo img { height: 26px; width: auto; }

.sidebar-logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--accent-hi);
  letter-spacing: 0.01em;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-item svg {
  width: 16px; height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item:hover {
  color: var(--text);
  background: var(--accent-glow);
}

.nav-item.active {
  color: var(--accent-hi);
  background: var(--accent-dim);
}

.nav-item.active svg { opacity: 1; }

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  margin-left: -10px;
}

.sidebar-footer {
  padding: 16px 10px 0;
  border-top: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-3);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-link svg {
  width: 14px; height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.sidebar-link:hover { color: var(--text-2); background: var(--accent-glow); }

.sidebar-copy {
  font-size: 11px;
  color: var(--text-3);
  padding: 10px 12px 0;
}


.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  background: rgba(13,10,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  z-index: 60;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.menu-btn svg { width: 20px; height: 20px; fill: currentColor; }

.topbar-logo { height: 22px; }

.topbar-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-hi);
}


.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
  backdrop-filter: blur(2px);
}

.mobile-overlay.show { display: block; }


.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}


.hero {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 60px 24px;
}

.hero-logo {
  height: 140px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px rgba(147,123,209,0.3));
  animation: none/*floatLogo 6s ease-in-out infinite;*/
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 60px);
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-sub em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #a98de0;
  border-color: #a98de0;
  box-shadow: 0 0 20px rgba(147,123,209,0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border); background: var(--surface2); }

.btn-discord {
  background: var(--discord);
  color: #fff;
  border-color: var(--discord);
}
.btn-discord:hover { background: #4752c4; border-color: #4752c4; }


.stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(26,21,53,0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 32px;
  gap: 4px;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-hi);
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.stat-div {
  width: 1px;
  height: 40px;
  background: var(--border);
}


.page-content {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.page-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 1000px;
}
.page-desc {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.page-desc a { color: var(--accent); text-decoration: none; }
.page-desc a:hover { text-decoration: underline; }

.page-header { margin-bottom: 40px; }

.section-block { margin-top: 36px; }

.section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), background var(--transition);
}

.card:hover { border-color: var(--border); background: var(--surface2); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hi);
}

.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.badge {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-active {
  background: rgba(29,158,117,0.15);
  color: #5DCAA5;
  border: 1px solid rgba(29,158,117,0.4);
}

.badge-upcoming {
  background: var(--accent-dim);
  color: var(--accent-hi);
  border: 1px solid rgba(147,123,209,0.35);
}


.team-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color var(--transition);
}

.team-card:hover { border-color: var(--border); }

.team-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(147,123,209,0.4);
  flex-shrink: 0;
}

.team-name { font-size: 14px; font-weight: 600; color: var(--accent-hi); margin-bottom: 2px; }
.team-role { font-size: 12px; color: var(--text-3); }

.contact-note { font-size: 13px; color: var(--text-3); margin-top: 20px; }
.contact-note a { color: var(--accent); text-decoration: none; }
.contact-note a:hover { text-decoration: underline; }


.tos-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.tos-warning svg {
  width: 18px; height: 18px;
  fill: #FBBF24;
  flex-shrink: 0;
  margin-top: 1px;
}

.tos-warning p {
  font-size: 13px;
  color: rgba(251,191,36,0.85);
  line-height: 1.6;
  margin: 0;
}

.tos-warning strong { color: #FBBF24; }


.tos-body {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.tos-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 14px;
  padding: 20px 0;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }


.tos-body h1 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-hi);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border2);
}

.tos-body h1:first-child { margin-top: 0; }

.tos-body h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tos-body p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 10px;
}

.tos-body ul {
  list-style: none;
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tos-body ul li {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.tos-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.tos-error {
  color: #e57373;
  font-size: 14px;
  padding: 16px 0;
}


.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 360px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(147,123,209,0.1);
  animation: modalIn 0.15s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--text); }
.modal-close svg { width: 18px; height: 18px; fill: currentColor; }

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-hi);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 22px;
}

.modal-options { display: flex; flex-direction: column; gap: 10px; }

.modal-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border2);
  transition: all var(--transition);
  cursor: pointer;
}

.modal-opt-primary {
  background: var(--accent-dim);
  border-color: rgba(147,123,209,0.3);
}
.modal-opt-primary:hover {
  background: rgba(147,123,209,0.28);
  border-color: rgba(147,123,209,0.55);
}

.modal-opt-ghost { background: rgba(255,255,255,0.03); }
.modal-opt-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }

.modal-opt-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(147,123,209,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-opt-ghost .modal-opt-icon { background: rgba(255,255,255,0.07); }

.modal-opt-icon svg { width: 17px; height: 17px; fill: var(--accent-hi); }
.modal-opt-ghost .modal-opt-icon svg { fill: var(--text-3); }

.modal-opt-text { flex: 1; }
.modal-opt-text strong { display: block; font-size: 13.5px; color: var(--accent-hi); margin-bottom: 2px; }
.modal-opt-ghost .modal-opt-text strong { color: var(--text-2); }
.modal-opt-text span { font-size: 12px; color: var(--text-3); }

.modal-badge {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent-hi);
  border: 1px solid rgba(147,123,209,0.35);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}


@media (max-width: 680px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open { transform: translateX(0); }

  .topbar { display: flex; }

  .main {
    margin-left: var(--sidebar-w);
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
  }

  .page-content { padding: 36px 20px 60px; }
  .tos-body { padding: 24px 20px; }
  .stat { padding: 14px 18px; }
  .stat-num { font-size: 18px; }
  .hero { padding: 40px 20px 60px; }
  .hero-logo { height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  .modal { animation: none; }
  * { transition: none !important; }
}

.policy-tabs {
  display: flex;
  position: relative;
  gap: 20px;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 32px;
}

.policy-tab {
  position: relative;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  padding: 11px 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.policy-tab:hover { color: var(--text-2); }
.policy-tab.active { color: var(--accent-hi); }

.policy-tab-slider {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-warning {
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin 0.35s ease;
}

.policy-warning.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  border-width: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.policy-fade {
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-fade.policy-fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.policy-fade.policy-fade-in {
  opacity: 0;
  transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .policy-tab-slider { transition: none; }
  .policy-fade { transition: none; }
  .policy-warning { transition: none; }
}

@media (max-width: 480px) {
  .policy-tab { padding: 9px 14px; font-size: 12.5px; }
}


.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
}

.entry-box {
  width: 380px;
  max-width: calc(100vw - 32px);

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  padding: 30px 26px;
  text-align: center;

  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(147,123,209,0.08);

  animation: modalIn 0.18s ease;
}

.entry-logo {
  width: 110px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 30px rgba(147,123,209,0.25));
}

.entry-box h1 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-hi);
  margin-bottom: 6px;
}

.entry-box p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}

.entry-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-buttons button {
  width: 100%;
  padding: 11px 14px;

  border-radius: var(--radius);
  border: 1px solid var(--border2);

  background: rgba(255,255,255,0.03);
  color: var(--text-2);

  font-weight: 600;
  font-size: 13px;

  cursor: pointer;
  transition: all var(--transition);
}

.entry-buttons button:hover {
  background: var(--accent-dim);
  border-color: rgba(147,123,209,0.4);
  color: var(--text);
}

.entry-buttons button:first-child {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.entry-buttons button:first-child:hover {
  background: #a98de0;
  border-color: #a98de0;
}

.download-anim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-anim svg {
  position: absolute;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 8px var(--accent));
  animation: megaPop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.download-anim svg,
.download-anim svg * {
  fill: none !important;
  stroke: var(--accent-hi) !important;
  stroke-width: 2px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke !important;
}

@keyframes megaPop {
  0% {
    transform: scale(0.05);
    filter: drop-shadow(0 0 4px var(--accent));
    opacity: 0;
  }
  15% {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--accent));
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: scale(45);
    filter: drop-shadow(0 0 0px transparent);
    opacity: 0;
  }
}