/* ============================================================
   CandyAI — Premium Dark Luxury Design System
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Background */
  --bg-base:        #060612;
  --bg-surface:     #0d0d1f;
  --bg-elevated:    #12122a;
  --bg-glass:       rgba(255,255,255,0.03);
  --bg-glass-hover: rgba(255,255,255,0.06);

  /* Brand */
  --purple-deep:    #4f1bb5;
  --purple-mid:     #7c3aed;
  --purple-bright:  #a855f7;
  --purple-glow:    rgba(168, 85, 247, 0.35);
  --blue-mid:       #3b82f6;
  --blue-bright:    #60a5fa;
  --blue-glow:      rgba(96, 165, 250, 0.25);
  --pink-accent:    #f472b6;
  --pink-glow:      rgba(244, 114, 182, 0.2);

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --grad-hero:      linear-gradient(135deg, #1a0533 0%, #060612 40%, #051232 100%);
  --grad-card:      linear-gradient(145deg, rgba(124,58,237,0.12) 0%, rgba(59,130,246,0.08) 100%);
  --grad-text:      linear-gradient(135deg, #a855f7 0%, #60a5fa 100%);
  --grad-btn:       linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  --grad-btn-hover: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted:     rgba(255,255,255,0.35);

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.07);
  --border-purple:  rgba(168,85,247,0.3);
  --border-blue:    rgba(96,165,250,0.3);

  /* Spacing */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-purple: 0 0 40px rgba(124,58,237,0.25), 0 0 80px rgba(124,58,237,0.1);
  --shadow-blue:   0 0 40px rgba(59,130,246,0.2);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 60px rgba(168,85,247,0.4);

  /* Typography */
  --font-body:     'Roboto', system-ui, sans-serif;
  --font-display:  'Poppins', 'Roboto', sans-serif;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-both: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Utility Classes ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-secondary); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* ── Glow Orbs (Background Decoration) ────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}
.orb-purple { background: radial-gradient(circle, #7c3aed, transparent 70%); }
.orb-blue   { background: radial-gradient(circle, #3b82f6, transparent 70%); }
.orb-pink   { background: radial-gradient(circle, #f472b6, transparent 70%); }

/* ── Glass Card ────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--dur-base) var(--ease-out);
}
.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(124,58,237,0.15);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-btn-hover);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(124,58,237,0.5); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--purple-bright);
  border: 1px solid var(--border-purple);
}
.btn-outline:hover {
  background: rgba(168,85,247,0.1);
  border-color: var(--purple-bright);
  box-shadow: 0 0 20px rgba(168,85,247,0.2);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ── Badge / Tag ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-purple { background: rgba(168,85,247,0.15); color: var(--purple-bright); border: 1px solid rgba(168,85,247,0.25); }
.badge-blue   { background: rgba(96,165,250,0.15);  color: var(--blue-bright);   border: 1px solid rgba(96,165,250,0.25); }
.badge-pink   { background: rgba(244,114,182,0.15); color: var(--pink-accent);   border: 1px solid rgba(244,114,182,0.25); }
.badge-green  { background: rgba(52,211,153,0.15);  color: #34d399;              border: 1px solid rgba(52,211,153,0.25); }

/* ── Section Headers ───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Language Switcher ─────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  letter-spacing: 0.03em;
  line-height: 1;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124,58,237,0.35);
}

/* Mobile — show switcher inline in mobile menu */
.nav-mobile .lang-switcher {
  margin-top: 8px;
  align-self: center;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--dur-base) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(6,6,18,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-btn);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}
.nav-logo-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(6,6,18,0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 20px; padding: 16px 32px; width: 100%; text-align: center; }
.nav-mobile-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.nav-mobile-actions .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") repeat;
  z-index: 0;
}

.hero-orb-1 { width: 600px; height: 600px; top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; bottom: -50px; left: -100px; }
.hero-orb-3 { width: 300px; height: 300px; top: 50%; left: 40%; opacity: 0.2; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content { padding: 40px 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-bright);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s var(--ease-out);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--purple-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s var(--ease-out) 0.2s both;
}

.hero-card-main {
  width: 340px;
  height: 460px;
  background: var(--grad-card);
  border: 1px solid var(--border-purple);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-purple), var(--shadow-card);
}

.hero-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2d1b69 0%, #1a0533 40%, #0a1628 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero-avatar-figure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(168,85,247,0.6), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  animation: breathe 3s ease-in-out infinite;
}

.hero-avatar-silhouette {
  position: absolute;
  bottom: 0;
  width: 260px;
  height: 380px;
}

.hero-avatar-info {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}
.hero-avatar-name { font-size: 18px; font-weight: 700; }
.hero-avatar-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hero-avatar-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(168,85,247,0.2);
  color: var(--purple-bright);
}

/* Floating cards around hero */
.hero-float {
  position: absolute;
  background: rgba(13,13,31,0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(20px);
  animation: float 6s ease-in-out infinite;
  font-size: 13px;
  white-space: nowrap;
}
.hero-float-1 { top: 10%; left: -80px; animation-delay: 0s; }
.hero-float-2 { bottom: 25%; left: -60px; animation-delay: 2s; }
.hero-float-3 { top: 20%; right: -80px; animation-delay: 1s; }
.hero-float-4 { bottom: 15%; right: -60px; animation-delay: 3s; }

.float-icon { font-size: 16px; margin-bottom: 4px; }
.float-value { font-weight: 700; font-size: 15px; }
.float-label { color: var(--text-muted); font-size: 11px; }

@media (max-width: 1024px) {
  .hero-float-1, .hero-float-2, .hero-float-3, .hero-float-4 { display: none; }
  .hero-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card-main { width: 260px; height: 360px; }
}

/* ══════════════════════════════════════════════════════════════
   CHARACTER GALLERY
══════════════════════════════════════════════════════════════ */
.gallery { background: var(--bg-surface); }

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  color: #fff;
  background: rgba(168,85,247,0.15);
  border-color: var(--border-purple);
}

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

@media (max-width: 1200px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.char-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  group: true;
  aspect-ratio: 3/4;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-slow) var(--ease-out);
}
.char-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-purple);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.2);
}

