/* =========================================================
   TEK-STYLES.CSS - Tekion Academy Demo
   Light theme with Tekion branding
   ========================================================= */

/* -------------------------
   CSS VARIABLES
   ------------------------- */

:root {
  /* Tekion Brand Colors - Light Theme */
  --tek-bg-primary: #FFFFFF;
  --tek-bg-secondary: #F8FAFC;
  --tek-bg-tertiary: #F1F5F9;
  --tek-bg-card: #FFFFFF;
  
  --tek-accent-primary: #0066CC;
  --tek-accent-secondary: #0052A3;
  --tek-accent-light: #E6F0FA;
  --tek-accent-glow: rgba(0, 102, 204, 0.08);
  
  --tek-coral: #FF6B4A;
  --tek-coral-light: rgba(255, 107, 74, 0.1);
  
  --tek-teal: #00B8A9;
  --tek-teal-light: rgba(0, 184, 169, 0.1);
  
  --tek-text-primary: #1A202C;
  --tek-text-secondary: #4A5568;
  --tek-text-muted: #718096;
  
  --tek-border: #E2E8F0;
  --tek-border-hover: #CBD5E0;
  
  --tek-success: #10B981;
  --tek-warning: #F59E0B;
  --tek-error: #EF4444;
  
  /* Typography */
  --font-display: 'DM Sans', 'SF Pro Display', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* -------------------------
   RESET & BASE
   ------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--tek-bg-secondary);
  color: var(--tek-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--tek-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--tek-accent-secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--tek-text-primary);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* -------------------------
   UTILITIES
   ------------------------- */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: 900px;
}

.hidden {
  display: none !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--tek-accent-primary), var(--tek-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------------
   NAVIGATION BAR
   ------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tek-border);
  padding: var(--space-md) 0;
}

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

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tek-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--tek-accent-primary), var(--tek-teal));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  color: var(--tek-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tek-accent-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--tek-accent-primary);
}

.nav__link.active::after,
.nav__link:hover::after {
  width: 100%;
}

.nav__back {
  color: var(--tek-text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--transition-fast);
}

.nav__back:hover {
  color: var(--tek-accent-primary);
}

/* -------------------------
   HERO SECTION
   ------------------------- */

.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background: linear-gradient(180deg, var(--tek-bg-primary) 0%, var(--tek-bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at center, var(--tek-accent-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--tek-accent-light);
  border: 1px solid rgba(0, 102, 204, 0.2);
  padding: var(--space-sm) var(--space-md);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--tek-accent-primary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--tek-accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.1s both;
  position: relative;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--tek-text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------
   BUTTONS
   ------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: var(--tek-accent-primary);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 20px rgba(0, 102, 204, 0.25);
}

.btn--primary:hover {
  background: var(--tek-accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(0, 102, 204, 0.35);
  color: white;
}

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

.btn--secondary:hover {
  background: var(--tek-bg-tertiary);
  border-color: var(--tek-border-hover);
  color: var(--tek-text-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--tek-accent-primary);
  border: 1px solid var(--tek-accent-primary);
}

.btn--ghost:hover {
  background: var(--tek-accent-light);
  color: var(--tek-accent-primary);
}

.btn__icon {
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* -------------------------
   CARDS
   ------------------------- */

.card {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

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

.card--clickable {
  cursor: pointer;
}

.card--highlight {
  border-color: var(--tek-accent-primary);
  background: linear-gradient(135deg, var(--tek-bg-card), var(--tek-accent-light));
}

.card--coral {
  border-color: var(--tek-coral);
  background: linear-gradient(135deg, var(--tek-bg-card), var(--tek-coral-light));
}

.card--teal {
  border-color: var(--tek-teal);
  background: linear-gradient(135deg, var(--tek-bg-card), var(--tek-teal-light));
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--tek-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.card__icon--coral {
  background: var(--tek-coral-light);
}

.card__icon--teal {
  background: var(--tek-teal-light);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--tek-text-primary);
}

.card__description {
  color: var(--tek-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--tek-border);
  font-size: 0.85rem;
  color: var(--tek-text-muted);
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--tek-bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tek-accent-primary);
  font-weight: 600;
}

/* -------------------------
   GRID LAYOUTS
   ------------------------- */

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   SECTIONS
   ------------------------- */

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

.section--alt {
  background: var(--tek-bg-primary);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tek-accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.section__description {
  color: var(--tek-text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* -------------------------
   COMPARISON LAYOUT
   ------------------------- */

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.comparison__side {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.comparison__side--before {
  opacity: 0.85;
}

.comparison__side--after {
  border-color: var(--tek-accent-primary);
  box-shadow: var(--shadow-lg), 0 0 40px var(--tek-accent-glow);
}

.comparison__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.comparison__arrow {
  font-size: 2rem;
  color: var(--tek-accent-primary);
}

.comparison__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tek-text-muted);
}

.comparison__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comparison__list {
  list-style: none;
}

.comparison__list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--tek-text-secondary);
  font-size: 0.9rem;
}

.comparison__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tek-text-muted);
}

.comparison__side--after .comparison__list li::before {
  background: var(--tek-accent-primary);
}

@media (max-width: 900px) {
  .comparison {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .comparison__divider {
    flex-direction: row;
    padding: var(--space-md) 0;
  }
  
  .comparison__label {
    writing-mode: horizontal-tb;
  }
  
  .comparison__arrow {
    transform: rotate(90deg);
  }
}

/* -------------------------
   PILLARS / FEATURES GRID
   ------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.pillar {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tek-accent-primary), var(--tek-coral));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.pillar:hover {
  border-color: var(--tek-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--tek-accent-primary);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.pillar__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.pillar__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.pillar__description {
  color: var(--tek-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   STATS ROW
   ------------------------- */

.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  background: var(--tek-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tek-accent-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--tek-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: var(--space-xl);
  }
}

/* -------------------------
   DASHBOARD LAYOUT
   ------------------------- */

.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--tek-bg-secondary);
}

