/* ============================================
   AI Governance & Ethics Academy
   Main Stylesheet - Professional Government Theme
   ============================================ */

/* --- CSS Variables for Theming --- */
:root {
    /* Primary Colors - Trustworthy Blues */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Secondary Colors - Professional Teals */
    --secondary-50: #f0fdfa;
    --secondary-100: #ccfbf1;
    --secondary-200: #99f6e4;
    --secondary-300: #5eead4;
    --secondary-400: #2dd4bf;
    --secondary-500: #14b8a6;
    --secondary-600: #0d9488;
    --secondary-700: #0f766e;
    --secondary-800: #115e59;
    --secondary-900: #134e4a;

    /* Accent Colors - Warm Orange for CTAs */
    --accent-400: #fb923c;
    --accent-500: #f97316;
    --accent-600: #ea580c;

    /* Success/Progress Green */
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;

    /* Warning Yellow */
    --warning-400: #facc15;
    --warning-500: #eab308;

    /* Error Red */
    --error-400: #f87171;
    --error-500: #ef4444;
    --error-600: #dc2626;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-card-hover: rgba(51, 65, 85, 0.9);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    /* Borders */
    --border-light: rgba(148, 163, 184, 0.2);
    --border-medium: rgba(148, 163, 184, 0.3);
    --border-accent: rgba(59, 130, 246, 0.5);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* 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;

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

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Source Sans Pro', var(--font-sans);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Professional Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

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

a:hover {
    color: var(--primary-300);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Layout --- */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* --- Header --- */
.main-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-400);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.main-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.main-nav a.active {
    color: var(--primary-400);
    background: rgba(59, 130, 246, 0.15);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-login {
    background: var(--primary-600);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-login:hover {
    background: var(--primary-500);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: var(--space-3xl) var(--space-xl);
    margin-bottom: var(--space-3xl);
    overflow: hidden;
}

/* Hero Background Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* 30% Transparency Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(30, 41, 59, 0.70) 50%,
        rgba(15, 23, 42, 0.75) 100%
    );
    z-index: 1;
}

/* Hero Content - Above Overlay */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

/* Slideshow Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot.active {
    background: white;
    border-color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-400);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-accent);
}

.hero-content h1 {
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-400);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero stats enhancement for overlay */
.hero .hero-stats {
    justify-content: center;
    margin-top: var(--space-xl);
}

.hero .stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Legacy illustration styles (can be removed if not used elsewhere) */
.hero-illustration {
    display: none;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.pulse-ring {
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; r: 30; }
    100% { opacity: 0; r: 60; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-accent {
    background: var(--accent-500);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-600);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    padding: var(--space-sm);
}

/* --- Section Styles --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* --- Features Section --- */
.features-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-light);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-400);
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* --- Course Preview Section --- */
.courses-preview-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-light);
}

.course-pathway {
    position: relative;
    padding: var(--space-xl) 0;
}

.pathway-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
    border-radius: var(--radius-full);
    transform: translateY(-50%);
    z-index: 0;
}

.pathway-courses {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.pathway-course {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.pathway-course:hover {
    transform: translateY(-8px);
}

.pathway-node {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-400);
    transition: all var(--transition-fast);
}

.pathway-course:hover .pathway-node {
    background: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-glow);
}

.pathway-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.pathway-level {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Trust Section --- */
.trust-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-light);
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
}

.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-500);
}

/* --- Course Teaser Videos --- */
.teasers-section {
    padding: var(--space-3xl) 0;
}

.teasers-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.teaser-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition-base);
}

.teaser-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.teaser-card:nth-child(even) {
    direction: rtl;
}

.teaser-card:nth-child(even) > * {
    direction: ltr;
}

/* Video frame */
.teaser-video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.teaser-screen {
    background: #1e1e2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.teaser-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #16161e;
}

