@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #07050d;
  --bg-soft: rgba(255,255,255,0.05);
  --line: rgba(255,255,255,0.1);
  --white: #ffffff;
  --muted: #bcb7c9;
  --purple: #b14cff;
  --purple-2: #7f2eff;
  --gold: #f4c94b;
  --dark: #0c0915;
  --shadow: 0 25px 80px rgba(0,0,0,0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #090611 0%, #0a0815 100%);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(177,76,255,0.35), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(177,76,255,0.18), transparent 24%),
    radial-gradient(circle at 60% 65%, rgba(244,201,75,0.08), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(180deg, #0a0712 0%, #10091d 50%, #08060f 100%);
  background-size: auto, auto, auto, 80px 80px, 80px 80px, auto;
  background-position: center;
  z-index: -2;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(177,76,255,0.3), transparent 18%),
    radial-gradient(circle at 78% 42%, rgba(177,76,255,0.18), transparent 26%),
    radial-gradient(circle at 82% 45%, rgba(255,255,255,0.05), transparent 8%);
  filter: blur(10px);
}

.navbar,
.hero,
.section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.navbar {
  margin-top: 26px;
  padding: 0 22px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 8, 18, 0.68);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
}

.brand {
  text-decoration: none;
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  font-family: Orbitron, Inter, Arial, sans-serif;
  text-shadow: 0 0 18px rgba(177, 76, 255, 0.35);
}

.brand span {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(244, 201, 75, 0.45);
}

.menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: #d2cddc;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 14px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

.menu a:hover,
.menu a.active {
  color: var(--white);
  background: rgba(177, 76, 255, 0.12);
  box-shadow: inset 0 -2px 0 rgba(177, 76, 255, 0.8);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.small-btn,
.primary-btn,
.secondary-btn,
.search-box button,
.card a,
.vote-links a {
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.small-btn {
  color: #dcd7e7;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

.primary-btn {
  color: #16110a;
  background: linear-gradient(135deg, #ffd965, #f4c94b);
  border-radius: 15px;
  padding: 13px 20px;
  box-shadow: 0 0 22px rgba(244, 201, 75, 0.28);
}

.primary-btn.large {
  padding: 17px 28px;
  font-size: 16px;
}

.secondary-btn {
  color: var(--white);
  padding: 16px 24px;
  border-radius: 15px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}

.small-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.search-box button:hover,
.card a:hover,
.vote-links a:hover {
  transform: translateY(-1px);
}

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 50px 0 40px;
}

.hero-left {
  max-width: 620px;
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(177, 76, 255, 0.4);
  background: rgba(177, 76, 255, 0.08);
  color: #e1c8ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: Orbitron, Inter, Arial, sans-serif;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: #f3eefb;
  text-shadow:
    0 0 10px rgba(255,255,255,0.15),
    0 0 18px rgba(177,76,255,0.22);
}

.hero h1 span {
  color: #d7abff;
  text-shadow:
    0 0 8px rgba(177,76,255,0.35),
    0 0 25px rgba(177,76,255,0.7),
    0 0 55px rgba(177,76,255,0.25);
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 22px;
}

.search-box {
  width: min(620px, 100%);
  min-height: 92px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  border: 1px solid rgba(244, 201, 75, 0.2);
  background: rgba(8, 6, 14, 0.8);
  box-shadow:
    inset 0 0 30px rgba(177,76,255,0.05),
    0 0 35px rgba(177,76,255,0.08);
  cursor: pointer;
}

.search-text small {
  display: block;
  font-size: 12px;
  color: #a69fb7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.search-text strong {
  font-size: 28px;
  line-height: 1.2;
}

.search-box button {
  color: #16110a;
  padding: 15px 26px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffd965, #f4c94b);
}

.hero-right {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.magic-circle {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(177,76,255,0.3) 0%, rgba(177,76,255,0.12) 35%, transparent 65%);
  box-shadow:
    0 0 80px rgba(177,76,255,0.28),
    inset 0 0 80px rgba(177,76,255,0.18);
  filter: blur(2px);
}

.magic-circle::before,
.magic-circle::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.magic-circle::after {
  inset: 58px;
}

.character-panel {
  position: relative;
  width: min(440px, 100%);
  min-height: 380px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(180deg, rgba(20,15,30,0.9), rgba(10,8,16,0.9));
  box-shadow:
    0 0 60px rgba(177,76,255,0.2),
    0 30px 90px rgba(0,0,0,0.32);
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 28px;
}

.character-panel::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -20px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177,76,255,0.65), rgba(177,76,255,0.08) 60%, transparent 75%);
  filter: blur(8px);
}

.glow-orb {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #fff2cc 0%, #f4c94b 18%, #b14cff 55%, rgba(177,76,255,0.15) 70%, transparent 72%);
  box-shadow:
    0 0 22px rgba(255,255,255,0.15),
    0 0 55px rgba(177,76,255,0.55),
    0 0 100px rgba(177,76,255,0.25);
}

.panel-text {
  position: relative;
  z-index: 2;
}

.panel-text h3 {
  font-family: Orbitron, Inter, Arial, sans-serif;
  font-size: 34px;
  margin-bottom: 10px;
  color: #f5f1ff;
  text-shadow: 0 0 16px rgba(177,76,255,0.28);
}

.panel-text p {
  color: var(--muted);
  line-height: 1.7;
}

.floating-card {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  transform: rotate(25deg);
  box-shadow: 0 0 25px rgba(177,76,255,0.4);
}

.floating-card.one {
  top: 90px;
  left: 35px;
  background: linear-gradient(135deg, #f4c94b, #b14cff);
}
.floating-card.two {
  bottom: 90px;
  right: 40px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #ffffff, #b14cff);
}
.floating-card.three {
  top: 180px;
  right: 20px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #b14cff, #7f2eff);
}

.section {
  padding: 10px 0 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 26px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 12px;
  color: #d7abff;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
}

.section-heading h2 {
  font-family: Orbitron, Inter, Arial, sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.card,
.vote-panel {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 14, 0.76);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
}

.card h3 {
  font-family: Orbitron, Inter, Arial, sans-serif;
  font-size: 24px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card a,
.vote-links a {
  display: inline-block;
  color: #16110a;
  background: linear-gradient(135deg, #ffd965, #f4c94b);
  padding: 13px 18px;
  border-radius: 14px;
}

.vote-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
}

.vote-info h3 {
  font-family: Orbitron, Inter, Arial, sans-serif;
  font-size: 26px;
  margin-bottom: 10px;
}

.vote-info p {
  color: var(--muted);
  line-height: 1.8;
}

.vote-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer {
  padding: 26px 0 42px;
  text-align: center;
  color: #948ca6;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  color: #16110a;
  background: linear-gradient(135deg, #ffd965, #f4c94b);
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 15px 45px rgba(0,0,0,0.28);
  transition: 0.25s ease;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .navbar {
    padding: 16px 18px;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    padding-top: 36px;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .search-box {
    margin: 0 auto;
  }

  .hero-right {
    min-height: 430px;
  }

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

  .vote-panel {
    grid-template-columns: 1fr;
  }

  .vote-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 22px;
  }

  .menu {
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .search-text strong {
    font-size: 22px;
  }

  .search-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box button {
    width: 100%;
  }
}