.dashboard__sidebar {
  background: var(--tek-bg-primary);
  border-right: 1px solid var(--tek-border);
  padding: var(--space-lg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dashboard__main {
  padding: var(--space-xl);
  overflow-y: auto;
}

.dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--tek-border);
}

.dashboard__title {
  font-size: 1.5rem;
}

/* Sidebar Navigation */
.sidebar-nav__section {
  margin-bottom: var(--space-xl);
}

.sidebar-nav__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tek-text-muted);
  margin-bottom: var(--space-sm);
  padding: 0 var(--space-sm);
}

.sidebar-nav__list {
  list-style: none;
}

.sidebar-nav__item {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--tek-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 2px;
}

.sidebar-nav__item:hover {
  background: var(--tek-bg-tertiary);
  color: var(--tek-text-primary);
}

.sidebar-nav__item.active {
  background: var(--tek-accent-light);
  color: var(--tek-accent-primary);
  font-weight: 500;
}

.sidebar-nav__icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Role Selector */
.role-selector {
  background: var(--tek-bg-tertiary);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
}

.role-selector__label {
  font-size: 0.75rem;
  color: var(--tek-text-muted);
  margin-bottom: var(--space-sm);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.role-selector__dropdown {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-sm);
  color: var(--tek-text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.role-selector__dropdown:focus {
  outline: none;
  border-color: var(--tek-accent-primary);
  box-shadow: 0 0 0 3px var(--tek-accent-glow);
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .dashboard__sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--tek-border);
  }
  
  .sidebar-nav__list {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
  }
  
  .sidebar-nav__item {
    white-space: nowrap;
  }
}

/* -------------------------
   LEARNING CARDS
   ------------------------- */

.learning-card {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.learning-card:hover {
  border-color: var(--tek-accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.learning-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--tek-accent-light);
  border: 1px solid rgba(0, 102, 204, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--tek-accent-primary);
}

.learning-card__badge--completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--tek-success);
}

.learning-card__badge--in-progress {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--tek-warning);
}

.learning-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.learning-card__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.learning-card__description {
  color: var(--tek-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.learning-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--tek-text-muted);
}

.learning-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Progress Bar */
.progress {
  height: 4px;
  background: var(--tek-bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-md);
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tek-accent-primary), var(--tek-teal));
  border-radius: 2px;
  transition: width var(--transition-slow);
}

/* -------------------------
   AI COACH
   ------------------------- */

.ai-coach {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  max-height: 700px;
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ai-coach__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--tek-border);
  background: var(--tek-bg-tertiary);
}

.ai-coach__avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--tek-accent-primary), var(--tek-teal));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.ai-coach__title {
  font-size: 1rem;
  font-weight: 600;
}

.ai-coach__subtitle {
  font-size: 0.8rem;
  color: var(--tek-text-muted);
}

.ai-coach__status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--tek-success);
}

