:root {
  --color-bg: #1a0533;
  --color-surface: #22064a;
  --color-primary: #7b2d8b;
  --color-accent: #e040fb;
  --color-text: #f3e5f5;
  --color-muted: #c8a9d6;
  --color-line: rgba(224, 64, 251, 0.28);
  --shadow-soft: 0 22px 50px rgba(10, 1, 24, 0.45);
  --shadow-glow: 0 0 20px rgba(224, 64, 251, 0.3);
  --radius: 10px;
  --max-width: 1180px;
  --font-heading: "Exo 2", sans-serif;
  --font-body: "Nunito", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--color-bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top right, rgba(224, 64, 251, 0.2), transparent 28%),
    radial-gradient(circle at bottom left, rgba(123, 45, 139, 0.22), transparent 34%),
    linear-gradient(180deg, #120226 0%, var(--color-bg) 45%, #120126 100%);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
}

body:has(#ck-banner) {
  padding-bottom: 92px;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(26, 5, 51, 0.88);
  border-bottom: 1px solid rgba(224, 64, 251, 0.15);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img,
.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(224, 64, 251, 0.22));
}

.brand-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tag,
.meta-note,
.section-lead,
.page-intro p,
.site-footer p {
  color: var(--color-muted);
}

.brand-tag {
  margin: 0;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a,
.policy-links a,
.mini-links a {
  transition: 0.25s ease;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
  background: rgba(224, 64, 251, 0.15);
  box-shadow: inset 0 0 0 1px rgba(224, 64, 251, 0.18);
}

main {
  display: block;
  overflow-x: clip;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 60px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  top: 14%;
  left: -12%;
  width: 52%;
  height: 14px;
  background: linear-gradient(90deg, transparent, rgba(224, 64, 251, 0.9), transparent);
  transform: rotate(-10deg);
  filter: blur(2px);
}

.hero::after {
  right: -10%;
  bottom: 20%;
  width: 48%;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(123, 45, 139, 0.95), rgba(224, 64, 251, 0.95), transparent);
  transform: rotate(-16deg);
}

.hero-panel,
.surface-panel {
  position: relative;
  padding: 32px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(34, 6, 74, 0.72);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(224, 64, 251, 0.18);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 10%, rgba(224, 64, 251, 0.12) 35%, transparent 55%),
    linear-gradient(145deg, transparent 48%, rgba(123, 45, 139, 0.18) 52%, transparent 80%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fce4ff;
  background: rgba(224, 64, 251, 0.15);
  border: 1px solid rgba(224, 64, 251, 0.22);
}

.glitch-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(224, 64, 251, 0.28);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch-title::before {
  color: rgba(224, 64, 251, 0.75);
  transform: translate(2px, -1px);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-slice-1 3.4s infinite linear alternate-reverse;
}

.glitch-title::after {
  color: rgba(123, 45, 139, 0.95);
  transform: translate(-2px, 1px);
  clip-path: polygon(0 58%, 100% 58%, 100% 100%, 0 100%);
  animation: glitch-slice-2 2.9s infinite linear alternate;
}

@keyframes glitch-slice-1 {
  0%, 84%, 100% { transform: translate(2px, -1px); }
  86% { transform: translate(-3px, 1px); }
  88% { transform: translate(4px, -2px); }
  90% { transform: translate(-1px, 0); }
}

@keyframes glitch-slice-2 {
  0%, 80%, 100% { transform: translate(-2px, 1px); }
  83% { transform: translate(3px, -2px); }
  87% { transform: translate(-4px, 3px); }
}

.hero p {
  margin: 0 0 26px;
  color: #f6ddff;
  font-size: 1.08rem;
  max-width: 62ch;
}

.button,
.ghost-button,
.filter-button,
.chip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: 0.25s ease;
  cursor: pointer;
}

.button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(224, 64, 251, 0.24);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(224, 64, 251, 0.32);
}

.ghost-button,
.filter-button,
.chip-link {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 64, 251, 0.18);
}

.ghost-button:hover,
.filter-button:hover,
.filter-button.active,
.chip-link:hover {
  box-shadow: var(--shadow-glow);
  background: rgba(224, 64, 251, 0.12);
}

.section {
  padding: 32px 0 64px;
}

