@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Afterglow";
  src: url("/fonts/Afterglow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chomsky";
  src: url("/fonts/Chomsky.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Enchanted Land";
  src: url("/fonts/EnchantedLand.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0614;
  --bg2: #140a22;
  --panel: rgba(28, 12, 52, 0.78);
  --panel2: rgba(138, 64, 220, 0.28);
  --line: rgba(255, 255, 255, 0.22);
  --line2: rgba(255, 255, 255, 0.38);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --accent: #c084ff;
  --accent2: #ffffff;
  --gold: #ffffff;
  --shadow: 0 24px 80px rgba(88, 24, 160, 0.35);
  --radius: 18px;
  --bad: #ff8aa0;
  --ok: #d8b4ff;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Chomsky", "Space Grotesk", serif;
  --font-accent: "Afterglow", "Space Grotesk", sans-serif;
  --font-enchanted: "Enchanted Land", "Chomsky", serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}
.bg-dim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 460px at 12% 8%, rgba(168, 85, 247, 0.38), transparent 58%),
    radial-gradient(640px 380px at 88% 0%, rgba(109, 40, 217, 0.32), transparent 52%),
    radial-gradient(500px 280px at 50% 100%, rgba(192, 132, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #160a28, var(--bg));
}
#app { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; color: inherit; }

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span { color: var(--accent); }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(192, 132, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-title {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  padding: 28px 20px 64px;
}
.topbar {
  max-width: 1120px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn {
  background: linear-gradient(180deg, #c084ff, #7c3aed);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(192, 132, 255, 0.16); }
.btn.gold {
  background: linear-gradient(180deg, #d8b4ff, #7c3aed);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}
.pay-methods span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.06);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.display {
  font-family: var(--font-enchanted);
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(192, 132, 255, 0.35);
}
.sub {
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
  max-width: 58ch;
  font-size: 16px;
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 28px;
}
.feature {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(88, 28, 160, 0.28);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px;
}
.feature strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #ffffff;
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }

.username-box {
  max-width: 360px;
  margin-bottom: 16px;
}
label {
  display: block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
input {
  width: 100%;
  background: rgba(20, 8, 40, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(192, 132, 255, 0.28);
}
input::placeholder { color: rgba(255, 255, 255, 0.45); }

.banner {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 14px;
}
.banner.ok { background: rgba(192, 132, 255, 0.16); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.28); }
.banner.warn { background: rgba(192, 132, 255, 0.12); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.22); }
.banner.info { background: rgba(124, 58, 237, 0.22); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.22); }
.banner.error { background: rgba(255, 138, 160, 0.12); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.22); }

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.rank-tab {
  background: rgba(20, 8, 40, 0.55);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-family: var(--font-enchanted);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.rank-tab:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }
.rank-tab.active {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(192, 132, 255, 0.55);
  background: linear-gradient(180deg, rgba(192, 132, 255, 0.35), rgba(124, 58, 237, 0.28));
}

.price-card {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.42), rgba(16, 6, 32, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  padding: 28px 26px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(192, 132, 255, 0.18);
  position: sticky;
  top: 24px;
}
.price-card .tier {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}
.price-card .rank-name {
  font-family: var(--font-enchanted);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  color: #ffffff;
}
.price-card .rank-tagline {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}
.price-card .amount {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0 0 4px;
  color: #ffffff;
}
.price-card .amount span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 0;
}
.price-list {
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.price-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.price-list li:last-child { border-bottom: 0; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(192, 132, 255, 0.8);
}

.compare-section {
  max-width: 1120px;
  margin: 48px auto 0;
}
.compare-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0 0 8px;
  color: #ffffff;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.compare-card {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.22), rgba(16, 6, 32, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(16px);
}
.compare-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-enchanted);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.compare-card .price-mini {
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}
.perk-group { margin-bottom: 14px; }
.perk-group-title {
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}
.perk-rows { display: flex; flex-direction: column; gap: 8px; }
.perk-row {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(88, 28, 160, 0.22);
}
.perk-row strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
  color: #ffffff;
}
.perk-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.legal-foot {
  max-width: 1120px;
  margin: 40px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.legal-foot a { color: rgba(255, 255, 255, 0.72); }
.legal-foot a:hover { color: #ffffff; }

.card {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.2), rgba(16, 6, 32, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(88, 24, 160, 0.22);
}
.legal h2 {
  font-size: 22px;
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  color: #ffffff;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 18px; }
.legal a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.info-page {
  max-width: 820px;
  margin: 0 auto;
}
.page-head { margin-bottom: 8px; }

@media (max-width: 980px) {
  .hero-grid, .features { grid-template-columns: 1fr; }
  .price-card { position: static; }
}
