:root {
  --bg: #08090c;
  --text: #f2f2f2;
  --muted: #b9b9b9;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.16);
  --outline: rgba(255, 255, 255, 0.22);
  --accent: #ffffff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button:focus-visible,
.tab:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 15%,
      rgba(255, 255, 255, 0.08),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.05),
      transparent 50%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(255, 255, 255, 0.04),
      transparent 55%
    ),
    radial-gradient(
      circle at 50% 40%,
      rgba(92, 196, 255, 0.08),
      transparent 55%
    ),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 70px 70px, 70px 70px;
  opacity: 0.42;
  z-index: 0;
}

.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 280px 280px;
  opacity: 0.24;
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    circle 190px at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.08) 28%,
    rgba(255, 255, 255, 0.02) 48%,
    rgba(0, 0, 0, 0.82) 74%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background 0.08s ease-out;
  filter: saturate(110%);
}

.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.cursor-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  opacity: 0;
  animation: fade-in 0.8s ease forwards;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.util-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.logo-mark {
  font-family: "Rubik Mono One", sans-serif;
  background: #fff;
  color: #0a0b0f;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 12px 26px rgba(0, 0, 0, 0.35);
}

.tabs {
  display: flex;
  gap: 10px;
  background: rgba(8, 8, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.tab.is-active {
  color: #0a0b0f;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  opacity: 0.65;
}

.tab-hint {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.screen {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
  text-shadow: var(--text-shadow);
}

.panels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100vw;
  transition: transform 0.6s ease;
  will-change: transform;
}

.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 9vw 90px;
}

.panel-inner {
  width: min(980px, 100%);
  display: grid;
  gap: 20px;
  position: relative;
}

.panel.is-active .panel-inner > * {
  animation: fade-up 0.6s ease both;
}

.panel.is-active .panel-inner > *:nth-child(1) {
  animation-delay: 0.05s;
}

.panel.is-active .panel-inner > *:nth-child(2) {
  animation-delay: 0.1s;
}

.panel.is-active .panel-inner > *:nth-child(3) {
  animation-delay: 0.15s;
}

.panel.is-active .panel-inner > *:nth-child(4) {
  animation-delay: 0.2s;
}

.panel.is-active .panel-inner > *:nth-child(5) {
  animation-delay: 0.25s;
}

.panel.is-active .panel-inner > *:nth-child(6) {
  animation-delay: 0.3s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.pro-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #6fd0ff;
  text-shadow: 0 0 14px rgba(90, 165, 255, 0.5),
    0 0 24px rgba(90, 165, 255, 0.25),
    0 0 18px rgba(255, 90, 140, 0.18),
    0 0 22px rgba(255, 130, 200, 0.2);
}

.pro-sparkles {
  position: absolute;
  inset: -14px -22px -10px -22px;
  pointer-events: none;
  opacity: 0.7;
}

.pro-sparkles .spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #b3e3ff, rgba(90, 165, 255, 0) 60%);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(60, 120, 255, 0.6))
    drop-shadow(0 0 12px rgba(255, 80, 130, 0.45))
    drop-shadow(0 0 18px rgba(255, 120, 200, 0.4));
  animation: sparkle-pop 3.8s ease-in-out infinite;
}

