:root {
  --bg: #070b14;
  --bg-alt: #0f1628;
  --text: #f5f7ff;
  --muted: #a6b0d0;
  --accent: #00d1b2;
  --accent-2: #ff7a18;
  --card: rgba(15, 22, 40, 0.76);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 15% 20%, #19243d 0%, var(--bg) 45%, #04050a 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(55px);
  pointer-events: none;
}

body::before {
  width: 36vw;
  height: 36vw;
  min-width: 220px;
  min-height: 220px;
  left: -8vw;
  top: 8vh;
  background: rgba(0, 209, 178, 0.22);
  animation: drift 11s ease-in-out infinite alternate;
}

body::after {
  width: 34vw;
  height: 34vw;
  min-width: 200px;
  min-height: 200px;
  right: -8vw;
  top: 38vh;
  background: rgba(255, 122, 24, 0.18);
  animation: drift 13s ease-in-out infinite alternate-reverse;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

#loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 122, 24, 0.18), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0, 209, 178, 0.2), transparent 45%),
    #03050d;
  z-index: 999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: min(520px, 88vw);
  text-align: center;
}

.loader-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.loader-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.06em;
}

.loader-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(0, 209, 178, 0.6);
}

#loaderPercent {
  margin-top: 0.9rem;
  color: #e8ecff;
}

.hero,
.panel,
footer {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem 0 3rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  font-size: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-content {
  max-width: 700px;
  margin-top: 5rem;
  transition: transform 0.5s ease;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.03em;
  font-size: clamp(3rem, 10vw, 7rem);
  margin: 0.75rem 0;
}

.hero-text {
  max-width: 620px;
  color: #d9dff7;
  line-height: 1.7;
}

.hero-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d9e3ff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

.cta {
  display: inline-block;
  margin-top: 1.4rem;
  text-decoration: none;
  color: #05131f;
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent), #6affd8);
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 209, 178, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 209, 178, 0.36);
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(0, 209, 178, 0.08), rgba(255, 122, 24, 0.07));
}

.ticker-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.65rem 0;
  animation: tickerMove 28s linear infinite;
}

.ticker-track span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #dce5ff;
}

.panel {
  margin: 1rem auto 5rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2.3rem);
}

.panel h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  letter-spacing: 0.04em;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 0.35rem;
}

.social-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 1rem;
}

.social-card {
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.social-card::before {
  content: "";
  position: absolute;
  inset: -40% -35%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 45%);
  transform: translateX(-60%);
  transition: transform 0.45s ease;
}

.social-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.social-card p {
  margin-top: 0;
  color: #d2daf9;
  position: relative;
  z-index: 1;
}

.card-cta {
  margin-top: 0.4rem;
  display: inline-block;
  align-self: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eff3ff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  position: relative;
  z-index: 1;
}

.social-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.4);
}

.social-card:hover::before {
  transform: translateX(10%);
}

.discord:hover {
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.25);
}

.instagram:hover {
  box-shadow: 0 12px 30px rgba(225, 48, 108, 0.25);
}

.youtube:hover {
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.22);
}

.manga-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.manga-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 14, 29, 0.85);
  min-height: 116px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.manga-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.manga-item h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.4rem, 4.8vw, 2rem);
  color: #d9e4ff;
  margin: 0;
  line-height: 1.1;
}

.story-cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.story-cards article {
  background: rgba(8, 13, 27, 0.82);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.story-cards p {
  margin-top: 0.4rem;
  color: #d6dcf5;
  line-height: 1.65;
}

.media-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.media-info,
.quote-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 13, 27, 0.85);
  padding: 1.1rem;
  text-align: center;
}

.media-info h3,
.quote-card .quote-text {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.media-info p {
  color: #d2daf9;
  line-height: 1.6;
}

.media-cta {
  margin-top: 0.85rem;
}

.quote-text {
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  line-height: 1.05;
  margin: 0;
}

.quote-sign {
  margin-top: 1rem;
  color: #9db0ea;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

footer {
  padding: 0 0 2rem;
  color: #8f9bc4;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  100% {
    transform: translateY(-24px) translateX(18px) scale(1.06);
  }
}

@media (max-width: 940px) {
  .story-cards,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .hero {
    padding-bottom: 2rem;
  }

  .hero-content {
    margin-top: 3.2rem;
  }

  .social-grid,
  .story-cards,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags {
    gap: 0.4rem;
  }

  .ticker-track {
    gap: 1.2rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}
