:root {
            --primary: #1a73e8;
            --accent: #ea4335;
            --bg: #ffffff;
            --text: #111111;
            --gray: #888888;
            --light-gray: #f9f9f9;
        }

        * { box-sizing: border-box; }
        body { 
            font-family: 'Pretendard', sans-serif; 
            margin: 0; 
            padding: 0; 
            background-color: var(--bg); 
            color: var(--text); 
            overflow-x: hidden;
            line-height: 1.4;
        }

        /* 유틸리티: 스크롤 애니메이션 */
        .fade-in-section {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 1s ease-out, transform 1s ease-out;
            will-change: opacity, visibility;
        }
        .fade-in-section.is-visible {
            opacity: 1;
            transform: none;
        }

        /* 섹션 공통 */
        section {
            min-height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 90px 20px; /* 기존 60px에서 1.5배 증가 */
            position: relative;
        }

        h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
        h2 { text-align: center; } /* 기본 정렬 */
        p { font-size: 1.1rem; color: var(--gray); max-width: 700px; text-align: center; margin: 0 auto 20px auto; line-height: 1.6; }

        .section-title {
            font-size: clamp(2.2rem, 5vw, 2.8rem);
            margin-bottom: 15px;
        }
        .section-subtitle {
            font-size: 1.2rem;
            margin-bottom: 50px;
        }

        /* 1. HERO SECTION */
        .hero {
            text-align: center;
            min-height: 100vh;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .hero-bg-poster {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center center;
            z-index: 1;
            transition: opacity 1.5s ease-in-out;
        }

        .hero-video-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
        }
        
        .hero-video-bg iframe {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100vw;
            height: 56.25vw;
            min-height: 100vh;
            min-width: 177.77vh;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }
        
        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            z-index: 2;
        }

        .hero-content {
            position: relative;
            z-index: 3;
        }
        .hero h1 {
            font-size: clamp(3.5rem, 8vw, 6rem);
            line-height: 1.1;
            background: linear-gradient(135deg, #1a73e8 0%, #ea4335 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)); /* 텍스트 그림자로 가독성 향상 */
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem; /* 모바일에서 최소 글자 크기 보장 */
            }
        }
        .hero-sub {
            font-size: clamp(1.2rem, 2.5vw, 1.8rem);
            font-weight: 600;
            color: #f0f0f0;
            text-shadow: 0 2px 8px rgba(0,0,0,0.7); /* 텍스트 그림자로 가독성 향상 */
        }
        .hero h1 .hero-normal-text {
            color: white;
            -webkit-text-fill-color: white; /* Override transparent fill for these parts */
            background: none; /* Remove gradient for these parts */
            filter: none; /* Remove drop shadow for normal text if needed */
        }
        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            animation: bounce 2s infinite;
            opacity: 0.7;
        }

        /* 2. IMPACT SECTION (NUMBERS) */
        .impact-box {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            justify-content: center;
            text-align: center;
            margin-top: 50px;
        }
        .number-card {
            padding: 20px;
        }
        .big-number {
            font-size: clamp(4rem, 10vw, 8rem);
            font-weight: 900;
            color: var(--primary);
            line-height: 1;
        }
        .label {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text);
            margin-top: 10px;
            display: block;
        }
        .sub-label {
            font-size: 0.9rem;
            color: var(--gray);
        }

        /* 3. PROBLEM & SOLUTION */
        .dual-section {
            background-color: var(--light-gray);
            padding-bottom: 120px; /* 기존 60px에서 2배 증가 */
        }
        .contrast-text {
            font-size: clamp(2rem, 4vw, 3.5rem);
            text-align: center;
            color: #ccc;
            font-weight: 700;
            margin-bottom: 20px;
        }
        .highlight-text {
            color: var(--text);
        }
        .solution-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            max-width: 1200px;
            width: 100%;
            margin-top: 60px;
        }
        .feature-card {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            text-align: center;
            transition: transform 0.3s;
        }
        .feature-card:hover { transform: translateY(-10px); }
        .feature-icon { font-size: 3rem; margin-bottom: 20px; display: block;}
        .feature-title { font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; }

        /* 4. DEVICE SECTION */
        .device-section {
            background-color: #111;
            color: white;
        }
        .device-section p { color: #999; }
        
        .mockup-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 60px;
            flex-wrap: wrap;
            margin-top: 50px;
            width: 100%;
        }

        .text-group { 
            text-align: left; 
            max-width: 400px; 
            line-height: 1.5; 
        }
        .text-group h2 { font-size: 3rem; margin-bottom: 20px; }

        /* 애니메이션 스테이지 */
        .animation-stage {
            position: relative;
            width: 320px; 
            height: 550px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 공통 레이어 */
        .stage-layer {
            position: absolute;
            transition: opacity 0.5s ease, transform 0.5s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0; /* JS로 제어하기 위해 기본 숨김 */
            pointer-events: none;
        }
        .stage-layer.active {
            opacity: 1;
            pointer-events: auto;
        }

        /* LAYER 1: 키오스크 */
        .kiosk-layer {
            width: 100%;
            height: 100%;
            z-index: 2;
        }
        .kiosk-layer img {
            width: auto;
            max-width: 100%;
            height: auto;
            max-height: 100%;
            object-fit: contain;
            /* 키오스크 확대 유지 */
            transform: scale(1.2); 
            transform-origin: center center;
        }

        /* LAYER 2: 손가락 터치 아이콘 */
        .finger-touch {
            position: absolute;
            /* 손가락 위치 10% 아래로 유지 */
            top: 63%;
            left: 54%;
            font-size: 6rem; 
            transform: translate(-50%, -50%);
            z-index: 10;
            filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
        }
        
        .finger-touch.animate {
            animation: finger-tap-sequence 2.5s forwards;
        }

        /* LAYER 3: 앱 목업 (수정: 크기 축소 및 노치 제거) */
        .app-layer {
            z-index: 1;
        }
        .phone-frame {
            /* 기존 260x520 -> 10% 축소: 234x468 */
            width: 234px; 
            height: 468px; 
            background: #222; 
            border-radius: 30px; /* 깔끔한 라운드 사각형 */
            border: 8px solid #333; 
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            overflow: hidden;
            position: relative;
        }
        /* 노치 제거: ::before 요소 삭제됨 */

        /* 애니메이션 정의 */
        @keyframes finger-tap-sequence {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } /* 시작: 안보임 + 작음 */
            20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } /* 등장: 커짐 */
            50% { transform: translate(-50%, -50%) scale(0.9); } /* 터치: 살짝 눌림 */
            80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } /* 복귀 */
            100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } /* 퇴장 */
        }

        /* 5. Q&A SECTION */
        .qa-section {
            background-color: white;
            padding: 120px 20px; /* 기존 60px 20px에서 위아래 패딩 2배 증가 */
            /* max-width와 margin: 0 auto; 제거하여 배경 전체 너비 적용 */
            width: 100%;
        }
        .qa-content-wrapper { /* 새로 추가된 컨텐츠 래퍼 */
            max-width: 800px; /* 내부 컨텐츠는 중앙 정렬 유지 */
            margin: 0 auto;
            width: 100%;
            padding: 0 20px; /* 좌우 패딩으로 내용이 화면 끝에 붙지 않도록 */
        }
        .qa-list {
            width: 100%;
            margin-top: 40px;
            border-top: 1px solid #444; /* Darker border for dark background */
        }
        .qa-item {
            border-bottom: 1px solid #444; /* Darker border for dark background */
        }
        .qa-summary {
            padding: 25px 0;
            font-size: 1.3rem;
            font-weight: 700;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: white; /* Text color for dark background */
        }
        .qa-summary::-webkit-details-marker { display: none; }
        .qa-summary::after {
            content: '+';
            font-size: 1.5rem;
            color: var(--primary);
            font-weight: 400;
        }
        details[open] .qa-summary::after { content: '-'; }
        .qa-answer {
            padding-bottom: 25px;
            color: #ccc; /* Text color for dark background */
            font-size: 1.1rem;
            line-height: 1.6;
        }

        /* 6. OWNER LINK SECTION */
        .owner-section {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/main/cafe.webp') no-repeat center center;
            background-size: cover;
            text-align: center;
            padding: 180px 20px; /* 기존 80px에서 1.5배 증가, 요청에 따라 세로 높이 50% 증가 */
            color: white; /* 텍스트 색상을 흰색으로 변경 */
        }
        .owner-link-box {
            border: 2px solid var(--primary);
            border-radius: 20px;
            padding: 40px;
            background: rgba(0, 0, 0, 0.4); /* 불투명도를 0.4로 높임 */
            max-width: 600px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 10px 25px rgba(26, 115, 232, 0.1);
            color: white; /* 내부 텍스트 색상 흰색으로 */
        }
        /* 버튼 시스템 */
        .btn {
            display: inline-block;
            padding: 15px 35px;
            font-size: 1.1rem;
            font-weight: 700;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        .btn-primary {
            background-color: var(--primary);
            color: white;
            box-shadow: 0 10px 20px rgba(26, 115, 232, 0.2);
        }
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(26, 115, 232, 0.4);
        }
        .btn-secondary {
            background-color: white;
            color: var(--primary);
            border-color: var(--primary);
        }
        .btn-secondary:hover {
            background-color: var(--primary);
            color: white;
        }

        /* 7. CTA */
        .cta-section {
            padding-top: 120px; /* 기존 60px에서 2배 증가 */
            text-align: center;
        }
        .secondary-link {
            margin-top: 20px;
            display: block;
            color: var(--gray);
            text-decoration: underline;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-10px);}
            60% {transform: translateY(-5px);}
        }
        
        @media (max-width: 768px) {
            .text-group { text-align: center; }
            .hero h1 { /* margin-top: -50px; */ }
            .hero-sub { margin-bottom: 40px; } /* Added for spacing */
            .mockup-container { gap: 40px; }
        }

        /* 카드 컨테이너 스타일 */
        .card-container {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            width: 100%;
            max-width: 900px;
        }

        /* 요약 강조 스타일 */
        .summary-highlight {
            background-color: #f0f3f8;
            padding: 15px;
            border-radius: 10px;
            margin-top: 20px;
            text-align: center; 
            font-size: 1.1em; 
            font-weight: 600; 
            color: var(--accent);
        }

        #profit-arrow-svg {
            position: absolute;
            left: 7%; /* PC 기본 위치 */
            top: 22%;
            width: 130px;
            height: 75%;
            pointer-events: none;
        }
        @media (max-width: 768px) {
            #profit-arrow-svg {
                left: auto;
                right: 0; /* 오른쪽 기준으로 위치를 조정합니다. */
            }
        }
        
        /* 외부 CSS 덮어쓰기 */
        html {
            font-size: 16px; /* 기본 폰트 사이즈 복원 */
        }
        @media (min-width: 992px) {
            .review-grid {
                grid-template-columns: repeat(3, 1fr) !important; /* 3단 그리드 레이아웃 복원 */
            }
        }
