:root {
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-subtle: rgba(124, 58, 237, 0.15);
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: #e4e4e7;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Accent colors */
.text-accent { color: var(--accent-light) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-accent-subtle { background-color: var(--accent-subtle) !important; }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #9333ea);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent-light);
    background: transparent;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: white;
}

/* Glass navbar */
.navbar-glass {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: background 0.3s ease;
    will-change: background;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* Glass cards */
.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-glass:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* Popular card */
.card-popular {
    border-color: var(--accent) !important;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #9333ea);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.mock-video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.mock-video-screen {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 60px 20px;
    text-align: center;
}

.mock-prompt-bar {
    padding: 16px 20px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

/* Step number */
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto;
}

/* Avatar */
.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

/* Progress */
.progress {
    border-radius: 10px;
}

.progress-bar.bg-accent {
    background: linear-gradient(90deg, var(--accent), #9333ea) !important;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

/* Video thumbnail hover */
.video-thumbnail {
    overflow: hidden;
}

.video-thumb-placeholder {
    transition: transform 0.3s ease;
}

.card-glass:hover .video-thumb-placeholder {
    transform: scale(1.05);
}

/* Typing animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 4s steps(60) infinite alternate;
    max-width: 100%;
}

@keyframes typing {
    0% { max-width: 0; }
    50% { max-width: 100%; }
    100% { max-width: 100%; }
}

/* Smooth fade in */
.card-glass {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .row {
        min-height: auto !important;
        padding-top: 100px;
    }

    .display-3 {
        font-size: 2.2rem;
    }

    .mock-video-card {
        max-width: 300px;
        margin-top: 2rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Spinner */
.spinner-border.text-accent {
    color: var(--accent-light) !important;
}