/* ============================================
   Beings — Friendly Light Theme
   ============================================ */

:root {
  --bg: #E6FBF3;
  --surface: #FFFFFF;
  --surface-2: #F2FFFA;
  --teal: #46B8A6;
  --purple: #9D5BE0;
  --pink: #F0407A;
  --lime: #BBE986;
  --cyan: #45C8F0;
  --navy: #282B5C;
  --brand-gradient: linear-gradient(120deg, #9D5BE0, #45C8F0, #BBE986);
  --sticker-shadow: 4px 4px 0 rgba(40,43,92,0.18);
  --sticker-hover: 6px 6px 0 rgba(40,43,92,0.22);
  --sticker-press: 1px 1px 0 rgba(40,43,92,0.18);
  --outline: 2.5px solid #282B5C;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 100px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --text: #282B5C;
  --text-muted: #5a5e87;
  --border: rgba(40,43,92,0.1);
  --success: #46B8A6;
  --error: #F0407A;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Background ── */
.bg-base {
  position: fixed; inset: 0; z-index: -4;
  background: linear-gradient(160deg, #E6FBF3 0%, #F2FFFA 40%, #EBF5FF 70%, #E6FBF3 100%);
}

.bg-aurora {
  position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none;
}

.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(100px);
}

.aurora-blob--1 {
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(157,91,224,0.14) 0%, transparent 70%);
  animation: auroraDrift1 22s ease-in-out infinite;
}

.aurora-blob--2 {
  width: 45vw; height: 45vw; max-width: 600px; max-height: 600px;
  bottom: -10%; right: -8%;
  background: radial-gradient(circle, rgba(70,184,166,0.14) 0%, transparent 70%);
  animation: auroraDrift2 18s ease-in-out infinite;
}

.aurora-blob--3 {
  width: 35vw; height: 35vw; max-width: 500px; max-height: 500px;
  top: 40%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(69,200,240,0.12) 0%, transparent 70%);
  animation: auroraDrift3 25s ease-in-out infinite;
}

@keyframes auroraDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(8vw, 6vh) scale(1.08); }
  66%       { transform: translate(-4vw, 10vh) scale(0.95); }
}
@keyframes auroraDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-10vw, -8vh) scale(1.1); }
}
@keyframes auroraDrift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  40%      { transform: translate(-45%, -55%) scale(1.12); }
  70%      { transform: translate(-55%, -48%) scale(0.92); }
}

/* Dot grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle, rgba(40,43,92,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Scanline texture (was .bg-grain) */
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(40,43,92,0.028) 3px,
    rgba(40,43,92,0.028) 4px
  );
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--spring);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--spring);
}
.reveal-stagger > *.revealed { opacity: 1; transform: translateY(0); }

/* ── Page Transition ── */
.page-transition {
  position: fixed; inset: 0; background: var(--surface); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease);
}
.page-transition.active { opacity: 1; pointer-events: all; }
.page-transition .loader {
  width: 44px; height: 44px;
  border: 3px solid rgba(157,91,224,0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(230,251,243,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(40,43,92,0.07);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--brand-gradient);
  border: 2.5px solid var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--sticker-shadow);
  transition: transform 0.18s var(--spring), box-shadow 0.18s;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.logo:hover .logo-mark {
  transform: translate(-2px, -2px);
  box-shadow: var(--sticker-hover);
}
.logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  padding: 8px 18px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  transition: all 0.2s var(--spring);
}
.nav-link:hover {
  color: var(--navy); border-color: var(--navy);
  background: rgba(40,43,92,0.05);
  transform: translateY(-1px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  border: var(--outline); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--spring), box-shadow 0.15s;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--brand-gradient);
  color: var(--navy);
  box-shadow: var(--sticker-shadow);
}
.btn-primary:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: var(--sticker-hover);
}
.btn-primary:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: var(--sticker-press);
}
.btn-primary:disabled {
  background: rgba(40,43,92,0.08); color: rgba(40,43,92,0.35);
  cursor: not-allowed; box-shadow: none; border-color: rgba(40,43,92,0.12);
}
.btn-outline {
  background: var(--surface); color: var(--navy);
  box-shadow: var(--sticker-shadow);
}
.btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--sticker-hover);
  background: var(--surface-2);
}
.btn-outline:active {
  transform: translate(2px, 2px);
  box-shadow: var(--sticker-press);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}
