/* ===== Landing Page - Modern Professional Design ===== */

/* Landing Section - Remove all spacing & override body background */
#landing {
    padding-top: 0;
    padding-bottom: 0 !important;
    margin: 0;
    /* background: var(--dark-bg); */
}

#landing.active {
    min-height: 100vh;
}

/* 랜딩일 때 페이지 배경을 히어로 톤에 맞춤 */
/* body:has(#landing.active) {
    background: var(--dark-bg);
} */

#landing.active ~ .progress-container,
body:has(#landing.active) .progress-container {
    background: rgba(255, 255, 255, 0.12);
}

#landing .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hero — 참고 이미지: 딥 네이비~블랙 */
.hero {
    background: url("/images/sec_1_bg.png") no-repeat center/cover;
    border-radius: 0;
    padding: 96px 56px;
    text-align: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Hero Icon - 3D Effect */
.hero-icon {
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

/* Hero Logo Image */
.hero-logo {
    width: 144px;
    height: auto;
    max-height: 144px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(var(--primary-rgb), 0.75))
            drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.45));
    transition: all 0.3s ease;
}

.hero-logo:hover {
    filter: drop-shadow(0 15px 40px rgba(var(--primary-rgb), 0.9))
            drop-shadow(0 0 30px rgba(var(--accent-rgb), 0.55));
    transform: scale(1.05);
}

/* Fallback for Font Awesome Icon (if needed) */
.hero-icon i {
    font-size: 100px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 10px 30px rgba(var(--primary-rgb), 0.75))
            drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.45));
    color: var(--accent-color);
}

/* Hero Title - Large Impact */
.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-6);
    line-height: var(--lh-tight);
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
    background: none;
    display: inline-block;
}

/* Hero Subtitle - Clean Typography */
.hero-subtitle {
    font-size: var(--fs-lg);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
    line-height: var(--lh-relaxed);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle .highlight-text {
    font-weight: 700;
    color: #a8c4ff;
    text-decoration: underline;
    text-decoration-color: rgba(168, 196, 255, 0.7);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Hero Features - Modern Card Style */
.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    padding: 0 var(--space-5);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.08) 20%,
            rgba(255, 255, 255, 0.02) 50%
        ),
        rgba(16, 18, 24, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    box-shadow:
        0 12px 30px rgba(5, 8, 18, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.22) inset;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.7s ease, box-shadow 0.7s ease;
    min-width: 120px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: var(--radius-card);

    animation: sequentialHighlight 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.feature-item::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.2) 50%, transparent 75%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.feature-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 65% at 50% -12%, rgba(255, 255, 255, 0.28), transparent 62%);
    opacity: 0.65;
    pointer-events: none;
}

/* 4개 카드가 12초 동안 순차 강조 */
.feature-item:nth-child(1) { animation-delay: 0s; }
.feature-item:nth-child(2) { animation-delay: 3s; }
.feature-item:nth-child(3) { animation-delay: 6s; }
.feature-item:nth-child(4) { animation-delay: 9s; }

.feature-item:nth-child(1)::before {
    animation: sheen 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 0s;
}

.feature-item:nth-child(2)::before {
    animation: sheen 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 3s;
}

.feature-item:nth-child(3)::before {
    animation: sheen 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 6s;
}

.feature-item:nth-child(4)::before {
    animation: sheen 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 9s;
}

@keyframes sequentialHighlight {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow:
            0 12px 30px rgba(5, 8, 18, 0.3),
            0 1px 0 rgba(255, 255, 255, 0.22) inset;
    }
    12%, 30% {
        border-color: rgba(var(--primary-rgb), 0.48);
        box-shadow:
            0 16px 36px rgba(5, 8, 18, 0.34),
            0 0 0 1px rgba(var(--primary-rgb), 0.2) inset;
    }
    /* 44% {
    } */
}

@keyframes sheen {
    0% {
        opacity: 0;
        transform: translateX(-120%);
    }
    10% {
        opacity: 0.4;
        transform: translateX(130%);
    }
    /* 
    22% {
        opacity: 0.4;
        transform: translateX(55%);
    } */
    100% {
        opacity: 0.4;
        transform: translateX(130%);
    }
}

.feature-item i {
    font-size: 1.75rem;
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
    background: none;
    filter: none;
    transition: all 0.4s ease;
}

/* Icon highlight animation */
.feature-item:nth-child(1) i {
    animation: iconPulse 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 0s;
}

.feature-item:nth-child(2) i {
    animation: iconPulse 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 2s;
}

.feature-item:nth-child(3) i {
    animation: iconPulse 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 4s;
}

.feature-item:nth-child(4) i {
    animation: iconPulse 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 6s;
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 0.9;
    }
    14%, 30% {
        opacity: 1;
    }
    44% {
        opacity: 0.95;
    }
}

/* 히어로 CTA — 참고: 필 블루 + 화이트 필 버튼 */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    position: relative;
    z-index: 2;
}

.hero .btn-primary {
    position: relative;
    z-index: 2;
    min-height: var(--btn-height-lg);
    padding: 0 40px;
    font-size: var(--fs-lg);
    border-radius: var(--radius-pill);
    background: var(--primary-color);
    box-shadow: 0 10px 36px rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s ease;
}

.hero .btn-primary:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 14px 44px rgba(var(--primary-rgb), 0.48);
}

.hero .hero-cta-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.hero .hero-cta-secondary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-primary i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
}

.hero-decoration:nth-child(1) {
    top: -100px;
    left: -100px;
    background: var(--primary-color);
}

.hero-decoration:nth-child(2) {
    bottom: -100px;
    right: -100px;
    background: var(--accent-color);
    animation: float 10s ease-in-out infinite;
}

.glass-effect {
    /* pill 태그 스타일에 맞춤 — 추가 글래스 없음 */
    background: transparent;
    border: none;
    backdrop-filter: none;
}

/* ===== Responsive Design for Landing ===== */
@media (max-width: 1024px) {
    .hero {
        padding: 80px 36px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: var(--fs-md);
        margin-bottom: var(--space-8);
    }

    .hero-features {
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 56px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: var(--fs-sm);
        margin-bottom: var(--space-8);
    }

    .hero-icon {
        font-size: 80px;
    }

    .hero-logo {
        width: 112px;
        max-height: 112px;
    }

    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
        width: 70%;
        max-width: 400px;
        padding: 0;
        margin-bottom: var(--space-8);
    }

    .feature-item {
        flex-direction: column;
        gap: var(--space-2);
        width: 100%;
        min-width: auto;
        min-height: 48px;
        padding: var(--space-4) var(--space-3);
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .hero-cta-row {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 10px;
    }

    .hero .btn-primary,
    .hero .hero-cta-secondary {
        min-height: var(--btn-height);
        padding: 0 24px;
        font-size: var(--fs-sm);
        width: 100%;
        justify-content: center;
    }

    .hero-icon {
        margin-bottom: var(--space-6);
    }

    .feature-item {
        font-size: var(--fs-xs);
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    .hero-icon,
    .hero::before,
    .hero::after,
    .hero-decoration,
    .feature-item,
    .feature-item i {
        animation: none;
    }
}
