/* ============================================================
   ZEALTHIX.AI  DESIGN SYSTEM
   main.css: tokens, reset, typography, layout, utilities
   ============================================================ */

/* == DESIGN TOKENS == */
:root {
  /* Brand */
  --deep:         #1E1140;
  --purple:       #6D18DD;
  --mid-purple:   #6B3FA0;
  --light-purple: #F7F4FB;
  --gold:         #E8C91F;
  --gold-dk:      #B89E10;

  /* Backgrounds */
  --bg:           #FFFFFF;
  --bg-alt:       #F7F4FB;
  --bg-dark:      #1E1140;
  --bg-card:      #FFFFFF;

  /* Text */
  --text:         #1E1140;
  --text-2:       #3D2D6B;
  --muted:        #64748B;
  --muted-2:      #94A3B8;

  /* Borders */
  --border:       rgba(109,24,221,0.18);
  --border-lt:    rgba(109,24,221,0.09);

  /* Semantic */
  --green:        #10B981;
  --green-bg:     #ECFDF5;
  --amber:        #F59E0B;
  --amber-bg:     #FFFBEB;
  --red:          #EF4444;
  --red-bg:       #FEF2F2;
  --blue:         #3B82F6;
  --blue-bg:      #EFF6FF;

  /* Gradients */
  --grad:         linear-gradient(135deg, #6D18DD 0%, #1E1140 100%);
  --grad-rev:     linear-gradient(135deg, #1E1140 0%, #6D18DD 100%);
  --grad-mid:     linear-gradient(135deg, #6B3FA0 0%, #6D18DD 100%);
  --grad-gold:    linear-gradient(135deg, #E8C91F 0%, #B89E10 100%);
  --grad-soft:    linear-gradient(160deg, #F7F4FB 0%, #EDE9FE 100%);
  --grad-dark:    linear-gradient(160deg, #1E1140 0%, #2D1B69 100%);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(30,17,64,0.07);
  --shadow:       0 2px 8px rgba(30,17,64,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(30,17,64,0.10), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:    0 16px 48px rgba(30,17,64,0.13), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:    0 32px 80px rgba(30,17,64,0.18);

  /* Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full:9999px;

  /* Nav height */
  --nav-h: 68px;

  /* Transitions */
  --t:     0.2s ease;
  --t-slow:0.35s ease;
}

/* == RESET == */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* == TYPOGRAPHY == */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700; }
h5 { font-size: 1.05rem; font-weight: 700; }
p  { color: var(--muted); line-height: 1.75; }
strong { font-weight: 700; color: var(--text); }
small { font-size: 0.875rem; }

/* == LAYOUT == */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }

/* == BACKGROUNDS == */
.bg-alt  { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); }
.bg-grad { background: var(--grad); }

/* Dot grid overlay */
.dot-grid {
  background-image: radial-gradient(circle, rgba(109,24,221,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.dot-grid-white {
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* Line grid */
.line-grid {
  background-image:
    linear-gradient(rgba(109,24,221,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,24,221,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* == GRADIENT TEXT == */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* == SECTION EYEBROW == */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  flex-shrink: 0;
}
.eyebrow-gold { color: var(--gold-dk); }
.eyebrow-gold::before { background: var(--grad-gold); }
.eyebrow-white { color: rgba(255,255,255,0.6); }
.eyebrow-white::before { background: rgba(255,255,255,0.35); }

/* == FLEX UTILS == */
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap      { flex-wrap: wrap; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-5  { gap: 20px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }

/* == GRID UTILS == */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* == TEXT UTILS == */
.text-center  { text-align: center; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-muted   { color: var(--muted); }
.text-purple  { color: var(--purple); }
.text-white   { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.text-gold    { color: var(--gold-dk); }
.font-700     { font-weight: 700; }
.font-800     { font-weight: 800; }
.font-mono    { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* == SPACING UTILS == */
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-600 { max-width: 600px; }
.max-700 { max-width: 700px; }
.max-800 { max-width: 800px; }

/* == ANIMATIONS == */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.5; transform:scale(1.5); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
[data-stagger] > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger] > *:nth-child(2) { transition-delay: 90ms; }
[data-stagger] > *:nth-child(3) { transition-delay: 180ms; }
[data-stagger] > *:nth-child(4) { transition-delay: 270ms; }
[data-stagger] > *:nth-child(5) { transition-delay: 360ms; }
[data-stagger] > *:nth-child(6) { transition-delay: 450ms; }
[data-stagger] > *:nth-child(7) { transition-delay: 540ms; }
[data-stagger] > *:nth-child(8) { transition-delay: 630ms; }

/* == RESPONSIVE == */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section    { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .container  { padding: 0 16px; }
  .section-sm { padding: 48px 0; }
  .grid-4 { grid-template-columns: 1fr; }
}
