/* ================================================================
   doto Landing - Common Styles (landing.css)
   Bootstrap 5.3 Spacelab + Custom Overrides
   ================================================================ */

/* --- CSS Variables --- */
:root {
    --doto-primary: #2C3E50;
    --doto-accent: #446E9B;
    --doto-ai: #6366f1;
    --doto-ai-warm: #fd7e14;
    --doto-success: #198754;
    --doto-bg-alt: #f8f9fa;
    --doto-text: #334155;
    --doto-text-light: #64748b;
    --doto-border: #e2e8f0;
    --doto-radius: 16px;
    --doto-radius-lg: 24px;
    --doto-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --doto-shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
    --doto-transition: 0.3s ease;
}

/* --- Base / Reset --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--doto-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--doto-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--doto-text-light);
    max-width: 640px;
    margin: 0 auto;
}

.text-accent {
    color: var(--doto-accent);
}

.text-ai {
    color: var(--doto-ai);
}

.text-ai-warm {
    color: var(--doto-ai-warm);
}

.text-light-custom {
    color: var(--doto-text-light);
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
}

/* --- Navigation --- */
.landing-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--doto-transition);
}

@media (min-width: 992px) {
    .landing-nav {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.landing-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.landing-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--doto-primary);
    gap: 0.5rem;
}

.landing-nav .navbar-brand img {
    width: 32px;
    height: 32px;
}

.landing-nav .nav-link {
    font-weight: 600;
    color: var(--doto-text);
    padding: 0.5rem 1rem;
    transition: color var(--doto-transition);
}

.landing-nav .nav-link:hover,
.landing-nav .nav-link:focus {
    color: var(--doto-accent);
}

.landing-nav .dropdown-menu {
    border: 1px solid var(--doto-border);
    border-radius: var(--doto-radius);
    box-shadow: var(--doto-shadow-lg);
    padding: 0.75rem;
    min-width: 520px;
}

.landing-nav .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: background var(--doto-transition);
}

.landing-nav .dropdown-item:hover {
    background: var(--doto-bg-alt);
}

.landing-nav .dropdown-item.active,
.landing-nav .dropdown-item.active:hover {
    background: var(--doto-primary);
    color: #fff;
}

.landing-nav .dropdown-item.active i,
.landing-nav .dropdown-item.active .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.landing-nav .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Mobile offcanvas */
@media (max-width: 991.98px) {
    .landing-nav .offcanvas {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* --- Sections --- */
.landing-section {
    padding: 100px 0;
}

.landing-section-sm {
    padding: 60px 0;
}

.bg-alt {
    background-color: var(--doto-bg-alt);
}

.bg-dark-custom {
    background-color: var(--doto-primary);
    color: white;
}

/* --- Buttons --- */
.btn-doto {
    background: var(--doto-accent);
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all var(--doto-transition);
}

.btn-doto:hover {
    background: #3a5f87;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(68, 110, 155, 0.3);
}

.btn-doto-outline {
    background: transparent;
    color: var(--doto-accent);
    border: 2px solid var(--doto-accent);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all var(--doto-transition);
}

.btn-doto-outline:hover {
    background: var(--doto-accent);
    color: white;
    transform: translateY(-2px);
}

.btn-sm.btn-doto,
.btn-sm.btn-doto-outline {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* 네비게이션 버튼 높이 통일 */
.landing-nav .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    line-height: 1;
    box-sizing: border-box;
}

@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(68, 110, 155, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(68, 110, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(68, 110, 155, 0); }
}

.btn-pulse {
    animation: pulse-primary 2s infinite;
}

/* --- Cards --- */
.feature-card {
    background: white;
    border: 1px solid var(--doto-border);
    border-radius: var(--doto-radius);
    padding: 2rem;
    transition: all var(--doto-transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--doto-shadow-lg);
    border-color: transparent;
}

.feature-card .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--doto-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Check List --- */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding: 0.35rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--doto-text);
    font-size: 0.95rem;
}

.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--doto-success);
    font-weight: 700;
}

/* --- Mock UI: Window Frame --- */
.window-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: var(--doto-shadow-lg);
    background: #fff;
    transition: transform var(--doto-transition);
}

.window-frame:hover {
    transform: translateY(-5px);
}

.window-header {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

/* --- Mock UI: Chat Bubble --- */
.chat-bubble {
    border-radius: 1rem;
    padding: 1rem;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-bubble-received {
    background: #f1f3f4;
    border-top-left-radius: 0.25rem;
}

.chat-bubble-ai {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
    border-top-right-radius: 0.25rem;
}

.chat-bubble-user {
    background: var(--doto-accent);
    color: white;
    border-top-right-radius: 0.25rem;
    margin-left: auto;
}

/* --- Mock UI: Mini Table --- */
.mini-table {
    width: 100%;
    font-size: 0.85rem;
}

.mini-table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.8rem;
    color: var(--doto-text-light);
}

.mini-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f3f4;
}

/* --- Mock UI: Kanban --- */
.kanban-col {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 0.75rem;
    min-height: 120px;
}

.kanban-col h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--doto-text-light);
}

