/* Haqqi Pro Design System v2.1 - Studio Luxe Edition */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Couleurs (inchangées) */
  --bg: #FCFAF7;
  --text: #0F0F0F;
  --text-muted: #8E8E8E;
  --primary: #B14E28;
  --primary-soft: rgba(177, 78, 40, 0.05);
  --glass-border: rgba(0, 0, 0, 0.04);

  /* Ombres affinées */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.06);
  --shadow-luxe: 0 30px 60px -12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 48px rgba(0,0,0,0.10);

  /* Timing functions */
  --ease-luxe: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Espacements */
  --space-section-mobile: 4rem;
  --space-section-tablet: 6rem;
  --space-section-desktop: 8rem;
  --space-hero-mobile: 8rem;
  --space-hero-tablet: 10rem;
  --space-hero-desktop: 14rem;
  --space-gap-mobile: 1.5rem;
  --space-gap-tablet: 2rem;
  --space-gap-desktop: 3rem;

  /* Rayons */
  --radius-chip: 40px;
  --radius-card: 32px;
  --radius-card-sm: 24px;

  /* Typography scales */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;

  /* Glass morphism */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border-strong: rgba(177, 78, 40, 0.08);

  /* Gradients */
  --gradient-warm: radial-gradient(circle at 30% 30%, rgba(177,78,40,0.03) 0%, transparent 50%);

  /* Typography opacity levels */
  --opacity-primary: 1;
  --opacity-secondary: 0.8;
  --opacity-tertiary: 0.6;

  /* Stagger timing (natural feel) */
  --stagger-base: 0.08s;
}

/* --- Typography System --- */
.type-hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
}

.type-section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.type-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.type-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
}

.type-body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.type-body-strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
}

.type-micro {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .type-section-title { font-size: 2rem; }
  .type-card-title { font-size: 1.25rem; }
}

/* --- Typography Opacity Levels --- */
.text-primary { opacity: var(--opacity-primary); }
.text-secondary { opacity: var(--opacity-secondary); }
.text-tertiary { opacity: var(--opacity-tertiary); }

/* Better mobile readability */
@media (max-width: 768px) {
  .hero-title { line-height: 0.95; }
  .hero-desc { line-height: 1.7; font-size: 1.1rem; }
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseOrb {
  0%, 100% {
    box-shadow: 0 40px 80px rgba(177, 78, 40, 0.3);
  }
  50% {
    box-shadow: 0 50px 100px rgba(177, 78, 40, 0.4);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes breatheBackground {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -10px) scale(1.05); }
}

@keyframes ripple {
  from { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Animation Utility Classes --- */
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-luxe) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-smooth) forwards;
}

.animate-scale-in {
  opacity: 0;
  animation: scaleIn 0.6s var(--ease-luxe) forwards;
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-luxe), transform 0.8s var(--ease-luxe);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items (natural timing) */
.stagger-1 { transition-delay: calc(1 * var(--stagger-base)); }
.stagger-2 { transition-delay: calc(2 * var(--stagger-base)); }
.stagger-3 { transition-delay: calc(3 * var(--stagger-base)); }
.stagger-4 { transition-delay: calc(4 * var(--stagger-base)); }
.stagger-5 { transition-delay: calc(5 * var(--stagger-base)); }
.stagger-6 { transition-delay: calc(6 * var(--stagger-base)); }

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

/* --- Button Ripple Effect --- */
button, .v-lang-btn, .profile-cta, .nav-links a {
  position: relative;
  overflow: hidden;
}

button::after, .v-lang-btn::after, .profile-cta::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  pointer-events: none;
}

button:active::after, .v-lang-btn:active::after, .profile-cta:active::after {
  width: 300px; height: 300px;
}

.container {
  width: min(1400px, 90vw);
  margin-inline: auto;
}

/* --- Navigation Ultra-Minimaliste (Enhanced) --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--space-section-mobile) 0;
  background: rgba(252, 250, 247, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transition: all 0.4s var(--ease-luxe);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  padding: 0.8rem 0;
  background: rgba(252, 250, 247, 0.95);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: all 0.4s var(--ease-luxe);
  cursor: pointer;
}

nav.scrolled .logo-main {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  padding-bottom: 4px;
}

/* Animated underline */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-luxe);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  nav { padding: 0.8rem 0; }
  .logo-main { font-size: 1.4rem; }
}

