/* I Am Work Ready — Design System
   Version: 1.0.0
   Based on: DESIGN-BRIEF.md (Modern EdTech)
*/

/* ========================================
   Custom Properties (Light Mode Default)
   ======================================== */
:root {
  /* ---- Colors: Primary (Indigo) ---- */
  --color-primary-50: #EEF2FF;
  --color-primary-100: #E0E7FF;
  --color-primary-200: #C7D2FE;
  --color-primary-300: #A5B4FC;
  --color-primary-400: #818CF8;
  --color-primary-500: #6366F1;
  --color-primary-600: #4F46E5;
  --color-primary-700: #4338CA;
  --color-primary-800: #3730A3;
  --color-primary-900: #312E81;

  /* ---- Colors: Secondary (Teal) ---- */
  --color-secondary-500: #14B8A6;
  --color-secondary-600: #0D9488;

  /* ---- Colors: Accent (Amber) ---- */
  --color-accent-400: #FBBF24;
  --color-accent-500: #F59E0B;

  /* ---- Backgrounds ---- */
  --bg-base: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-muted: #F1F5F9;

  /* ---- Surfaces ---- */
  --surface-1: #FFFFFF;
  --surface-2: #F8FAFC;

  /* ---- Text ---- */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-tertiary: #64748B;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* ---- Borders ---- */
  --border-default: #E2E8F0;
  --border-muted: #F1F5F9;

  /* ---- Semantic ---- */
  --success-500: #22C55E;
  --warning-500: #F59E0B;
  --error-500: #EF4444;

  /* ---- Gradients ---- */
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #7C3AED 100%);
  --gradient-primary-hover: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #8B5CF6 100%);

  /* ---- Typography ---- */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --text-display: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  --text-h1: clamp(2rem, 4vw + 0.5rem, 2.75rem);
  --text-h2: clamp(1.5rem, 3vw + 0.5rem, 2rem);
  --text-h3: 1.5rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-body-sm: 0.875rem;
  --text-caption: 0.75rem;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ---- Border Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  /* ---- Transitions ---- */
  --duration-fast: 100ms;
  --duration-normal: 150ms;
  --duration-slow: 200ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* ---- Layout ---- */
  --max-width-content: 1200px;
  --container-padding: var(--space-6);
}

/* ========================================
   Dark Mode
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary-500: #818CF8;
    --color-primary-600: #A5B4FC;

    --bg-base: #09090b;
    --bg-subtle: #18181b;
    --bg-muted: #27272a;

    --surface-1: #18181b;
    --surface-2: #27272a;

    --text-primary: #FAFAFA;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-muted: #71717A;
    --text-inverse: #09090B;

    --border-default: #3f3f46;
    --border-muted: #27272a;

    --gradient-primary: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #A78BFA 100%);
    --gradient-primary-hover: linear-gradient(135deg, #A5B4FC 0%, #818CF8 50%, #C4B5FD 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  }
}

[data-theme="dark"] {
  --color-primary-500: #818CF8;
  --color-primary-600: #A5B4FC;
  --bg-base: #09090b;
  --bg-subtle: #18181b;
  --bg-muted: #27272a;
  --surface-1: #18181b;
  --surface-2: #27272a;
  --text-primary: #FAFAFA;
  --text-secondary: #E4E4E7;
  --text-tertiary: #A1A1AA;
  --text-muted: #71717A;
  --text-inverse: #09090B;
  --border-default: #3f3f46;
  --border-muted: #27272a;
  --gradient-primary: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #A78BFA 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-display { font-size: var(--text-display); }
h1, .text-h1 { font-size: var(--text-h1); }
h2, .text-h2 { font-size: var(--text-h2); }
h3, .text-h3 { font-size: var(--text-h3); }

.text-body-lg { font-size: var(--text-body-lg); }
.text-body-sm { font-size: var(--text-body-sm); }
.text-caption { font-size: var(--text-caption); }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-20) 0;
}

.section--subtle {
  background-color: var(--bg-subtle);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(99, 102, 241, 0);
}

.btn--primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn--secondary {
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn--secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--color-primary-500);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-body-lg);
  border-radius: var(--radius-xl);
}

.btn--white {
  background: white;
  color: var(--color-primary-600);
}

.btn--white:hover {
  background: var(--bg-subtle);
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-200);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.card__icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.card__title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

.card__text {
  color: var(--text-tertiary);
  font-size: var(--text-body-sm);
}

/* ========================================
   Header
   ======================================== */
.header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.logo__gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: var(--space-16) 0 var(--space-20);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__title {
  font-size: var(--text-display);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.hero__bullets {
  list-style: none;
  margin-bottom: var(--space-8);
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
}

.hero__check {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* Mockup */
.mockup {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
}

.mockup__header {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.mockup__dot {
  width: 12px;
  height: 12px;
  background: var(--border-default);
  border-radius: var(--radius-full);
}

.mockup__content {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.mockup__module {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
}

.mockup__module:last-child {
  margin-bottom: 0;
}

.mockup__icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup__icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.mockup__text {
  font-weight: 600;
  font-size: var(--text-body-sm);
  flex: 1;
}

.mockup__check {
  color: var(--success-500);
  font-weight: 700;
}

/* ========================================
   Modules Grid
   ======================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.module-card {
  text-align: center;
}

.module-card__num {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 auto var(--space-3);
}

.module-card__title {
  font-size: var(--text-body-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.module-card__text {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ========================================
   Price Section
   ======================================== */
.price-card {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.price-card__title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

.price-card__sub {
  opacity: 0.8;
  margin: var(--space-3) 0 var(--space-6);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: var(--space-10) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-body-sm);
}

/* ========================================
   Theme Toggle
   ======================================== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-subtle);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .mockup {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: var(--space-4);
  }
  
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .price-card {
    padding: var(--space-8);
  }
  
  .price-card__amount {
    font-size: 3.5rem;
  }
}
