/* ===== SHARED TOKENS & BASE STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito:wght@400;500;600;700;800&family=Sora:wght@300;400;500;600&display=swap');

/* ===== UNIVERSAL RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #c4725a;
  --primary-light: #f5e6e0;
  --primary-dark: #b5654d;
  --secondary: #7b9e87;
  --secondary-light: #eaf2ec;
  --accent: #d4a574;
  --accent-light: #f8f0e8;
  --bg: #fbf8f5;
  --surface: #ffffff;
  --text-1: #2d2520;
  --text-2: #7a7067;
  --text-3: #b5ada5;
  --border: #ede8e3;
  --border-light: #f5f1ed;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-accent: 'Sora', system-ui, sans-serif;
}

/* ===== HTML & BODY ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

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

/* ===== ANIMATIONS ===== */
@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(200%) rotate(25deg);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REVEAL SYSTEM — VARIED DIRECTIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.reveal[data-reveal="left"] {
  transform: translateX(-40px);
}
.reveal[data-reveal="right"] {
  transform: translateX(40px);
}
.reveal[data-reveal="scale"] {
  transform: scale(0.95);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== MOBILE WAITLIST (overrides for stacked form) ===== */
@media (max-width: 768px) {
  .waitlist-form.submitted {
    flex-direction: row;
  }
  .waitlist-form.submitted .waitlist-input {
    display: none;
  }
  .waitlist-form.submitted .waitlist-submit {
    border-radius: 14px;
    flex: 1;
  }
}
