/* ===================================
   RUNFUL - Complete CSS Stylesheet
   Premium Fulfillment Service
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #fee2e2;
    --secondary: #1e293b;
    --accent: #03c75a;
    --accent-dark: #00a046;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: #0066ff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-login {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-login:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: auto;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    text-align: left;
    max-width: 550px;
    flex-shrink: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 50%;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    opacity: 0;
    animation: slideInDiagonal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards,
        floatingEffect 4s ease-in-out 1s infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

/* 우측 상단 대각선에서 나타나는 애니메이션 (GPU 가속) */
@keyframes slideInDiagonal {
    0% {
        opacity: 0;
        transform: translate3d(50px, -50px, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 둥둥 떠다니는 애니메이션 */
@keyframes floatingEffect {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-partner {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-desc strong {
    color: var(--text-primary);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== N배송 Section ===== */
.ndelivery {
    padding: 100px 0;
    background: white;
}

.ndelivery-header {
    text-align: center;
    margin-bottom: 60px;
}

.ndelivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0fdf4;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
}

.ndelivery-badge svg {
    width: 18px;
    height: 18px;
}

.ndelivery-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
}

.naver-green {
    color: var(--accent);
}

.ndelivery-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ndelivery-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.ndelivery-illustration {
    position: relative;
}

.ndelivery-illustration svg {
    width: 100%;
    height: auto;
}

/* Premium Illustration */
.ndelivery-illustration.premium {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ndelivery-illustration.premium svg {
    max-width: 100%;
    height: auto;
}

.ndelivery-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(3, 199, 90, 0.15);
}

.ndelivery-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ndelivery-content h3 span {
    color: var(--accent);
}

.ndelivery-content>p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.ndelivery-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ndelivery-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.ndelivery-feature:hover {
    background: #e0f7e9;
    transform: translateX(-4px);
}

/* 우측에서 왼쪽 슬라이드 애니메이션 */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.ndelivery-feature.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
}

.ndelivery-content.fade-in.visible .ndelivery-feature.slide-in-right {
    animation: slideInFromRight 0.6s ease-out forwards;
}

.ndelivery-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.ndelivery-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.ndelivery-feature-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ndelivery-feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.ndelivery-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.ndelivery-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.ndelivery-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.ndelivery-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.ndelivery-card-icon svg {
    width: 100%;
    height: 100%;
}

.ndelivery-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ndelivery-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.ndelivery-card-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0fdf4;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.ndelivery-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-xl);
}

.ndelivery-stat {
    text-align: center;
    color: white;
}

/* 아래에서 위로 올라오는 애니메이션 */
@keyframes slideUpStat {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ndelivery-stat.stat-animate {
    opacity: 0;
    transform: translateY(30px);
}

.ndelivery-stats.fade-in.visible .ndelivery-stat.stat-animate {
    animation: slideUpStat 0.6s ease-out forwards;
}

.ndelivery-stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.ndelivery-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Promise Section (5대 약속) ===== */
.promise {
    padding: 100px 0;
    background: var(--bg-light);
}

.promise-header {
    text-align: center;
    margin-bottom: 60px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.promise-card {
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.promise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.promise-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
}

.promise-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.promise-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promise-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CJ Partnership Section ===== */
.cj-partnership {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.cj-partnership::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.cj-partnership-header {
    text-align: center;
    margin-bottom: 60px;
}

.partnership-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 16px;
}

.partner-logo {
    width: 200px;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.naver-highlight {
    color: var(--accent);
}

.collab-symbol {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0 6px;
}

.cj-partnership-header .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.4;
}

.cj-partnership-header .cj-highlight {
    color: var(--primary);
}

.cj-partnership-header .section-desc {
    font-size: 24px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cj-partnership-header .section-subdesc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    margin-top: 16px;
}

.cj-video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    background: #000;
}

.cj-video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.cj-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* ===== Process Section ===== */
.process {
    padding: 60px 0 100px;
    background: white;
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 80px;
    right: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.process-step {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.process-icon-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    z-index: 1;
}

.process-number {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.process-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4ff 100%);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    transition: var(--transition);
}

.process-step:hover .process-icon {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fecaca 100%);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.process-icon svg {
    width: 56px;
    height: 56px;
    color: var(--primary);
    transition: var(--transition);
}

.process-step:hover .process-icon svg {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.process-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Partners Section ===== */
.partners {
    padding: 100px 0;
    background: white;
    overflow: hidden;
}

.partners-header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-slider-container {
    overflow: hidden;
    margin-bottom: 20px;
}

.logo-slider {
    display: flex;
    gap: 24px;
}

.slide-right {
    animation: slideRight 40s linear infinite;
}

.slide-left {
    animation: slideLeft 40s linear infinite;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.logo-item {
    flex-shrink: 0;
    padding: 20px 32px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== CTA Section ===== */
.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta .btn {
    background: white;
    color: var(--primary);
}

.cta .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* CTA 섹션 빠른 애니메이션 */
.cta .cta-content.fade-in {
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cta .cta-content.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 0;
    background: var(--secondary);
    color: white;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    font-size: 24px;
    margin-bottom: 16px;
    display: inline-block;
    color: white;
}

.footer-brand .logo span {
    color: #0066ff;
}

.footer-brand>p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.footer-nav h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-info span {
    margin: 0 8px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: white;
}

.footer-legal .copyright-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Login Modal ===== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-modal-content {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 20px;
    padding: 48px 40px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(220, 38, 38, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-modal.active .login-modal-content {
    transform: translateY(0) scale(1);
}

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.login-modal-close:hover {
    background: var(--primary-light);
}

.login-modal-close:hover svg {
    color: var(--primary);
}

.login-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-logo span {
    color: var(--primary);
}

.login-modal-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.input-wrapper input:focus+svg,
.input-wrapper:focus-within svg {
    color: var(--primary);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-wrapper input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked+.checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.naver-btn {
    background: #03c75a;
    color: white;
}

.naver-btn span {
    font-size: 18px;
    font-weight: 800;
}

.naver-btn:hover {
    background: #00a046;
}

.kakao-btn {
    background: #fee500;
    color: #191919;
}

.kakao-btn svg {
    width: 20px;
    height: 20px;
}

.kakao-btn:hover {
    background: #e6cf00;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary);
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ===== Contact Modal ===== */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-modal-content {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    padding: 48px 40px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(220, 38, 38, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.contact-modal-close:hover {
    background: var(--primary-light);
}

.contact-modal-close:hover svg {
    color: var(--primary);
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 36px;
}

.contact-modal-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-modal-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
    cursor: pointer;
}

.contact-form-group select option {
    color: var(--text-primary);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.contact-privacy {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.privacy-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.privacy-checkbox .checkmark {
    width: 22px;
    height: 22px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.privacy-checkbox input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.privacy-checkbox input:checked+.checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.privacy-checkbox a {
    color: var(--primary);
    font-weight: 600;
}

.privacy-checkbox a:hover {
    text-decoration: underline;
}

.contact-submit-btn {
    width: 100%;
    max-width: 280px;
    margin: 24px auto 0;
    padding: 18px 48px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Login & Contact Modal Mobile */
@media (max-width: 480px) {
    .login-modal-content {
        padding: 36px 24px;
        margin: 16px;
        border-radius: 20px;
    }

    .login-logo {
        font-size: 24px;
    }

    .login-modal-header p {
        font-size: 14px;
    }

    .input-wrapper input {
        padding: 12px 12px 12px 44px;
        font-size: 14px;
    }

    .login-submit-btn {
        padding: 14px;
        font-size: 15px;
    }

    .social-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Contact Modal Mobile */
    .contact-modal-content {
        padding: 32px 20px;
        margin: 16px;
        border-radius: 20px;
    }

    .contact-modal-header h2 {
        font-size: 24px;
    }

    .contact-modal-header p {
        font-size: 13px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    .privacy-checkbox {
        font-size: 13px;
    }

    .contact-submit-btn {
        padding: 16px 40px;
        font-size: 15px;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 렌더링 성능 최적화 */
.ndelivery-card,
.feature-card,
.promise-card,
.logo-item {
    content-visibility: auto;
    /* 화면 밖 요소 렌더링 생략 */
    contain-intrinsic-size: 0 300px;
    /* 레이아웃 시프트 방지 */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Utility Classes ===== */
.hidden-mobile {
    display: inline;
}

.text-center {
    text-align: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }

    .hero-title {
        font-size: 44px;
    }

    .ndelivery-title {
        font-size: 36px;
    }

    .promise-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* ===== Hero Section Mobile ===== */
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        max-width: 100%;
        justify-content: center;
        margin-top: 0;
        margin-bottom: 24px;
        order: 1;
    }

    .hero-image img {
        max-height: 280px;
    }

    .hero-partner {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 28px;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 28px;
        font-size: 16px;
    }

    /* ===== Section Common Mobile ===== */
    .section-title {
        font-size: 26px;
        line-height: 1.4;
    }

    .section-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .section-badge {
        font-size: 13px;
        padding: 8px 14px;
        margin-bottom: 12px;
    }

    /* ===== N배송 Section Mobile ===== */
    .ndelivery {
        padding: 60px 0;
    }

    .ndelivery-header {
        margin-bottom: 36px;
    }

    .ndelivery-title {
        font-size: 26px;
    }

    .ndelivery-desc {
        font-size: 15px;
    }

    .ndelivery-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ndelivery-visual {
        order: 1;
        display: flex;
        justify-content: center;
    }

    .ndelivery-content {
        order: 2;
        text-align: center;
    }

    .ndelivery-content h3 {
        text-align: center;
    }

    .ndelivery-content>p {
        text-align: center;
    }

    .ndelivery-image {
        max-height: 260px;
    }

    .ndelivery-content h3 {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .ndelivery-content>p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .ndelivery-features {
        gap: 14px;
    }

    .ndelivery-feature {
        padding: 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ndelivery-feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .ndelivery-feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .ndelivery-feature-content h4 {
        font-size: 15px;
    }

    .ndelivery-feature-content p {
        font-size: 13px;
    }

    .ndelivery-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 36px;
    }

    .ndelivery-card {
        padding: 24px;
        text-align: center;
    }

    .ndelivery-card-icon {
        margin: 0 auto 16px;
    }

    .ndelivery-card h4 {
        font-size: 17px;
    }

    .ndelivery-card p {
        font-size: 14px;
    }

    .ndelivery-card-tag {
        display: inline-block;
    }

    .ndelivery-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
        gap: 20px;
    }

    .ndelivery-stat-value {
        font-size: 26px;
    }

    .ndelivery-stat-label {
        font-size: 12px;
    }

    /* ===== Features Section Mobile ===== */
    .features {
        padding: 50px 0;
    }

    .features-header {
        margin-bottom: 32px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
        gap: 14px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-content {
        text-align: center;
    }

    .feature-content h4 {
        font-size: 15px;
    }

    .feature-content p {
        font-size: 13px;
    }

    /* ===== Process Section Mobile ===== */
    .process {
        padding: 50px 0;
    }

    .process-header {
        margin-bottom: 32px;
        text-align: center;
    }

    .process-steps {
        flex-direction: column;
        gap: 32px;
    }

    .process-steps::before {
        display: none;
    }

    .process-icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .process-icon svg {
        width: 40px;
        height: 40px;
    }

    .process-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .process-title {
        font-size: 15px;
    }

    .process-desc {
        font-size: 13px;
    }

    /* ===== Partners Section Mobile ===== */
    .partners {
        padding: 60px 0;
    }

    .partners-header {
        margin-bottom: 32px;
        text-align: center;
    }

    .logo-slider-container {
        margin-bottom: 16px;
    }

    .logo-item {
        padding: 12px 20px;
        min-width: auto;
    }

    .logo-item span {
        font-size: 13px;
    }

    /* ===== CTA Section Mobile ===== */
    .cta {
        padding: 40px 0;
    }

    .cta-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cta-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .cta .btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* ===== Footer Mobile ===== */
    .footer {
        padding: 40px 0 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand>p {
        font-size: 13px;
    }

    .footer-contact-item {
        font-size: 12px;
    }

    .footer-nav h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-bottom {
        text-align: center;
        padding: 16px 0;
    }

    .footer-info {
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-legal a {
        font-size: 12px;
    }

    .footer-legal .copyright-text {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
        font-size: 11px;
    }

    .hidden-mobile {
        display: none;
    }

    /* ===== CJ Partnership Mobile ===== */
    .cj-partnership {
        padding: 40px 0 50px;
    }

    .cj-partnership-header {
        margin-bottom: 32px;
        text-align: center;
    }

    .partnership-logos {
        justify-content: center;
    }

    .partnership-logos {
        gap: 24px;
        margin-bottom: 16px;
    }

    .partner-logo {
        width: 120px;
    }

    .cj-partnership-header .section-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .cj-partnership-header .section-desc {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .cj-partnership-header .section-subdesc {
        font-size: 12px;
    }

    .cj-video-container {
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-image img {
        max-height: 240px;
    }

    .section-title {
        font-size: 22px;
    }

    .ndelivery-title {
        font-size: 22px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .partner-logo {
        width: 110px;
    }

    .cj-partnership-header .section-title {
        font-size: 20px;
    }

    .logo-item {
        padding: 10px 16px;
    }

    .logo-item span {
        font-size: 12px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
    }

    .ndelivery-stats {
        grid-template-columns: 1fr 1fr;
        padding: 24px;
    }

    .cj-partnership-header .section-title {
        font-size: 24px;
    }

    .cj-partnership-header .section-desc {
        font-size: 16px;
    }

    .cj-partnership-header .section-subdesc {
        font-size: 13px;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 전체 공통 - readonly/disabled input 스타일 (옅은 그레이 배경) */
input[readonly],
input:disabled,
input:read-only,
textarea[readonly],
textarea:disabled,
textarea:read-only,
select[readonly],
select:disabled,
.form-control:disabled,
.form-control[readonly],
.form-control:read-only {
	background-color: #f5f5f5 !important;
	color: #6b7280 !important;
	cursor: not-allowed;
}