* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

:root {
  --bg-1: #050010;
  --bg-2: #0d0320;
  --bg-3: #16072f;
  --bg-4: #090216;

  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --panel-heavy: rgba(255, 255, 255, 0.09);

  --border-soft: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f7f4ff;
  --muted: rgba(233, 228, 255, 0.78);
  --muted-soft: rgba(233, 228, 255, 0.56);

  --accent: #8a6cff;
  --accent-2: #5de4ff;
  --accent-3: #c07bff;
  --accent-4: #6f52ff;

  --shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.26);
  --shadow-glow: 0 18px 48px rgba(126, 96, 255, 0.22);

  --card-radius: 32px;
  --card-radius-lg: 36px;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(127, 90, 255, 0.22), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(93, 228, 255, 0.16), transparent 18%),
    radial-gradient(circle at 50% 86%, rgba(192, 123, 255, 0.14), transparent 24%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 42%, var(--bg-3) 74%, var(--bg-4));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 28%);
  z-index: 0;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

.hero,
.characters-section,
.about-section,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  overflow: hidden;
  padding: 20px 24px 46px;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.stars-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(86px);
  opacity: 0.34;
  animation: floatBlob 13s ease-in-out infinite;
}

.blob.one {
  width: 360px;
  height: 360px;
  top: 6%;
  left: 4%;
  background: rgba(135, 102, 255, 0.34);
}

.blob.two {
  width: 420px;
  height: 420px;
  top: 36%;
  right: 6%;
  background: rgba(88, 220, 255, 0.16);
  animation-delay: 2s;
}

.blob.three {
  width: 300px;
  height: 300px;
  bottom: 4%;
  left: 34%;
  background: rgba(191, 111, 255, 0.16);
  animation-delay: 4s;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -26px) scale(1.06);
  }
}

.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 22px;
  background: linear-gradient(
    180deg,
    rgba(18, 8, 40, 0.68),
    rgba(18, 8, 40, 0.46)
  );
  border: 1px solid var(--border-mid);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(138, 108, 255, 0.42),
    0 0 42px rgba(93, 228, 255, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.logo:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
  box-shadow:
    0 0 28px rgba(138, 108, 255, 0.68),
    0 0 52px rgba(93, 228, 255, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.97rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.24s ease, opacity 0.24s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 0.26s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-right .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 15px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-right .nav-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(138, 108, 255, 0.24);
  box-shadow:
    0 12px 28px rgba(122, 98, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-wrap {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 28px;
  max-width: var(--max-width);
  min-height: calc(100vh - 112px);
  margin: 28px auto 0;
}

.side-panel {
  position: relative;
  overflow: hidden;
  height: 72vh;
  min-height: 500px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.side-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(138, 108, 255, 0.2);
  box-shadow:
    0 28px 72px rgba(122, 98, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.side-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.08) brightness(0.92);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.side-panel:hover img {
  transform: scale(1.03);
  filter: saturate(1.12) brightness(0.95);
}

.side-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 0, 18, 0.96), rgba(13, 5, 36, 0.18)),
    linear-gradient(
      to right,
      rgba(138, 108, 255, 0.06),
      transparent 30%,
      transparent 70%,
      rgba(93, 228, 255, 0.06)
    );
}

.side-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.side-info h3 {
  margin-bottom: 6px;
  font-size: 1.8rem;
  letter-spacing: 1.2px;
}

.side-info p {
  max-width: 210px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.center {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  overflow: hidden;
  width: min(880px, 100%);
  padding: 48px 42px 40px;
  text-align: center;
  border-radius: var(--card-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(138, 108, 255, 0.04), rgba(93, 228, 255, 0.03));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow:
    var(--shadow),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(138, 108, 255, 0.22), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(93, 228, 255, 0.12), transparent 34%),
    radial-gradient(circle at top, rgba(138, 108, 255, 0.14), transparent 44%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #e4dbff;
  background: rgba(138, 108, 255, 0.11);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 26px rgba(110, 76, 255, 0.08);
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: 5px;
  color: #faf8ff;
  text-shadow:
    0 0 22px rgba(138, 108, 255, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 3.1rem);
  line-height: 1.08;
  font-weight: 780;
  color: rgba(249, 246, 255, 0.98);
  letter-spacing: -0.02em;
}

.subtitle {
  max-width: 740px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--muted);
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-pill {
  padding: 11px 16px;
  font-size: 0.93rem;
  color: rgba(245, 243, 255, 0.92);
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 8px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.feature-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(138, 108, 255, 0.16);
  box-shadow: 0 12px 24px rgba(122, 98, 255, 0.1);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 194px;
  min-height: 56px;
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 17px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    filter 0.25s ease;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #6c47ff, #8a6cff, #5de4ff, #6c47ff);
  background-size: 300% 300%;
  box-shadow:
    0 14px 38px rgba(123, 97, 255, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: gradientShift 6s ease infinite;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.018);
  filter: saturate(1.06);
  box-shadow: 0 18px 46px rgba(123, 97, 255, 0.5);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(138, 108, 255, 0.22);
  box-shadow: 0 12px 28px rgba(122, 98, 255, 0.14);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}

.stat {
  padding: 20px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--border-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 108, 255, 0.18);
  box-shadow: 0 14px 32px rgba(122, 98, 255, 0.16);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: rgba(248, 245, 255, 0.98);
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

.characters-section,
.about-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 24px 98px;
}

.about-section {
  padding-top: 0;
}

.about-section .mini-stats {
  margin-top: 12px;
}

.about-section .stat {
  min-height: 140px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: 760px;
  line-height: 1.95;
  color: var(--muted);
}

.section-support {
  margin-top: 14px;
  max-width: 720px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(233, 228, 255, 0.6);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.char-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.038));
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.char-card:hover,
.char-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(138, 108, 255, 0.22);
  box-shadow: 0 18px 46px rgba(122, 98, 255, 0.18);
  outline: none;
}