/* --- Sélecteur de langue (FR/AR) Moderne --- */
.lang-switcher {
  display: flex;
  background: var(--glass-border);
  padding: 4px;
  border-radius: 100px;
  gap: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn.active {
  background: white;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-hero-mobile) 0 var(--space-section-mobile);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtil animated background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(177,78,40,0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(177,78,40,0.02) 0%, transparent 50%);
  animation: breatheBackground 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content stays above background */
.hero > .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero { padding: var(--space-hero-tablet) 0 var(--space-section-tablet); }
}

@media (min-width: 1024px) {
  .hero { padding: var(--space-hero-desktop) 0 var(--space-section-desktop); }
}

.hero-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 2rem;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-inline: auto;
  font-weight: 300;
  line-height: 1.6;
}

/* --- Vocal Language Selector --- */
.vocal-lang-selector {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.v-lang-btn {
  border: 1px solid var(--glass-border);
  background: white;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-chip);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s var(--ease-luxe);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.v-lang-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  z-index: -1;
}

.v-lang-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.v-lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(177, 78, 40, 0.2);
  transform: translateY(-2px);
}

.v-lang-btn.active::before {
  opacity: 1;
}

.v-lang-btn.is-coming-soon {
  cursor: not-allowed;
  color: var(--text-muted);
  background: rgba(255,255,255,0.72);
  border-style: dashed;
  box-shadow: none;
  transform: none;
}

.v-lang-btn.is-coming-soon::after {
  content: 'Bientôt disponible';
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  transform: none;
  transition: none;
  display: block;
  margin-top: 0.18rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0;
}

.v-lang-btn.is-coming-soon:hover {
  border-color: var(--glass-border);
  transform: none;
  box-shadow: none;
}

/* --- L'Orbe de Verre --- */
.orb-container {
  width: 180px;
  height: 180px;
  position: relative;
  margin-inline: auto;
  cursor: pointer;
}

@media (min-width: 768px) {
  .orb-container { width: 210px; height: 210px; }
}

@media (min-width: 1024px) {
  .orb-container { width: 240px; height: 240px; }
}

.orb-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #B14E28 0%, #7A3218 100%);
  box-shadow: 0 40px 80px rgba(177, 78, 40, 0.3);
  display: grid;
  place-items: center;
  transition: all 0.6s var(--ease-luxe);
  animation: pulseOrb 3s ease-in-out infinite;
}

.orb-container:hover .orb-body {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 50px 100px rgba(177, 78, 40, 0.4);
}

/* --- Features Grid --- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-gap-mobile);
  padding: var(--space-section-mobile) 0;
}

@media (min-width: 768px) {
  .grid-features {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-gap-tablet);
    padding: var(--space-section-tablet) 0;
  }
}

@media (min-width: 1024px) {
  .grid-features {
    gap: var(--space-gap-desktop);
    padding: var(--space-section-desktop) 0;
  }
}

/* --- Service Cards (Glass Morphism) --- */
.card-pro {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: var(--radius-card-sm);
  border: 1px solid var(--glass-border);
  transition: all 0.5s var(--ease-luxe);
  position: relative;
  overflow: visible;
}

/* Glow effect wrapper */
.card-pro::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(177,78,40,0.15), rgba(177,78,40,0));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease-smooth);
}

/* Top accent bar */
.card-pro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(177,78,40,0.3));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.4s var(--ease-luxe);
}

.card-pro:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-luxe), 0 0 0 1px var(--glass-border-strong);
}

.card-pro:hover::before {
  opacity: 1;
}

.card-pro:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (min-width: 768px) {
  .card-pro { padding: 3rem; border-radius: var(--radius-card); }
}

@media (max-width: 768px) {
  .hero { padding-top: 10rem; }
  .hero-title { font-size: 4rem; }
}

/* --- Reader Modal & Content --- */
.reader-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reader-modal.show {
  display: flex;
  opacity: 1;
}

.reader-content {
  background: var(--bg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 32px;
  position: relative;
  padding: 4rem;
  overflow-y: auto;
  box-shadow: var(--shadow-luxe);
  border: 1px solid var(--glass-border);
}

.reader-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: var(--glass-border);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.reader-close:hover {
  background: var(--primary);
  color: white;
}

.reader-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
}

.reader-body h1, .reader-body h2, .reader-body h3 {
  color: var(--primary);
  margin: 2rem 0 1rem;
  font-weight: 500;
}

.reader-body strong { color: var(--text); font-weight: 600; }

@media (max-width: 768px) {
  .reader-modal { padding: 0; }
  .reader-content { 
    max-height: 100vh; 
    border-radius: 0; 
    padding: 3rem 1.5rem;
  }
}