.char-avatar {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.char-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.char-card:hover .char-avatar-img { transform: scale(1.05); }

/* Gradient placeholder for AI avatars */
.char-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
}

.char-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,18,0.95) 0%, rgba(6,6,18,0.4) 40%, transparent 70%);
  transition: opacity var(--dur-base) var(--ease-out);
}

.char-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,18,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.char-card:hover .char-hover-overlay { opacity: 1; }

.char-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  z-index: 2;
  transition: transform var(--dur-base) var(--ease-out);
}
.char-card:hover .char-info { transform: translateY(-4px); }

.char-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.char-age  { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.char-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.char-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(168,85,247,0.2);
  color: var(--purple-bright);
  border: 1px solid rgba(168,85,247,0.2);
}
.char-tag.blue {
  background: rgba(96,165,250,0.15);
  color: var(--blue-bright);
  border-color: rgba(96,165,250,0.2);
}
.char-tag.pink {
  background: rgba(244,114,182,0.15);
  color: var(--pink-accent);
  border-color: rgba(244,114,182,0.2);
}

.char-online {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.online-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.gallery-cta { text-align: center; margin-top: 48px; }

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════════════════════ */
.features { position: relative; overflow: hidden; }
.features-orb-1 { width: 500px; height: 500px; top: 50%; right: -100px; transform: translateY(-50%); }
.features-orb-2 { width: 300px; height: 300px; top: 0; left: 10%; }

.features-header { text-align: center; margin-bottom: 72px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.feature-card.purple::before { background: linear-gradient(90deg, transparent, var(--purple-bright), transparent); }
.feature-card.blue::before   { background: linear-gradient(90deg, transparent, var(--blue-bright), transparent); }
.feature-card.pink::before   { background: linear-gradient(90deg, transparent, var(--pink-accent), transparent); }

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-purple);
  box-shadow: var(--shadow-card), 0 0 40px rgba(124,58,237,0.12);
}
.feature-card:hover::before { opacity: 1; }

