/* ═══════════════════════════════════════════ */
/* DESIGN TOKENS                               */
/* ═══════════════════════════════════════════ */
:root {
    /* Colors */
    --bg: #FAFAF9;
    --bg-card: #FFFFFF;
    --bg-elevated: #F5F5F4;
    --bg-dark: #0C0A09;

    --text: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --text-inverse: #FAFAF9;

    --border: #E7E5E4;
    --border-light: #F5F5F4;

    --primary: #0C0A09;
    --primary-hover: #292524;
    --accent: #2563EB;
    --accent-light: #DBEAFE;

    /* Phase colors */
    --phase-1: #F59E0B;
    --phase-1-bg: #FEF3C7;
    --phase-2: #10B981;
    --phase-2-bg: #D1FAE5;
    --phase-3: #6366F1;
    --phase-3-bg: #E0E7FF;
    --phase-4: #F97316;
    --phase-4-bg: #FFEDD5;
    --phase-5: #EC4899;
    --phase-5-bg: #FCE7F3;

    /* Status */
    --success: #10B981;
    --warning: #F59E0B;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════ */
/* RESET & BASE                                */
/* ═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.hidden { display: none !important; }

/* ═══════════════════════════════════════════ */
/* SCREENS                                     */
/* ═══════════════════════════════════════════ */
.screen {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════ */
/* BUTTONS                                     */
/* ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

/* ═══════════════════════════════════════════ */
/* LANDING PAGE                                */
/* ═══════════════════════════════════════════ */
#landing {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-mark {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 28px;
    color: var(--text);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 18px;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 48px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
}

.hero-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-phases {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 32px 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.phase-pill {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--pill-color);
    background: color-mix(in srgb, var(--pill-color) 12%, white);
    border: 1px solid color-mix(in srgb, var(--pill-color) 24%, white);
}

.phase-arrow { flex-shrink: 0; opacity: 0.4; }

/* ═══════════════════════════════════════════ */
/* ONBOARDING                                  */
/* ═══════════════════════════════════════════ */
#onboarding {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-container {
    width: 100%;
    max-width: 640px;
    padding: 48px;
}

.onboarding-container .back-btn {
    margin-bottom: 40px;
}

.onboarding-step {
    animation: fadeUp 0.5s ease;
}

.ob-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.onboarding-step h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ob-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.ob-input {
    width: 100%;
    min-height: 140px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-card);
    resize: vertical;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}

.ob-input:focus {
    outline: none;
    border-color: var(--accent);
}

.ob-input::placeholder {
    color: var(--text-muted);
}

/* AI Thinking animation */
.ai-thinking {
    margin-top: 40px;
}

.thinking-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 32px;
}

.thinking-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce 1.4s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

.thinking-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.thinking-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.thinking-step.active {
    color: var(--text);
}

.thinking-step.done {
    color: var(--success);
}

.ts-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Artifact preview */
.artifact-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.artifact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.artifact-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.artifact-type {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.artifact-body {
    padding: 24px;
}

.artifact-body h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

.artifact-body p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.artifact-body .artifact-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 6px;
    margin-bottom: 6px;
}

.artifact-body .risk-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.risk-item:last-child { border-bottom: none; }

.risk-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.risk-high { background: #FEE2E2; color: #DC2626; }
.risk-med { background: #FEF3C7; color: #D97706; }

/* ═══════════════════════════════════════════ */
/* DASHBOARD                                   */
/* ═══════════════════════════════════════════ */
#dashboard {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
    z-index: 100;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-mini {
    width: 200px;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.progress-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Dashboard layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    border-right: 1px solid var(--border);
    background: var(--bg-card);
    padding: 24px;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sidebar-section + .sidebar-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* Phase list in sidebar */
.phase-group {
    margin-bottom: 20px;
}

.phase-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 0;
}

.phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.phase-group-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.step-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: var(--text-secondary);
}

.step-link:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.step-link.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.step-link.completed .step-number {
    background: var(--success);
    color: white;
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.step-link-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Artifact count */
.artifact-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.artifact-count-num {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.artifact-count-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Main content */
.main-content {
    padding: 32px 40px;
    overflow-y: auto;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Phase cards */
.phases-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
}

.phase-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
}

.phase-card-header:hover {
    background: var(--bg-elevated);
}

.phase-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phase-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.phase-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.phase-card-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.phase-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phase-step-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.phase-chevron {
    transition: transform 0.2s;
    color: var(--text-muted);
}

.phase-card.expanded .phase-chevron {
    transform: rotate(180deg);
}

.phase-steps {
    display: none;
    padding: 0 24px 20px;
}

.phase-card.expanded .phase-steps {
    display: block;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.step-card:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 3%, white);
    box-shadow: var(--shadow-sm);
}

.step-card:last-child { margin-bottom: 0; }

.step-card-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

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

.step-card-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.step-card-content p {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-card-artifact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.step-card-artifact.completed {
    background: #D1FAE5;
    color: #059669;
}

/* ═══════════════════════════════════════════ */
/* STEP DETAIL VIEW                            */
/* ═══════════════════════════════════════════ */
.step-detail-header {
    margin: 24px 0 32px;
}

.step-phase-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.step-detail-header h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.step-detail-header .step-question {
    font-size: 18px;
    color: var(--text-secondary);
    font-style: italic;
}

.step-meta {
    display: flex;
    gap: 24px;
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.step-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.step-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.step-section {
    margin-bottom: 32px;
}

.step-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-section h3 .section-icon {
    font-size: 18px;
}

.step-section ol, .step-section ul {
    padding-left: 20px;
}

.step-section li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.step-section li strong {
    color: var(--text);
    font-weight: 600;
}

/* Deliverable box */
.deliverable-box {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.deliverable-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deliverable-box ul {
    list-style: none;
    padding: 0;
}

.deliverable-box li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.deliverable-box li::before {
    content: "→";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* AI assistance box */
.ai-assist-box {
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF);
    border: 1px solid #C7D2FE;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.ai-assist-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #4338CA;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-assist-box ul {
    list-style: none;
    padding: 0;
}

.ai-assist-box li {
    padding: 6px 0;
    font-size: 14px;
    color: #4338CA;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ai-assist-box li::before {
    content: "🤖";
    flex-shrink: 0;
}

/* Step actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════ */
/* AI PANEL                                    */
/* ═══════════════════════════════════════════ */
.ai-panel {
    border-left: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ai-name {
    font-size: 14px;
    font-weight: 700;
}

.ai-status {
    font-size: 12px;
    color: var(--success);
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    max-width: 95%;
    animation: fadeUp 0.3s ease;
}

.ai-message p + p {
    margin-top: 8px;
}

.ai-msg {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    align-self: flex-start;
}

.user-msg {
    background: var(--primary);
    color: var(--text-inverse);
    align-self: flex-end;
}

.ai-input-area {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.ai-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s;
}

.ai-input:focus {
    outline: none;
    border-color: var(--accent);
}

.ai-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-send-btn:hover {
    background: var(--primary-hover);
}

/* ═══════════════════════════════════════════ */
/* ANIMATIONS                                  */
/* ═══════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════ */
/* RESPONSIVE                                  */
/* ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 240px 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar, .ai-panel {
        display: none;
    }

    .hero-phases { display: none; }
}

@media (max-width: 768px) {
    .landing-nav { padding: 16px 24px; }
    .nav-links .nav-link { display: none; }
    .hero { padding: 0 24px; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 24px; }
    .onboarding-container { padding: 24px; }
    .main-content { padding: 24px; }
}
