/* --- DESIGN SYSTEM --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --border: #e2e8f0;
    --font-main: 'Pretendard', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); line-height: 1.6; }

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

/* --- HEADER --- */
header { padding: 20px 0; border-bottom: 1px solid var(--border); background: white; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--text-dark); 
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo .oo { 
    color: var(--primary); 
    font-size: 1.8rem;
}
.logo .link { 
    color: var(--text-dark);
}
.logo .io {
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 600;
}
.btn-start { background: var(--text-dark); color: white; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* --- HERO --- */
.hero { text-align: center; padding: 100px 0 60px; background: white; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 40px; }

/* Input Box */
.input-wrapper {
    max-width: 600px; margin: 0 auto; display: flex; gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 8px; border-radius: 12px; border: 1px solid var(--border);
}
.input-wrapper input { flex: 1; border: none; background: var(--bg-light); padding: 16px; border-radius: 8px; font-size: 1rem; outline: none; }
.input-wrapper button { background: var(--primary); color: white; border: none; padding: 16px 30px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; min-height: 54px; white-space: nowrap; }

/* --- HOW IT WORKS (FLOW) --- */
.process { padding: 80px 0; background: var(--bg-light); }
.sec-title { text-align: center; margin-bottom: 60px; }
.sec-title h2 { font-size: 2.2rem; margin-bottom: 10px; }
.sec-title p { color: var(--text-gray); }

.flow-steps { display: flex; justify-content: space-between; align-items: stretch; gap: 20px; position: relative; }
.step { flex: 1; background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border); text-align: center; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.step-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--text-gray); word-break: keep-all; }

/* Arrow between steps */
.arrow { font-size: 2rem; color: var(--border); align-self: center; margin-top: -30px; }

/* Whisper Effect Highlight */
.whisper-badge {
    position: absolute; top: 15px; right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; padding: 6px 12px; border-radius: 20px; 
    font-size: 0.75rem; font-weight: 700;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* --- STATS (NUMBERS) --- */
.stats { padding: 80px 0; background: white; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-card { text-align: center; padding: 40px 20px; border-radius: 16px; background: white; border: 1px solid var(--border); transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--primary); }
.stat-num { font-size: 3.5rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 10px; }
.stat-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.stat-desc { font-size: 0.9rem; color: var(--text-gray); }

/* --- DASHBOARD PREVIEW --- */
.dashboard-sec { padding: 80px 0; background: white; text-align: center; }
.dash-mockup {
    max-width: 800px; margin: 40px auto 0; background: #f8fafc; border-radius: 12px; border: 2px solid var(--border);
    padding: 30px; text-align: left; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.dash-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 15px 0; align-items: center; }
.dash-row:last-child { border-bottom: none; }
.d-col-1 { width: 40%; font-family: monospace; color: var(--text-dark); }
.d-col-2 { width: 20%; color: #22c55e; font-weight: bold; }
.d-col-3 { width: 40%; font-size: 0.9rem; color: var(--text-dark); background: white; padding: 8px; border-radius: 4px; border: 1px solid var(--border); }

.ai-badge { background: linear-gradient(90deg, #6366f1, #ec4899); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-right: 6px; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; line-height: 1.3; }
    .hero p { font-size: 1rem; }
    .input-wrapper { flex-direction: column; }
    .input-wrapper button { width: 100%; padding: 18px; font-size: 1.1rem; font-weight: 800; }
    .flow-steps { flex-direction: column; }
    .arrow { transform: rotate(90deg); margin: 10px 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .step p { font-size: 0.85rem; }
    .sec-title h2 { font-size: 1.8rem; }
    .sec-title p { font-size: 0.9rem; }
    .modal-content { padding: 30px 20px; }
    .phone-number { font-size: 1.5rem; }
    .sample-section h4 { font-size: 1rem; }
    .sample-btn { padding: 12px; font-size: 0.9rem; }
    .sample-btn small { font-size: 0.75rem; }
    .stat-num { font-size: 2.5rem; }
    .stat-label { font-size: 1rem; }
    .dash-mockup { padding: 20px; }
    .d-col-1, .d-col-2, .d-col-3 { font-size: 0.8rem; }
    .d-col-1 span { font-size: 0.7rem !important; }
    
    /* Fix AI Agent section card layout on mobile */
    .process div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .process div[style*="flex:1"],
    .process div[style*="flex:0 0 200px"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Modal */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); z-index: 1000;
    justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: white; border-radius: 20px; padding: 40px;
    max-width: 500px; width: 90%; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; cursor: pointer; color: #999;
    background: none; border: none;
}
.modal-close:hover { color: #333; }
.phone-display {
    background: var(--bg-light); padding: 20px;
    border-radius: 12px; text-align: center;
    margin: 20px 0; border: 2px dashed var(--border);
}
.phone-number {
    font-size: 2rem; font-weight: 800;
    color: var(--primary); letter-spacing: 2px;
    font-family: monospace;
}
.phone-notice {
    margin-top: 10px; font-size: 0.9rem; color: var(--text-gray);
}
.sample-section {
    margin-top: 30px; padding-top: 30px;
    border-top: 1px solid var(--border);
}
.sample-section h4 {
    font-size: 1.1rem; margin-bottom: 15px;
    color: var(--text-dark);
}
.sample-buttons {
    display: flex; flex-direction: column; gap: 10px;
}
.sample-btn {
    background: white; border: 2px solid var(--border);
    padding: 15px; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.3s; font-size: 1rem;
}
.sample-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}
.sample-btn.playing {
    background: var(--primary); color: white;
    border-color: var(--primary);
}
.sample-icon { font-size: 1.5rem; }
.wave-icon {
    display: none;
    width: 30px;
    height: 30px;
    margin-left: auto;
}
.sample-btn.playing .wave-icon {
    display: flex;
    gap: 3px;
    align-items: center;
}
.wave-bar {
    width: 3px;
    background: white;
    border-radius: 3px;
    animation: wave 0.6s ease-in-out infinite;
}
.wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 18px; animation-delay: 0.3s; }
@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}
.cta-button {
    width: 100%; background: var(--primary);
    color: white; padding: 16px; border: none;
    border-radius: 10px; font-size: 1.1rem;
    font-weight: 700; cursor: pointer;
    margin-top: 20px;
}
.cta-button:hover { background: var(--primary-dark); }
.mobile-hide { display: inline; }
@media (max-width: 768px) {
    .mobile-hide { display: none; }
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}
.form-submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}
.form-submit-btn:hover {
    background: var(--primary-dark);
}
.form-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
