@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
    --primary: #00a2e8; /* Douzone Sky Blue */
    --primary-hover: #0084c7;
    --text-main: #1c1c1b; /* Douzone Charcoal/Black */
    --text-muted: #616061;
    --bg-light: #f4f9fc; /* Cool light gray-blue background */
    --white: #ffffff;
    --border: #ddd;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    background: linear-gradient(135deg, #fdfbf7 0%, #f4ede4 100%);
    padding-top: 80px; /* Space for fixed header */
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    gap: 6px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    box-shadow: inset 0 0 0 1px var(--primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-main);
}

.btn-text:hover {
    color: var(--primary);
}

.btn-large {
    padding: 18px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 20px;
}

/* --- Header Module --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
}

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

.nav-item {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item:hover {
    color: var(--primary);
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 200;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav-links {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-links hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 10px 0;
}

.mobile-btn-primary {
    display: block;
    background-color: var(--primary);
    color: var(--white) !important;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    margin-top: 10px;
}

/* --- Hero Module --- */
.hero {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    padding: 100px 20px 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.emoji {
    font-size: 56px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* --- Trusted By Module --- */
.trusted-by {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
}

.trusted-text {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0.7;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-muted);
    font-family: serif;
}


/* --- Estimate Builder Module --- */
.estimate-module {
    background-color: transparent;
    padding: 80px 20px;
    position: relative;
}

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

.estimate-header {
    text-align: center;
    margin-bottom: 50px;
}

.estimate-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.estimate-header p {
    font-size: 18px;
    color: var(--text-muted);
}

.estimate-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.option-category {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

.option-category h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

#modules-options {
    grid-template-columns: repeat(auto-fill, 160px);
}

.option-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.card-content {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.card-title {
    font-weight: 600;
    font-size: 16px;
}

.card-price {
    font-size: 14px;
    color: var(--text-muted);
}

/* Card Selection states */
.option-card:hover .card-content {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.option-card input:checked ~ .card-content {
    border-color: var(--primary);
    background-color: rgba(0, 162, 232, 0.08);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 16px rgba(0, 162, 232, 0.05);
}

.option-card input[value="amaranth"]:checked ~ .card-content {
    border-color: #0284c7 !important;
    background-color: rgba(2, 132, 199, 0.08) !important;
    box-shadow: 0 0 0 1px #0284c7 !important, 0 4px 16px rgba(2, 132, 199, 0.05) !important;
}
.option-card input[value="wehago"]:checked ~ .card-content {
    border-color: #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.08) !important;
    box-shadow: 0 0 0 1px #7c3aed !important, 0 4px 16px rgba(124, 58, 237, 0.05) !important;
}
.option-card input[value="omniesol"]:checked ~ .card-content {
    border-color: #0ea5e9 !important;
    background-color: rgba(14, 165, 233, 0.08) !important;
    box-shadow: 0 0 0 1px #0ea5e9 !important, 0 4px 16px rgba(14, 165, 233, 0.05) !important;
}

.slider-group {
    background: var(--white);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
}
.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.slider-label .card-title {
    flex: 1;
}
.slider-label .card-price {
    margin-right: 15px;
}
.num-input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
    font-weight: 600;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px; /* 선 굵기를 5px로 대폭 얇게 조정 */
    background: #cbd5e1;
    border-radius: 10px;
    outline: none;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 15px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.1s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.estimate-summary {
    position: sticky;
    top: 100px;
    height: max-content;
}

.summary-card {
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

.summary-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-list {
    list-style: none;
    margin-bottom: 24px;
    min-height: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px dashed var(--border);
}

.summary-item span:first-child {
    color: var(--text-main);
    flex: 1;
}

.summary-item span:last-child {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    margin-left: 10px;
}

.summary-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 2px solid var(--text-main);
    margin-bottom: 16px;
}

.summary-total span {
    font-size: 16px;
    font-weight: 600;
}

.summary-total strong {
    font-size: 32px;
    color: var(--primary);
}

.summary-total .period {
    font-size: 16px;
    font-weight: normal;
    color: var(--text-muted);
}

.summary-note {
    font-size: 12px;
    color: var(--text-muted);
}

.main-footer {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* --- Responsive / Mobile --- */
@media (max-width: 992px) {
    .nav-links, .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 44px;
    }
    
    .estimate-grid {
        grid-template-columns: 1fr;
    }

    .estimate-summary {
        position: relative;
        top: 0;
    }

    .summary-card {
        margin-top: 0;
    }

    /* Fixed bottom summary on mobile for better UX */
    .summary-card {
        border-radius: 8px;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .logos-container {
        gap: 20px;
    }
    
    .option-category {
        padding: 20px;
    }
    
    .option-cards {
        grid-template-columns: 1fr;
    }
}

/* 금액 노출 제어 스타일 */
body.hide-prices .card-price {
    display: none !important;
}

body.hide-prices #base-price-container,
body.hide-prices #other-price-container,
body.hide-prices #edu-price-container,
body.hide-prices #ai-price-container,
body.hide-prices #monthly-price-container {
    display: none !important;
}

body.hide-prices #btn-export-excel {
    display: none !important;
}

body.hide-prices .price-col {
    display: none !important;
}

/* Glassmorphism Background Blobs */
.glass-blobs-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glass-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #0ea5e9;
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #f59e0b;
    top: 35%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -60px) scale(1.15);
    }
    100% {
        transform: translate(-40px, 40px) scale(0.9);
    }
}

/* Custom Category Backgrounds */
.category-core {
    background: linear-gradient(135deg, rgba(0, 162, 232, 0.06) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    border: 1px solid rgba(0, 162, 232, 0.2) !important;
}

.category-sub {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.15) !important;
}

.category-users {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    border: 1px solid rgba(14, 165, 233, 0.15) !important;
}

/* Tooltip styling */
.consult-square-btn {
    position: relative;
    cursor: pointer;
}
.consult-square-btn .tooltip-text {
    visibility: hidden;
    background-color: rgba(33, 33, 33, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.consult-square-btn .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(33, 33, 33, 0.9) transparent transparent transparent;
}
.consult-square-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Card description styling */
.card-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Module Tooltip styling */
.option-card {
    position: relative;
}

.option-card .module-tooltip-text {
    visibility: hidden;
    background-color: rgba(28, 28, 30, 0.98);
    color: #f2f2f7;
    text-align: left;
    border-radius: 8px;
    padding: 14px 18px;
    position: absolute;
    z-index: 100;
    bottom: 115%; /* Position above the card */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    font-size: 12px;
    line-height: 1.6;
    pointer-events: none;
    width: 320px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: normal;
    font-weight: normal;
}

.option-card .module-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(28, 28, 30, 0.98) transparent transparent transparent;
}

.option-card:hover .module-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}
/* 개별 카테고리별 구분되는 배경색 및 테두리 정의 (단색화 및 투명성 배제) */
.option-category.category-solution {
    background: #f0f9ff !important; /* 연한 블루 */
    border: 2px solid #bae6fd !important;
}
.option-category.category-scale {
    background: #f8fafc !important; /* 연한 실버/그레이 */
    border: 2px solid #cbd5e1 !important;
}
.option-category.category-core {
    background: #f5f3ff !important; /* 연한 퍼플 */
    border: 2px solid #ddd6fe !important;
}
.option-category.category-users {
    background: #f0fdf4 !important; /* 연한 그린/테알 */
    border: 2px solid #bbf7d0 !important;
}

.category-users .range-slider {
    display: none !important;
}
.category-users .slider-label {
    margin-bottom: 0 !important;
}
