/* FreeToolzHub — Color tokens
   Brand: clean, premium, trustworthy. Blue-led with sky + teal accents. */

:root {
  /* ---- Brand scales ---- */
  /* Primary — Modern Blue */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;  /* primary */
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;

  /* Secondary — Sky Blue */
  --sky-50:  #F0F9FF;
  --sky-100: #E0F2FE;
  --sky-300: #7DD3FC;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;  /* secondary */
  --sky-600: #0284C7;

  /* Accent — Teal */
  --teal-50:  #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;  /* accent */
  --teal-600: #0D9488;

  /* ---- Semantic status ---- */
  --green-50:  #F0FDF4;
  --green-500: #22C55E;  /* success */
  --green-600: #16A34A;
  --amber-50:  #FFFBEB;
  --amber-500: #F59E0B;  /* warning */
  --amber-600: #D97706;
  --red-50:    #FEF2F2;
  --red-500:   #EF4444;  /* error / danger */
  --red-600:   #DC2626;

  /* ---- Neutrals (slate) ---- */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E5E7EB;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --white: #FFFFFF;

  /* ---- Semantic aliases (LIGHT, default) ---- */
  --color-primary:        var(--blue-600);
  --color-primary-hover:  var(--blue-700);
  --color-secondary:      var(--sky-500);
  --color-accent:         var(--teal-500);
  --color-success:        var(--green-500);
  --color-warning:        var(--amber-500);
  --color-error:          var(--red-500);

  --bg-page:       var(--slate-50);
  --bg-card:       var(--white);
  --bg-subtle:     var(--slate-100);
  --bg-inset:      var(--slate-50);
  --border-color:  var(--slate-200);
  --border-strong: var(--slate-300);

  --text-strong:   var(--slate-900);
  --text-body:     var(--slate-700);
  --text-muted:    var(--slate-500);
  --text-faint:    var(--slate-400);
  --text-on-brand: var(--white);
  --text-link:     var(--blue-600);

  /* Signature gradients */
  --gradient-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--sky-500) 100%);
  --gradient-brand-hover: linear-gradient(135deg, var(--blue-500) 0%, var(--sky-400) 100%);
  --gradient-accent: linear-gradient(135deg, var(--sky-500) 0%, var(--teal-500) 100%);
  --gradient-hero: linear-gradient(160deg, #EFF6FF 0%, #F0F9FF 45%, #F0FDFA 100%); /* @kind color */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
}

/* ---- Semantic aliases (DARK) ---- */
[data-theme="dark"] {
  --color-primary:        var(--blue-500);
  --color-primary-hover:  var(--blue-400);
  --color-secondary:      var(--sky-400);
  --color-accent:         var(--teal-400);

  --bg-page:       var(--slate-900);
  --bg-card:       var(--slate-800);
  --bg-subtle:     #243049;
  --bg-inset:      #182236;
  --border-color:  var(--slate-700);
  --border-strong: #41506b;

  --text-strong:   #F1F5F9;
  --text-body:     #CBD5E1;
  --text-muted:    #94A3B8;
  --text-faint:    #64748B;
  --text-link:     var(--sky-400);

  --gradient-hero: linear-gradient(160deg, #0F172A 0%, #0c1a33 50%, #0c2230 100%); /* @kind color */
  --glass-bg: rgba(30, 41, 59, 0.66);
  --glass-border: rgba(148, 163, 184, 0.18);
}

/* FreeToolzHub — Typography tokens */

:root {
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale (rem assumes 16px root) */
  --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:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */

  /* Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extra:    800;

  /* Line heights */
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-caps:   0.08em;  /* eyebrow / all-caps labels */
}

/* FreeToolzHub — Spacing & layout tokens
   4px base unit. Generous whitespace is a brand value. */

:root {
  --space-0:  0;
  --space-1:  0.25rem;  /* 4 */
  --space-2:  0.5rem;   /* 8 */
  --space-3:  0.75rem;  /* 12 */
  --space-4:  1rem;     /* 16 */
  --space-5:  1.25rem;  /* 20 */
  --space-6:  1.5rem;   /* 24 */
  --space-8:  2rem;     /* 32 */
  --space-10: 2.5rem;   /* 40 */
  --space-12: 3rem;     /* 48 */
  --space-16: 4rem;     /* 64 */
  --space-20: 5rem;     /* 80 */
  --space-24: 6rem;     /* 96 */

  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;

  /* Section rhythm */
  --section-y: 5rem;     /* vertical padding between marketing sections */
  --gutter:    1.5rem;   /* page side gutter */
}

/* FreeToolzHub — Radii, shadows, blur & motion tokens */

:root {
  /* ---- Corner radii ---- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   12px;   /* buttons, inputs */
  --radius-xl:   16px;   /* cards */
  --radius-2xl:  20px;   /* feature cards, modals */
  --radius-3xl:  28px;
  --radius-full: 9999px; /* pills, avatars */

  /* ---- Soft shadow system (cool, blue-tinted) ---- */
  --shadow-xs:  0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:  0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:  0 12px 28px rgba(15, 23, 42, 0.10), 0 4px 10px rgba(15, 23, 42, 0.05);
  --shadow-xl:  0 24px 48px rgba(15, 23, 42, 0.14), 0 8px 16px rgba(15, 23, 42, 0.06);

  /* Brand-tinted glow — used on primary CTAs and active dropzones */
  --shadow-brand:      0 8px 24px rgba(37, 99, 235, 0.32);
  --shadow-brand-soft: 0 4px 14px rgba(37, 99, 235, 0.22);
  --glow-accent:       0 0 0 4px rgba(20, 184, 166, 0.18);
  --glow-focus:        0 0 0 4px rgba(37, 99, 235, 0.20);

  /* ---- Glass / blur ---- */
  --blur-sm:  blur(6px);   /* @kind other */
  --blur-md:  blur(12px);  /* @kind other */
  --blur-lg:  blur(20px);  /* @kind other */

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);    /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);   /* @kind other */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast:   0.15s;  /* @kind other */
  --dur-base:   0.2s;   /* @kind other */
  --dur-slow:   0.3s;   /* @kind other */
  --lift-hover: -6px;  /* cards lift on hover */
  --lift-press: 1px;
}

[data-theme="dark"] {
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg:  0 12px 28px rgba(0, 0, 0, 0.55);
  --shadow-xl:  0 24px 48px rgba(0, 0, 0, 0.6);
  --shadow-brand:      0 8px 24px rgba(59, 130, 246, 0.4);
  --shadow-brand-soft: 0 4px 14px rgba(59, 130, 246, 0.3);
}
