:root {
    --bg-color: #f5f8f6;
    --panel-bg: rgba(255, 255, 255, 0.88);
    --accent-cyan: #0c3e26;
    --accent-teal: #1b5e3a;
    --accent-emerald: #10b981;
    --accent-gold: #c8701e;
    --text-main: #13241b;
    --text-sub: #485c50;
    --border-glass: rgba(12, 62, 38, 0.08);
    --shadow-premium: 0 20px 50px rgba(12, 62, 38, 0.06);
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-teal); }

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

/* Glass Header */
header.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

header.navbar.scrolled {
    padding: 14px 5%;
    background: rgba(8, 12, 20, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.brand-logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    line-height: 1.1;
}

.brand-slogan {
    font-size: 0.68rem;
    font-weight: 700;
    color: #2dd4bf;
    letter-spacing: -0.2px;
    margin-top: 3px;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #2dd4bf;
}

.nav-cta {
    background: var(--accent-teal);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(27, 94, 58, 0.4);
    text-decoration: none;
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: #237a4b;
    box-shadow: 0 6px 20px rgba(27, 94, 58, 0.6);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #080c14;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.65) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(8, 12, 20, 0.3) 0%, rgba(8, 12, 20, 0.8) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 960px;
    padding: 100px 24px 40px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-badge {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 7px;
    color: #2dd4bf;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.35;
    color: #ffffff;
    margin-bottom: 24px;
    word-break: keep-all;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 25px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.9);
}

.hero-title span {
    color: #34d399;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.hero-sub {
    font-size: 1.2rem;
    color: #f1f5f9;
    line-height: 1.7;
    margin-bottom: 35px;
    word-break: keep-all;
    font-weight: 400;
    max-width: 740px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent-teal);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-cyan);
    letter-spacing: -1px;
    word-break: keep-all;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-teal);
    color: #ffffff;
    padding: 18px 44px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(27, 94, 58, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #237a4b;
    box-shadow: 0 15px 35px rgba(27, 94, 58, 0.6);
}

/* Diagnostic Quiz Styling */
.quiz-container {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
}

.quiz-card {
    background: var(--bg-color);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(12, 62, 38, 0.08);
    transition: var(--transition);
}

.quiz-card:hover {
    border-color: var(--accent-teal);
}

.quiz-checkbox {
    width: 22px;
    height: 22px;
    accent-color: var(--accent-teal);
    cursor: pointer;
}

/* Comparison & Pricing */
.comp-container {
    background: var(--panel-bg);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-glass);
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
}

.comp-table th {
    padding: 18px 12px;
    background: rgba(12, 62, 38, 0.05);
    color: var(--accent-cyan);
    font-weight: 800;
    border-bottom: 2px solid var(--border-glass);
}

.comp-table td {
    padding: 18px 12px;
    border-bottom: 1px solid var(--border-glass);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.price-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    text-align: center;
    transition: var(--transition);
}

.price-card.popular {
    border: 2px solid var(--accent-teal);
    background: rgba(27, 94, 58, 0.03);
}

/* Free Inspection Form Card */
.inspection-card {
    background: linear-gradient(135deg, #080c14 0%, #13241b 100%);
    border-radius: 32px;
    padding: 48px;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.form-input::placeholder {
    color: #64748b;
}

/* Mobile Bottom Sticky Action Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    z-index: 9999;
    background: rgba(8, 12, 20, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px;
    gap: 10px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-bar a {
    flex: 1;
    padding: 13px 0;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-mob-call {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-mob-quote {
    background: var(--accent-teal);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(27, 94, 58, 0.4);
}

/* Footer Grid Default Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Global Mobile Reset & Overflow Fix */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    header.navbar { padding: 12px 16px; }
    .nav-links { display: none; }
    .container { padding: 0 16px !important; width: 100% !important; box-sizing: border-box !important; }
    section { padding: 55px 0 !important; }
    
    .hero { min-height: 85vh; padding: 100px 0 60px !important; }
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.38 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 16px !important;
        word-break: keep-all;
    }
    .hero-sub {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
        word-break: keep-all;
    }
    .section-title {
        font-size: 1.55rem !important;
        line-height: 1.35 !important;
        word-break: keep-all;
    }
    .section-header p {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
    }
    .btn-primary {
        width: 100%;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }

    .comp-container, .quiz-container, .inspection-card { padding: 20px 14px !important; border-radius: 18px; }
    
    /* KOLAS Table Mobile Horizontal Touch Scroll Fix */
    .comp-table { min-width: 580px !important; font-size: 0.8rem !important; }
    .comp-table th, .comp-table td { white-space: nowrap !important; padding: 10px 8px !important; }
    
    /* Footer Grid Mobile Stack */
    .footer-grid { grid-template-columns: 1fr !important; gap: 30px !important; padding-bottom: 30px !important; }

    /* Packaging Banner Mobile Stack */
    .packaging-trio-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .packaging-trio-grid h3 { font-size: 1.45rem !important; }
    
    /* Before / After Slider Mobile Height */
    .ba-slider-container { height: 260px !important; border-radius: 16px !important; }

    /* Video and Image Fluid Response */
    video { width: 100% !important; max-width: 100% !important; height: auto !important; }
    img { max-width: 100% !important; }

    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 75px; }
    .kakao-float-btn { bottom: 85px; right: 14px; padding: 12px 18px; font-size: 0.88rem; }
}

