/* ===== CSS Variables ===== */
:root {
    /* Light Theme */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --accent: #5D3A6E;
    --accent-light: #7B4F8B;
    --accent-dark: #4A2D58;
    --border: #E5E5E5;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.15);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --card-radius: 16px;
    --btn-radius: 12px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1A1A2E;
    --bg-secondary: #16213E;
    --bg-card: #1F2940;
    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --text-light: #808080;
    --accent: #9B6FB0;
    --accent-light: #B88BC8;
    --accent-dark: #7B4F8B;
    --border: #2D3748;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-strong: rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

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

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

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

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    background: var(--border);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 var(--section-padding);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

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

.hero-note {
    font-size: 13px;
    color: var(--text-light);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mascot */
.hero-mascot {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mascot-svg {
    width: 200px;
    height: 260px;
    filter: drop-shadow(0 10px 30px var(--shadow-strong));
}

.mascot-eye {
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.mascot-bubble {
    position: absolute;
    top: -20px;
    right: -60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px var(--shadow);
    animation: bobble 3s ease-in-out infinite;
}

@keyframes bobble {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-5px) rotate(3deg); }
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-card);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--btn-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-strong);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
}

/* ===== Features Section ===== */
.features {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

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

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

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

.screenshot-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--card-radius);
    padding: 80px 24px;
    margin-bottom: 16px;
}

.screenshot-placeholder span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.screenshot-placeholder p {
    font-size: 13px;
    color: var(--text-light);
}

.screenshot-caption {
    font-size: 14px;
    color: var(--text-secondary);
}

/* When screenshots are added */
.screenshot-item img {
    width: 100%;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px var(--shadow);
}

/* ===== Shortcuts Section ===== */
.shortcuts {
    padding: var(--section-padding) 0;
}

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

.shortcut-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

kbd {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 0 var(--border);
}

.shortcut-item span {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Download Section ===== */
.download {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
}

.download-content {
    text-align: center;
}

.download-content h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.download-content > p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}

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

.download .btn-primary:hover {
    background: #F5F5F5;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.85;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .mascot-svg {
        width: 160px;
        height: 208px;
    }

    .features-grid,
    .screenshots-slider,
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav a {
        display: none;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .screenshots-slider,
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .download-info {
        flex-direction: column;
        gap: 12px;
    }
}