/* 리뷰 섹션 스타일 (기존 <style> 태그 안에 추가하거나, 여기 그대로 두셔도 됩니다) */
.review-section { background-color: white; padding-bottom: 80px; }

.review-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: default to one column */
    gap: 25px;
    margin-top: 40px;
}

/* Add a media query for desktop */
@media (min-width: 992px) {
    .review-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on PC */
    }
}

.review-card {
    background: #f9f9f9;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}
.review-card:hover { transform: translateY(-5px); }

/* 카드 상단에 인용 부호 아이콘 추가 */
.review-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: rgba(0,0,0,0.08);
    font-weight: 800;
    line-height: 1;
}

/* 사장님 리뷰 강조 스타일 */
.review-card.highlight-card {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #e9f1ff, white);
}
.review-card.highlight-card::before {
    color: rgba(26, 115, 232, 0.1);
}

.review-stars { color: #FFD700; margin-bottom: 15px; font-size: 1.1rem; letter-spacing: 2px; z-index: 1; position: relative; }

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    margin: 40px 0 25px 0; /* 상단 마진 추가 */
    font-weight: 500;
    word-break: keep-all;
    z-index: 1;
    position: relative;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    z-index: 1;
    position: relative;
}

.author-avatar {
    width: 45px; height: 45px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    border: 1px solid #eee;
}

.author-info { display: flex; flex-direction: column; }
.author-info strong { font-size: 0.95rem; color: var(--text); }
.author-info span { font-size: 0.85rem; color: var(--gray); margin-top: 2px; }

@media (max-width: 768px) {
    .review-grid { grid-template-columns: 1fr; }
    .review-text br { display: none; } /* 모바일에서는 줄바꿈 제거 */
}

/* Recommendation Form Styles */
#recommend-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}
#recommend-btn.active {
    background-color: white;
    color: var(--text);
    border: 2px solid var(--text);
}
#recommend-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border-radius: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}
#recommend-form input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Pretendard', sans-serif;
}
#recommend-form input::placeholder {
    color: #aaa;
}
#recommend-form .btn-secondary {
    border-color: var(--primary);
    cursor: pointer;
}
#form-success-message {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background-color: #e9f1ff;
    border: 1px solid var(--primary);
    width: 100%;
    max-width: 400px;
}
#form-success-message p {
    margin: 0;
    color: var(--primary);
    font-weight: 500;
}
.hidden {
    display: none !important;
}
