@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #070913; /* Deep Midnight Slate */
    --bg-panel: rgba(13, 18, 36, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.02);
    
    --accent-blue: #3b82f6; /* Electric Neon Blue */
    --accent-blue-dim: rgba(59, 130, 246, 0.12);
    --accent-purple: #8b5cf6; /* Achievement Violet */
    --accent-purple-dim: rgba(139, 92, 246, 0.15);
    --accent-emerald: #10b981; /* Cybernetic Progress Green */
    --accent-emerald-dim: rgba(16, 185, 129, 0.15);
    
    --text-main: #f8fafc; /* Crisp Off-White */
    --text-muted: #94a3b8; /* Muted Dashboard Slate */
    --text-stone: #64748b; /* Clean Border/Muted Grey */
    
    --border-glass: 1px solid rgba(59, 130, 246, 0.12);
    --border-glass-hover: 1px solid rgba(139, 92, 246, 0.35);
    
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
    --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.2);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background EdTech Grid & Glowing Orbs */
.background-effects {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
}

.glow {
    position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.25;
}
.glow-1 { width: 550px; height: 550px; background: var(--accent-blue-dim); top: -100px; left: -100px; animation: floatAnim 20s ease-in-out infinite alternate; }
.glow-2 { width: 450px; height: 450px; background: var(--accent-purple-dim); bottom: -100px; right: -50px; animation: floatAnim 18s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 350px; height: 350px; background: var(--accent-emerald-dim); top: 40%; left: 35%; animation: floatAnim 25s ease-in-out infinite; }

.grid-overlay {
    position: absolute; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 50%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 95%);
}

@keyframes floatAnim {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Premium Dashboard Navigation */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 6%; position: fixed; width: 100%; top: 0; z-index: 100;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: var(--border-glass); background: rgba(7, 9, 19, 0.75);
    transition: all 0.3s;
}

.logo { 
    display: flex; align-items: center; gap: 10px; 
    font-family: var(--font-display); font-weight: 800; 
    font-size: 1.35rem; color: var(--text-main); text-decoration: none; 
    letter-spacing: -0.5px;
}
.logo .highlight { 
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { 
    color: var(--text-muted); text-decoration: none; font-size: 13.5px; 
    font-weight: 500; transition: all 0.3s; letter-spacing: 0.5px; 
    font-family: var(--font-display);
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--text-main); text-shadow: 0 0 10px rgba(59, 130, 246, 0.4); 
}

/* Dashboard UI Buttons */
.btn-primary, .btn-secondary, .btn {
    padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
    font-family: var(--font-display); letter-spacing: 0.3px;
}
.btn-primary, .btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); 
    color: #fff; border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    filter: brightness(1.1);
}
.btn-secondary {
    background: var(--bg-glass); color: var(--text-main); border: var(--border-glass);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1); border-color: var(--accent-blue); transform: translateY(-2px);
}

/* Hero & Dashboard Hub Preview */
.hero {
    min-height: 80vh; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; padding: 160px 6% 80px; position: relative;
}

.dashboard-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 30px; background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18); font-size: 12px; font-weight: 600;
    color: var(--accent-blue); margin-bottom: 24px; font-family: var(--font-mono);
    text-transform: uppercase; letter-spacing: 1px;
}

.dashboard-badge .pulse {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulseGlow 1.8s infinite;
}

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

.hero-title {
    font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 900; line-height: 1.15; max-width: 900px; margin-bottom: 24px;
    letter-spacing: -1.5px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
    max-width: 680px; margin-bottom: 40px; font-weight: 400; line-height: 1.7;
}

/* Dashboard Mockup Grid Container */
.dashboard-preview {
    width: 100%; max-width: 820px; border-radius: 20px;
    background: var(--bg-panel); border: var(--border-glass);
    padding: 6px; box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    margin-bottom: 60px; overflow: hidden;
}

.dashboard-header-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px; border-bottom: var(--border-glass);
}
.dot-container { display: flex; gap: 6px; }
.dot-container .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.dashboard-title-tab {
    font-family: var(--font-mono); font-size: 11px; color: var(--text-stone);
    text-transform: uppercase; letter-spacing: 1px;
}

.dashboard-screen {
    width: 100%; height: auto; border-radius: 14px;
    object-fit: cover; border: var(--border-glass);
}

/* Glassmorphic Container Cards */
.container {
    max-width: 1200px; margin: 0 auto; padding: 60px 6%;
}

.section-header {
    text-align: center; margin-bottom: 50px;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-muted); font-size: 15.5px; max-width: 550px; margin: 0 auto;
}

.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; margin-top: 20px;
}

/* Premium Dashboard Card Widget */
.glass-card {
    background: var(--bg-panel); border: var(--border-glass);
    border-radius: 18px; padding: 32px; backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; overflow: hidden;
}

