/* ============================================
   DESIGN SYSTEM — Safe Space App
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg-warm:        #FFF8F0;
  --bg-blush:       #FFE8E0;
  --bg-cream:       #FFF5EB;
  --bg-card:        rgba(255, 255, 255, 0.65);

  /* Accents */
  --accent-sage:    #A8C5A0;
  --accent-rose:    #E8A0B4;
  --accent-lavender:#C4B1D4;
  --accent-peach:   #F5C6AA;
  --accent-gold:    #E8D5A3;

  /* Text */
  --text-primary:   #3D3229;
  --text-secondary: #7A6E62;
  --text-muted:     #A89E94;
  --text-on-accent: #FFFFFF;

  /* Borders & Shadows */
  --border-soft:    rgba(61, 50, 41, 0.08);
  --shadow-soft:    0 4px 24px rgba(61, 50, 41, 0.08);
  --shadow-hover:   0 8px 32px rgba(61, 50, 41, 0.12);
  --shadow-glow:    0 0 40px rgba(232, 160, 180, 0.15);

  /* Typography */
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent:    'Caveat', cursive;

  /* Radii */
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-pill:    999px;

  /* Transitions */
  --ease-gentle:    cubic-bezier(0.25, 0.8, 0.25, 1);
  --duration-fast:  0.3s;
  --duration-med:   0.5s;
  --duration-slow:  0.8s;
  --transition-gentle: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-warm);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}


/* --- Utility Classes --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  font-family: var(--font-accent);
}

.text-center {
  text-align: center;
}

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


/* --- Pill Button Component --- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: var(--transition-gentle);
  position: relative;
  overflow: hidden;
}

.btn-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-gentle);
  background: rgba(255, 255, 255, 0.15);
}

.btn-pill:hover::after {
  opacity: 1;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-pill:active {
  transform: translateY(0);
}

.btn-pill--rose {
  background: var(--accent-rose);
  color: var(--text-on-accent);
}

.btn-pill--sage {
  background: var(--accent-sage);
  color: var(--text-on-accent);
}

.btn-pill--lavender {
  background: var(--accent-lavender);
  color: var(--text-on-accent);
}

.btn-pill--peach {
  background: var(--accent-peach);
  color: var(--text-primary);
}

.btn-pill--ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-pill--ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}


/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}


/* --- Fade Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gentlePulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.fade-in-up {
  animation: fadeInUp var(--duration-slow) var(--ease-gentle) forwards;
  opacity: 0;
}

.fade-in {
  animation: fadeIn var(--duration-med) var(--ease-gentle) forwards;
  opacity: 0;
}

/* Staggered children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.19s; }
.stagger > *:nth-child(4) { animation-delay: 0.26s; }
.stagger > *:nth-child(5) { animation-delay: 0.33s; }
.stagger > *:nth-child(6) { animation-delay: 0.40s; }


/* --- Responsive Breakpoints (mobile-first) --- */
/* sm: 480px, md: 768px, lg: 1024px, xl: 1280px */
