:root {
  --bg: #07070d;
  --accent: #3b82f6;
  --accent2: #22d3ee;
  --text: #e8e8f0;
  --muted: #9a9ab0;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #2563eb #0a0a12;
  overflow-x: hidden;
}

a,
button {
  touch-action: manipulation;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

::selection {
  background: rgba(59, 130, 246, .45);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a12;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#2563eb, #22d3ee);
  border-radius: 8px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 14px rgba(59, 130, 246, .7);
}

.c-dot,
.c-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s;
}

.c-dot {
  width: 7px;
  height: 7px;
  background: #93c5fd;
}

.c-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(147, 197, 253, .6);
  transition: opacity .3s, width .25s, height .25s, background-color .25s, border-color .25s;
}

.c-ring.hovered {
  width: 58px;
  height: 58px;
  background: rgba(59, 130, 246, .12);
  border-color: transparent;
}

@media (pointer: coarse) {
  .c-dot,
  .c-ring {
    display: none;
  }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: transform .75s cubic-bezier(.76, 0, .24, 1);
}

.loader.hide {
  transform: translateY(-101%);
}

.loader.gone {
  display: none;
}

.loader-logo {
  font-family: 'Unbounded';
  font-weight: 800;
  font-size: clamp(22px, 5vw, 30px);
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-logo span {
  color: var(--accent);
}

.loader-bar {
  width: min(240px, 60vw);
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.loader-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(59, 130, 246, .8);
}

.loader-pct {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 2px;
}

@keyframes loaderPulse {
  50% { opacity: .45; }
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .3;
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  width: 540px;
  height: 540px;
  background: #1e40af;
  top: -180px;
  right: -120px;
}

.glow-2 {
  width: 480px;
  height: 480px;
  background: #0369a1;
  bottom: -180px;
  left: -160px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 6vw, 70px);
  background: rgba(7, 7, 13, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: padding .3s, background .3s;
}

.nav.scrolled {
  padding-top: 11px;
  padding-bottom: 11px;
  background: rgba(7, 7, 13, .82);
}

.logo {
  font-family: 'Unbounded';
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .25s;
}

.nav nav a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 99px;
  background: rgba(88, 101, 242, .16);
  border: 1px solid rgba(88, 101, 242, .5);
  color: #c7d2fe;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .25s, transform .25s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #5865F2;
  color: #fff;
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 2;
  perspective: 1200px;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 90px;
  position: relative;
}

.hero-inner {
  transform-style: preserve-3d;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  margin-bottom: 30px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { opacity: .35; }
}

.hero-title {
  font-family: 'Unbounded';
  font-weight: 900;
  font-size: clamp(34px, 8.5vw, 118px);
  line-height: .95;
  letter-spacing: -1px;
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

.hero-line {
  display: block;
}

.hero-line .ch {
  display: inline-block;
}

.hero-line.solid .ch {
  background: linear-gradient(135deg, #fff 0%, #bfdbfe 40%, #60a5fa 72%, #22d3ee 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typed-row {
  margin-top: 26px;
  min-height: 1.6em;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  color: #c7d2fe;
  letter-spacing: 1px;
}

.typed-row .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent2);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  max-width: 580px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bounce 2.2s infinite;
}

.scroll-hint i {
  width: 1.5px;
  height: 42px;
  background: linear-gradient(to bottom, #60a5fa, transparent);
}

@keyframes bounce {
  50% { transform: translate(-50%, 8px); }
}

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .015);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  animation: scrollX 26s linear infinite;
  padding-left: 46px;
}

.marquee.rev .marquee-track {
  animation-direction: reverse;
}

@keyframes scrollX {
  to { transform: translateX(-50%); }
}

.mq-item {
  font-family: 'Unbounded';
  font-weight: 800;
  font-size: clamp(18px, 3vw, 32px);
  letter-spacing: 2px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
  white-space: nowrap;
}

.mq-sep {
  color: var(--accent);
  font-size: clamp(14px, 2vw, 20px);
}

.section {
  padding: 110px clamp(20px, 6vw, 70px);
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Unbounded';
  font-weight: 800;
  font-size: clamp(26px, 5vw, 46px);
}

.section-title span {
  background: linear-gradient(120deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  color: var(--muted);
  margin-top: 14px;
  font-weight: 300;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  transform-style: preserve-3d;
}

.card {
  position: relative;
  z-index: 1;
  flex: 0 1 300px;
  display: block;
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .2s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--c);
  box-shadow: 0 24px 60px -24px var(--c);
}

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