/* ── AUTH MODAL & MODALES PROFILS ─────────────────────────────────────────── */
#authModal, #rechargeModal, #lawyerModal, #institutionalModal, #signalFormModal {
  animation: fadeInOverlay 0.25s ease both;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#authModal > div, #rechargeModal > div, #lawyerModal > div, #institutionalModal > div {
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── QUOTA GAUGE ──────────────────────────────────────────────────────────── */
#quotaGauge {
  animation: fadeIn 0.4s ease both;
}

/* ── VOICE ACTION BUTTONS ─────────────────────────────────────────────────── */
#voiceActionBtns button {
  animation: fadeInSlide 0.3s ease both;
}
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ORB 3 ÉTATS ──────────────────────────────────────────────────────────── */
.orb-body.state-listening {
  background: linear-gradient(135deg, #2D6A4F, #52B788) !important;
  box-shadow: 0 0 0 0 rgba(45,106,79,0.4), 0 8px 32px rgba(45,106,79,0.3) !important;
  animation: pulseOrb 1.5s ease-in-out infinite;
}
.orb-body.state-responding {
  background: linear-gradient(135deg, #1B4F72, #2980B9) !important;
  box-shadow: 0 0 0 0 rgba(41,128,185,0.4), 0 8px 32px rgba(41,128,185,0.3) !important;
  animation: pulseOrb 2s ease-in-out infinite;
}

/* ── SECTION FOR-WHO CARDS (Enhanced) ─────────────────────────────────── */
.card-profile {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-luxe);
  position: relative;
  overflow: visible;
}

/* Profile glow effect */
.card-profile::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--profile-accent, var(--primary));
  opacity: 0;
  border-radius: inherit;
  z-index: -1;
  transition: opacity 0.3s var(--ease-smooth);
}

/* Top accent */
.card-profile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--profile-accent, var(--primary));
  border-radius: 24px 24px 0 0;
  opacity: 0.8;
}
.card-profile:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12), 0 0 0 1px var(--profile-accent, var(--primary));
}
.card-profile:hover::before {
  opacity: 0.05;
}
.card-profile .profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-profile .profile-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.card-profile .profile-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--profile-accent, var(--primary));
  opacity: 0.6;
}
.card-profile .profile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.card-profile .profile-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}
.card-profile .profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card-profile .profile-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: var(--profile-pill-bg, rgba(177,78,40,0.07));
  color: var(--profile-accent, var(--primary));
  white-space: nowrap;
  border: 1px solid var(--profile-accent, var(--primary));
  border-opacity: 0.1;
  transition: all 0.3s var(--ease-smooth);
}
.card-profile:hover .profile-pill {
  background: var(--profile-pill-bg, rgba(177,78,40,0.12));
  border-opacity: 0.2;
}
.card-profile .profile-cta {
  margin-top: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  border: 1.5px solid var(--profile-accent, var(--primary));
  background: transparent;
  color: var(--profile-accent, var(--primary));
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-luxe);
  align-self: flex-start;
}
.card-profile:hover .profile-cta {
  background: var(--profile-accent, var(--primary));
  color: white;
  box-shadow: 0 4px 12px rgba(177,78,40,0.3);
}

/* ── NAV USER MENU ────────────────────────────────────────────────────────── */
#navUserDropdown {
  animation: slideDownDropdown 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes slideDownDropdown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TRANSCRIPT CARD (moved from inline) ─────────────────────────────────── */
.transcript-zone {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(540px, 92vw);
  pointer-events: none;
}
.transcript-card {
  display: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(192, 90, 50, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(42, 28, 12, 0.2);
  animation: slideUpChat 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: auto;
}
.transcript-card.show { display: block; }
.transcript-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
}
@keyframes slideUpChat {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
  .transcript-zone { bottom: 1rem; width: min(480px, 94vw); }
  .transcript-card { padding: 1.2rem; }
  .transcript-text { font-size: 1rem; }
}


/* --- Footer (Enhanced) --- */
footer a {
  position: relative;
  transition: color 0.3s var(--ease-smooth);
}

footer a:hover {
  color: var(--primary);
}

/* Arrow animation on hover */
footer a::before {
  content: '→';
  margin-right: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease-smooth);
  display: inline-block;
}

footer a:hover::before {
  opacity: 1;
  transform: translateX(0);
}


/* --- Section Separators --- */
section {
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  opacity: 0.5;
}
