/* base.css — CSS custom properties, reset, typography */

:root {
  /* Backgrounds — light cream palette */
  --c-bg: #FAF7FF;
  --c-surface: #FFFFFF;
  --c-surface-alt: #F3EFFF;
  --c-surface-pink: #FFF0F6;
  --c-surface-gold: #FFF8EC;
  --c-surface-mint: #E8FAF7;

  /* Text — dark violet-black */
  --c-text: #1A1528;
  --c-text-secondary: #5D5A77;
  --c-border: #E3DFF5;

  /* Primary accent (brand violet) — darker for text contrast */
  --c-accent: #5B3FFF;
  --c-accent-hover: #4A2EEE;
  --c-accent-bright: #7B61FF;

  /* Supporting accent colors (for variety) */
  --c-accent-pink: #E94B8A;
  --c-accent-pink-bright: #FF6BA3;
  --c-accent-gold: #D97706;
  --c-accent-gold-bright: #F59E0B;
  --c-accent-mint: #0D9488;
  --c-accent-mint-bright: #14B8A6;

  /* Semantic */
  --c-success: #059669;
  --c-error: #DC2626;
  --c-warning: #D97706;

  /* Typography */
  --f-heading: 'Sora', sans-serif;
  --f-body: 'Nunito Sans', sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-card: 16px;
  --r-lg: 20px;

  /* Spacing */
  --section-py: 80px;
  --container-max: 1200px;
  --grid-gap: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-accent-hover);
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--f-heading);
  color: var(--c-text);
  line-height: 1.2;
}

h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--c-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: 0.875rem;
  line-height: 1.5;
}

::selection {
  background-color: var(--c-accent);
  color: var(--c-text);
}

/* ---------- Global Animations ---------- */
@keyframes zs-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(6deg); }
}

@keyframes zs-float-reverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(18px) rotate(-8deg); }
}

@keyframes zs-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(12px, -18px) rotate(5deg); }
  50%  { transform: translate(-8px, -28px) rotate(-4deg); }
  75%  { transform: translate(16px, -10px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes zs-pulse-glow {
  0%, 100% { opacity: 0.6; filter: blur(40px); }
  50%      { opacity: 1;   filter: blur(60px); }
}

@keyframes zs-pulse-soft {
  0%, 100% { transform: scale(1);     opacity: 0.55; }
  50%      { transform: scale(1.08);  opacity: 0.85; }
}

@keyframes zs-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes zs-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes zs-spin-slow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes zs-btn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 97, 255, 0.5); }
  50%      { box-shadow: 0 0 24px 6px rgba(123, 97, 255, 0.35); }
}

@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;
  }
}