.card:active {
  transform: scale(.98);
}

.card-in {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s ease-out;
  will-change: transform;
}

.card:hover .card-in {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
  transition-duration: .15s;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--c);
  transform: translateZ(34px);
  transition: background .3s, border-color .3s, color .3s;
}

.card:hover .card-icon {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
}

.card-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.card h3 {
  font-family: 'Unbounded';
  font-size: 17px;
  font-weight: 600;
  transform: translateZ(26px);
}

.card-handle {
  color: var(--c);
  font-size: 14px;
  font-weight: 600;
  margin-top: 7px;
  transform: translateZ(20px);
}

.card-desc {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 5px;
  font-weight: 300;
  transform: translateZ(16px);
}

.card-arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--muted);
  font-size: 18px;
  transition: color .3s, transform .3s;
  transform: translateZ(20px);
}

.card:hover .card-arrow {
  color: var(--c);
  transform: translateZ(20px) translate(4px, -4px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}

.stat {
  position: relative;
  padding: 34px 22px;
  border-radius: 20px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}

.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .7), transparent);
}

.stat:hover {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 20px 50px -24px rgba(59, 130, 246, .6);
}

.stat b {
  display: block;
  font-family: 'Unbounded';
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  background: linear-gradient(135deg, #fff, #60a5fa 70%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.about-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.avatar {
  position: relative;
  display: block;
  width: clamp(120px, 16vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 20px 60px -18px rgba(37, 99, 235, .85);
  animation: floaty 6s ease-in-out infinite;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, .55);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(.94); opacity: 1; }
  70%, 100% { transform: scale(1.12); opacity: 0; }
}

.about-text p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  font-size: clamp(15px, 1.6vw, 17px);
}

.about-text p + p {
  margin-top: 16px;
}

.discord-box {
  position: relative;
  border-radius: 28px;
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 60px);
  text-align: center;
  background: linear-gradient(135deg, rgba(88, 101, 242, .2), rgba(37, 99, 235, .12) 50%, rgba(34, 211, 238, .1));
  background-size: 220% 220%;
  border: 1px solid rgba(88, 101, 242, .35);
  overflow: hidden;
  transform-style: preserve-3d;
  animation: gradShift 9s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.discord-watermark {
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: clamp(160px, 22vw, 240px);
  height: auto;
  fill: rgba(255, 255, 255, .05);
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floaty {
  50% { transform: translateY(-16px) rotate(-4deg); }
}

.discord-box h2 {
  font-family: 'Unbounded';
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 800;
  position: relative;
}

.discord-box h2 span {
  background: linear-gradient(120deg, #93c5fd, #5865F2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.discord-box p {
  color: var(--muted);
  margin: 18px auto 34px;
  max-width: 520px;
  line-height: 1.6;
  font-weight: 300;
  position: relative;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
  will-change: transform;
}

.btn-primary {
  overflow: hidden;
  background: linear-gradient(120deg, #1d4ed8, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(59, 130, 246, .8);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  box-shadow: 0 18px 46px -10px rgba(59, 130, 246, .95);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .09);
}

.btn-discord {
  position: relative;
  background: #5865F2;
  color: #fff;
  box-shadow: 0 12px 40px -10px rgba(88, 101, 242, .9);
  padding: 16px 38px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.btn-discord:hover {
  box-shadow: 0 18px 50px -10px rgba(88, 101, 242, 1);
}

.btn-discord svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.to-top {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(59, 130, 246, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #dbeafe;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .3s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: rgba(37, 99, 235, .35);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .about-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .nav nav {
    display: none;
  }

  .section {
    padding-top: 84px;
    padding-bottom: 84px;
  }
}

@media (max-width: 700px) {
  .glow {
    filter: blur(85px);
    opacity: .26;
  }

  .glow-1 {
    width: 380px;
    height: 380px;
    top: -140px;
    right: -100px;
  }

  .glow-2 {
    width: 340px;
    height: 340px;
    bottom: -150px;
    left: -120px;
  }
}

@media (max-width: 560px) {
  .card-in {
    padding: 28px 22px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat {
    padding: 26px 14px;
  }

  .hero {
    padding-bottom: 110px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 330px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .avatar::before,
  .discord-watermark,
  .discord-box {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