.ai-coach__status-dot {
  width: 8px;
  height: 8px;
  background: var(--tek-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.ai-coach__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ai-coach__message {
  max-width: 80%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease-out;
}

.ai-coach__message--ai {
  background: var(--tek-bg-tertiary);
  border: 1px solid var(--tek-border);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.ai-coach__message--user {
  background: var(--tek-accent-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

.ai-coach__input-area {
  padding: var(--space-lg);
  border-top: 1px solid var(--tek-border);
  background: var(--tek-bg-tertiary);
}

.ai-coach__input-wrapper {
  display: flex;
  gap: var(--space-sm);
}

.ai-coach__input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-md);
  color: var(--tek-text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.ai-coach__input::placeholder {
  color: var(--tek-text-muted);
}

.ai-coach__input:focus {
  outline: none;
  border-color: var(--tek-accent-primary);
  box-shadow: 0 0 0 3px var(--tek-accent-glow);
}

.ai-coach__send {
  padding: var(--space-md) var(--space-lg);
  background: var(--tek-accent-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.ai-coach__send:hover {
  background: var(--tek-accent-secondary);
}

/* Prompt Starters */
.prompt-starters {
  margin-top: var(--space-md);
}

.prompt-starters__label {
  font-size: 0.75rem;
  color: var(--tek-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.prompt-starters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.prompt-starter {
  padding: var(--space-sm) var(--space-md);
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--tek-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.prompt-starter:hover {
  border-color: var(--tek-accent-primary);
  color: var(--tek-accent-primary);
  background: var(--tek-accent-light);
}

/* -------------------------
   CONTENT LAB
   ------------------------- */

.content-lab {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.content-lab__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.content-lab__title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.content-lab__flow {
  display: grid;
  grid-template-columns: 1fr auto 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.content-lab__source {
  background: var(--tek-bg-tertiary);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.content-lab__source-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.content-lab__source-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.content-lab__source-meta {
  font-size: 0.8rem;
  color: var(--tek-text-muted);
}

.content-lab__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding-top: var(--space-xl);
}

.content-lab__arrow-icon {
  font-size: 1.5rem;
  color: var(--tek-accent-primary);
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(5px); opacity: 0.7; }
}

.content-lab__arrow-label {
  font-size: 0.7rem;
  color: var(--tek-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.content-lab__outputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.content-output {
  background: var(--tek-bg-tertiary);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.content-output:hover {
  border-color: var(--tek-accent-primary);
  background: var(--tek-accent-light);
}

.content-output__icon {
  width: 44px;
  height: 44px;
  background: var(--tek-bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.content-output__info {
  flex: 1;
  min-width: 0;
}

.content-output__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.content-output__meta {
  font-size: 0.75rem;
  color: var(--tek-text-muted);
}

.content-output__status {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--tek-success);
  font-weight: 500;
}

@media (max-width: 900px) {
  .content-lab__flow {
    grid-template-columns: 1fr;
  }
  
  .content-lab__arrow {
    flex-direction: row;
    padding: var(--space-md) 0;
  }
  
  .content-lab__arrow-icon {
    transform: rotate(90deg);
  }
}

/* -------------------------
   METRICS CARDS
   ------------------------- */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.metric-card {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.metric-card__label {
  font-size: 0.8rem;
  color: var(--tek-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.metric-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--tek-text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric-card__value--accent {
  color: var(--tek-accent-primary);
}

.metric-card__change {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--tek-text-muted);
}

.metric-card__change--positive {
  color: var(--tek-success);
}

.metric-card__change--negative {
  color: var(--tek-error);
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   ARCHITECTURE DIAGRAM
   ------------------------- */

.system-diagram {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.system-diagram__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--tek-text-muted);
}

.system-layers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.system-layer {
  position: relative;
}

.system-layer__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.system-layer__badge {
  padding: var(--space-xs) var(--space-md);
  background: var(--tek-accent-light);
  border: 1px solid rgba(0, 102, 204, 0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tek-accent-primary);
}

.system-layer__badge--coral {
  background: var(--tek-coral-light);
  border-color: rgba(255, 107, 74, 0.3);
  color: var(--tek-coral);
}

.system-layer__badge--teal {
  background: var(--tek-teal-light);
  border-color: rgba(0, 184, 169, 0.3);
  color: var(--tek-teal);
}

.system-layer__title {
  font-size: 0.85rem;
  color: var(--tek-text-secondary);
}

.system-layer__nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.system-node {
  background: var(--tek-bg-tertiary);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}

.system-node:hover {
  border-color: var(--tek-accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.system-node__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.system-node__title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.system-node__subtitle {
  font-size: 0.7rem;
  color: var(--tek-text-muted);
}

/* Flow Arrows */
.flow-arrow {
  display: flex;
  justify-content: center;
  padding: var(--space-md) 0;
}

.flow-arrow__icon {
  font-size: 1.5rem;
  color: var(--tek-accent-primary);
  animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(4px); }
}

/* -------------------------
   ROLE JOURNEY
   ------------------------- */

.role-journeys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.role-journey {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.role-journey__header {
  padding: var(--space-lg);
  background: var(--tek-bg-tertiary);
  border-bottom: 1px solid var(--tek-border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.role-journey__icon {
  width: 44px;
  height: 44px;
  background: var(--tek-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.role-journey__title {
  font-size: 1rem;
  font-weight: 600;
}

.role-journey__subtitle {
  font-size: 0.8rem;
  color: var(--tek-text-muted);
}

.role-journey__steps {
  padding: var(--space-lg);
}

.journey-step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  position: relative;
}

.journey-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -8px;
  width: 2px;
  background: var(--tek-border);
}

.journey-step__marker {
  width: 24px;
  height: 24px;
  background: var(--tek-bg-tertiary);
  border: 2px solid var(--tek-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.journey-step--active .journey-step__marker {
  background: var(--tek-accent-primary);
  border-color: var(--tek-accent-primary);
  color: white;
}

.journey-step__content {
  flex: 1;
  padding-bottom: var(--space-sm);
}

.journey-step__title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.journey-step__meta {
  font-size: 0.75rem;
  color: var(--tek-text-muted);
}

/* -------------------------
   TIMELINE
   ------------------------- */

.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--tek-accent-primary), var(--tek-teal));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 5px);
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--tek-accent-primary);
  border-radius: 50%;
  border: 3px solid var(--tek-bg-secondary);
}

.timeline__phase {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tek-accent-primary);
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.timeline__description {
  color: var(--tek-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.timeline__deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.timeline__deliverable {
  padding: var(--space-xs) var(--space-sm);
  background: var(--tek-bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--tek-text-secondary);
}

/* -------------------------
   COURSE PLAYER
   ------------------------- */

.course-player {
  background: var(--tek-bg-card);
  border: 1px solid var(--tek-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.course-player__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--tek-border);
  background: var(--tek-bg-tertiary);
}

.course-player__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.course-player__meta {
  font-size: 0.85rem;
  color: var(--tek-text-muted);
}

.course-player__progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.course-player__progress-bar {
  flex: 1;
  height: 6px;
  background: var(--tek-bg-primary);
  border-radius: 3px;
  overflow: hidden;
}

.course-player__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tek-accent-primary), var(--tek-teal));
  transition: width var(--transition-slow);
}

.course-player__progress-text {
  font-size: 0.8rem;
  color: var(--tek-text-muted);
  white-space: nowrap;
}

.course-player__content {
  padding: var(--space-xl);
}

.course-player__module-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--tek-accent-primary);
}

.course-player__module-body {
  color: var(--tek-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.course-player__actions {
  display: flex;
  gap: var(--space-md);
}

/* -------------------------
   FOOTER
   ------------------------- */

.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--tek-border);
  text-align: center;
  background: var(--tek-bg-primary);
}

.footer__content {
  max-width: 600px;
  margin: 0 auto;
}

.footer__text {
  color: var(--tek-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
}

.footer__link {
  color: var(--tek-text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--tek-accent-primary);
}

/* -------------------------
   ANIMATIONS
   ------------------------- */

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-out both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animations for lists */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.15s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.25s; }
.stagger > *:nth-child(5) { animation-delay: 0.3s; }
.stagger > *:nth-child(6) { animation-delay: 0.35s; }

/* -------------------------
   RESPONSIVE UTILITIES
   ------------------------- */

@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1.1rem;
  }
  
  .nav__links {
    display: none;
  }
}

/* -------------------------
   PRINT STYLES
   ------------------------- */

@media print {
  .nav,
  .footer,
  .btn {
    display: none;
  }
  
  .card,
  .pillar,
  .learning-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* -------------------------
   ACCESSIBILITY
   ------------------------- */

:focus-visible {
  outline: 2px solid var(--tek-accent-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
