/* =========================================
   JOYLAND-AI.EU — styles.css
   ========================================= */

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
  /* Brand colours */
  --bg:             #080808;
  --sidebar:        #1C1D20;
  --card-sec:       #27282C;
  --accent:         #4E6BFE;
  --accent-hover:   #6B85FF;
  --accent-glow:    rgba(78, 107, 254, 0.35);

  /* Text */
  --text-primary:   rgba(255, 255, 255, 0.97);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted:     rgba(255, 255, 255, 0.30);

  /* Borders */
  --border:         rgba(255, 255, 255, 0.07);
  --border-hover:   rgba(78, 107, 254, 0.40);

  /* Gradients */
  --hero-gradient:  linear-gradient(105deg, rgba(237, 117, 188, 0.85) 0%, rgba(248, 244, 255, 0.95) 36%, rgba(118, 75, 162, 0.95) 100%);
  --card-overlay:   linear-gradient(rgba(8, 8, 8, 0), rgba(8, 8, 8, 0.92));

  /* Shapes */
  --radius:         12px;
  --radius-lg:      20px;
  --radius-sm:      8px;
  --radius-pill:    100px;

  /* Spacing */
  --section-gap:    96px;
  --container:      1200px;

  /* Shadows */
  --shadow-card:    0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-accent:  0 0 0 2px var(--accent);
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

/* ─── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ─── Sections ────────────────────────────────────────────── */
.section {
  padding-block: var(--section-gap);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(78, 107, 254, 0.12);
  border: 1px solid rgba(78, 107, 254, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.97);
}

/* Sizes */
.btn--sm  { font-size: 0.82rem; padding: 8px 18px; }
.btn--md  { font-size: 0.95rem; padding: 12px 26px; }
.btn--lg  { font-size: 1rem;    padding: 14px 32px; }
.btn--xl  { font-size: 1.1rem;  padding: 16px 40px; }
.btn--full { width: 100%; }

/* Variants */
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(78, 107, 254, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

/* ─── Tags / Pills ────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

.tag--sm {
  font-size: 0.68rem;
  padding: 2px 8px;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: 14px;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.95);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav__logo-icon {
  color: var(--accent);
  font-size: 1rem;
}

.nav__logo-accent {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  flex-shrink: 0;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

.nav__mobile a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav__mobile a:last-child {
  border-bottom: none;
  margin-top: 8px;
}

.nav__mobile a:hover {
  color: var(--text-primary);
}

.nav__mobile.open {
  display: flex;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(78, 107, 254, 0.6), transparent 70%);
  top: -150px;
  left: -150px;
}

.hero__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(237, 117, 188, 0.5), transparent 70%);
  bottom: -100px;
  right: -100px;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(118, 75, 162, 0.5), transparent 70%);
  top: 40%;
  left: 60%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero__title-gradient {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  gap: 0;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 32px;
  text-align: center;
}

.hero__stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero__stat span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── CHARACTERS ──────────────────────────────────────────── */
.characters {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(28, 29, 32, 0.3) 50%, var(--bg) 100%);
}

.chars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.char-card {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: default;
}

.char-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(78,107,254,0.15);
}