@keyframes avatarBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-9px) rotate(-1.5deg); }
  70%       { transform: translateY(-4px) rotate(1deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  15%       { transform: rotate(-8deg); }
  35%       { transform: rotate(8deg); }
  55%       { transform: rotate(-5deg); }
  75%       { transform: rotate(5deg); }
}
@keyframes titleShimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50%       { transform: rotate(45deg) translateY(8px); opacity: 1; }
}
@keyframes bubblePop {
  0%   { transform: scale(0.65) translateY(12px); opacity: 0; }
  68%  { transform: scale(1.06) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes quickReplySlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-9px); opacity: 1; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 110px 24px 80px;
  position: relative; overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  width: 100%;
}
.hero-content { max-width: 540px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  background: var(--surface);
  border: var(--outline); border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 30px;
  box-shadow: var(--sticker-shadow);
  animation: fadeUp 0.7s var(--spring) both;
}
.hero-badge .dot {
  width: 8px; height: 8px; background: var(--teal); border-radius: 50%;
  animation: dotPulse 2.5s ease infinite;
}

.hero-title-wrap {
  margin-bottom: 22px;
  animation: fadeUp 0.7s 0.1s var(--spring) both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.9;
  background: linear-gradient(120deg, #9D5BE0 0%, #45C8F0 40%, #BBE986 70%, #9D5BE0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 5s ease-in-out infinite;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 460px; line-height: 1.8;
  margin-bottom: 44px;
  animation: fadeUp 0.7s 0.2s var(--spring) both;
}
.hero-cta { animation: fadeUp 0.7s 0.3s var(--spring) both; }

.hero-art {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: fadeUp 0.8s 0.15s var(--spring) both;
}
.hero-art-img {
  width: 100%; max-width: 460px;
  animation: avatarBob 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(157,91,224,0.22));
  border-radius: 20px;
}
.hero-art-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(circle at 50% 60%,
    rgba(70,184,166,0.18) 0%, rgba(157,91,224,0.1) 50%, transparent 70%);
  filter: blur(40px); z-index: -1; pointer-events: none;
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  animation: fadeUp 0.7s 0.5s var(--spring) both;
}
.hero-scroll .arrow {
  width: 18px; height: 18px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

/* ── Sections ── */
.gallery-section { padding: 80px 0 100px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--text);
}
.section-desc {
  color: var(--text-muted); margin-top: 14px;
  max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.75;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; aspect-ratio: 1;
  border: var(--outline); background: var(--surface);
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
  box-shadow: var(--sticker-shadow);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--sticker-hover);
}
.gallery-item:active {
  transform: translate(1px, 1px);
  box-shadow: var(--sticker-press);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40,43,92,0.5) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s var(--ease);
  display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 0.85rem; font-weight: 600; color: #fff; }

/* ── CTA Banner ── */
.cta-banner { padding: 48px 0 80px; }
.cta-card {
  background: var(--surface); border: var(--outline); border-radius: 24px;
  padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--sticker-shadow);
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
}
.cta-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--sticker-hover);
}
.cta-card::before {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(157,91,224,0.08), transparent 65%);
  pointer-events: none;
}
.cta-card::after {
  content: ""; position: absolute; bottom: -20%; left: -8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(70,184,166,0.08), transparent 65%);
  pointer-events: none;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; position: relative;
}
.cta-card p {
  color: var(--text-muted); margin-bottom: 32px;
  max-width: 460px; margin-left: auto; margin-right: auto;
  line-height: 1.75; position: relative;
}

/* ── Footer ── */
.site-footer {
  padding: 44px 0; border-top: 2px solid rgba(40,43,92,0.08); text-align: center;
}
.site-footer p { color: var(--text-muted); font-size: 0.85rem; }
.site-footer a {
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none; font-weight: 700;
}
.site-footer a:hover { opacity: 0.8; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(40,43,92,0.65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); padding: 24px;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: var(--radius); border: var(--outline);
  box-shadow: 8px 8px 0 rgba(40,43,92,0.3);
  transform: scale(0.9); transition: transform 0.4s var(--spring);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close, .lightbox-nav {
  position: absolute; width: 48px; height: 48px;
  background: var(--surface); border: var(--outline); border-radius: 50%;
  color: var(--navy); font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sticker-shadow);
  transition: transform 0.15s var(--spring), box-shadow 0.15s;
}
.lightbox-close:hover, .lightbox-nav:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--sticker-hover);
}
.lightbox-nav:hover { transform: translate(-2px, calc(-50% - 2px)); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }


/* ============================================
   Waitlist Chat Page
   ============================================ */

