/* ZNexus Design System — Colors & Typography */

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== COLOR TOKENS ===== */
:root {
  /* Backgrounds */
  --bg-base: #F4F6FF;                      /* Page base — cool blue-white */
  --bg-soft: #ECEFFB;                      /* Sections, subtle fills */
  --bg-warm: #FBF6EC;                      /* Peach radial glow at top */
  --bg-card: rgba(255, 255, 255, 0.6);     /* Glass cards (with backdrop-blur) */
  --bg-card-solid: #FFFFFF;                /* Opaque cards, modals */

  /* Borders */
  --border-subtle: rgba(10, 20, 48, 0.08);   /* Default card/section borders */
  --border-default: rgba(10, 20, 48, 0.14);  /* Hover / active state borders */

  /* Ink (Text) */
  --ink: #0A1430;                          /* Primary text — deep navy */
  --ink-soft: #4A5578;                     /* Body text, descriptions */
  --ink-mute: #8590B0;                     /* Labels, metadata, captions */

  /* Accent & Utility */
  --accent: #0A1430;                       /* Same as ink — monochrome brand */
  --black: #0A0A0A;                        /* Buttons, dark cards */
  --white: #FFFFFF;                        /* White cards, light text */
  --status-success: #34D399;                /* Green dot, workflow status */
}

/* ===== TYPOGRAPHY — FONT FAMILIES ===== */
:root {
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ===== TYPOGRAPHY — SCALE ===== */

/* h1 — Hero headline */
:root {
  --h1-size: clamp(56px, 8vw, 112px);
  --h1-weight: 800;
  --h1-spacing: -0.04em;
  --h1-line-height: 1;
}

/* h1 .pre — Italic intro before h1 */
:root {
  --h1-pre-size: 0.42em;
  --h1-pre-weight: 300;
  --h1-pre-style: italic;
  --h1-pre-spacing: -0.02em;
}

/* h2 — Section titles */
:root {
  --h2-size: clamp(44px, 5.5vw, 80px);
  --h2-weight: 800;
  --h2-spacing: -0.04em;
  --h2-line-height: 1;
}

/* h3 */
:root {
  --h3-size: 30px;
  --h3-weight: 700;
  --h3-spacing: -0.02em;
  --h3-line-height: 1.2;
}

/* Hero subtitle */
:root {
  --hero-sub-size: 24px;
  --hero-sub-weight: 400;
  --hero-sub-spacing: 0;
  --hero-sub-line-height: 1.4;
}

/* Lead / section subtitle */
:root {
  --lead-size: 20px;
  --lead-weight: 400;
  --lead-spacing: 0;
  --lead-line-height: 1.5;
}

/* Body text (base) */
:root {
  --body-size: 19px;
  --body-weight: 400;
  --body-spacing: 0;
  --body-line-height: 1.6;
}

/* Card title */
:root {
  --card-title-size: 22px;
  --card-title-weight: 700;
  --card-title-spacing: -0.02em;
  --card-title-line-height: 1.2;
}

/* Proposal letter (A/B/C) */
:root {
  --proposal-letter-size: 72px;
  --proposal-letter-weight: 800;
  --proposal-letter-spacing: -0.04em;
  --proposal-letter-line-height: 1;
}

/* Proposal title */
:root {
  --proposal-title-size: 36px;
  --proposal-title-weight: 700;
  --proposal-title-spacing: -0.02em;
  --proposal-title-line-height: 1.2;
}

/* Stat number */
:root {
  --stat-number-size: 60px;
  --stat-number-weight: 800;
  --stat-number-spacing: -0.04em;
  --stat-number-line-height: 1;
}

/* Phase number */
:root {
  --phase-number-size: 60px;
  --phase-number-weight: 800;
  --phase-number-spacing: -0.04em;
  --phase-number-line-height: 1;
}

/* Price value */
:root {
  --price-value-size: 22px;
  --price-value-weight: 700;
  --price-value-spacing: -0.02em;
  --price-value-line-height: 1.2;
}

/* Closing tagline */
:root {
  --closing-tagline-size: 28px;
  --closing-tagline-weight: 300;
  --closing-tagline-style: italic;
  --closing-tagline-spacing: -0.02em;
  --closing-tagline-line-height: 1.3;
}

/* Eyebrow / Label */
:root {
  --eyebrow-size: 13px;
  --eyebrow-weight: 400;
  --eyebrow-spacing: 0.2em;
  --eyebrow-line-height: 1;
  --eyebrow-text-transform: uppercase;
}

/* Badge */
:root {
  --badge-size: 11px;
  --badge-weight: 500;
  --badge-spacing: 0.2em;
  --badge-line-height: 1;
  --badge-text-transform: uppercase;
}

/* Label (small) */
:root {
  --label-size: 11px;
  --label-weight: 400;
  --label-spacing: 0.15em;
  --label-line-height: 1;
}

/* Nav meta */
:root {
  --nav-meta-size: 12px;
  --nav-meta-weight: 400;
  --nav-meta-spacing: 0.15em;
  --nav-meta-line-height: 1;
}

/* ===== SEMANTIC TYPE STYLES ===== */

h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-spacing);
  color: var(--ink);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line-height);
  letter-spacing: var(--h2-spacing);
  color: var(--ink);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: var(--h3-line-height);
  letter-spacing: var(--h3-spacing);
  color: var(--ink);
}

p, body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  color: var(--ink-soft);
}

small, .label {
  font-family: var(--font-mono);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-spacing);
  color: var(--ink-mute);
}

code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--ink);
}

/* ===== SHADOW SYSTEM ===== */
:root {
  --shadow-0: none;
  --shadow-1: 0 4px 20px rgba(10, 20, 48, 0.08);
  --shadow-2: 0 4px 30px rgba(10, 20, 48, 0.04);
  --shadow-3: 0 16px 40px -16px rgba(10, 20, 48, 0.14), 0 0 0 1px rgba(10, 20, 48, 0.06);
  --shadow-4: 0 20px 50px -20px rgba(10, 20, 48, 0.18), 0 0 0 1px rgba(10, 20, 48, 0.06);
  --shadow-5: 0 24px 60px -24px rgba(10, 20, 48, 0.16), 0 4px 30px rgba(10, 20, 48, 0.04);
  --shadow-6: 0 24px 50px -20px rgba(10, 20, 48, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ===== BORDER RADIUS SCALE ===== */
:root {
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 100px;
  --radius-circle: 50%;
}

/* ===== SPACING SCALE ===== */
:root {
  --space-xs: 6px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  --space-5xl: 56px;
  --space-6xl: 64px;
}

/* ===== ANIMATION EASING ===== */
:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== ANIMATION DURATIONS ===== */
:root {
  --duration-fast: 0.3s;
  --duration-normal: 0.5s;
  --duration-slow: 0.7s;
  --duration-reveal: 0.9s;
}

/* ===== CONTAINER QUERIES ===== */
:root {
  --container-width: 1240px;
  --container-px-desktop: 32px;
  --container-px-mobile: 20px;
}

/* ===== REDUCED MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
