* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #FFFFFF;
    --color-surface: #F8FAFB;
    --color-surface-elevated: #FFFFFF;
    --color-primary: #0066FF;
    --color-primary-dark: #0052CC;
    --color-accent: #FF3B77;
    --color-text: #1A1F36;
    --color-text-secondary: #6B7280;
    --color-border: #E5E7EB;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
}

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

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 59, 119, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.6s ease-out;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-cta {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-cta:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

/* Hero Section */
.hero {
    padding: var(--spacing-3xl) 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-top: var(--spacing-2xl);
}

.hero-left {
    text-align: left;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 650px;
    background: #F8FAFB;
    border: 12px solid #E5E7EB;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #1A1F36;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    padding: 50px 20px 20px;
    overflow-y: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-title {
    flex: 1;
}

.chat-title h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.chat-title p {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin: 0;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.message.ai .message-bubble {
    background: #F8FAFB;
    border: 1px solid var(--color-border);
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #FFFFFF;
}

.message-label {
    font-size: 10px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    padding: 0 8px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #F8FAFB;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--color-text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.suggestion-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    color: var(--color-primary);
    margin-top: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
}

.early-access-banner {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(255, 59, 119, 0.12));
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0 auto var(--spacing-md);
    max-width: 500px;
    font-size: 0.9375rem;
    color: var(--color-text);
    text-align: center;
    animation: fadeInUp 1s ease-out 0.5s both;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.early-access-banner strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Email Form */
.email-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto var(--spacing-md);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.email-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.email-input::placeholder {
    color: var(--color-text-secondary);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-2xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    text-align: center;
    animation: fadeInUp 0.8s ease-out both;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.3s; }
.stat:nth-child(3) { animation-delay: 0.4s; }
.stat:nth-child(4) { animation-delay: 0.5s; }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    font-family: 'JetBrains Mono', monospace;
}

/* 4 Skills는 텍스트가 길어서 작게 */
.stat:nth-child(2) .stat-value {
    font-size: 1.75rem;
}

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

/* Features */
.features {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 100px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(255, 59, 119, 0.08));
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Feature Screenshots */
.feature-screenshot {
    margin-top: var(--spacing-md);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.screenshot-content {
    font-size: 12px;
    line-height: 1.6;
}

/* Interest Selection Screenshot */
.interest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    padding: 8px 14px;
    background: #F8FAFB;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.chip.selected {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(255, 59, 119, 0.12));
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Conversation Screenshot */
.mini-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-message {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 11px;
    max-width: 80%;
}

.mini-message.ai {
    background: #F8FAFB;
    border: 1px solid var(--color-border);
    align-self: flex-start;
}

.mini-message.user {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #FFFFFF;
    align-self: flex-end;
}

.correction {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 59, 119, 0.08);
    border: 1px solid rgba(255, 59, 119, 0.2);
    border-radius: 8px;
    font-size: 11px;
    margin-top: 8px;
}

.correction-icon {
    color: var(--color-accent);
    font-weight: 600;
}

/* Progress Screenshot */
.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.progress-bar {
    height: 8px;
    background: #F8FAFB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Scenario Screenshot */
.scenario-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8FAFB;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-top: 8px;
}

.scenario-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(255, 59, 119, 0.12));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.scenario-info h5 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.scenario-info p {
    font-size: 10px;
    color: var(--color-text-secondary);
    margin: 0;
}

/* How It Works */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    background: var(--color-surface);
    margin: var(--spacing-3xl) 0;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    padding: 0 var(--spacing-lg);
}

.step {
    text-align: center;
    position: relative;
    animation: fadeInUp 0.8s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.4s; }

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg);
    margin: 0 auto var(--spacing-md);
    font-family: 'JetBrains Mono', monospace;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

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

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--spacing-3xl) 0;
    animation: fadeInUp 0.8s ease-out both;
}

.cta-box {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.04), rgba(255, 59, 119, 0.04));
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cta-box h2 {
    margin-bottom: var(--spacing-md);
}

