/* ============================================================
   DESIGN TOKENS — Silo Studio 2 (AIWork-Inspired)
   Single source of truth for colors, typography, spacing, radii.
   ============================================================ */

:root {
  /* ---- Colors ---- */
  --color-bg:           #111111;
  --color-surface:      #1a1a1a;
  --color-elevated:     #242424;
  --color-border:       #2e2e2e;

  --color-accent:       #18E0C7;
  --color-accent-hover: #12C7B1;
  --color-accent-10:    rgba(24, 224, 199, 0.10);
  --color-accent-20:    rgba(24, 224, 199, 0.20);
  --color-accent-30:    rgba(24, 224, 199, 0.30);

  /* Multi-colour accent system (AIWork-inspired) */
  --color-purple:       #a855f7;
  --color-purple-10:    rgba(168, 85, 247, 0.10);
  --color-purple-20:    rgba(168, 85, 247, 0.20);
  --color-purple-30:    rgba(168, 85, 247, 0.30);

  --color-blue:         #3b82f6;
  --color-blue-10:      rgba(59, 130, 246, 0.10);
  --color-blue-20:      rgba(59, 130, 246, 0.20);

  --color-amber:        #f59e0b;
  --color-amber-10:     rgba(245, 158, 11, 0.10);

  /* Gradient system */
  --gradient-primary:  linear-gradient(135deg, #18E0C7 0%, #a855f7 100%);
  --gradient-blue:     linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  --gradient-warm:     linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --gradient-border:   linear-gradient(135deg, rgba(24,224,199,0.4) 0%, rgba(168,85,247,0.4) 100%);

  --color-text:         #f8f8f8;
  --color-text-muted:   #a0a0a0;
  --color-text-subtle:  #606060;

  --color-danger:       #f43f5e;

  /* ---- Typography ---- */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Fragment Mono', 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  2rem;      /* 32px */
  --text-4xl:  2.5rem;    /* 40px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

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

  /* ---- Spacing (8px base) ---- */
  --space-1:  0.25rem;  /* 4px  */
  --space-2:  0.5rem;   /* 8px  */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ---- Radii ---- */
  --radius-sm:   0.5rem;   /* 8px  */
  --radius-md:   0.75rem;  /* 12px */
  --radius-lg:   1rem;     /* 16px */
  --radius-xl:   1.5rem;   /* 24px */
  --radius-2xl:  2rem;     /* 32px */
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --glow-accent:        0 0 24px rgba(24, 224, 199, 0.25);
  --glow-accent-hover:  0 0 40px rgba(24, 224, 199, 0.35);
  --glow-purple:        0 0 24px rgba(168, 85, 247, 0.25);
  --glow-multi:         0 0 40px rgba(168, 85, 247, 0.15), 0 0 80px rgba(24, 224, 199, 0.08);
  --shadow-card:        0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-card-hover:  0 4px 24px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.12);

  /* ---- Layout ---- */
  --max-w:     90rem;   /* 1440px */
  --max-w-sm:  40rem;   /* 640px  */
  --max-w-md:  48rem;   /* 768px  */
  --max-w-lg:  64rem;   /* 1024px */
  --max-w-xl:  80rem;   /* 1280px */

  /* ---- Transitions ---- */
  --ease-default:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:      cubic-bezier(0.0, 0, 0.2, 1);
  --ease-snappy:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration:      220ms;
  --duration-slow: 500ms;
  --duration-fast: 140ms;

  /* ---- Theme-aware component backgrounds ---- */
  --nav-bg:           rgba(17, 17, 17, 0.78);
  --mobile-menu-bg:   rgba(17, 17, 17, 0.97);
  --hero-dot-color:   rgba(255, 255, 255, 0.05);

  /* ---- Theme transition ---- */
  --theme-transition: background-color 0.45s var(--ease-spring), color 0.45s var(--ease-spring), border-color 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring);
}

/* ---- Light Mode ---- */
[data-theme="light"] {
  --color-bg:           #f7f6f2;
  --color-surface:      #ffffff;
  --color-elevated:     #eeecea;
  --color-border:       #e2e0d8;
  --color-text:         #141414;
  --color-text-muted:   #505050;
  --color-text-subtle:  #8f8f8f;

  --shadow-card:        0 1px 4px rgba(0, 0, 0, 0.07), 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card-hover:  0 6px 28px rgba(0, 0, 0, 0.10), 0 0 40px rgba(168, 85, 247, 0.07);
  --glow-multi:         0 0 40px rgba(168, 85, 247, 0.06), 0 0 80px rgba(24, 224, 199, 0.04);
  --glow-accent:        0 0 20px rgba(24, 224, 199, 0.12);
  --glow-purple:        0 0 20px rgba(168, 85, 247, 0.12);

  --nav-bg:           rgba(247, 246, 242, 0.92);
  --mobile-menu-bg:   rgba(247, 246, 242, 0.98);
  --hero-dot-color:   rgba(0, 0, 0, 0.035);
}
