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

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --primary-bg: rgba(99, 102, 241, 0.08);
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --success: #22C55E;
    --danger: #EF4444;
    --pink: #EC4899;

    --bg: #FAFBFF;
    --bg-alt: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-dark-alt: #1E293B;

    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;

    --gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.1));

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #0B0F1A;
    --bg-alt: #111827;
    --bg-card: #1E293B;
    --text: #F1F5F9;
    --text-light: #94A3B8;
    --text-muted: #64748B;
    --border: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(11, 15, 26, 0.9);
}

[data-theme="dark"] .hero-grid-pattern {
    opacity: 0.03;
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

.section {
    padding: 100px 0;
    position: relative;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-icon {
    animation: pulse-loader 1.5s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-muted);
}

@keyframes pulse-loader {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary-dark);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.btn-download {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}
.btn-download:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
.btn-download.downloading {
    pointer-events: none;
    background: var(--success);
    color: #fff;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 251, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
}

.logo-mark {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 0.7em;
    opacity: 0.6;
    margin-left: 4px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    position: relative;
    padding: 4px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after { width: 100%; }

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

.theme-toggle:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-cta {
    background: var(--gradient);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.12);
    top: 10%;
    left: 10%;
}

.hero-glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.08);
    top: 40%;
    right: 10%;
    animation-delay: -3s;
}

.hero-glow-3 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.08);
    bottom: 10%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-15px, 15px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-desc strong { color: var(--primary); }

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .stat-number { color: var(--primary-light); }

.stat-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-player-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    width: 420px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-player-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.player-preview { position: relative; }

.player-thumb {
    height: 200px;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
}

.player-play-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}

.player-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.player-info {
    padding: 16px 20px;
}

.player-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--danger);
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.player-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.player-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-list {
    border-top: 1px solid var(--border);
}

.player-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.player-list-item:last-child { border-bottom: none; }
.player-list-item:hover { background: var(--bg-alt); }

.list-thumb {
    width: 48px;
    height: 36px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}

.list-info {
    display: flex;
    flex-direction: column;
}

.list-info span:first-child {
    font-size: 0.85rem;
    font-weight: 500;
}

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

.hero-download-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    animation: slide-up 0.8s ease 1s both;
    width: 280px;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dl-card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.dl-card-info { flex: 1; }

.dl-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.dl-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.dl-progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    animation: progress-fill 2s ease 1.5s both;
}

@keyframes progress-fill {
    from { width: 0; }
}