.teaser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.teaser-dot.red { background: #ff5f57; }
.teaser-dot.yellow { background: #ffbd2e; }
.teaser-dot.green { background: #28c840; }

.teaser-topbar-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: #888;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.teaser-content {
    position: relative;
    min-height: 220px;
    padding: var(--space-lg);
    overflow: hidden;
}

.teaser-content h4 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

/* Slide system */
.teaser-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-lg);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.teaser-slide.teaser-slide-active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.teaser-slide-badge {
    display: inline-block;
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress bar */
.teaser-progress-bar {
    height: 3px;
    background: rgba(255,255,255,0.1);
}

.teaser-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    transition: width 0.3s linear;
}

.teaser-video.playing .teaser-progress-fill {
    animation: teaserProgress 12s linear infinite;
}

@keyframes teaserProgress {
    0% { width: 0%; }
    33% { width: 33%; }
    66% { width: 66%; }
    100% { width: 100%; }
}

/* Play button */
.teaser-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.teaser-play-btn svg {
    width: 100%;
    height: 100%;
}

.teaser-play-btn:hover {
    background: rgba(37,99,235,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.teaser-video.playing .teaser-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Teaser info panel */
.teaser-info {
    padding: var(--space-md);
}

.teaser-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tag-color, #3b82f6);
    border: 1.5px solid var(--tag-color, #3b82f6);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.teaser-info h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.teaser-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.teaser-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-light);
}

.teaser-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.teaser-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-400);
}

/* -- Course 1: AI Types diagram -- */
.teaser-ai-types {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-sm) 0;
}