.char-card img {
  display: block;
  width: calc(100% + 16px);
  height: 350px;
  margin: -8px -8px 16px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.char-card:hover img,
.char-card:focus-visible img {
  transform: scale(1.055);
  filter: brightness(1.05) saturate(1.08);
}

.char-card h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.char-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

.glow {
  position: absolute;
  inset: auto 10% -30px 10%;
  height: 70px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(138, 108, 255, 0.25), transparent 70%);
  filter: blur(22px);
  transition: opacity 0.3s ease;
}

.char-card:hover .glow,
.char-card:focus-visible .glow {
  opacity: 1;
}

.footer {
  padding: 0 24px 36px;
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted-soft);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 2, 18, 0.74);
  backdrop-filter: blur(12px);
}

.modal.active {
  display: flex;
}

.modal-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  width: min(860px, 92vw);
  max-height: 88vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 10, 44, 0.98), rgba(12, 6, 28, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.modal-image {
  min-height: 520px;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.modal-image img {
  display: block;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  margin: -12px;
  object-fit: cover;
  object-position: center top;
}

.modal-content {
  position: relative;
  overflow-y: auto;
  padding: 32px 30px;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  cursor: pointer;
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(138, 108, 255, 0.2);
  transform: translateY(-1px);
}

.modal-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: #ded7ff;
  background: rgba(138, 108, 255, 0.12);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

.modal-content h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.modal-sub {
  margin-bottom: 18px;
  font-size: 0.96rem;
  color: #d6cbff;
}

.modal-content p {
  max-width: 95%;
  margin-bottom: 20px;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--muted);
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trait {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #f1edff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .hero-wrap {
    grid-template-columns: 220px 1fr 220px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    width: min(780px, 100%);
  }
}

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

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
  }

  .side-panel {
    display: none;
  }

  .hero-card {
    padding: 38px 30px 32px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-card {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 16px 20px 28px;
  }

  .nav {
    top: 10px;
    padding: 12px 16px;
  }

  .logo img {
    width: 72px;
    height: 72px;
  }

  .hero-wrap {
    margin-top: 18px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .characters-section,
  .about-section {
    padding: 32px 20px 76px;
  }

  .section-support {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .about-section .stat {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 28px 18px 24px;
    border-radius: 26px;
  }

  h1 {
    letter-spacing: 2px;
  }

  .hero-card h2 {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .subtitle {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .feature-row {
    gap: 10px;
  }

  .feature-pill {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .char-card img {
    height: 390px;
  }

  .modal {
    padding: 14px;
  }

  .modal-content {
    padding: 26px 20px;
  }

  .modal-content h3 {
    font-size: 1.8rem;
  }

  .modal-content p {
    max-width: 100%;
  }

  .footer {
    padding: 0 20px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
