:root {
  /* ==========================================================================
     A2Labs — Core Brand Colors (03 Echo Direction)
     ========================================================================== */
  --brand-obsidian: #0a0a0b; /* Background (dark mode) */
  --brand-white: #ffffff; /* Primary mark */
  --brand-electric-cobalt: #2f5bff; /* Accent */

  /* Alternate accents */
  --brand-cyber-lime: #c6ff3d; /* Cyber lime */
  --brand-ultraviolet: #7b3fff; /* Ultraviolet */

  /* Supporting greys */
  --brand-tiles: #141417; /* Tiles (card & container surfaces) */
  --brand-charcoal: #101012; /* Footer / deep surfaces */
  --brand-charcoal-soft: #1a1a1d; /* Raised charcoal surfaces */
  --brand-borders: #26262b; /* Borders */
  --brand-dividers: #1e1e22; /* Dividers */
  --brand-labels: #8a8a93; /* Labels & meta info */
  --brand-body-text: #f4f4f5; /* Body text */

  /* ==========================================================================
     Semantic tokens (Shadcn UI naming — dark mode default)
     ========================================================================== */
  --background: var(--brand-obsidian);
  --foreground: var(--brand-white);

  --card: var(--brand-tiles);
  --card-foreground: var(--brand-body-text);

  --popover: var(--brand-tiles);
  --popover-foreground: var(--brand-body-text);

  --primary: var(--brand-electric-cobalt);
  --primary-foreground: #ffffff;

  --secondary: var(--brand-tiles);
  --secondary-foreground: var(--brand-body-text);

  --muted: var(--brand-tiles);
  --muted-foreground: var(--brand-labels);

  --accent: var(--brand-electric-cobalt);
  --accent-foreground: #ffffff;

  --accent-lime: var(--brand-cyber-lime);
  --accent-ultraviolet: var(--brand-ultraviolet);

  --destructive: #ef4444;
  --destructive-foreground: #ffffff;

  --border: var(--brand-borders);
  --input: var(--brand-borders);
  --divider: var(--brand-dividers);
  --ring: var(--brand-electric-cobalt);

  --radius: 12px;

  /* ==========================================================================
     Legacy token aliases (existing pages & components reference these)
     ========================================================================== */
  --color-primary: var(--brand-electric-cobalt);
  --color-primary-alt: #4d73ff;
  --color-primary-hover: #4d73ff;
  --color-primary-dark: #1e44d6;
  --color-primary-light: #5c80ff;
  --color-primary-lightest: rgba(47, 91, 255, 0.2);
  --color-primary-surface: rgba(47, 91, 255, 0.1);
  --color-primary-glow: rgba(47, 91, 255, 0.35);
  --color-primary-text: #ffffff;

  --color-dark: var(--brand-obsidian);
  --color-dark-surface: var(--brand-tiles);
  --color-dark-card: var(--brand-tiles);
  --color-black: var(--brand-obsidian);

  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1eab52;

  --color-background: var(--brand-obsidian);
  --color-background-alt: var(--brand-tiles);
  --color-text-primary: var(--brand-body-text);
  --color-text-secondary: var(--brand-labels);
  --color-text-muted: var(--brand-labels);
  --color-border: var(--brand-borders);
  --color-border-dark: var(--brand-dividers);
  --color-white: #ffffff;

  --color-divider: var(--brand-dividers);
  --color-cyber-lime: var(--brand-cyber-lime);
  --color-ultraviolet: var(--brand-ultraviolet);

  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* ==========================================================================
     Typography
     Wordmark: Space Grotesk, with "A2" in Bold (700) and "Labs" in Light (300)
     Board labels: JetBrains Mono
     Body text: Inter / Space Grotesk
     ========================================================================== */
  --font-body: "Inter", "Noto Sans Devanagari", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading:
    "Space Grotesk", "Inter", "Noto Sans Devanagari", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-wordmark: "Space Grotesk", sans-serif;

  --font-size-h1: clamp(2.25rem, 5vw, 3.75rem);
  --font-size-h2: clamp(1.75rem, 4vw, 2.5rem);
  --font-size-h3: clamp(1.25rem, 3vw, 1.75rem);
  --font-size-body: 1rem;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --line-height-tight: 1.08;
  --line-height-base: 1.65;

  /* ==========================================================================
     Spacing scale
     ========================================================================== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ==========================================================================
     Geometry — structural corners with glassmorphic softness
     ========================================================================== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ==========================================================================
     Elevation & electric cobalt glows
     ========================================================================== */
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 8px 28px rgba(47, 91, 255, 0.35);

  /* ==========================================================================
     Motion
     ========================================================================== */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* ==========================================================================
     Layout
     ========================================================================== */
  --container-max-width: 1200px;
  --header-height: 72px;

  --z-header: 100;
  --z-whatsapp: 150;
  --z-modal: 200;
  --z-overlay: 300;
}

/* Light mode and monochrome */
[data-theme="light"],
.theme-light {
  --background: #ffffff;
  --foreground: #0a0a0b;
  --card: #f4f4f5;
  --card-foreground: #0a0a0b;
  --popover: #ffffff;
  --popover-foreground: #0a0a0b;
  --secondary: #f4f4f5;
  --secondary-foreground: #0a0a0b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --divider: #e4e4e7;
}