/* ==========================================================================
   NEW CRO & UX ENHANCEMENTS (Phase 1 & Phase 2)
   ========================================================================== */

/* 1. KakaoTalk Floating Button */
.kakao-float-btn {
    position: fixed;
    bottom: 30px;
    right: 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FEE500;
    color: #191919;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(254, 229, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: kakaoPulse 2.5s infinite;
}

.kakao-float-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(254, 229, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.25);
    background: #ffeb3b;
}

.kakao-float-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@keyframes kakaoPulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(254, 229, 0, 0.4), 0 0 0 0 rgba(254, 229, 0, 0.7); }
    50% { box-shadow: 0 12px 30px rgba(254, 229, 0, 0.6), 0 0 0 12px rgba(254, 229, 0, 0); }
}

/* 2. Before/After Split Drag Slider */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 480px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid var(--accent-teal);
    box-shadow: 0 20px 50px rgba(12, 62, 38, 0.15);
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 768px) {
    .ba-slider-container { height: 320px; border-radius: 20px; }
}

.ba-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.ba-image-after-overlay {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 50%; /* JS updated */
    overflow: hidden;
    border-right: 3px solid #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.ba-image-after-overlay img {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Maintain full width ratio inside clipped div */
    max-width: none;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%; /* JS updated */
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 3px solid var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    color: var(--accent-teal);
    font-weight: 900;
    font-size: 1.1rem;
    transition: transform 0.15s ease;
}

.ba-handle:hover, .ba-handle:active {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--accent-teal);
    color: #ffffff;
}

.ba-badge {
    position: absolute;
    top: 18px;
    z-index: 5;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    pointer-events: none;
}

.ba-badge.before {
    right: 20px;
    top: 18px;
    background: rgba(15, 23, 42, 0.88);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-badge.after {
    left: 20px;
    top: 18px;
    background: rgba(27, 94, 58, 0.92);
    color: #ffffff;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

@media (max-width: 768px) {
    .ba-badge {
        font-size: 0.68rem;
        padding: 4px 10px;
        border-radius: 20px;
        white-space: nowrap;
    }
    .ba-badge.after {
        top: 12px;
        left: 12px;
    }
    .ba-badge.before {
        top: auto;
        bottom: 12px;
        right: 12px;
    }
}

/* 3. Social Proof Reviews Section */
.review-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(12, 62, 38, 0.12);
    border-color: var(--accent-teal);
}

.review-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b5e3a, #34d399);
    color: #ffffff;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-info-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.review-info-apt {
    font-size: 0.78rem;
    color: #64748b;
}

/* 4. FAQ Accordion Styling */
.faq-item {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--accent-teal);
    box-shadow: 0 15px 35px rgba(27, 94, 58, 0.08);
}

.faq-summary {
    padding: 22px 28px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-cyan);
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: "＋";
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-teal);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-summary::after {
    content: "−";
    color: var(--accent-gold);
}

.faq-answer {
    padding: 0 28px 24px 28px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
    border-top: 1px dashed rgba(12, 62, 38, 0.1);
    padding-top: 18px;
    margin-top: 4px;
}

