:root {
  --bg: #061123;
  --bg-deep: #040b18;
  --panel: rgba(14, 30, 56, 0.68);
  --panel-border: rgba(116, 173, 255, 0.3);
  --text: #f3f8ff;
  --muted: #b5c8e3;
  --accent: #60d6ff;
  --accent-2: #1f8cff;
  --shadow: rgba(3, 10, 24, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 8% -10%, #103469 0%, transparent 42%),
    radial-gradient(circle at 95% 10%, #0f2143 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(116, 173, 255, 0.45);
  border-radius: 999px;
  background: rgba(11, 25, 47, 0.75);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(3, 10, 24, 0.45);
  backdrop-filter: blur(8px);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.music-toggle:hover {
  background: rgba(23, 49, 85, 0.9);
  border-color: #a6dbff;
  transform: translateY(-1px);
}

.music-toggle:focus-visible {
  outline: 2px solid #9ce9ff;
  outline-offset: 2px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(124, 190, 255, 0.26), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(72, 140, 255, 0.22), transparent 34%),
    radial-gradient(circle at 50% 72%, rgba(62, 118, 220, 0.14), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  filter: saturate(118%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: bg-drift 12s ease-in-out infinite alternate;
}

.rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rain-drop {
  position: absolute;
  top: -20%;
  width: 1px;
  height: 64px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.85) 45%,
    rgba(255, 255, 255, 0)
  );
  opacity: 0.45;
  animation-name: drop-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.glow-one {
  width: 280px;
  height: 280px;
  left: -70px;
  top: 80px;
  background: rgba(56, 150, 255, 0.4);
}

.glow-two {
  width: 340px;
  height: 340px;
  right: -110px;
  top: 340px;
  background: rgba(74, 194, 255, 0.25);
}

.wrap {
  width: min(1080px, 90vw);
  margin: 0 auto;
}

.hero {
  padding: 6rem 0 3rem;
  position: relative;
  z-index: 1;
}

.tabs {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.tab-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(110, 174, 255, 0.38);
  background: rgba(18, 40, 70, 0.62);
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tab-link:hover {
  transform: translateY(-1px);
  border-color: #a6dbff;
  background: rgba(32, 67, 113, 0.82);
}

.tab-link.active {
  color: #041326;
  border-color: transparent;
  background: linear-gradient(120deg, #9ce9ff, #6bc0ff 52%, #3a93ff);
}

.logo {
  width: clamp(72px, 9vw, 106px);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(151, 206, 255, 0.4);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  margin-bottom: 0.9rem;
  background: rgba(13, 29, 53, 0.6);
  padding: 0.35rem;
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.8rem;
}

h1,
h2 {
  font-family: "Chakra Petch", sans-serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.4rem, 10vw, 5.2rem);
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  margin: 1rem 0 1.8rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.hero-side {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.devs-card {
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(116, 173, 255, 0.4);
  border-radius: 18px;
  background: linear-gradient(146deg, rgba(16, 35, 64, 0.85), rgba(10, 24, 44, 0.7));
  box-shadow: 0 10px 24px rgba(3, 10, 24, 0.35);
  backdrop-filter: blur(8px);
}

.devs-title {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ed7ff;
}

.devs-list {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dev-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 198, 255, 0.4);
  background: rgba(18, 42, 74, 0.7);
  color: #e8f3ff;
  font-size: 0.86rem;
  font-weight: 600;
}

.support-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  text-decoration: none;
  color: #dff3ff;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 205, 255, 0.45);
  background: rgba(16, 37, 66, 0.66);
  font-size: 0.76rem;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.support-mini:hover {
  transform: translateY(-1px);
  border-color: #b8e5ff;
  background: rgba(28, 58, 99, 0.86);
}

.support-mini-icon {
  width: 14px;
  height: 14px;
  stroke: #86daff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding-bottom: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.modules-page {
  padding-bottom: 1.6rem;
}

.modules-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding-bottom: 4rem;
}

.module-chip {
  background: linear-gradient(148deg, rgba(18, 41, 78, 0.74), rgba(10, 26, 48, 0.56));
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px var(--shadow);
  backdrop-filter: blur(10px);
  padding: 1rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.logo-link {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: linear-gradient(148deg, rgba(18, 41, 78, 0.74), rgba(10, 26, 48, 0.56));
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.logo-link:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #a6dbff;
  box-shadow: 0 14px 32px rgba(10, 26, 48, 0.65);
}

.logo-link img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  background: rgba(24, 49, 84, 0.8);
  border: 1px solid rgba(110, 174, 255, 0.42);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  width: fit-content;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #a6dbff;
  background: rgba(34, 67, 112, 0.95);
}

.btn-primary {
  background: linear-gradient(120deg, #95e7ff, #59b7ff 55%, #2b8eff);
  border-color: transparent;
  color: #03101f;
}

.btn-primary:hover {
  background: linear-gradient(120deg, #b5f0ff, #76c5ff 55%, #4ba0ff);
}

.footer {
  border-top: 1px solid var(--panel-border);
  padding: 1.1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.footer-support {
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: center;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drop-fall {
  from {
    transform: translate3d(0, -120%, 0);
  }
  to {
    transform: translate3d(0, 230vh, 0);
  }
}

@keyframes bg-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -1.2%, 0) scale(1.04);
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 4rem;
  }

  .modules-list {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-side .devs-card + .devs-card {
    margin-left: 0;
  }

  .support-mini {
    font-size: 0.74rem;
  }
}

@media (min-width: 901px) {
  .hero {
    padding-right: min(38vw, 420px);
  }

  .hero-side {
    position: absolute;
    top: 10.8rem;
    right: 0;
    width: min(33vw, 390px);
    height: 320px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
  }

  .hero-side .devs-card {
    width: 100%;
    flex: 0 0 auto;
  }

  .hero-side .devs-card + .devs-card {
    margin-left: 0;
  }
}