.page-intro {
  padding: 68px 0 24px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-lead,
.page-intro p {
  margin: 0 0 28px;
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.split {
  display: grid;
  gap: 24px;
}

.card,
.news-card,
.faq-preview-item,
.ranking-card,
.category-card,
.feature-box,
.guide-box,
.legal-card,
.faq-item {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, #7b2d8b, #e040fb) 1;
  background: linear-gradient(180deg, rgba(34, 6, 74, 0.96), rgba(25, 3, 50, 0.96));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.news-card:hover,
.ranking-card:hover,
.category-card:hover,
.feature-box:hover,
.guide-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-soft);
}

.card-media,
.ranking-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img,
.ranking-media img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content,
.news-content,
.ranking-content,
.feature-content,
.guide-content,
.legal-content {
  padding: 24px;
}

.badge-row,
.chip-set,
.filter-row,
.cta-row,
.mini-links,
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge,
.chip,
.position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.badge,
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(224, 64, 251, 0.15);
  color: #fce4ff;
  border: 1px solid rgba(224, 64, 251, 0.18);
}

.card h3,
.news-card h3,
.ranking-card h3,
.category-card h3,
.feature-box h3,
.guide-box h3,
.legal-card h3,
.faq-preview-item h3,
.footer-brand h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.2;
}

.card p,
.news-card p,
.ranking-card p,
.category-card p,
.feature-box p,
.guide-box p,
.legal-card p,
.legal-card li,
.faq-preview-item p {
  margin: 0 0 14px;
  color: #ead6f0;
}

.link-inline {
  color: #ffd0ff;
  font-weight: 800;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.list-check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #f1def7;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 900;
}

.ranking-card {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.position-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  min-width: 62px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  box-shadow: 0 10px 24px rgba(224, 64, 251, 0.35);
}

.news-visual {
  min-height: 180px;
  background:
    linear-gradient(125deg, rgba(123, 45, 139, 0.9), rgba(224, 64, 251, 0.72)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08), transparent 50%);
  position: relative;
  overflow: hidden;
}

.news-visual::before,
.news-visual::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(-18deg);
}

.news-visual::before {
  width: 120%;
  height: 10px;
  top: 24%;
  left: -10%;
}

.news-visual::after {
  width: 90%;
  height: 6px;
  bottom: 24%;
  right: -8%;
}

.news-meta {
  margin-bottom: 10px;
  color: #f6c3ff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card.is-hidden {
  display: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.empty-state {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(224, 64, 251, 0.28);
}

.faq-list,
.form-grid {
  display: grid;
  gap: 16px;
}

.faq-question {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  color: var(--color-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 22px 22px;
  color: #ead6f0;
}

.faq-item.open .faq-question {
  background: rgba(224, 64, 251, 0.1);
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(45deg);
}

.form-grid.two-col,
.newsletter-box,
.footer-inner {
  display: grid;
  gap: 16px;
}

.form-grid.two-col,
.newsletter-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.newsletter-box {
  grid-template-columns: 1fr auto;
  align-items: end;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(224, 64, 251, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border-radius: 12px;
  padding: 14px 16px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #c8aed2;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(224, 64, 251, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  color: #ffd1ff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.site-footer {
  padding: 34px 0 40px;
  background: rgba(10, 2, 22, 0.82);
  border-top: 1px solid rgba(224, 64, 251, 0.14);
}

#ck-banner {
  flex-wrap: wrap !important;
}

#ck-banner > div:last-child {
  flex-wrap: wrap;
}

.footer-inner {
  grid-template-columns: 1.1fr 1fr;
}

@media (max-width: 980px) {
  .grid-3,
  .grid-2,
  .split,
  .category-grid,
  .footer-inner,
  .ranking-card,
  .form-grid.two-col,
  .newsletter-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .brand-tag {
    display: none;
  }

  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(46vw, 240px);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px 14px;
    background: rgba(26, 5, 51, 0.98);
    border: 1px solid var(--color-line);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 12px;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max-width), calc(100% - 22px));
  }

  .brand img,
  .footer-brand img {
    width: 48px;
    height: 48px;
  }

  .brand > div {
    display: none;
  }

  .glitch-title {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  h1.section-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    overflow-wrap: anywhere;
  }

  .section {
    padding: 20px 0 46px;
  }
}
