/* ================================================
   Chii Landing Page — Design Tokens
   Default: Light theme | Toggle: Dark theme
   ================================================ */

:root {
  /* ---- Primary Palette (from Chii brand) ---- */
  --color-primary-50:  #f0fdfa;
  --color-primary-100: #ccfbf1;
  --color-primary-200: #99f6e4;
  --color-primary-300: #5eead4;
  --color-primary-400: #2dd4bf;
  --color-primary-500: #14b8a6;
  --color-primary-600: #0d9488;
  --color-primary-700: #0f766e;
  --color-primary-800: #115e59;
  --color-primary-900: #134e4a;

  /* ---- Accent Colors ---- */
  --color-accent-yellow: #FFB830;
  --color-accent-orange: #FF7200;
  --color-accent-pink:   #FF6B9D;
  --color-accent-rose:   #FF9EC4;

  /* ---- Theme Colors (Light — default) ---- */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8fafc;
  --bg-tertiary:   #f1f5f9;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-nav:        rgba(255, 255, 255, 0.85);
  --bg-hero:       linear-gradient(135deg, #f0fdfa 0%, #f8fafc 50%, #f0f9ff 100%);
  --bg-hero-glow:  radial-gradient(ellipse at 60% 40%, rgba(20, 184, 166, 0.08) 0%, transparent 70%);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-tertiary:  #94a3b8;
  --text-inverse:   #ffffff;
  --text-on-primary:#ffffff;

  --border-color:    #e2e8f0;
  --border-color-subtle: #f1f5f9;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.15);

  --glass-bg:     rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur:   20px;

  /* ---- Pricing Card Specific ---- */
  --card-free-bg:    #ffffff;
  --card-free-border:#e2e8f0;
  --card-premium-bg: linear-gradient(135deg, #0d9488, #14b8a6);
  --card-premium-glow: 0 0 30px rgba(20, 184, 166, 0.3), 0 0 60px rgba(20, 184, 166, 0.1);

  /* ---- Typography ---- */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  --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;

  --leading-tight:  1.25;
  --leading-normal: 1.5;
  --leading-relaxed:1.625;

  --font-normal:   400;
  --font-medium:   500;
  --font-semibold: 600;
  --font-bold:     700;
  --font-extrabold:800;

  /* ---- Spacing ---- */
  --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;

  /* ---- Layout ---- */
  --max-width:      1200px;
  --nav-height:     72px;
  --section-padding: var(--space-20) var(--space-6);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================
   Dark Theme Override
   ================================================ */
[data-theme="dark"] {
  --bg-primary:    #0f172a;
  --bg-secondary:  #1e293b;
  --bg-tertiary:   #334155;
  --bg-card:       #1e293b;
  --bg-card-hover: #334155;
  --bg-nav:        rgba(15, 23, 42, 0.9);
  --bg-hero:       linear-gradient(135deg, #0f172a 0%, #0d2137 50%, #071525 100%);
  --bg-hero-glow:  radial-gradient(ellipse at 60% 40%, rgba(45, 212, 191, 0.12) 0%, transparent 70%);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary:  #64748b;
  --text-inverse:   #0f172a;

  --border-color:       #334155;
  --border-color-subtle:#1e293b;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.25);

  --glass-bg:     rgba(30, 41, 59, 0.7);
  --glass-border: rgba(51, 65, 85, 0.5);

  --card-free-bg:    #1e293b;
  --card-free-border:#334155;
  --card-premium-glow: 0 0 40px rgba(20, 184, 166, 0.4), 0 0 80px rgba(20, 184, 166, 0.15);
}

/* Auto dark theme from OS preference (only if no manual toggle) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg-primary:    #0f172a;
    --bg-secondary:  #1e293b;
    --bg-tertiary:   #334155;
    --bg-card:       #1e293b;
    --bg-card-hover: #334155;
    --bg-nav:        rgba(15, 23, 42, 0.9);
    --bg-hero:       linear-gradient(135deg, #0f172a 0%, #0d2137 50%, #071525 100%);
    --bg-hero-glow:  radial-gradient(ellipse at 60% 40%, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary:  #64748b;
    --text-inverse:   #0f172a;
    --border-color:       #334155;
    --border-color-subtle:#1e293b;
    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.25);
    --glass-bg:     rgba(30, 41, 59, 0.7);
    --glass-border: rgba(51, 65, 85, 0.5);
    --card-free-bg:    #1e293b;
    --card-free-border:#334155;
    --card-premium-glow: 0 0 40px rgba(20, 184, 166, 0.4), 0 0 80px rgba(20, 184, 166, 0.15);
  }
}
