/* CSS Design System for Mentori */

:root {
    /* Color Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --accent-cyan: #0ea5e9;
    --accent-cyan-rgb: 14, 165, 233;
    --accent-purple: #7c3aed;
    --accent-purple-rgb: 124, 58, 237;
    --accent-gold: #d97706;
    
    /* System Values */
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-glow-cyan: 0 10px 25px -5px rgba(14, 165, 233, 0.15), 0 8px 10px -6px rgba(14, 165, 233, 0.15);
    --shadow-glow-purple: 0 10px 25px -5px rgba(124, 58, 237, 0.15), 0 8px 10px -6px rgba(124, 58, 237, 0.15);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Glowing Background Blobs */
body::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

body::after {
    content: '';
    position: absolute;
    top: 40%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(50px);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.text-gradient-cyan {
    background: linear-gradient(135deg, #0f172a 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-border {
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.3), rgba(var(--accent-purple-rgb), 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: var(--shadow-glow-cyan);
}

.nav-cta {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--accent-purple);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.05);
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero p.lead {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 32px auto;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow-cyan);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2), 0 10px 20px rgba(124, 58, 237, 0.2);
}

.offer-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Timeline/Outcomes Section */
.outcomes {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.outcome-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition-normal);
}

.outcome-card:hover {
    transform: translateY(-3px);
    background: var(--bg-secondary);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
}

.outcome-time {
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.outcome-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Dashboard Mockup (Visual wow factor) */
.dashboard-mockup {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: left;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.1);
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #eab308; }
.mockup-dot.green { background-color: #22c55e; }

.mockup-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mockup-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.mockup-sidebar {
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.sidebar-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item.active {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    font-weight: 600;
}

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

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

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 4px;
    color: var(--text-primary);
}

.stat-val.teal { color: var(--accent-cyan); }
.stat-val.purple { color: var(--accent-purple); }

.lesson-progress-bar {
    height: 6px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.lesson-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    width: 64%;
}

/* Program / Curriculum Section */
.program {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.day-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    min-height: 110px;
    position: relative;
}

.day-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

.day-card.active {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow-purple);
}

.day-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.day-tool {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.day-topic {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Day Detail Drawer/Box */
.day-detail-panel {
    grid-column: span 7;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.day-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.day-detail-header h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.day-detail-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Interactive Demo Sandbox */
.demo-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(155, 93, 229, 0.05) 50%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.demo-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-glow-purple);
}

.demo-header {
    text-align: center;
    margin-bottom: 32px;
}

.demo-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.demo-step {
    display: none;
}

.demo-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.demo-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.demo-instruction {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.prompt-builder {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prompt-textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 16px;
    font-family: monospace;
    font-size: 0.95rem;
    resize: vertical;
}

.prompt-textarea:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.option-btn {
    width: 100%;
    text-align: left;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 14px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 10px;
}

.option-btn:hover {
    background: rgba(14, 165, 233, 0.05);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.option-btn.selected {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    font-weight: 600;
}

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

.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.btn-next {
    background: var(--accent-cyan);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-next:hover {
    box-shadow: var(--shadow-glow-cyan);
}

/* Modal / Registration Overlay */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1), var(--shadow-glow-cyan);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.payment-summary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-label {
    font-weight: 600;
    font-family: var(--font-heading);
}

.payment-price {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-purple);
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    color: #ffffff;
    transition: var(--transition-fast);
}

.form-submit:hover {
    box-shadow: var(--shadow-glow-cyan);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    margin-top: 12px;
    color: var(--text-secondary);
    display: none;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .curriculum-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .day-detail-panel {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .outcomes-grid {
        grid-template-columns: 1fr;
    }
    .mockup-body {
        grid-template-columns: 1fr;
    }
    .mockup-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 16px;
    }
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .day-detail-panel {
        grid-column: span 2;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