.feature-card.featured {
  grid-column: span 2;
  display: flex;
  gap: 32px;
  align-items: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-purple { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.25); }
.icon-blue   { background: rgba(96,165,250,0.15);  border: 1px solid rgba(96,165,250,0.25); }
.icon-pink   { background: rgba(244,114,182,0.15); border: 1px solid rgba(244,114,182,0.25); }
.icon-green  { background: rgba(52,211,153,0.15);  border: 1px solid rgba(52,211,153,0.25); }

.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

@media (max-width: 900px) {
  .feature-card.featured { grid-column: span 1; flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   CHAT PREVIEW
══════════════════════════════════════════════════════════════ */
.chat-preview-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.chat-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 768px) {
  .chat-preview-inner { grid-template-columns: 1fr; gap: 40px; }
}

.chat-ui {
  background: rgba(13,13,31,0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chat-name { font-weight: 600; font-size: 15px; }
.chat-status { font-size: 12px; color: #34d399; display: flex; align-items: center; gap: 4px; }

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  animation: msgSlide 0.4s var(--ease-out);
}
.msg-ai {
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.2);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: rgba(255,255,255,0.9);
}
.msg-user {
  background: var(--grad-btn);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  color: #fff;
}
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }

.chat-input-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-fast);
}
.chat-input:focus { border-color: var(--border-purple); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-fast);
  border: none;
  color: #fff;
  font-size: 16px;
}
.chat-send:hover { transform: scale(1.1); }

/* ══════════════════════════════════════════════════════════════
   SOCIAL PROOF
══════════════════════════════════════════════════════════════ */
.social-proof { background: var(--bg-base); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 80px;
}

.stat-block {
  background: var(--bg-surface);
  padding: 36px 32px;
  text-align: center;
  transition: background var(--dur-base);
}
.stat-block:hover { background: var(--bg-elevated); }
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-desc { font-size: 14px; color: var(--text-muted); }

@media (max-width: 768px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-block { padding: 24px 16px; }
  .stat-num { font-size: 28px; }
}

/* Testimonials */
.testimonials-header { text-align: center; margin-bottom: 48px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  padding: 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
}
.testimonial-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-purple);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 14px;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-handle { font-size: 12px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.faq { background: var(--bg-surface); }
.faq-header { text-align: center; margin-bottom: 60px; }
.faq-grid { max-width: 780px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-glass);
  transition: border-color var(--dur-fast);
}
.faq-item.open { border-color: var(--border-purple); }

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--purple-bright); }
.faq-item.open .faq-question { color: var(--purple-bright); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(168,85,247,0.25); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out), padding var(--dur-base);
}
.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 0;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0533 0%, #060612 50%, #051232 100%);
}
.cta-orb {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--dur-fast) var(--ease-out);
  color: var(--text-secondary);
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(168,85,247,0.15);
  border-color: var(--border-purple);
  color: var(--purple-bright);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover { color: #fff; }

.footer-bottom {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--text-muted); transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════
   STICKY MOBILE CTA
══════════════════════════════════════════════════════════════ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px 20px;
  background: rgba(6,6,18,0.95);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
}
.mobile-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) { .mobile-cta { display: block; } }

/* ══════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: AI GIRLFRIEND / BOYFRIEND
══════════════════════════════════════════════════════════════ */
.page-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0533 0%, var(--bg-base) 100%);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Large character showcase */
.char-showcase {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 80px;
}