.kanban-card {
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    border-left: 3px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* --- Mock UI: Data Flow --- */
.flow-container {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-step {
    background: white;
    border: 2px solid var(--doto-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 100px;
    transition: all var(--doto-transition);
    color: var(--doto-text);
}

.flow-step:hover {
    border-color: var(--doto-accent);
    background: #f0f5ff;
}

.flow-step.active {
    background: var(--doto-accent);
    color: white;
    border-color: var(--doto-accent);
}

.flow-arrow {
    font-size: 1.25rem;
    color: var(--doto-text-light);
    padding: 0 0.5rem;
}

@media (max-width: 575.98px) {
    .flow-container {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }
}

/* --- Mock UI: Mini Chart (Bar) --- */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.mini-chart-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height var(--doto-transition);
}

/* --- Mock UI: Profile Card --- */
.profile-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.profile-mini .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--doto-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* --- Mock UI: AI Badge --- */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    background: var(--doto-ai);
    color: white;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.ai-badge-warm {
    background: var(--doto-ai-warm);
}

/* --- Mock UI: Blur Decoration --- */
.blur-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

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

.bento-item {
    background: #f8fafc;
    border-radius: var(--doto-radius-lg);
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    transition: all var(--doto-transition);
}

.bento-item:hover {
    box-shadow: var(--doto-shadow);
    border-color: var(--doto-border);
}

.bento-item-big {
    grid-column: span 2;
}

.bento-item-tall {
    grid-row: span 2;
}

@media (max-width: 991.98px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item-big {
        grid-column: span 1;
    }
    .bento-item-tall {
        grid-row: span 1;
    }
}

/* --- UI Snippet (Feature pages) --- */
.ui-snippet {
    background: white;
    border-radius: var(--doto-radius);
    border: 1px solid var(--doto-border);
    padding: 1.25rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

/* --- Logic Card (Feature pages - dark section) --- */
.logic-card {
    background: var(--doto-primary);
    border-radius: 2.5rem;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.logic-step {
    border-left: 2px solid rgba(255,255,255,0.15);
    padding-left: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.logic-step:last-child {
    margin-bottom: 0;
}

.logic-step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--doto-accent);
    border-radius: 50%;
}

.logic-step h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.logic-step p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .logic-card {
        padding: 2.5rem 2rem;
        border-radius: 1.5rem;
    }
}

/* --- Pill Tags --- */
.pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--doto-border);
    border-radius: 0.75rem;
    margin: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
}

.pill-blue {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.pill-green {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.pill-purple {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.pill-orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

/* --- Feature Page Hero --- */
.feature-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.feature-hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.feature-hero .hero-title {
    margin-bottom: 1.5rem;
}

.feature-hero .hero-subtitle {
    font-size: 1.125rem;
    color: var(--doto-text-light);
    line-height: 1.8;
    max-width: 560px;
}

/* --- Zigzag Feature Sections --- */
.zigzag-section {
    padding: 80px 0;
}

.zigzag-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.zigzag-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.zigzag-section p {
    color: var(--doto-text-light);
}

/* --- Footer --- */
.landing-footer {
    background: var(--doto-primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.landing-footer h5 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.landing-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--doto-transition);
    font-size: 0.9rem;
}

.landing-footer a:hover {
    color: white;
}

.landing-footer .footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.landing-footer .footer-brand img {
    width: 28px;
    height: 28px;
}

.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

.footer-biz-info {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation */
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* --- CTA Section --- */
.cta-section {
    background: var(--doto-primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%),
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 8s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-section p {
    color: rgba(255,255,255,0.75);
    font-size: 1.125rem;
}

/* --- Breadcrumb (Feature pages) --- */
.feature-breadcrumb {
    padding-top: 80px;
    padding-bottom: 0;
}

.feature-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.feature-breadcrumb .breadcrumb-item a {
    color: var(--doto-text-light);
    text-decoration: none;
}

.feature-breadcrumb .breadcrumb-item.active {
    color: var(--doto-accent);
    font-weight: 600;
}

/* --- Miscellaneous --- */
.link-arrow {
    font-weight: 600;
    text-decoration: none;
    color: var(--doto-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap var(--doto-transition);
}

.link-arrow:hover {
    gap: 0.75rem;
    color: var(--doto-accent);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rounded-xl {
    border-radius: var(--doto-radius) !important;
}

.rounded-2xl {
    border-radius: var(--doto-radius-lg) !important;
}

/* Touch target */
.btn {
    min-height: 44px;
}

/* Smooth links */
a {
    transition: color var(--doto-transition);
}

/* Feature page CTA banner */
.feature-cta {
    background: linear-gradient(135deg, var(--doto-primary) 0%, #1a252f 100%);
    border-radius: var(--doto-radius-lg);
    padding: 3rem;
    color: white;
    text-align: center;
}

.feature-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.feature-cta p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
}

/* --- Mock UI: Phone Frame --- */
.phone-frame {
    display: inline-block;
    max-width: 280px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), inset 0 0 0 2px #333;
}
.phone-frame-screen {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}
.phone-frame-screen img {
    width: 100%;
    display: block;
}

/* --- Mock UI: Tablet Frame --- */
.tablet-frame {
    display: inline-block;
    max-width: 560px;
    width: 100%;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), inset 0 0 0 2px #333;
}
.tablet-frame-screen {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.tablet-frame-screen video {
    width: 100%;
    display: block;
}
@media (max-width: 575.98px) {
    .tablet-frame {
        max-width: 100%;
        border-radius: 14px;
        padding: 8px;
    }
    .tablet-frame-screen {
        border-radius: 6px;
    }
}

/* --- Screenshot Pair (Desktop + Mobile) --- */
.screenshot-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.screenshot-pair .desktop-shot { flex: 1; max-width: 65%; }
.screenshot-pair .mobile-shot { flex: 0 0 auto; }
@media (max-width: 767.98px) {
    .screenshot-pair { flex-direction: column; }
    .screenshot-pair .desktop-shot { max-width: 100%; }
    .phone-frame { max-width: 200px; }
}
/* ============================================================
   Landing Page Illustration Styles
   v2 페이지에서 로드
   ============================================================ */

/* 브릿지 섹션은 더 이상 사용하지 않음 — Hero 우측 컬럼에 직접 배치 */
/* 추가 스타일이 필요할 경우 여기에 추가 */