.teaser-ai-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.72rem;
    font-weight: 500;
    color: #e2e8f0;
    text-align: center;
}
.teaser-ai-node svg { width: 28px; height: 28px; }
.teaser-ai-node.narrow { background: rgba(59,130,246,0.2); color: #60a5fa; }
.teaser-ai-node.ml { background: rgba(16,185,129,0.2); color: #34d399; }
.teaser-ai-node.gov { background: rgba(124,58,237,0.2); color: #a78bfa; }

.teaser-ai-connector {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}

/* -- Course 1: Principles -- */
.teaser-principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.teaser-principle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
    opacity: 0;
    animation: teaserFadeIn 0.4s ease forwards;
    animation-delay: calc(var(--delay) * 0.15s);
}

.teaser-slide-active .teaser-principle {
    opacity: 1;
}

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

.teaser-principle-icon {
    font-size: 1rem;
}

/* -- Course 1: Risk Matrix -- */
.teaser-risk-matrix {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.teaser-risk-axis-y {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teaser-risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
    max-width: 200px;
}

.teaser-risk-cell {
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.teaser-risk-cell.low { background: rgba(34,197,94,0.2); color: #4ade80; }
.teaser-risk-cell.medium { background: rgba(250,204,21,0.2); color: #facc15; }
.teaser-risk-cell.high { background: rgba(249,115,22,0.2); color: #fb923c; }
.teaser-risk-cell.critical { background: rgba(239,68,68,0.2); color: #f87171; }

.teaser-risk-axis-x {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -- Course 2: Bias bars -- */
.teaser-bias-demo { text-align: center; }

.teaser-bar-chart {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-sm) 0;
}

.teaser-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.teaser-bar-group > span {
    font-size: 0.7rem;
    color: #94a3b8;
}

.teaser-bar-group {
    height: 100px;
    position: relative;
}

.teaser-bar {
    width: 28px;
    height: var(--bar-height, 50%);
    background: var(--bar-color, #3b82f6);
    border-radius: 4px 4px 0 0;
    display: inline-block;
    vertical-align: bottom;
    opacity: 0.85;
}

.teaser-bias-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: var(--space-xs);
}

/* -- Course 2: XAI -- */
.teaser-xai { text-align: center; padding: var(--space-sm) 0; }

.teaser-xai-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.teaser-xai-label {
    padding: 8px 14px;
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.teaser-xai-model {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(59,130,246,0.3));
    color: #c4b5fd;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(124,58,237,0.3);
}

.teaser-xai-arrow {
    width: 20px;
    height: 2px;
    background: #475569;
    position: relative;
}
.teaser-xai-arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    border: 4px solid transparent;
    border-left-color: #475569;
}

.teaser-xai-explain {
    margin-top: var(--space-sm);
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
}

/* -- Course 2: Privacy -- */
.teaser-privacy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teaser-privacy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 8px;
    color: #6ee7b7;
    font-size: 0.82rem;
}

.teaser-lock-icon { font-size: 1rem; }

/* -- Course 3: Pyramid -- */
.teaser-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) 0;
}

.teaser-pyramid-level {
    padding: 6px 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.teaser-pyramid-level.unacceptable { width: 40%; background: rgba(239,68,68,0.25); color: #f87171; }
.teaser-pyramid-level.high-risk { width: 55%; background: rgba(249,115,22,0.25); color: #fb923c; }
.teaser-pyramid-level.limited { width: 70%; background: rgba(250,204,21,0.2); color: #fbbf24; }
.teaser-pyramid-level.minimal { width: 85%; background: rgba(34,197,94,0.2); color: #4ade80; }

/* -- Course 3: NIST ring -- */
.teaser-nist { text-align: center; padding: var(--space-sm) 0; }

.teaser-nist-ring {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-width: 220px;
    margin: 0 auto;
}

.teaser-nist-segment {
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: var(--seg-color);
    opacity: 0.85;
}

/* -- Course 3: Globe regions -- */
.teaser-globe {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.teaser-region {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.teaser-flag { font-size: 1.1rem; }

/* -- Course 4: Oversight flow -- */
.teaser-oversight { text-align: center; }

.teaser-oversight-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-sm) 0;
}

.teaser-flow-node {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}
.teaser-flow-node.ai { background: rgba(59,130,246,0.2); color: #60a5fa; }
.teaser-flow-node.human { background: rgba(250,204,21,0.2); color: #fbbf24; }
.teaser-flow-node.action { background: rgba(34,197,94,0.2); color: #4ade80; }

.teaser-flow-arrow {
    width: 16px;
    height: 2px;
    background: #475569;
    position: relative;
}
.teaser-flow-arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    border: 4px solid transparent;
    border-left-color: #475569;
}

.teaser-oversight-label {
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
}

/* -- Course 4: Dashboard -- */
.teaser-dashboard {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.teaser-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    min-width: 72px;
}

.teaser-metric.green-metric { background: rgba(34,197,94,0.15); }
.teaser-metric.yellow-metric { background: rgba(250,204,21,0.15); }

.teaser-metric-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.teaser-metric-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* -- Course 4: Incident -- */
.teaser-incident {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.teaser-incident-step {
    padding: 8px 14px;
    background: rgba(234,88,12,0.1);
    border-left: 3px solid rgba(234,88,12,0.5);
    color: #fdba74;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 0 6px 6px 0;
}

/* -- Course 5: Org chart -- */
.teaser-org {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) 0;
}

.teaser-org-node {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}
.teaser-org-node.board { background: rgba(220,38,38,0.2); color: #fca5a5; }
.teaser-org-node.committee { background: rgba(124,58,237,0.2); color: #c4b5fd; }
.teaser-org-node.team { background: rgba(59,130,246,0.2); color: #93c5fd; }

.teaser-org-line {
    width: 2px;
    height: 10px;
    background: #334155;
}

.teaser-org-row {
    display: flex;
    gap: var(--space-sm);
}

/* -- Course 5: Strategy pillars -- */
.teaser-strategy {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    padding: var(--space-sm) 0;
}

.teaser-strategy-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.teaser-strategy-pillar span {
    font-size: 0.65rem;
    color: #94a3b8;
}

.teaser-pillar-bar {
    width: 32px;
    height: var(--pillar-h, 50%);
    background: linear-gradient(to top, rgba(220,38,38,0.3), rgba(220,38,38,0.7));
    border-radius: 4px 4px 0 0;
}

/* -- Course 5: Future -- */
.teaser-future {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.teaser-future-item {
    padding: 10px;
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive teasers */
@media (max-width: 768px) {
    .teaser-card {
        grid-template-columns: 1fr;
    }
    .teaser-card:nth-child(even) {
        direction: ltr;
    }
    .teaser-content {
        min-height: 200px;
    }
    .teaser-meta {
        flex-wrap: wrap;
    }
}

/* --- Page Headers --- */
.page-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Footer --- */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-2xl) var(--space-xl);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-section ul a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* --- Auth Forms --- */
.auth-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--space-md);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: var(--primary-600);
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-row .form-group {
    margin-bottom: var(--space-lg);
}

.checkbox-group {
    margin-bottom: var(--space-lg);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: var(--primary-500);
}

.checkbox-label span {
    flex: 1;
    line-height: 1.4;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-md);
}

/* --- Toast Notifications --- */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1100;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success-500);
    background: rgba(34, 197, 94, 0.1);
}

.toast.error {
    border-color: var(--error-500);
    background: rgba(239, 68, 68, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero {
        min-height: 500px;
        padding: var(--space-2xl) var(--space-md);
    }

    .hero-content {
        padding: 0 var(--space-sm);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-dots {
        bottom: 20px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .pathway-courses {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-xl);
    }

    .pathway-line {
        display: none;
    }
}

@media (max-width: 768px) {
    main {
        padding: var(--space-md);
    }

    .header-container {
        padding: var(--space-md);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-light);
        padding: var(--space-md);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: var(--space-md);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn-large {
        padding: var(--space-sm) var(--space-lg);
        font-size: 1rem;
    }

    .modal-content {
        padding: var(--space-lg);
    }
}