.waitlist-page {
  min-height: 100vh;
  padding-top: 70px;
  display: flex; flex-direction: column;
}

/* ── Being Picker ── */
.being-picker {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px;
  animation: fadeIn 0.5s var(--ease) both;
}

.picker-header { text-align: center; margin-bottom: 40px; }
.picker-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.picker-header p { color: var(--text-muted); font-size: 1.05rem; }

.being-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 600px; width: 100%;
}

.being-card {
  background: var(--surface); border: var(--outline); border-radius: var(--radius);
  padding: 14px; cursor: pointer; text-align: center;
  box-shadow: var(--sticker-shadow);
  transition: transform 0.2s var(--spring), box-shadow 0.2s, border-color 0.15s;
  animation: fadeUp 0.45s var(--spring) both;
}
.being-card:nth-child(2) { animation-delay: 0.06s; }
.being-card:nth-child(3) { animation-delay: 0.12s; }
.being-card:nth-child(4) { animation-delay: 0.18s; }
.being-card:nth-child(5) { animation-delay: 0.24s; }
.being-card:nth-child(6) { animation-delay: 0.30s; }
.being-card:hover {
  transform: translate(-3px, -3px) scale(1.02);
  box-shadow: var(--sticker-hover);
}
.being-card:active {
  transform: translate(1px, 1px) scale(0.98);
  box-shadow: var(--sticker-press);
}
.being-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; display: block; margin-bottom: 10px;
  border: 2px solid rgba(40,43,92,0.08);
}
.being-card span {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.04em;
}
.being-card.selected {
  border-color: var(--purple);
  box-shadow: 4px 4px 0 var(--purple);
  background: rgba(157,91,224,0.04);
}

/* ── Chat Wrapper ── */
.chat-wrapper {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px 16px 32px;
  animation: fadeIn 0.45s var(--ease) both;
}

/* ── Chat Window ── */
.chat-window {
  width: 100%; max-width: 600px;
  background: var(--surface); border: var(--outline); border-radius: 24px;
  box-shadow: var(--sticker-shadow);
  display: flex; flex-direction: column;
  min-height: 580px; max-height: calc(100vh - 130px);
  overflow: hidden;
}

/* ── Chat Header ── */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 2px solid rgba(40,43,92,0.07);
  flex-shrink: 0;
}

.bot-avatar-wrap { position: relative; flex-shrink: 0; }
.bot-avatar-img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2.5px solid var(--navy);
  box-shadow: 2px 2px 0 rgba(40,43,92,0.2);
  animation: avatarBob 4s ease-in-out infinite;
  cursor: default;
}
.bot-avatar-img:hover { animation: wiggle 0.55s ease forwards; }

.chat-header-info { flex: 1; min-width: 0; }
.bot-name { display: block; font-weight: 800; font-size: 0.95rem; color: var(--navy); line-height: 1.2; }
.bot-online {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; color: var(--teal);
}
.online-dot {
  width: 7px; height: 7px; background: var(--teal); border-radius: 50%;
  display: inline-block; animation: dotPulse 2s ease infinite;
}

.chat-phase-badge {
  font-size: 0.76rem; font-weight: 800; color: var(--purple);
  background: rgba(157,91,224,0.1);
  border: 1.5px solid var(--purple); border-radius: var(--radius-pill);
  padding: 5px 12px; white-space: nowrap; flex-shrink: 0;
  transition: all 0.3s var(--spring);
}
.chat-phase-badge.complete {
  color: var(--teal); background: rgba(70,184,166,0.1); border-color: var(--teal);
}

/* ── Progress Bar ── */
.chat-progress-track {
  height: 5px; background: rgba(40,43,92,0.07); flex-shrink: 0;
}
.chat-progress-fill {
  height: 100%; background: var(--brand-gradient);
  transition: width 0.55s var(--spring);
}

/* ── Messages ── */
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(40,43,92,0.12); border-radius: 10px;
}

.chat-msg {
  display: flex; gap: 9px;
  animation: bubblePop 0.32s var(--spring) both;
}
.chat-msg.bot { align-self: flex-start; max-width: 88%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; max-width: 88%; }

.msg-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--navy); align-self: flex-end;
}

.msg-bubble {
  padding: 11px 15px;
  border: 2px solid var(--navy);
  font-size: 0.91rem; line-height: 1.6; position: relative;
}
.chat-msg.bot .msg-bubble {
  background: var(--surface-2); color: var(--text);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 3px 3px 0 rgba(40,43,92,0.1);
}
.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; border-color: var(--navy);
  border-radius: 18px 18px 4px 18px;
  box-shadow: 3px 3px 0 rgba(40,43,92,0.18);
  word-break: break-all;
}

