/**
 * SKILLORBIT Academy — Design Tokens
 * Brand: green-led premium EdTech (not purple, not cream/terracotta)
 */

:root {
  /* ——— Brand colors ——— */
  --primary: #36A84A;
  --deep: #168238;
  --dark-green: #0D4D2B;
  --near-black: #101514;
  --white: #FFFFFF;
  --bg-light: #F6FAF7;
  --muted: #667085;
  --border: #DDE7E0;

  /* Extended palette */
  --primary-soft: #76D66A;
  --primary-lighter: #E8F7EB;
  --primary-mid: #4BC55C;
  --deep-hover: #127030;
  --accent-lime: #A8E89A;
  --danger: #D92D20;
  --warning: #F79009;
  --success: #039855;
  --info: #2E90FA;

  /* Surfaces */
  --bg: var(--bg-light);
  --surface: var(--white);
  --surface-elevated: var(--white);
  --surface-muted: #EEF5F0;
  --text: var(--near-black);
  --text-secondary: #344054;
  --text-muted: var(--muted);
  --text-inverse: var(--white);
  --overlay: rgba(16, 21, 20, 0.55);
  --overlay-heavy: rgba(6, 26, 16, 0.72);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #168238 0%, #36A84A 50%, #76D66A 100%);
  /* Brand green panels (footer, CTAs) — not near-black */
  --gradient-hero-dark: linear-gradient(145deg, #145A30 0%, #168238 48%, #2F9F4C 100%);
  /* Soft light media for course / icon cards */
  --gradient-card-media: linear-gradient(155deg, #EAF8EE 0%, #D5F0DC 45%, #BFE8C9 100%);
  /* Footer — vivid multi-stop brand wash */
  --gradient-footer: linear-gradient(
    135deg,
    #0F4A28 0%,
    #168238 28%,
    #1FA04A 58%,
    #36A84A 82%,
    #5BC86A 100%
  );
  --gradient-soft: linear-gradient(180deg, #F6FAF7 0%, #E8F7EB 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(54, 168, 74, 0.28) 0%, transparent 70%);
  --gradient-mesh: radial-gradient(at 20% 20%, rgba(54, 168, 74, 0.12) 0%, transparent 50%),
    radial-gradient(at 80% 10%, rgba(22, 130, 56, 0.1) 0%, transparent 45%),
    radial-gradient(at 60% 80%, rgba(118, 214, 106, 0.08) 0%, transparent 50%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: 16px;
  --glass-dark-bg: rgba(13, 36, 23, 0.65);
  --glass-dark-border: rgba(54, 168, 74, 0.22);

  /* Glow */
  --glow-green: 0 0 24px rgba(54, 168, 74, 0.35);
  --glow-green-soft: 0 0 40px rgba(54, 168, 74, 0.18);
  --glow-primary: 0 8px 28px rgba(54, 168, 74, 0.28);

  /* Typography */
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md: 1.125rem;     /* 18px */
  --fs-lg: 1.25rem;      /* 20px */
  --fs-xl: 1.5rem;       /* 24px */
  --fs-2xl: 1.875rem;    /* 30px */
  --fs-3xl: 2.25rem;     /* 36px */
  --fs-4xl: 3rem;        /* 48px */
  --fs-5xl: 3.75rem;     /* 60px */
  --fs-hero: clamp(2.25rem, 5vw, 3.75rem);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --tracking-tight: -0.03em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;

  /* Spacing — 8px scale */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 2.5rem;    /* 40px */
  --space-8: 3rem;      /* 48px */
  --space-9: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-11: 6rem;     /* 96px */
  --space-12: 8rem;     /* 128px */

  --section-py: clamp(3.5rem, 8vw, 6rem);
  --section-py-sm: clamp(2.5rem, 5vw, 4rem);

  /* Layout */
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1200px;
  --container-xl: 1280px;
  --container-pad: clamp(1rem, 4vw, 1.5rem);
  --header-h: 72px;
  --announce-h: 40px;
  --sticky-cta-h: 64px;
  --sidebar-w: 280px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;
  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-input: 12px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 21, 20, 0.04);
  --shadow-sm: 0 2px 8px rgba(16, 21, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 21, 20, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 21, 20, 0.1);
  --shadow-xl: 0 24px 56px rgba(16, 21, 20, 0.12);
  --shadow-card: 0 4px 20px rgba(13, 77, 43, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(13, 77, 43, 0.14);
  --shadow-btn: 0 4px 14px rgba(54, 168, 74, 0.32);
  --shadow-focus: 0 0 0 3px rgba(54, 168, 74, 0.35);
  --shadow-inset: inset 0 1px 2px rgba(16, 21, 20, 0.06);

  /* Borders */
  --border-w: 1px;
  --border-color: var(--border);
  --border-strong: #C5D5CA;
  --border-focus: var(--primary);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 700ms;
  --transition: all var(--duration) var(--ease-out);
  --transition-fast: all var(--duration-fast) var(--ease-out);
  --transition-colors: color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-announce: 310;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-cookie: 650;
  --z-cursor: 9998;
  --z-skip: 9999;

  /* Forms */
  --input-h: 48px;
  --input-h-sm: 40px;
  --input-h-lg: 56px;

  /* Buttons */
  --btn-h: 48px;
  --btn-h-sm: 40px;
  --btn-h-lg: 56px;
  --btn-px: 1.5rem;
  --btn-radius: 12px;

  /* Custom cursor */
  --cursor-size: 12px;
  --cursor-size-hover: 40px;
}

/* ——— Dark theme ——— */
/* Dark theme disabled — site is light-only */
[data-theme="dark"] {
  --bg: #FFFFFF;
  --bg-light: #F6FAF7;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-muted: #F0F7F2;
  --text: #101514;
  --text-secondary: #3D4A43;
  --text-muted: #667085;
  --text-inverse: #FFFFFF;
  --near-black: #101514;
  --white: #FFFFFF;
  --border: #DDE7E0;
  --border-strong: #C5D5CA;
  --border-color: #DDE7E0;
  --overlay: rgba(16, 21, 20, 0.45);
  --overlay-heavy: rgba(16, 21, 20, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(221, 231, 224, 0.9);
  --glass-dark-bg: rgba(255, 255, 255, 0.78);
  --glass-dark-border: rgba(54, 168, 74, 0.18);
  --primary-lighter: rgba(54, 168, 74, 0.12);
  color-scheme: light;
}

/* ——— Semantic aliases ——— */
:root {
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-primary: var(--primary);
  --color-link: var(--deep);
  --color-link-hover: var(--primary);
}