.char-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.char-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-card__placeholder span {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  user-select: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Character placeholder colour palette */
.char-card__placeholder--1 { background: linear-gradient(145deg, #1a1a3e, #2d1b4e); }
.char-card__placeholder--2 { background: linear-gradient(145deg, #1e2a1e, #1a3020); }
.char-card__placeholder--3 { background: linear-gradient(145deg, #2e1a1a, #3d1f2f); }
.char-card__placeholder--4 { background: linear-gradient(145deg, #1a1a2e, #0d1533); }
.char-card__placeholder--5 { background: linear-gradient(145deg, #2a1a2e, #3d1545); }
.char-card__placeholder--6 { background: linear-gradient(145deg, #1a2030, #0d1a35); }
.char-card__placeholder--7 { background: linear-gradient(145deg, #0d1a35, #1a1040); }
.char-card__placeholder--8 { background: linear-gradient(145deg, #201510, #2d1a0d); }

.char-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--card-overlay);
  z-index: 1;
}

.char-card__body {
  padding: 16px;
}

.char-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.char-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.char-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.char-card__btn {
  width: 100%;
}

.chars__cta-wrap {
  text-align: center;
}

.chars__cta-note {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ─── FEATURES ────────────────────────────────────────────── */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.feat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feat-card--wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--sidebar) 0%, #1e2035 100%);
}

.feat-card--accent {
  background: linear-gradient(135deg, rgba(78, 107, 254, 0.18) 0%, var(--sidebar) 100%);
  border-color: rgba(78, 107, 254, 0.25);
}

.feat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(78, 107, 254, 0.12);
  border: 1px solid rgba(78, 107, 254, 0.20);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 18px;
}

.feat-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feat-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feat-card__stat {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(78, 107, 254, 0.12);
  pointer-events: none;
  user-select: none;
  letter-spacing: -2px;
}

.feat-card__badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(78, 107, 254, 0.12);
  border: 1px solid rgba(78, 107, 254, 0.25);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

/* ─── GALLERY ─────────────────────────────────────────────── */
.gallery {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(28,29,32,0.25) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 5th card spans full width on its own row to fill the last row */
.gallery-grid .gallery-card:last-child:nth-child(3n - 2) {
  grid-column: span 3;
}

.gallery-grid .gallery-card:last-child:nth-child(3n - 1) {
  grid-column: span 2;
}

.gallery-card {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.gallery-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card__img-wrap {
  min-height: 200px;
  position: relative;
}

/* Chat mode mock */
.gallery-card--chat .gallery-card__mock-chat {
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.mock-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mock-msg--out {
  flex-direction: row-reverse;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), rgba(237,117,188,0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-bubble {
  background: var(--card-sec);
  border-radius: 12px 12px 12px 0;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-primary);
  max-width: 200px;
  line-height: 1.5;
}

.mock-bubble--out {
  background: var(--accent);
  border-radius: 12px 12px 0 12px;
  color: #fff;
}

/* Typing indicator */
.mock-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 4px;
}

.mock-typing span {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing-bounce 1.3s ease-in-out infinite;
}

.mock-typing span:nth-child(2) { animation-delay: 0.15s; }
.mock-typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Novel mode mock */
.gallery-card--novel .gallery-card__mock-novel {
  padding: 28px 24px 16px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.novel-text {
  font-size: 0.83rem;
  color: var(--text-primary);
  line-height: 1.75;
  font-family: Georgia, 'Times New Roman', serif;
}

.novel-text--faded {
  color: var(--text-secondary);
}

/* Create mode mock */
.gallery-card--create .gallery-card__mock-create {
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.mock-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mock-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  width: 72px;
  flex-shrink: 0;
}

.mock-input {
  background: var(--card-sec);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--text-primary);
  flex: 1;
}

.mock-input--multi {
  min-height: 44px;
  align-self: flex-start;
}

/* Gallery card labels */
.gallery-card__label {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--border);
}

.gallery-card__label h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.gallery-card__label p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── PRICING ─────────────────────────────────────────────── */
.pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.pricing-card {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.pricing-card--featured {
  background: linear-gradient(160deg, rgba(78,107,254,0.12) 0%, var(--sidebar) 100%);
  border-color: rgba(78, 107, 254, 0.45);
  transform: scale(1.025);
  box-shadow: 0 8px 48px rgba(78,107,254,0.20);
}

.pricing-card--featured:hover {
  transform: scale(1.025) translateY(-3px);
}

.pricing-card--annual {
  background: linear-gradient(160deg, rgba(118, 75, 162, 0.10) 0%, var(--sidebar) 100%);
  border-color: rgba(118, 75, 162, 0.25);
}

.pricing-card__popular-badge,
.pricing-card__save-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-card__popular-badge {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(78,107,254,0.6);
}

.pricing-card__save-badge {
  background: rgba(118, 75, 162, 0.8);
  color: #fff;
}

.pricing-card__header {
  margin-bottom: 24px;
}

.pricing-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.pricing-card__tagline {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.pricing-card__features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li.muted {
  color: var(--text-muted);
}

.check {
  color: #4ade80;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cross {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing__note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(28,29,32,0.2) 100%);
}

.faq__container {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(78,107,254,0.30);
}

.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255,255,255,0.03);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fade-in 0.25s ease;
}

.faq-answer[hidden] {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── FINAL CTA ───────────────────────────────────────────── */
.cta-final {
  position: relative;
  text-align: center;
  padding-block: var(--section-gap);
  overflow: hidden;
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(78,107,254,0.15), transparent);
  pointer-events: none;
}

.cta-final__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,107,254,0.5), transparent);
}

.cta-final__inner {
  position: relative;
  z-index: 1;
}

.cta-final__stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cta-final__stars span {
  color: #fbbf24;
  font-size: 1rem;
}

.cta-final__stars strong {
  color: var(--text-primary);
  margin-left: 4px;
}

.cta-final__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text-primary);
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 18px;
}

.cta-final__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.cta-final__legal {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--sidebar);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  padding-block: 52px;
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer__nav-col a {
  font-size: 0.87rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__nav-col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border);
}

.footer__bottom-inner {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-block: 20px;
}

.footer__copy,
.footer__disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .chars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feat-card--wide {
    grid-column: span 2;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 1024px) and (min-width: 901px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .gallery-card:last-child:nth-child(3n - 2) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-card:last-child:nth-child(3n - 1) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-card:last-child:nth-child(2n - 1) {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .chars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .gallery-grid .gallery-card:last-child:nth-child(3n - 2),
  .gallery-grid .gallery-card:last-child:nth-child(3n - 1) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  :root { --section-gap: 56px; }

  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 16px 12px;
  }

  .hero__stat {
    padding: 8px 16px;
  }

  .hero__stat-divider {
    display: none;
  }

  .chars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feat-card--wide {
    grid-column: span 1;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .chars-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
}

/* ─── Character card images ───────────────────────────────── */
.character-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── Gallery screenshot images ───────────────────────────── */
.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s;
}

.gallery-card:hover .gallery__img {
  transform: scale(1.03);
}

/* ─── Characters subsections ──────────────────────────────── */
.characters__subsection {
  margin-bottom: 48px;
}

.characters__subsection:last-child {
  margin-bottom: 0;
}

.characters__subsection-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.characters__subsection-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── Utilities ───────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.reveal--d1 { transition-delay: 0.05s; }
.reveal--d2 { transition-delay: 0.10s; }
.reveal--d3 { transition-delay: 0.15s; }
.reveal--d4 { transition-delay: 0.20s; }

/* Language links */
.footer__langs {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.footer__langs a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}
.footer__langs a:hover {
  color: var(--accent);
  opacity: 1;
}
