/* ===== 랜딩 페이지 (main.php) 전용 스타일 ===== */

:root {
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', var(--font-family);
    background-color: var(--main-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navbar Customization */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 공통 프리미엄 배경 섹션 스타일 */
.premium-bg-section {
    position: relative;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.premium-bg-section::before {
    content: "";
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 120, 150, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 40%, rgba(90, 200, 250, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 40, 0.6) 100%);
    filter: blur(60px);
    z-index: 1;
    animation: aurora-flow 25s infinite alternate ease-in-out;
    opacity: 0.6;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
    contain: strict;
}

.hero-section {
    padding: 160px 0 120px;
}

.cta-section {
    padding: 120px 0 !important;
}

/* 플로팅 입자 효과 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle var(--duration) infinite ease-in-out;
    opacity: 0.3;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* 스캔 라인 효과 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    z-index: 3;
    animation: scan 8s infinite linear;
    will-change: transform;
    transform: translateZ(0);
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes aurora-flow {
    0% {
        transform: translateZ(0) rotate(0deg) scale(1.0);
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateZ(0) rotate(8deg) scale(1.1);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #888 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.btn-premium {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary-premium {
    background-color: white;
    color: black;
    border: none;
}

.btn-primary-premium:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
    color: black;
}

.btn-outline-premium {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-premium:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Features Section */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #000;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #f4f4f4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #000;
    transition: background 0.3s;
}

.feature-card:hover .feature-icon {
    background: #000;
    color: #fff;
}

.feature-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Bento Grid Style for Features */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 24px;
        letter-spacing: -0.5px;
    }

    .cta-section {
        padding: 60px 0 !important;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .btn-premium {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    /* Hero CTA 버튼 세로 배열 */
    .hero-content .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 280px;
    }

    /* CTA 섹션 버튼 세로 배열 */
    .cta-section .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }

    .cta-section .btn {
        width: 100%;
        max-width: 280px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cta-section .hero-title {
        font-size: 1.75rem !important;
    }

    .cta-section .hero-subtitle {
        margin-bottom: 24px !important;
    }

    /* Preview section */
    .preview-section {
        padding: 50px 0 !important;
    }

    /* Footer padding */
    .footer {
        padding: 40px 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 88px 0 50px;
    }

    .hero-title {
        font-size: 1.7rem;
    }
}

/* Stats & UI Preview */
.preview-section {
    background-color: #f9f9fb;
    padding: 100px 0;
}

.preview-window {
    background: white;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.window-header {
    background: #f1f1f1;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    background: #fff;
}

/* ===== 마크업 정리: 인라인 스타일 → 클래스 ===== */
/* 상단 내비게이션 */
.landing-nav {
    z-index: 10;
    top: 0;
    padding-top: 18px;
}

.landing-nav > .container {
    flex-wrap: nowrap;
}

.landing-nav .navbar-brand {
    flex-shrink: 0;
}

.landing-nav-actions {
    gap: 6px;
    flex-shrink: 0;
}

/* 내비 버튼은 모바일에서도 동일 크기 유지 */
.btn-premium.btn-nav {
    padding: 7px 14px;
    font-size: 0.82rem;
}

/* 섹션 공통 */
.section-lead {
    max-width: 600px;
}

#features {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

/* 미리보기 창 */
.preview-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
}

.preview-bubble {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.preview-bubble-user {
    max-width: 80%;
    font-size: 0.82rem;
}

/* 요금제 */
.pricing-section {
    background-color: #fff;
}

.feature-card.pricing-card {
    padding: clamp(24px, 5vw, 40px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #eee !important;
}

.feature-card.pricing-card--featured {
    background: linear-gradient(135deg, #60a5fa 0%, #2dd4bf 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.pricing-price {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.pricing-vat {
    font-size: 0.75rem;
}

.pricing-vat--dim {
    opacity: 0.8;
}

.pricing-features {
    max-width: 280px;
}

/* CTA */
.cta-inner {
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

.cta-section .hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

@media (max-width: 767px) {
    .cta-section .hero-title {
        font-size: 1.75rem !important;
    }
}
