:root {
    --primary: #FF4015;
    --black: #000000;
    --bg-light: #F2F2F7;
    --text-main: #1D1D1F;
    --text-sub: #86868B;
    --font-landing: 120px;
    --iphone-frame: #1c1c1e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--text-main); line-height: 1.5; overflow-x: hidden; }

/* Landing Animation */
#landing { position: fixed; inset: 0; background: #fff; display: flex; justify-content: center; align-items: center; z-index: 2000; transition: opacity 0.8s; }
.animation-container { display: flex; align-items: center; letter-spacing: -5px; }
.bold-text { font-size: var(--font-landing); font-weight: 900; color: var(--black); transition: color 0.6s ease; }
#typing-wrapper { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; display: flex; align-items: center; transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1); }
#typing-text { font-size: 32px; font-weight: 400; color: #555; font-style: italic; letter-spacing: 0; padding-right: 10px; }
.animation-container.expanded #typing-wrapper { max-width: 1000px; opacity: 1; margin: 0 50px; }
.animation-container.orange-mode .bold-text { color: var(--primary); }

#main-page { opacity: 0; transition: opacity 1s ease; max-width: 1200px; margin: 0 auto; padding: 0 40px; padding-bottom: 100px; }
.header-nav { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; border-bottom: 1px solid #eee; margin-bottom: 40px; }
.main-logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.tab-menu { display: flex; gap: 30px; }
.tab-btn { background: none; border: none; font-size: 1rem; font-weight: 700; color: var(--text-sub); cursor: pointer; padding: 10px 0; transition: 0.3s; position: relative; }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary); }
.tab-content { display: none; padding-bottom: 100px; }
.tab-content.active { display: block; animation: slideUp 0.6s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ABOUT HERO & 3D BG */
.about-hero { position: relative; text-align: center; padding: 100px 0 80px; overflow: hidden; }
#hero-3d-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.8; pointer-events: none; }
.hero-content { position: relative; z-index: 10; }
.badge { background: #FDECEA; color: var(--primary); padding: 8px 18px; border-radius: 30px; font-size: 0.9rem; font-weight: 700; margin-bottom: 25px; display: inline-block; }
.about-hero h2 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 10px; letter-spacing: -2px; }
.about-hero .highlight { color: var(--primary); }
.about-hero p { font-size: 1.3rem; color: var(--text-sub); max-width: 750px; margin: 0 auto; line-height: 1.5; }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 60px 0; }
.feature-card { background: var(--bg-light); padding: 50px 40px; border-radius: 32px; transition: 0.4s; border: 1px solid transparent; cursor: pointer; }
.feature-card:hover { transform: translateY(-12px); background: #fff; border-color: #eee; box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.card-icon { font-size: 3rem; margin-bottom: 25px; display: block; }

/* Split Section & Accordion UI */
.split-section { display: flex; align-items: center; gap: 80px; padding: 100px 0; }
.split-text { flex: 0.7; padding-left: 20px; }
.split-text h4 { color: var(--primary); font-weight: 700; margin-bottom: 15px; text-transform: uppercase; }
.split-text h2 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.split-visual { flex: 0.9; height: 400px; background: var(--bg-light); border-radius: 32px; overflow: hidden; padding: 20px; position: relative; }

.interaction-hint {
    position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 20;
    background: rgba(0, 0, 0, 0.6); color: #fff; padding: 10px 20px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
    backdrop-filter: blur(5px); pointer-events: none; transition: opacity 0.3s ease;
}
.split-visual:hover .interaction-hint { opacity: 0; }

.mock-ui { display: flex; gap: 20px; height: 100%; width: 100%; }
.ui-main { flex: 1; display: flex; gap: 15px; height: 100%; width: 100%; }
.ui-pane { flex: 1; background: #fff; border-radius: 20px; overflow: hidden; position: relative; transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; height: 100%; }
.ui-pane:hover { flex: 3; }
.split-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.95); }
.ui-pane:hover .split-img { transform: scale(1.05); }

.pane-label { 
    position: absolute; bottom: 20px; left: 20px; color: #fff; 
    font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    opacity: 0; transform: translateY(10px); transition: 0.3s; 
    font-size: 1.2rem;
}
.ui-pane:hover .pane-label { opacity: 1; transform: translateY(0); }

