/* ==========================================================================
   TONALLITECH — Design System Tokens
   Version: 1.0.0
   Description: CSS custom properties, design tokens, and base variables
   for the entire TonalliTech ecosystem.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {

  /* ─── TONALLITECH BRAND TOKENS ─── */
  --tt-bg:          #08090c;
  --tt-bg-deep:     #050608;
  --tt-surface:     #0f1117;
  --tt-surface-2:   #13151f;
  --tt-surface-3:   #181b27;
  --tt-border:      rgba(255, 255, 255, 0.07);
  --tt-border-hover:rgba(255, 255, 255, 0.14);

  /* Accent spectrum */
  --tt-accent:      #5b6af8;
  --tt-accent-hover:#7280fa;
  --tt-accent-dim:  rgba(91, 106, 248, 0.12);
  --tt-accent-glow: rgba(91, 106, 248, 0.25);
  --tt-accent2:     #8b5cf6;
  --tt-accent2-dim: rgba(139, 92, 246, 0.12);
  --tt-gold:        #f0c060;
  --tt-gold-dim:    rgba(240, 192, 96, 0.12);

  /* Text scale */
  --tt-text:        #e8eaf0;
  --tt-text-2:      #b8bcd0;
  --tt-muted:       #5a5f7a;
  --tt-muted-2:     #3d4160;

  /* Semantic */
  --tt-success:     #22c55e;
  --tt-warning:     #f59e0b;
  --tt-error:       #ef4444;
  --tt-info:        #06b6d4;

  /* ─── SEMILLA DIGITAL BRAND TOKENS ─── */
  --sd-bg:          #07100d;
  --sd-bg-deep:     #040c09;
  --sd-surface:     #0d1a14;
  --sd-surface-2:   #111f18;
  --sd-surface-3:   #162619;
  --sd-border:      rgba(74, 222, 128, 0.10);
  --sd-border-hover:rgba(74, 222, 128, 0.22);

  --sd-accent:      #22c55e;
  --sd-accent-hover:#34d975;
  --sd-accent-dim:  rgba(34, 197, 94, 0.12);
  --sd-accent-glow: rgba(34, 197, 94, 0.20);
  --sd-accent2:     #86efac;
  --sd-accent2-dim: rgba(134, 239, 172, 0.10);
  --sd-electric:    #4ade80;

  --sd-text:        #e2f5e8;
  --sd-text-2:      #a7d4b4;
  --sd-muted:       #4a6a55;
  --sd-muted-2:     #304a38;

  /* ─── TYPOGRAPHY ─── */
  --font-display:   'Sora', sans-serif;
  --font-body:      'Sora', sans-serif;
  --font-serif:     'Sora', sans-serif;

  /* Type scale */
  --text-xs:    11px;
  --text-sm:    12px;
  --text-base:  14px;
  --text-md:    15px;
  --text-lg:    18px;
  --text-xl:    22px;
  --text-2xl:   28px;
  --text-3xl:   36px;
  --text-4xl:   clamp(40px, 5vw, 64px);
  --text-hero:  clamp(52px, 7vw, 96px);

  /* ─── SPACING ─── */
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;
  --space-32:   128px;

  /* ─── BORDER RADIUS ─── */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:9999px;

  /* ─── SHADOWS ─── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow:     0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 32px rgba(91,106,248,0.2);
  --shadow-sd:  0 0 32px rgba(34,197,94,0.15);

  /* ─── TRANSITIONS ─── */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --duration-fast:  150ms;
  --duration:       250ms;
  --duration-slow:  400ms;
  --duration-lazy:  600ms;

  /* ─── LAYOUT ─── */
  --max-width:  1280px;
  --nav-height: 68px;
  --section-padding-x: clamp(20px, 4vw, 60px);
  --section-padding-y: clamp(80px, 10vw, 140px);

  /* ─── Z-INDEX SCALE ─── */
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* ─── PROJECT CATEGORY COLORS ─── */
  --cat-system-bg:    rgba(91, 106, 248, 0.12);
  --cat-system-color: #818cf8;
  --cat-system-border:rgba(91, 106, 248, 0.25);

  --cat-tool-bg:      rgba(240, 192, 96, 0.12);
  --cat-tool-color:   #f0c060;
  --cat-tool-border:  rgba(240, 192, 96, 0.25);

  --cat-creative-bg:  rgba(34, 197, 94, 0.12);
  --cat-creative-color:#4ade80;
  --cat-creative-border:rgba(34, 197, 94, 0.25);

  --cat-edu-bg:       rgba(139, 92, 246, 0.12);
  --cat-edu-color:    #a78bfa;
  --cat-edu-border:   rgba(139, 92, 246, 0.25);

  --cat-awareness-bg: rgba(251, 113, 133, 0.12);
  --cat-awareness-color:#f9a8d4;
  --cat-awareness-border:rgba(251, 113, 133, 0.25);

  --cat-bot-bg:       rgba(34, 211, 238, 0.12);
  --cat-bot-color:    #67e8f9;
  --cat-bot-border:   rgba(34, 211, 238, 0.25);

  --cat-platform-bg:  rgba(251, 146, 60, 0.12);
  --cat-platform-color:#fb923c;
  --cat-platform-border:rgba(251, 146, 60, 0.25);
}