.pro-sparkles .spark:nth-child(1) {
  left: -6px;
  top: -8px;
  animation-delay: 0.2s;
  background: radial-gradient(circle, #8fd0ff, rgba(50, 120, 255, 0) 60%);
}

.pro-sparkles .spark:nth-child(2) {
  left: 12px;
  top: -12px;
  animation-delay: 1.1s;
  animation-duration: 4.1s;
  background: radial-gradient(circle, #ff8ab6, rgba(255, 90, 140, 0) 60%);
}

.pro-sparkles .spark:nth-child(3) {
  right: -6px;
  top: 2px;
  animation-delay: 0.6s;
  animation-duration: 3.4s;
  background: radial-gradient(circle, #9bd9ff, rgba(70, 150, 255, 0) 60%);
}

.pro-sparkles .spark:nth-child(4) {
  right: -12px;
  bottom: -6px;
  animation-delay: 1.8s;
  animation-duration: 4.5s;
  background: radial-gradient(circle, #ff9bd1, rgba(255, 120, 200, 0) 60%);
}

.pro-sparkles .spark:nth-child(5) {
  left: -2px;
  bottom: -10px;
  animation-delay: 2.2s;
  animation-duration: 3.9s;
  background: radial-gradient(circle, #7fb5ff, rgba(60, 110, 255, 0) 60%);
}

.pro-sparkles .spark:nth-child(6) {
  left: 26px;
  bottom: -12px;
  animation-delay: 0.9s;
  animation-duration: 4.3s;
  background: radial-gradient(circle, #ffc4e4, rgba(255, 140, 210, 0) 60%);
}

.pro-sparkles .spark:nth-child(7) {
  right: 12px;
  top: -14px;
  animation-delay: 2.7s;
  animation-duration: 4.7s;
  background: radial-gradient(circle, #7fbfff, rgba(70, 140, 255, 0) 60%);
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.3px;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(255, 255, 255, 0.2);
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 620px;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.quote-card {
  position: fixed;
  left: clamp(14px, 2.8vw, 28px);
  bottom: clamp(16px, 3.5vh, 34px);
  z-index: 4;
  display: grid;
  gap: 8px;
  width: min(520px, 90vw);
  padding: 0;
  opacity: 0.92;
  animation: fade-in 0.9s ease 0.2s both;
}

.quote-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  min-height: 3.8em;
  position: relative;
  padding-right: 14px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.quote-content {
  white-space: pre-wrap;
}

.caret {
  display: inline-block;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  animation: caret-blink 0.9s steps(1) infinite;
}

.quote-author {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.quote-author.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  position: fixed;
  right: clamp(16px, 2.8vw, 28px);
  bottom: clamp(18px, 3.6vh, 34px);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(8, 8, 12, 0.7);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  z-index: 4;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  text-decoration: underline;
}

.discord-icon {
  width: 0.95em;
  height: 0.95em;
  display: inline-block;
  fill: currentColor;
}

.highlight {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 26px rgba(255, 255, 255, 0.3);
}

.stat-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.stat {
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ticker {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.6);
  box-shadow: var(--glow);
}

.ticker-track {
  display: flex;
  gap: 30px;
  padding: 8px 18px;
  animation: ticker-slide 18s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  color: #0a0b0f;
  font-weight: 600;
  box-shadow: var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--glow);
}

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

.card {
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 18px;
  background: rgba(10, 10, 12, 0.7);
  box-shadow: var(--glow);
  transition: border-color 0.2s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transform-origin: center;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.2),
    transparent 35%,
    rgba(255, 255, 255, 0.12)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease, opacity 0.4s ease;
  pointer-events: none;
  opacity: 0.35;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.card:hover::after {
  transform: translateX(120%);
  opacity: 0.7;
}

.card p {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
  text-shadow: none;
}

.card h3 {
  text-shadow: none;
}


.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.module {
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  background: rgba(10, 10, 12, 0.7);
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.module::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.2),
    transparent 35%,
    rgba(255, 255, 255, 0.12)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.module::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.module:hover::after {
  transform: translateX(120%);
}

.module span {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0.1;
  }
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes sparkle-pop {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(6px);
  }
  18% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
  }
  40% {
    opacity: 0.6;
    transform: scale(0.8) translateY(-2px);
  }
  100% {
    opacity: 0;
    transform: scale(0.35) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panels,
  .panel.is-active .panel-inner > *,
  .site-header,
  .quote-card,
  .caret,
  .ticker-track {
    animation: none;
    transition: none;
  }
}

.steps {
  display: grid;
  gap: 12px;
  color: var(--muted);
  padding-left: 20px;
}

.steps li {
  line-height: 1.6;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .header-right {
    align-items: center;
  }

  .util-row {
    justify-content: center;
  }

  .tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .panel {
    padding: 150px 8vw 90px;
  }

}

@media (max-width: 640px) {
  .tabs {
    padding: 4px;
  }

  .tab {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .site-footer {
    display: none;
  }
}
