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

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.spline-section {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    max-height: 800px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.spline-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.spline-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .spline-section {
        height: 60vh;
        min-height: 350px;
        max-height: 500px;
    }
}

.image-wrapper {
    width: 100%;
    min-height: 50px;
    position: relative;
    overflow: hidden;
}

.full-width-image,
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

section {
    width: 100%;
    contain: layout style paint;
}

.hero-section {
    width: 100%;
    position: relative;
}

.event-section,
.problem-section,
.quote-section,
.point-section,
.lookbook-section,
.product-section,
.usage-section,
.detail-section,
.calendar-section,
.final-section {
    width: 100%;
}

.qr-section {
    background: linear-gradient(180deg, #e8f5e0 0%, #d4edda 100%);
    padding: 80px 20px;
    text-align: center;
}

.qr-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.qr-title {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.3;
    word-break: keep-all;
}

.qr-title .highlight {
    color: #2d8a3e;
}

.qr-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
    word-break: keep-all;
}

.order-button {
    display: inline-block;
    padding: 18px 60px;
    background-color: #f5a623;
    color: #fff;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    margin-bottom: 40px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.order-button:hover,
.order-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
    outline: none;
}

.order-button:active {
    transform: translateY(-1px);
}

.qr-code-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.qr-label {
    font-size: clamp(14px, 3vw, 16px);
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.qr-code-image {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 10px;
}

.qr-description {
    font-size: clamp(12px, 2.5vw, 14px);
    color: #888;
    line-height: 1.5;
}

.cta-section {
    background: linear-gradient(135deg, #f5a623 0%, #f7b844 100%);
    padding: 60px 20px;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.cta-container h2 {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    word-break: keep-all;
}

.cta-container p {
    font-size: clamp(14px, 3vw, 18px);
    color: #fff;
    margin-bottom: 30px;
    word-break: keep-all;
}

.cta-button {
    display: inline-block;
    padding: 16px 50px;
    background-color: #fff;
    color: #f5a623;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    outline: none;
}

.cta-button:active {
    transform: translateY(-1px);
}

.footer {
    background-color: #1a1a2e;
    padding: 40px 20px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    color: #888;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-brand {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 500;
    color: #f5a623;
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: clamp(12px, 2.5vw, 14px);
}

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, #f5a623 0%, #f7b844 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.floating-cta:hover,
.floating-cta:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.5);
    outline: none;
}

.floating-cta:active {
    transform: translateY(-1px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-button {
        padding: 14px 35px;
        width: auto;
        max-width: 80%;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .footer {
        padding: 30px 15px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 30px 10px;
    }
    
    .cta-button {
        padding: 12px 30px;
    }

    .floating-cta {
        bottom: 15px;
        right: 15px;
        bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        transition: none;
    }
    
    .cta-button,
    .floating-cta {
        transition: none;
    }
    
    .lazy-image {
        transition: none;
    }
}

@supports (-webkit-touch-callout: none) {
    .floating-cta {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    @media (max-width: 768px) {
        .floating-cta {
            bottom: calc(20px + env(safe-area-inset-bottom));
        }
    }
}