.cta-box p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Footer */
footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.25rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-left {
        text-align: center;
    }

    /* 모바일에서 폰 목업 작게 표시 */
    .hero-right {
        display: flex;
        justify-content: center;
        margin-top: var(--spacing-lg);
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        border: 8px solid #E5E7EB;
        border-radius: 30px;
    }
    
    .phone-notch {
        width: 100px;
        height: 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .phone-screen {
        padding: 35px 12px 12px;
        font-size: 0.7rem;
    }
    
    .chat-header h4 {
        font-size: 0.75rem;
    }
    
    .chat-header p {
        font-size: 0.65rem;
    }
    
    .message-bubble {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
    
    .suggestion-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto var(--spacing-md);
    }

    .early-access-banner {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .email-form {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .email-input,
    .submit-btn {
        padding: 0.875rem 1rem;
    }

    .hero-note {
        font-size: 0.8125rem;
        margin-top: var(--spacing-sm);
    }

    /* Stats 2x2 그리드 */
    .stats {
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
        margin: var(--spacing-lg) 0;
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat:nth-child(2) .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    /* Features - 설명 텍스트 숨기고 제목+아이콘만 */
    .features {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
        order: -1;
    }

    .feature-card h3 {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-xs);
        order: 0;
    }

    .feature-card p {
        display: none; /* 모바일에서 설명 숨김 */
    }

    /* 모바일용 간단한 설명 추가 */
    .feature-card::after {
        content: attr(data-mobile-desc);
        display: block;
        font-size: 0.875rem;
        color: var(--color-text-secondary);
        margin-top: 0;
        margin-bottom: var(--spacing-sm);
        line-height: 1.4;
        order: 1;
    }

    .feature-screenshot {
        margin-top: 0;
        padding: 12px;
        min-height: 150px;
        order: 2;
    }

    /* How it works - 가로 스크롤로 변경 */
    .how-it-works {
        padding: var(--spacing-xl) 0;
        margin: var(--spacing-xl) 0;
    }

    .steps {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-md);
    }

    .step {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        text-align: left;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-content {
        flex: 1;
    }

    .step h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .step p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* CTA 섹션 */
    .cta-section {
        padding: var(--spacing-xl) 0;
    }

    .cta-box {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .cta-box h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .cta-box p {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    /* Footer */
    footer {
        padding: var(--spacing-md) 0;
        font-size: 0.875rem;
    }

    .hero {
        padding: var(--spacing-lg) 0;
    }
}

/* Success message */
.success-message {
    display: none;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    color: var(--color-primary);
    font-weight: 500;
}

.success-message.show {
    display: block;
    animation: slideDown 0.4s ease-out;
}

/* ============================================ */
/* LANGUAGE SELECTOR */
/* ============================================ */

.language-selector {
    position: relative;
    display: inline-block;
}

.lang-button {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.lang-button:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option:hover {
    background: var(--color-surface);
}

.lang-option.active {
    background: rgba(0, 102, 255, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lang-button {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .lang-flag {
        font-size: 1.125rem;
    }
    
    .lang-dropdown {
        min-width: 150px;
    }
}


/* ============================================ */
/* PRONUNCIATION SCREEN */
/* ============================================ */

.pronunciation-screen {
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
}

.pronunciation-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.pronunciation-icon {
    font-size: 1.5rem;
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 3px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

.pronunciation-result {
    text-align: center;
}

.pronunciation-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.pronunciation-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-badge {
    background: rgba(0, 102, 255, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pronunciation-feedback {
    background: rgba(255, 59, 119, 0.08);
    border: 1px solid rgba(255, 59, 119, 0.2);
    color: var(--color-accent);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.try-again-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.try-again-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ============================================ */
/* SUCCESS POPUP MODAL */
/* ============================================ */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.popup-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.4s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.popup-message {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.popup-share-section {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.popup-share-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.popup-copy-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-copy-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.popup-copy-btn.copied {
    background: #10b981;
}

@media (max-width: 768px) {
    .popup-content {
        padding: 2rem 1.5rem;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
}
