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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --background: #ffffff;
    --surface: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --max-width: 1200px;
    --radius: 8px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--background);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--surface), var(--background));
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

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

.btn-primary .version {
    font-size: 0.875rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat strong {
    font-size: 1.125rem;
    color: var(--primary-color);
}

.stat span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-image {
    position: relative;
}

.dashboard-preview {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to right, #ef4444, #eab308, #22c55e);
    opacity: 0.1;
}

.dashboard-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* Section Commons */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    background: var(--surface);
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.screenshot-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.screenshot-item p {
    color: var(--text-secondary);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--surface);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
}

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

.step p {
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 100px 0;
}

.download-box {
    background: var(--surface);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.download-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.download-box > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-item {
    padding: 20px;
    background: var(--background);
    border-radius: var(--radius);
}

.info-item strong {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.btn-download {
    background: var(--secondary-color);
    color: white;
    font-size: 1.25rem;
    padding: 20px 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    width: 24px;
    height: 24px;
}

.system-requirements {
    margin-top: 60px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.system-requirements h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.system-requirements ul {
    list-style: none;
}

.system-requirements li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.system-requirements li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--surface);
}

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

.faq-item {
    background: var(--background);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-size: 1.25rem;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 20px;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .download-box {
        padding: 40px 20px;
    }
}
        /* 추가 스타일 */
        .download-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin: 2rem 0;
            flex-wrap: wrap;
        }

        .btn-download-alt {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            background-color: #6b7280;
            color: white;
            border-radius: 0.5rem;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.2s;
        }

        .btn-download-alt:hover {
            background-color: #4b5563;
        }

        .installation-guide {
            background-color: #f9fafb;
            border-radius: 0.75rem;
            padding: 2rem;
            margin: 2rem 0;
        }

        .installation-guide h3 {
            color: #1f2937;
            margin-bottom: 1.5rem;
            font-size: 1.25rem;
        }

        .install-method {
            margin-bottom: 2rem;
        }

        .install-method:last-child {
            margin-bottom: 0;
        }

        .install-method h4 {
            color: #374151;
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .install-method ol {
            counter-reset: item;
            padding-left: 0;
        }

        .install-method ol li {
            counter-increment: item;
            margin-bottom: 0.75rem;
            padding-left: 2rem;
            position: relative;
        }

        .install-method ol li::before {
            content: counter(item);
            position: absolute;
            left: 0;
            top: 0;
            background-color: #3b82f6;
            color: white;
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            font-weight: 600;
        }

        .install-method ul {
            margin: 0.5rem 0;
            padding-left: 1.5rem;
        }

        .install-method ul li {
            margin-bottom: 0.25rem;
        }

        .install-tip {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-top: 1rem;
            padding: 1rem;
            background-color: #eff6ff;
            border-left: 4px solid #3b82f6;
            border-radius: 0.25rem;
        }

        .tip-icon {
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .install-tip span:last-child {
            color: #1e40af;
            font-size: 0.875rem;
            line-height: 1.5;
        }

        code {
            background-color: #f3f4f6;
            padding: 0.125rem 0.25rem;
            border-radius: 0.25rem;
            font-family: monospace;
            font-size: 0.875rem;
        }

        .download-icon {
            width: 20px;
            height: 20px;
        }

        @media (max-width: 768px) {
            .download-buttons {
                flex-direction: column;
            }

            .btn-download,
            .btn-download-alt {
                width: 100%;
                justify-content: center;
            }

            .installation-guide {
                padding: 1.5rem;
            }
        }

/* 업데이트 정보 스타일 */
.update-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.update-info h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#changelog {
    color: var(--text-secondary);
    line-height: 1.8;
}

#changelog ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

#changelog li {
    margin: 0.5rem 0;
}

.release-date,
.download-count {
    margin-top: 1rem;
    color: var(--text-muted);
}

/* 다운로드 버튼 개선 */
.download-buttons {
    gap: 1rem;
    margin: 2rem 0;
}

.btn-download,
.btn-download-alt {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-download:hover,
.btn-download-alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 버전 배지 */
#latest-version {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 로딩 상태 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 다운로드 진행 표시 */
.download-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* 반응형 개선 */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
    }
    
    .btn-download,
    .btn-download-alt {
        width: 100%;
        justify-content: center;
    }
}
