/* ============================================
 * Konvoka Landing — Design Tokens
 * Subset of konvoka-client/assets/styling/tokens.css
 * Brand identity LOCKED — never modify the primary palette.
 * ============================================ */

:root {
  /* ========================================
   * TYPOGRAPHY
   * ======================================== */

  --font-primary: 'Rubik', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: 'Red Hat Display', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: var(--font-primary);

  /* Static scale (mirror of app) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Fluid scale — landing-only, extends app */
  --text-display: clamp(2.25rem, 1.5rem + 3.6vw, 4rem);
  --text-h1: clamp(1.75rem, 1.3rem + 2.4vw, 3rem);
  --text-h2: clamp(1.5rem, 1.15rem + 1.9vw, 2.5rem);
  --text-h3: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  --text-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --text-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-eyebrow: 0.75rem;

  --font-thin: 100;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-display: 1.02;

  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.08em;

  /* ========================================
   * BRAND COLORS — LOCKED (mirror of app)
   * ======================================== */

  --color-primary: #4f46e5;
  --color-primary-light: #6366f1;
  --color-primary-dark: #4338ca;
  --color-primary-subtle-1: rgba(79, 70, 229, 0.02);
  --color-primary-subtle-2: rgba(79, 70, 229, 0.05);
  --color-primary-subtle-3: rgba(79, 70, 229, 0.1);
  --color-primary-focus: rgba(79, 70, 229, 0.15);
  --color-primary-surface: #eef2ff;

  --color-accent: #E5533A;
  --color-accent-light: #FF6B4A;
  --color-accent-dark: #C9442E;

  --color-secondary: #8B5CF6;
  --color-secondary-light: #a78bfa;
  --color-secondary-dark: #7c3aed;

  /* ========================================
   * TEXT COLORS (mirror of app)
   * ======================================== */

  --color-text-heading: #0f172a;
  --color-text-strong: #1e293b;
  --color-text-secondary: #475569;
  --color-text-body: #475569;
  --color-text-muted: #64748b;
  --color-text-disabled: #cbd5e1;

  /* ========================================
   * SURFACE (mirror of app)
   * ======================================== */

  --color-surface: #ffffff;
  --color-surface-secondary: #f8fafc;
  --color-surface-hover: #f1f5f9;
  --color-background: #f8fafc;
  --color-border: #e6e8eb;
  --color-border-light: #e2e8f0;

  /* ========================================
   * LANDING-ONLY EXTENSIONS — ink ladder + cream
   * ======================================== */

  --color-ink-950: #06091A;
  --color-ink-900: #0B0F1C;
  --color-ink-800: #141A30;
  --color-ink-700: #1F2742;
  --color-text-on-dark: #F1F5F9;
  --color-text-on-dark-muted: rgba(241, 245, 249, 0.72);
  --color-border-on-dark: rgba(255, 255, 255, 0.12);

  /* Aurora signature gradients */
  --gradient-aurora: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 45%, #E5533A 100%);
  --gradient-spotlight: radial-gradient(60% 60% at 50% 0%, rgba(99, 102, 241, 0.35) 0%, transparent 70%);

  /* ========================================
   * SEMANTIC
   * ======================================== */

  --color-success: #22c55e;
  --color-success-text: #166534;
  --color-success-light: #dcfce7;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-error-text: #991b1b;
  --color-error-focus: rgba(239, 68, 68, 0.15);
  --color-info: #3b82f6;

  /* ========================================
   * SPACING (mirror of app — 8px base)
   * ======================================== */

  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ========================================
   * SHADOWS (mirror of app)
   * ======================================== */

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  /* Opaque dual-tone focus ring (a11y A1): inner ink spacer + outer white
     so the ring clears 3:1 on dark ink surfaces (default usage) and stays
     visible on bright/gradient controls. White-on-#0B0F1C = 18.9:1. */
  --shadow-focus: 0 0 0 2px var(--color-ink-900), 0 0 0 5px #ffffff;
  /* Light-surface variant (white cards): inner white spacer + outer indigo.
     #4F46E5-on-#FFFFFF = 6.3:1, well past the 3:1 non-text floor. */
  --shadow-focus-on-light: 0 0 0 2px #ffffff, 0 0 0 5px var(--color-primary);
  --shadow-focus-error: 0 0 0 2px var(--color-ink-900), 0 0 0 5px var(--color-error);
  --shadow-primary-hover: 0 8px 25px -5px rgba(79, 70, 229, 0.25);

  /* ========================================
   * RADIUS (mirror of app)
   * ======================================== */

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999rem;

  /* ========================================
   * EASING & TRANSITIONS (mirror of app)
   * ======================================== */

  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 720ms;

  /* ========================================
   * Z-INDEX (mirror of app)
   * ======================================== */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 500;
  --z-modal: 600;
  --z-toast: 900;

  /* ========================================
   * LAYOUT
   * ======================================== */

  --touch-target-size: 2.75rem;
  --button-height: 3.5rem;
  --container-max: 78rem;
  --container-narrow: 56rem;
  --section-padding-mobile: var(--space-16);
  --section-padding-tablet: var(--space-20);
  --section-padding-desktop: var(--space-24);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
