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

:root {
    /* Colors - from app_theme.dart */
    --point-cyan: #26384E;
    --point-blue: #26384E;
    --point-red: #FB6960;
    --point-orange: #FB9D34;
    
    /* Neutral Colors */
    --neutral-50: #F0F1F5;
    --neutral-100: #E9EAF0;
    --neutral-200: #D2D3E1;
    --neutral-300: #A5A6BA;
    --neutral-400: #6D729D;
    --neutral-500: #62678D;
    --neutral-600: #575B7E;
    --neutral-700: #525676;
    --neutral-800: #41445E;
    --neutral-900: #313347;
    --neutral-950: #262837;
    
    /* Background Colors */
    --background: #FCFAF4;
    --background-dark: #262837;
    --surface-color: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #262837; /* neutral-950 */
    --text-secondary: #62678D; /* neutral-500 */
    --text-light: #A5A6BA; /* neutral-300 */
    --body-text: #0F1112;
    
    /* Status Colors */
    --success: #4CAF50;
    --error: #FB6960;
    --warning: #FB9D34;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 96px;
    
    /* Typography - matching app fonts */
    --font-korean-header: 'MaruBuri', 'Noto Sans KR', sans-serif;
    --font-korean-body: 'MaruBuri', 'Noto Sans KR', sans-serif;
    --font-english-header: 'Poppins', 'Inter', sans-serif;
    --font-english-body: 'Nunito', 'Inter', sans-serif;
}

body {
    font-family: var(--font-korean-body);
    color: var(--body-text);
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
    /* Prevent line breaks in the middle of Korean words */
    word-break: keep-all;
    /* Alternative: word-wrap for better compatibility */
    overflow-wrap: break-word;
}

body.en {
    font-family: var(--font-english-body);
    /* English can break normally */
    word-break: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-korean-header);
    color: var(--text-primary);
    word-break: keep-all;
}

body.en h1,
body.en h2,
body.en h3,
body.en h4,
body.en h5,
body.en h6 {
    font-family: var(--font-english-header);
}

/* Text elements - Korean line break prevention */
p, span, li, a, button, label, td, th {
    word-break: keep-all;
}

/* English text can break normally */
body.en p,
body.en span,
body.en li,
body.en a,
body.en button,
body.en label,
body.en td,
body.en th {
    word-break: normal;
}

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

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 10;
}

.language-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.language-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: var(--spacing-sm) 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.2s ease;
    font-size: 14px;
}

.language-menu a:hover {
    background: var(--neutral-50);
    color: var(--point-blue);
}

.language-menu a.active {
    color: var(--point-blue);
    font-weight: 600;
    background: var(--neutral-50);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--point-blue) 0%, var(--neutral-950) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: #fff;
}

.hero-title .highlight {
    color: var(--point-orange);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.cta-buttons-wrapper {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cta-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.cta-price {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn img {
    width: 20px;
    height: 20px;
}

.btn-primary,
.btn-secondary {
    background: white;
    color: var(--point-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    border-radius: 20px;
}

/* Seasonal Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--point-orange) 0%, var(--point-red) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    animation: sparkle 3s infinite;
}

.promo-banner::after {
    content: '✨';
    position: absolute;
    font-size: 3rem;
    opacity: 0.2;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    animation: sparkle 3s infinite 1.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.4; transform: translateY(-50%) scale(1.2); }
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
    line-height: 1.4;
}

.promo-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
    margin: 0;
}

/* Why Section */
.why-section {
    padding: var(--spacing-4xl) 0;
    background: var(--background); /* Beige #FCFAF4 */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-3xl);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--neutral-300);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

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

/* How Section */
.how-section {
    padding: var(--spacing-4xl) 0;
    background: var(--neutral-50); /* Light gray #F0F1F5 */
}

.steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    font-size: 3rem;
    margin: 0 auto var(--spacing-md);
    text-align: center;
    line-height: 1;
}

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

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

.step-arrow {
    font-size: 2rem;
    color: var(--point-blue);
    opacity: 0.5;
}

/* Quote Section */
.quote-section {
    padding: var(--spacing-4xl) 0;
    background: var(--surface-color); /* White #FFFFFF */
    text-align: center;
}

.main-quote {
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.main-quote::before,
.main-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--point-blue);
    opacity: 0.3;
    position: absolute;
    top: -20px;
}

.main-quote::before {
    left: -40px;
}

.main-quote::after {
    right: -40px;
    content: '"';
}

.quote-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Story Section */
.story-section {
    padding: var(--spacing-4xl) 0;
    background: var(--neutral-100); /* Gray #E9EAF0 */
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-4xl) 0;
    background: var(--background); /* Beige #FCFAF4 */
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.cta-section .cta-buttons {
    justify-content: center;
}

.cta-section .cta-buttons-wrapper {
    justify-content: center;
}

.cta-section .btn-primary,
.cta-section .btn-secondary {
    background: var(--point-blue);
    color: white;
    border: none;
}

/* Inverted buttons for CTA section */
.btn-primary-inverted,
.btn-secondary-inverted {
    background: white;
    color: var(--point-blue);
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-inverted:hover,
.btn-secondary-inverted:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Invert icon colors for inverted buttons */
.btn-primary-inverted img,
.btn-secondary-inverted img {
    filter: invert(1) brightness(0) saturate(100%) invert(19%) sepia(38%) saturate(773%) hue-rotate(170deg) brightness(92%) contrast(89%);
}

/* Footer */
.footer {
    background: var(--neutral-950);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: var(--spacing-sm);
}

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

.footer a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promo-title {
        font-size: 1.5rem;
    }

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons,
    .cta-buttons-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .cta-option {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-quote {
        font-size: 1.5rem;
    }
    
    .main-quote::before,
    .main-quote::after {
        display: none;
    }

    .promo-title {
        font-size: 1.25rem;
    }

    .promo-subtitle {
        font-size: 0.95rem;
    }

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

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

    .step-number {
        font-size: 2.5rem;
    }

    .story-content p {
        font-size: 1rem;
    }
}