.char-showcase-visual {
  width: 380px;
  flex-shrink: 0;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.char-showcase-content {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.char-showcase-name {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.char-showcase-age { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.char-trait {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  color: var(--purple-bright);
}

.char-showcase-bio {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 15px;
}

.char-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.char-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.char-stat-val { font-size: 20px; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.char-stat-key { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

@media (max-width: 900px) {
  .char-showcase { flex-direction: column; }
  .char-showcase-visual { width: 100%; min-height: 300px; }
  .char-showcase-content { padding: 28px; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: CREATE AI
══════════════════════════════════════════════════════════════ */
.creator-section { padding: 80px 0; }
.creator-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .creator-inner { grid-template-columns: 1fr; } }

.creator-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 520px;
}

.creator-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.creator-step.active, .creator-step:hover {
  border-color: var(--border-purple);
  background: rgba(168,85,247,0.08);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-bright);
  flex-shrink: 0;
}
.creator-step.active .step-num { background: var(--grad-btn); border: none; color: #fff; }
.step-label { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text-muted); }

.creator-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.form-option {
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.form-option:hover { border-color: var(--border-purple); color: var(--purple-bright); }
.form-option.selected {
  background: rgba(168,85,247,0.15);
  border-color: var(--border-purple);
  color: var(--purple-bright);
}
.form-option-emoji { font-size: 20px; margin-bottom: 4px; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--border-purple); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-elevated); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ══════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: CANDY CHAT
══════════════════════════════════════════════════════════════ */
.chat-page {
  display: flex;
  height: 100vh;
  padding-top: 72px;
  overflow: hidden;
}

.chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.sidebar-search {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}
.sidebar-search::placeholder { color: var(--text-muted); }

.sidebar-companions { flex: 1; overflow-y: auto; padding: 12px; }
.companion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast);
  margin-bottom: 4px;
}
.companion-item:hover { background: rgba(255,255,255,0.05); }
.companion-item.active {
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.2);
}
.companion-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
}
.companion-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid var(--bg-surface);
}
.companion-name { font-weight: 600; font-size: 14px; }
.companion-preview { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 160px; }

.chat-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.chat-main-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-msg-group {
  display: flex;
  gap: 12px;
  max-width: 70%;
  animation: msgSlide 0.3s var(--ease-out);
}
.chat-msg-group.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-group.ai   { align-self: flex-start; }

.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  align-self: flex-end;
}

.chat-msg-content { display: flex; flex-direction: column; gap: 4px; }
.chat-msg-bubble {
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.6;
}
.ai .chat-msg-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}
.user .chat-msg-bubble {
  background: var(--grad-btn);
  border-bottom-right-radius: 4px;
}
.chat-msg-time { font-size: 11px; color: var(--text-muted); padding: 0 4px; }
.user .chat-msg-time { text-align: right; }

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  align-items: center;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-bright);
  animation: typingBounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-section {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 12px 16px;
  transition: border-color var(--dur-fast);
}
.chat-input-row:focus-within { border-color: var(--border-purple); }
.chat-input-main {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  resize: none;
  max-height: 120px;
  min-height: 24px;
  line-height: 1.5;
}
.chat-input-main::placeholder { color: var(--text-muted); }
.chat-input-actions { display: flex; gap: 8px; align-items: center; }
.chat-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.chat-action-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-btn);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.chat-send-btn:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(124,58,237,0.5); }

@media (max-width: 768px) {
  .chat-sidebar { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.2); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  50%       { opacity: 1; transform: translate(-50%, -55%) scale(1.15); }
}
@keyframes msgSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Reveal animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════
   AI ANIME PAGE - Special styles
══════════════════════════════════════════════════════════════ */
.anime-hero {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0533 0%, #060612 50%, #0a1628 100%);
}

.anime-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}

.anime-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anime-card {
  width: 380px;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(168,85,247,0.4);
  box-shadow: 0 0 80px rgba(168,85,247,0.3), 0 0 160px rgba(168,85,247,0.15), var(--shadow-card);
}

.anime-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,0.15);
  animation: spin 20s linear infinite;
}
.anime-ring-1 { width: 500px; height: 500px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.anime-ring-2 { width: 650px; height: 650px; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-direction: reverse; animation-duration: 30s; }

@media (max-width: 1000px) {
  .anime-inner { grid-template-columns: 1fr; text-align: center; }
  .anime-visual { margin-bottom: 40px; }
  .anime-card { width: 280px; height: 380px; }
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES - Terms & Privacy
══════════════════════════════════════════════════════════════ */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--dur-base) var(--ease-out);
}
.legal-section:hover {
  border-color: var(--border-purple);
  background: var(--bg-glass-hover);
}

.legal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-bright);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.legal-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .legal-section { padding: 20px; }
  .legal-title { font-size: 16px; }
  .legal-text { font-size: 14px; }
}
