/* ═══════════════════════════════════════════════════
   SHARED DESIGN TOKENS — Sara Mounty
   Single source of truth for colors, fonts, spacing,
   base reset, shared components, and animations.
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bg-deep: #000000;
  --bg: #000000;
  --bg-light: #0A0A0A;
  --bg-warm: #050505;

  --sage: #6B7F5E;
  --sage-light: #8FA67E;
  --sage-muted: #A4B396;
  --sage-pale: rgba(107,127,94,0.12);
  --sage-glow: rgba(107,127,94,0.12);

  --terra: #C4956A;
  --terra-light: #D4A87D;
  --terra-pale: rgba(196,149,106,0.12);
  --terra-glow: rgba(196,149,106,0.2);

  --blush: #D4A99A;
  --blush-glow: rgba(212,169,154,0.25);

  --gold: #B89B6E;
  --gold-glow: rgba(184,155,110,0.12);
  --gold-glow-deep: rgba(184,155,110,0.06);

  --cream: #F7F3EE;
  --cream-mid: rgba(247,243,238,0.7);
  --cream-light: rgba(247,243,238,0.5);
  --cream-faint: rgba(247,243,238,0.35);
  --cream-ghost: rgba(247,243,238,0.15);

  --border: rgba(107,127,94,0.15);
  --border-terra: rgba(196,149,106,0.2);
  --border-light: rgba(255,255,255,0.06);

  --bg-footer: #000000;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg-deep);
}
body {
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(107,127,94,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(107,127,94,0.015) 0%, transparent 40%),
    var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 998;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,0.35) 100%);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(184,155,110,0.18); color: var(--cream); }

/* ── Custom Cursor (desktop only) ── */
@media (hover: hover) {
  html { cursor: none; }
  button { cursor: none; }
}
.cur-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--sage); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transition: transform 0.15s var(--ease), opacity 0.2s;
  transform: translate(-50%, -50%);
}
.cur-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid var(--sage-light); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
  transform: translate(-50%, -50%);
}
.cur-ring.hover { width: 52px; height: 52px; border-color: var(--terra); }

/* ── Film Grain ── */
.grain {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none; opacity: 0.018;
  mix-blend-mode: overlay;
}

/* ── Shared Layout ── */
.orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.light-wash { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(140px); opacity: 0.6; }
.ambient-glow { position: absolute; inset: 0; pointer-events: none; }

/* ── Reveal on Scroll ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── Shared Components ── */
.badge {
  display: inline-block; padding: 8px 20px;
  background: var(--sage-pale); border: 1px solid rgba(107,127,94,0.3);
  border-radius: 24px; font-size: 0.75rem; color: var(--sage-muted);
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
  margin-bottom: 20px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 44px; font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.4px; background: var(--sage); color: white;
  border-radius: 50px; transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--sage-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; font-size: 0.85rem; font-weight: 400;
  border-radius: 50px; border: 1px solid var(--border); color: var(--cream-mid);
  transition: all 0.3s var(--ease); background: rgba(255,255,255,0.03);
}
.btn-outline:hover {
  background: var(--sage); color: white; border-color: var(--sage);
  transform: translateY(-2px);
}

/* ── Section Avatars ── */
.section-avatar {
  width: clamp(80px, 12vw, 140px); height: clamp(80px, 12vw, 140px);
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 2;
}
.section-avatar.lg { width: clamp(100px, 15vw, 170px); height: clamp(100px, 15vw, 170px); }
.section-avatar.md { width: 80px; height: 80px; }
.section-avatar.sm { width: 80px; height: 80px; border-width: 2px; }
.section-avatar.zoom { animation: avatarZoom 4s ease-in-out infinite; }

/* Avatar with speech bubble */
.avatar-with-speech { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; z-index: 2; }
.speech-bubble {
  position: relative; padding: 12px 20px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 18px; border-bottom-left-radius: 4px;
  font-family: var(--font-display); font-style: italic;
  font-size: 0.95rem; color: var(--cream-mid);
  max-width: 280px; text-align: center; line-height: 1.5;
}

/* ── Section Divider ── */
.section-divider {
  width: 100%; height: 1px; position: relative; overflow: visible;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, rgba(196,149,106,0.2) 50%, var(--border) 80%, transparent 100%);
}
.section-divider::after {
  content: ''; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 40px; filter: blur(30px);
  background: radial-gradient(ellipse, rgba(196,149,106,0.15), transparent);
}

/* ═══════════════════════════════════════════════════
   SHARED ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.8; }
}
@keyframes avatarZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.cta-bounce { animation: gentleBounce 2.4s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 6px 28px rgba(0,0,0,0.35); }
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}
@keyframes rosePulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(183,110,121,0.8)) drop-shadow(0 0 20px rgba(183,110,121,0.4)); }
  50% { opacity: 0.5; filter: drop-shadow(0 0 4px rgba(183,110,121,0.4)) drop-shadow(0 0 10px rgba(183,110,121,0.2)); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typingDot {
  0%,60%,100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
@keyframes playPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0; }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-15px, 10px); }
}
@keyframes emojiPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes faPulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.06); }
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 25px var(--sage-glow); }
  50% { box-shadow: 0 0 45px var(--sage-glow), 0 0 80px rgba(107,127,94,0.15); }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════ */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   MOBILE FIXES
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .btn-primary { padding: 14px 36px; font-size: 0.85rem; min-height: 44px; }
  .btn-outline { padding: 12px 28px; font-size: 0.82rem; min-height: 44px; }
  .dots { right: 10px; gap: 10px; }
  .dot { width: 6px; height: 6px; min-width: 44px; min-height: 44px; background-clip: content-box; padding: 18px; margin: -18px; }
}