.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 70%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px); border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow-purple);
}
.glass-card:hover::before { opacity: 1; }

.card-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 6px; background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2); font-size: 10.5px; font-weight: 700;
    color: var(--accent-purple); margin-bottom: 18px; text-transform: uppercase;
    letter-spacing: 0.5px; font-family: var(--font-mono);
}

.card-title {
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
    line-height: 1.35; margin-bottom: 12px; letter-spacing: -0.3px;
}
.card-title a {
    color: var(--text-main); text-decoration: none; transition: color 0.3s;
}
.card-title a:hover {
    color: var(--accent-blue);
}

.card-desc {
    color: var(--text-muted); font-size: 14.5px; line-height: 1.6;
    margin-bottom: 24px; font-weight: 300;
}

/* Micro-Progress Achievement Module */
.progress-bar-widget {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 14px; display: flex; align-items: center; gap: 12px;
}
.progress-track {
    flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 3px; width: 0%; transition: width 1s ease-out;
}
.progress-percent {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-emerald);
}

/* AI Course Curator Workspace UI */
.curator-workspace {
    background: var(--bg-panel); border: var(--border-glass);
    border-radius: 20px; padding: 40px; position: relative;
    box-shadow: 0 15px 45px rgba(0,0,0,0.3); overflow: hidden;
}

.curator-workspace label {
    display: block; font-family: var(--font-display); font-size: 1.15rem;
    font-weight: 700; color: var(--text-main); margin-bottom: 12px;
}

.curator-workspace textarea {
    width: 100%; min-height: 140px; padding: 18px; border-radius: 12px;
    background: rgba(7, 9, 19, 0.7); border: var(--border-glass);
    color: var(--text-main); font-family: var(--font-sans); font-size: 15px;
    line-height: 1.6; outline: none; transition: all 0.3s; resize: vertical;
}
.curator-workspace textarea:focus {
    border-color: var(--accent-blue); box-shadow: var(--shadow-glow);
}

.usage-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.03);
}
.usage-dots { display: flex; gap: 6px; }
.usage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); transition: all 0.3s; }
.usage-dot.used { background: var(--text-stone); opacity: 0.3; }

/* Dashboard Diagnostic Loader */
.loader {
    display: none; flex-direction: column; align-items: center; gap: 14px;
    margin: 24px 0;
}
.loader.active { display: flex; }
.spinner {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.1); border-top-color: var(--accent-blue);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Results Terminal Console */
.result-card {
    display: none; background: rgba(7, 9, 19, 0.9); border: 1px solid var(--accent-emerald);
    border-radius: 16px; padding: 32px; margin-top: 24px; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}
.result-card.visible { display: block; }
.console-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* University Upgrade Prompt Modals */
.upgrade-card {
    display: none; background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(7, 9, 19, 0.85));
    border: 1px solid #ef4444; border-radius: 16px; padding: 32px; margin-top: 24px;
    text-align: center;
}
.upgrade-card.visible { display: block; }

/* Article-Editorial Reading Layouts */
article, .article-content {
    max-width: 780px; margin: 0 auto; padding: 120px 24px 80px;
}
article p, .article-content p {
    font-size: 16.5px; line-height: 1.85; margin-bottom: 24px; color: #cbd5e1; font-weight: 300;
}
article h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 24px; letter-spacing: -1px;
}
article h2 {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
    margin-top: 48px; margin-bottom: 18px; letter-spacing: -0.5px;
}
article blockquote {
    border-left: 3px solid var(--accent-purple); padding: 18px 24px;
    margin: 32px 0; background: rgba(139, 92, 246, 0.03); border-radius: 0 12px 12px 0;
    font-style: italic; font-size: 17px; color: #e2e8f0;
}
article ul, article ol { margin: 24px 0 24px 28px; }
article li { margin-bottom: 10px; font-size: 16px; color: #cbd5e1; }

/* Professional Affiliate Modules */
.affiliate-module, .affiliate-card {
    background: rgba(16, 185, 129, 0.03); border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px; padding: 28px; margin: 32px 0;
}

/* Elegant Slate Footer */
footer {
    padding: 60px 6% 30px; text-align: center; border-top: var(--border-glass);
    background: #04060c; color: var(--text-stone); font-size: 13.5px; font-weight: 300;
}
footer .links { display: flex; justify-content: center; gap: 28px; margin-bottom: 24px; }
footer .links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
footer .links a:hover { color: var(--text-main); }

/* Responsive Grid Adapters */
@media (max-width: 768px) {
    nav { padding: 15px 4%; flex-direction: column; gap: 14px; }
    nav .nav-links { gap: 20px; }
    .hero { padding: 180px 4% 60px; min-height: auto; }
    .container { padding: 40px 4%; }
    .glass-card { padding: 24px; }
    .curator-workspace { padding: 24px; }
}