/* Demo UI (Tab 2) */
.demo-container { 
    padding: 60px 0; 
    position: relative; 
}

/* SVG 연결선 스타일 */
.svg-connector-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; 
    z-index: 0; 
}

#connection-svg {
    width: 100%; height: 100%;
    overflow: visible;
}

.connection-line-bg {
    fill: none;
    stroke: #d1d1d6; 
    stroke-width: 4;
    stroke-dasharray: 10, 10;
    stroke-linecap: round;
}

.connection-line-active {
    fill: none;
    stroke: var(--primary); 
    stroke-width: 4;
    stroke-dasharray: 10, 10;
    stroke-linecap: round;
}

.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 80px; margin-bottom: 140px; position: relative; z-index: 2; }
.demo-row.reverse { flex-direction: row-reverse; }
.text-side { flex: 1; }
.step-tag { display: inline-block; color: var(--primary); font-weight: 800; font-size: 0.9rem; margin-bottom: 15px; letter-spacing: 1px; }
.demo-title { font-size: 2.8rem; font-weight: 900; margin-bottom: 25px; color: var(--black); line-height: 1.2; }
.demo-desc { font-size: 1.15rem; color: var(--text-sub); line-height: 1.7; word-break: keep-all; }
.mockup-side { flex: 1.3; display: flex; justify-content: center; position: relative; z-index: 2; }
.iphone-mockup.horizontal { width: 100%; max-width: 620px; aspect-ratio: 832 / 410; background: var(--iphone-frame); border-radius: 27px; padding: 7px; position: relative; box-shadow: 0 40px 100px rgba(0,0,0,0.15); border: 3px solid #48484a; }
.iphone-mockup.horizontal .screen { width: 100%; height: 100%; background: #fdfdfd; border-radius: 17px; overflow: hidden; position: relative; }

.demo-viz { width: 100%; height: 100%; transition: 0.5s; object-fit: cover; }
.bg-dark-gray { background: #333; }

/* AI Workstation (Tab 3) */
.ai-workstation { display: flex; gap: 30px; max-width: 1100px; margin: 40px auto; align-items: flex-start; }
.ai-step-box { background: #fff; border: 1px solid #eee; border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); flex: 1; position: relative; transition: 0.3s; }
.ai-step-box.disabled { opacity: 0.5; pointer-events: none; filter: grayscale(1); }
.step-label { font-size: 12px; font-weight: 900; color: var(--primary); margin-bottom: 10px; letter-spacing: 1px; }
.ai-step-box h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.step-desc { font-size: 0.95rem; color: var(--text-sub); margin-bottom: 25px; }

/* Category Buttons */
.category-group { display: flex; flex-direction: column; gap: 15px; }
.cat-btn { display: flex; align-items: center; gap: 15px; background: #f5f5f7; border: 2px solid transparent; padding: 20px; border-radius: 16px; cursor: pointer; transition: 0.3s; text-align: left; }
.cat-btn:hover { background: #fff; border-color: #ddd; transform: translateY(-3px); }
.cat-btn.active { background: #fff; border-color: var(--primary); box-shadow: 0 10px 20px rgba(255, 64, 21, 0.15); }
.cat-icon { font-size: 2rem; }
.cat-name { font-size: 1.2rem; font-weight: 800; color: var(--text-main); }

/* Viewport Area */
.ai-viewport { width: 100%; aspect-ratio: 4/3; background: #000; border-radius: 16px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; margin-top: 20px; }
#ai-target-image { width: 100%; height: 100%; object-fit: contain; }

/* Upload Button */
#ai-img-upload { display: none; }
.ai-upload-btn { background: rgba(255,255,255,0.1); border: 1px dashed rgba(255,255,255,0.4); color: #fff; padding: 15px 30px; border-radius: 30px; cursor: pointer; font-weight: 700; transition: 0.3s; }
.ai-upload-btn:hover { background: var(--primary); border-color: var(--primary); }

/* Result Overlay */
#ai-result-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.85); padding: 20px; color: #fff; backdrop-filter: blur(5px); }
.result-label { font-size: 1.2rem; font-weight: 900; margin-bottom: 5px; color: var(--primary); text-transform: uppercase; }
.confidence-track { width: 100%; height: 6px; background: #333; border-radius: 3px; margin-bottom: 5px; overflow: hidden; }
.confidence-bar { height: 100%; background: var(--primary); transition: width 0.5s ease; }
.result-percent { font-size: 0.9rem; text-align: right; color: #aaa; }

/* Spinner */
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* About Footer */
.about-footer { padding: 160px 20px; background: linear-gradient(to bottom, #fff, #f9f9fb); border-top: 1px solid #eee; text-align: center; position: relative; overflow: hidden; }
.footer-content { max-width: 600px; margin: 0 auto; position: relative; z-index: 10; }
.footer-title { font-size: 3.5rem; font-weight: 900; color: var(--black); margin-bottom: 20px; letter-spacing: -2px; line-height: 1.1; }
.footer-desc { font-size: 1.2rem; color: var(--text-sub); margin-bottom: 50px; line-height: 1.6; }

/* CTA Button */
.cta-button-large { display: inline-block; background: var(--black); color: #fff; text-decoration: none; padding: 22px 60px; border-radius: 60px; font-size: 1.4rem; font-weight: 700; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 20px 40px rgba(0,0,0,0.15); border: 2px solid transparent; }
.cta-button-large:hover { background: #fff; color: var(--black); border-color: var(--black); transform: translateY(-5px) scale(1.05); box-shadow: 0 30px 60px rgba(0,0,0,0.2); }

/* AI Guide Text */
.guide-text { background: #eef2ff; color: var(--primary); font-weight: 700; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.4; border-left: 4px solid var(--primary); }

/* ========================================================= */
/* 모바일 반응형 스타일 (여기서부터 수정됨) */
/* ========================================================= */
@media (max-width: 800px) {
    /* 1. 기본 레이아웃 최적화 */
    #main-page { padding: 0 20px 60px; }
    .header-nav { flex-direction: column; gap: 20px; padding: 20px 0; }
    .tab-menu { flex-wrap: wrap; justify-content: center; gap: 10px; }
    
    /* 2. 랜딩 섹션 (3D 포함) */
    .bold-text { font-size: 60px; }
    #typing-text { font-size: 18px; }
    .animation-container.expanded #typing-wrapper { margin: 0 10px; }

    /* 3. [중요] ABOUT 3D 오브젝트 잘림 방지 */
    .about-hero { padding: 60px 0; min-height: 500px; } /* 높이 확보 */
    #hero-3d-bg canvas {
        transform: scale(0.6); /* 전체 크기 60%로 축소 */
        transform-origin: center center;
        max-width: 100% !important;
        height: auto !important;
    }
    .about-hero h2 { font-size: 2.2rem; }
    .about-hero p { font-size: 1rem; padding: 0 10px; }

    /* 4. 그리드 및 스플릿 섹션 */
    .feature-grid { grid-template-columns: 1fr; gap: 20px; }
    .split-section { flex-direction: column-reverse; gap: 30px; padding: 60px 0; }
    .split-text { text-align: center; }
    .split-text h2 { font-size: 2.2rem; }
    .split-visual { width: 100%; height: 350px; }
    
    /* 5. [중요] 목업 테두리 및 라운드값 수정 (클래스명 교체) */
    .demo-row, .demo-row.reverse { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
        margin-bottom: 80px;
    }
    .iphone-mockup.horizontal { 
        border-width: 4px !important; /* 테두리 얇게 */
        border-radius: 24px !important; /* 모서리 덜 둥글게 */
        padding: 6px !important; /* 안쪽 여백 줄임 */
        max-width: 90%;
    }
    .iphone-mockup.horizontal .screen {
        border-radius: 18px !important; /* 화면 곡률도 함께 조절 */
    }
    .iphone-mockup.horizontal .dynamic-island {
        height: 40px; /* 노치 크기도 모바일에 맞게 조절 */
        left: 12px;
    }

    /* 6. AI Workstation 및 기타 */
    .ai-workstation { flex-direction: column; }
    .ai-step-box { width: 100%; padding: 20px; }
    .footer-title { font-size: 2.2rem; }
    .cta-button-large { padding: 18px 40px; font-size: 1.1rem; width: 100%; }
}
