/* VideoFactory AI - Shared Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #0f172a;
    --text-sub: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.nav-desktop {
    display: flex;
    gap: 8px;
}

.nav-desktop a {
    padding: 8px 14px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    background: var(--bg-alt);
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-sub);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 24px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-links a {
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: 0.2s;
}

.mobile-menu-links a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Page Hero */
.page-hero {
    padding: 140px 20px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.page-hero .container {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.page-hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-sub);
    font-size: 0.95rem;
}

/* How Section */
.how-section {
    padding: 80px 20px;
    background: var(--bg-alt);
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.step-num {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-item p {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Use Cases */
.usecases-section {
    padding: 80px 20px;
    background: var(--bg);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.usecase-card {
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.usecase-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.usecase-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.usecase-card p {
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: var(--bg-dark);
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 60px 20px 30px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand p {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links-group {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-sub);
    font-size: 0.85rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    transition: 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Auth Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: var(--bg-alt);
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .subtitle {
    color: var(--text-sub);
    text-align: center;
    margin-bottom: 32px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-sub);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: var(--text);
}

.social-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Pricing Page */
.pricing-section {
    padding: 80px 20px;
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-alt);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: 0.3s;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
    position: relative;
}

.pricing-card.featured::before {
    content: '추천';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}

.pricing-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card .plan-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.pricing-card .plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-sub);
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-card li {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
}

/* Docs Page */
.docs-section {
    padding: 80px 20px;
    background: var(--bg);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.docs-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: 0.3s;
}

.docs-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.docs-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.docs-card p {
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {

    .nav-desktop,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-hero {
        padding: 100px 16px 60px;
    }

    .steps-row {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links-group {
        gap: 32px;
    }
}