.dl-card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.dl-card-status {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Trust Bar ===== */
.trust-bar {
    background: var(--bg-dark);
    padding: 20px 0;
    overflow: hidden;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.trust-item svg { opacity: 0.6; }

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.section-more {
    text-align: center;
    margin-top: 48px;
}

/* ===== VOD Section ===== */
.vod-section {
    background: var(--bg-alt);
}

.vod-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.vod-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.vod-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.vod-card:hover .vod-play-overlay { opacity: 1; }

.vod-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.vod-thumb-gradient {
    position: absolute;
    inset: 0;
}

.beginner-grad { background: linear-gradient(135deg, #22C55E, #16A34A); }
.intermediate-grad { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.advanced-grad { background: linear-gradient(135deg, #EC4899, #BE185D); }
.marketing-grad { background: linear-gradient(135deg, #F59E0B, #D97706); }
.ai-grad { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }

.vod-thumb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.vod-badge.beginner { background: rgba(34,197,94,0.9); }
.vod-badge.intermediate { background: rgba(99,102,241,0.9); }
.vod-badge.advanced { background: rgba(236,72,153,0.9); }
.vod-badge.marketing { background: rgba(245,158,11,0.9); }
.vod-badge.ai { background: rgba(139,92,246,0.9); }

.vod-badge-hot, .vod-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.vod-badge-hot { background: var(--danger); }
.vod-badge-new { background: var(--primary); }

.vod-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.vod-play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.vod-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.vod-info {
    padding: 20px;
}

.vod-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.vod-info > p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.vod-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.vod-meta-left {
    display: flex;
    gap: 12px;
}

.vod-views, .vod-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.vod-rating { color: var(--accent); }
.vod-rating svg { color: var(--accent); }

.vod-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.vod-price.free {
    color: var(--success);
}

/* ===== Download Section ===== */
.dl-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.dl-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.dl-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.dl-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.dl-tab.active svg { stroke: #fff; }

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

.dl-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.dl-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.dl-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dl-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-icon.program {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.dl-icon.template {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.dl-icon.guide {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.dl-badges {
    display: flex;
    gap: 6px;
}

.dl-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dl-badge.best { background: rgba(245,158,11,0.15); color: var(--accent-dark); }
.dl-badge.new { background: rgba(99,102,241,0.15); color: var(--primary); }
.dl-badge.hot { background: rgba(239,68,68,0.15); color: var(--danger); }
.dl-badge.version { background: var(--bg-alt); color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

.dl-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dl-item > p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.dl-file-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}

.dl-format, .dl-size, .dl-downloads {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dl-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.dl-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.dl-price.free {
    color: var(--success);
    font-size: 0.95rem;
}

/* ===== Pricing ===== */
.pricing-section {
    background: var(--bg-alt);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label.active { color: var(--text); font-weight: 600; }

.toggle-discount {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(34,197,94,0.15);
    color: var(--success);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 13px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    padding: 4px 20px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.pricing-header p {
    color: var(--text-light);
    font-size: 0.88rem;
}

.pricing-price {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 600;
}

.price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.pricing-features li.included {
    color: var(--text);
}

.pricing-features li.included svg {
    color: var(--success);
    flex-shrink: 0;
}

.pricing-features li.excluded {
    color: var(--text-muted);
}

.pricing-features li.excluded svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== Instructor ===== */
.instructor-section {
    background: var(--bg);
}

.instructor-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.instructor-image {
    text-align: center;
}

.instructor-photo {
    position: relative;
    width: 280px;
    height: 340px;
    margin: 0 auto 20px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.photo-ring {
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: calc(var(--radius-2xl) + 8px);
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.instructor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.i-badge {
    padding: 6px 14px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
}

.instructor-info .section-tag {
    display: inline-flex;
}

.instructor-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.instructor-intro {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.i-stat {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.i-stat-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

[data-theme="dark"] .i-stat-num { color: var(--primary-light); }

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

.instructor-history li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
}

.instructor-history li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--gradient);
    border-radius: 50%;
}

/* ===== Reviews ===== */
.reviews-section {
    background: var(--bg-alt);
    overflow: hidden;
}

.reviews-slider {
    position: relative;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-width: calc(33.333% - 16px);
    flex-shrink: 0;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-tag {
    padding: 4px 10px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}

.author-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.review-nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

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

.reviews-dots {
    display: flex;
    gap: 8px;
}

.reviews-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.reviews-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    gap: 16px;
}

.faq-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: var(--gradient);
    border-radius: var(--radius-2xl);
    padding: 64px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
}

.cta-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.cta-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: -30px;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.8;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
}

/* ===== Contact ===== */
.contact-section {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea { resize: vertical; }

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

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

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.5;
    line-height: 1.6;
}

.footer-brand .logo-text { color: #fff; }

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 0.85rem;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.4;
    margin-bottom: 4px;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 900;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ===== Video Modal ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-player {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.modal-player-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.modal-player-placeholder p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 32px;
    height: 32px;
    background: rgba(34,197,94,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    flex-shrink: 0;
}

.toast-content { display: flex; flex-direction: column; }
.toast-title { font-weight: 700; font-size: 0.85rem; }
.toast-message { font-size: 0.78rem; opacity: 0.6; }

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .vod-grid { grid-template-columns: repeat(2, 1fr); }
    .dl-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: none; grid-column: span 2; max-width: 400px; justify-self: center; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .instructor-grid { grid-template-columns: 1fr; text-align: center; }
    .instructor-history li { text-align: left; }
    .instructor-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .review-card { min-width: calc(50% - 12px); }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .section-header h2 { font-size: 1.8rem; }

    .nav-links, .nav-actions .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border);
    }

    .hero { padding-top: 100px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }

    .vod-grid { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { grid-column: span 1; max-width: 100%; transform: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr 1fr; }

    .trust-items { gap: 20px; font-size: 0.78rem; }

    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.8rem; }
    .cta-actions { flex-direction: column; align-items: center; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .instructor-stats { grid-template-columns: repeat(2, 1fr); }

    .review-card { min-width: calc(100% - 0px); }

    .photo-placeholder { font-size: 3rem; }
    .instructor-photo { width: 220px; height: 280px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .container { padding: 0 16px; }
    .contact-info { grid-template-columns: 1fr; }
    .vod-filter { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
    .dl-tabs { gap: 6px; }
    .dl-tab { padding: 8px 14px; font-size: 0.8rem; }
}