/* ── Typing Indicator ── */
.typing-indicator {
  display: flex; align-items: center; gap: 5px;
  padding: 13px 16px;
}
.typing-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted);
  animation: typingBounce 1.3s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

/* ── Quick Replies ── */
.quick-replies {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-left: 39px; margin-top: 6px;
  animation: fadeIn 0.3s var(--ease) both;
}
.quick-reply-btn {
  padding: 9px 18px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  color: var(--navy); background: var(--surface);
  border: 2px solid var(--navy); border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(40,43,92,0.16);
  transition: transform 0.14s var(--spring), box-shadow 0.14s;
  animation: quickReplySlide 0.3s var(--spring) both;
}
.quick-reply-btn:nth-child(2) { animation-delay: 0.07s; }
.quick-reply-btn:nth-child(3) { animation-delay: 0.14s; }
.quick-reply-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(40,43,92,0.16);
}
.quick-reply-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(40,43,92,0.16);
}
.quick-reply-btn.accent { background: var(--brand-gradient); }
.quick-reply-btn.done  { background: var(--teal); color: #fff; border-color: var(--navy); }
.quick-reply-btn.link  { color: var(--purple); border-color: var(--purple); }

.copy-btn {
  padding: 6px 13px; font-size: 0.75rem; font-weight: 700;
  background: rgba(40,43,92,0.05); color: var(--text-muted);
  border: 1.5px solid rgba(40,43,92,0.15); border-radius: var(--radius-pill);
  cursor: pointer; transition: all 0.15s var(--spring);
}
.copy-btn:hover { background: rgba(40,43,92,0.1); color: var(--navy); transform: scale(1.04); }
.copy-btn.copied { background: var(--lime); border-color: var(--navy); color: var(--navy); }

/* ── Input Bar ── */
.chat-input-bar {
  display: flex; gap: 10px; align-items: center;
  padding: 14px 16px;
  background: var(--surface-2); border-top: 2px solid rgba(40,43,92,0.07);
  flex-shrink: 0;
}
.chat-text-input {
  flex: 1; padding: 12px 16px;
  background: var(--surface); border: 2px solid rgba(40,43,92,0.14);
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  outline: none; transition: border-color 0.2s var(--ease);
}
.chat-text-input::placeholder { color: rgba(40,43,92,0.3); }
.chat-text-input:focus { border-color: var(--purple); }
.chat-text-input.invalid { border-color: var(--pink); }
.chat-text-input.valid   { border-color: var(--teal); }
.chat-text-input:disabled { opacity: 0.38; cursor: not-allowed; }

.chat-send-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--brand-gradient); border: 2.5px solid var(--navy); border-radius: 50%;
  cursor: pointer; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 rgba(40,43,92,0.2);
  transition: transform 0.14s var(--spring), box-shadow 0.14s;
}
.chat-send-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(40,43,92,0.2);
}
.chat-send-btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(40,43,92,0.2);
}
.chat-send-btn:disabled { opacity: 0.32; cursor: not-allowed; }
.chat-send-btn svg { width: 17px; height: 17px; }

/* ── Completion Card ── */
.completion-card {
  background: var(--surface-2); border: var(--outline); border-radius: var(--radius);
  padding: 22px; margin-top: 6px;
  box-shadow: var(--sticker-shadow);
  animation: bubblePop 0.4s var(--spring) both;
}
.completion-card h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
  margin-bottom: 14px;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.completion-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  padding: 7px 0; border-bottom: 1px solid rgba(40,43,92,0.06);
}
.completion-step:last-child { border-bottom: none; }
.step-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: 0.68rem; font-weight: 900;
}

/* ── Confetti ── */
#confettiCanvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art-img { max-width: 280px; }
  .hero-cta { display: flex; justify-content: center; }
  .hero-badge { align-self: center; }
}

@media (max-width: 768px) {
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cta-card { padding: 44px 24px; }
  .lightbox-nav { display: none; }
  .being-grid { gap: 12px; }
  .chat-window { min-height: 480px; max-height: calc(100vh - 100px); border-radius: 18px; }
  .quick-replies { padding-left: 0; }
  .chat-wrapper { padding: 8px 8px 20px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 96px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .being-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 360px; }
  .chat-messages { padding: 14px 12px; }
  .chat-header { padding: 12px 14px; }
}
