/* ===== CSS Custom Properties ===== */
:root {
    --color-primary: #B450FF;
    --color-primary-dark: #AD25FF;
    --color-bg-light: #F8F5FF;
    --color-surface: #F9FAFB;
    --color-dark-bg: #1a0f23;
    --color-dark-surface: #2d1b3d;
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;
    --color-white: #ffffff;
    --font-heading: 'Manrope', 'Noto Sans KR', sans-serif;
    --font-body: 'Noto Sans KR', 'Manrope', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-nav: 0 2px 8px rgba(0,0,0,0.06);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 245, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--transition);
}

.nav--scrolled {
    box-shadow: var(--shadow-nav);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-text);
}

.nav__logo img {
    border-radius: 8px;
}

.nav__links {
    display: flex;
    gap: 28px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

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

/* ===== Hero ===== */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-surface) 100%);
    overflow: hidden;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.3;
}

.hero__title em {
    font-style: normal;
    color: var(--color-primary);
}

.hero__subtitle {
    margin-top: 16px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.hero__cta {
    margin-top: 28px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(180, 80, 255, 0.4);
}

.btn--primary:hover {
    box-shadow: 0 6px 28px rgba(180, 80, 255, 0.55);
}

/* ===== Phone Mockup ===== */
.phone-mockup {
    width: 240px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.phone-mockup img {
    width: 100%;
    height: auto;
}

/* ===== Section Common ===== */
.section__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    color: var(--color-text);
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 12px;
    font-size: 0.95rem;
}

/* ===== Features ===== */
.features {
    padding: 80px 0;
    background: var(--color-white);
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--color-bg-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===== Screenshots ===== */
.screenshots {
    padding: 80px 0;
    background: var(--color-bg-light);
}

.screenshots__track {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    justify-content: center;
}

.screenshots__item {
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: center;
}

.screenshots__item img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
}

/* ===== Download CTA ===== */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-surface) 100%);
}

.download__inner {
    text-align: center;
}

.download__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
}

.download__subtitle {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.download__badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transition: background var(--transition);
    min-width: 200px;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

.badge--soon {
    opacity: 0.7;
    cursor: default;
}

.badge__label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.badge__status {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    background: var(--color-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer__copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Support Page ===== */
.support-hero {
    padding: 120px 0 48px;
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-surface) 100%);
    text-align: center;
}

.support-hero__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
}

.support-hero__subtitle {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.support-content {
    padding: 60px 0 80px;
    background: var(--color-white);
    flex: 1;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.support-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--color-bg-light);
}

.support-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    margin-bottom: 16px;
}

.support-card h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.support-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.support-card__link {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    transition: opacity var(--transition);
}

.support-card__link:hover {
    opacity: 0.8;
}

.faq-list {
    margin-top: 8px;
}

.faq-list dt {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 16px;
    color: var(--color-text);
}

.faq-list dt:first-child {
    margin-top: 0;
}

.faq-list dd {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.support-info {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--color-bg-light);
    text-align: center;
}

.support-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-hero__title {
        font-size: 2.5rem;
    }
}

/* ===== Scroll Animation ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .section__title {
        font-size: 2rem;
    }

    .screenshots__item {
        width: 260px;
    }

    .download__badges {
        flex-direction: row;
        justify-content: center;
    }

    .phone-mockup {
        width: 280px;
    }
}

/* ===== Desktop (1024px+) ===== */
@media (min-width: 1024px) {
    .hero {
        padding: 140px 0 100px;
    }

    .hero__inner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero__content {
        flex: 1;
        max-width: 520px;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.15rem;
    }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .phone-mockup {
        width: 300px;
    }

    .screenshots__item {
        width: 280px;
    }

    .download__title {
        font-size: 2.25rem;
    }
}
