﻿/* ===== 기본 리셋 및 변수 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--site-font) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

:root {
    /* 색상 변수 */
    --primary-blue: #2563eb;
    --primary-orange: #ea580c;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* 폰트 및 레이아웃 */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --container-max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* ===== 기본 스타일 ===== */
body {
    font-family: var(--site-font) !important;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== 헤더 ===== */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== 모바일 메뉴 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 200;
    padding: var(--spacing-xl);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    margin-top: var(--spacing-xl);
}

.mobile-nav a {
    display: block;
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* ===== 히어로 섹션 ===== */
.hero {
    background: linear-gradient(135deg, var(--bg-gray-light) 0%, var(--bg-white) 100%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 계산기 섹션 ===== */
.calculators-section {
    padding: var(--spacing-2xl) 0;
}

.finance-section {
    background-color: var(--bg-gray-light);
}

.marketing-section {
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.finance-section .section-title {
    color: var(--primary-blue);
}

.marketing-section .section-title {
    color: var(--primary-orange);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 서브 섹션 ===== */
.sub-section {
    margin-bottom: var(--spacing-2xl);
}

.sub-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-md);
    border-left: 4px solid;
}

.finance-section .sub-title {
    border-left-color: var(--primary-blue);
}

.marketing-section .sub-title {
    border-left-color: var(--primary-orange);
}

/* ===== 계산기 그리드 ===== */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* ===== 계산기 카드 ===== */
.calculator-card {
    display: block;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ===== 푸터 ===== */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer p {
    margin: 0;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: none !important;
        pointer-events: none;
        visibility: hidden;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .calculators-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .calculator-card {
        padding: var(--spacing-md);
    }

    .card-icon {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-desc {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .calculators-section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .sub-section {
        margin-bottom: var(--spacing-xl);
    }
}

/* ===================== 공통 계산기 UI 샘플 스타일 ===================== */
.calculator-ui-demo { background: #f9fafb; }
.calculator-ui-demo .container { max-width: 480px; margin: 0 auto; }
.calc-header { margin-bottom: 24px; text-align: left; }
.calc-title { font-size: 1.5rem; margin-bottom: 0.3em; font-weight: 700; }
.calc-desc { color: #666; font-size: 1rem; margin-bottom: 0; }
.calc-form { margin-bottom: 24px; }
.input-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px #0001; padding: 24px 20px; margin-bottom: 18px; }
.input-card h3 { font-size: 1.1em; margin-bottom: 1em; font-weight: 600; }
.input-list { display: flex; flex-direction: column; gap: 16px; }
.input-list label { font-size: 1.08em; display: flex; align-items: center; gap: 8px; }
.input-group { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.unit { margin-left: 2px; color: #888; font-size: 0.98em; }
.input-number { font-size: 1.1em; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; width: 120px; text-align: right; background: #f8fafb; color: #222; font-weight: 600; }
.input-number:focus { outline: 2px solid #2d6cff33; border-color: #2d6cff; background: #fff; }
.advanced-options { margin-top: 10px; }
.advanced-options[open] summary { color: #2d6cff; }
.button-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.btn { border: none; border-radius: 8px; padding: 12px 20px; font-size: 1em; cursor: pointer; font-weight: 600; transition: background 0.2s, color 0.2s; }
.btn.primary { background: #2d6cff; color: #fff; }
.btn.ghost { background: #f3f5fa; color: #2d6cff; }
.btn:active { opacity: 0.85; }
.result-section { margin-bottom: 24px; }
.result-card { background: #f8fafd; border-radius: 14px; box-shadow: 0 2px 8px #0002; padding: 24px 20px; }
.result-main { font-size: 1.2em; font-weight: bold; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.result-label { color: #222; font-size: 1.1em; }
.result-value { color: #2d6cff; font-size: 2.1em; font-weight: 700; letter-spacing: -1px; }
.result-list { list-style: none; padding: 0; margin: 0 0 10px 0; }
.result-list li { margin-bottom: 0.5rem; font-size: 1.05em; }
.result-desc { color: #888; font-size: 0.98em; margin-top: 8px; }
.guide-section { margin-bottom: 24px; }
.guide-section details { background: #f3f5fa; border-radius: 10px; padding: 14px 16px; }
.guide-section summary { font-weight: bold; cursor: pointer; font-size: 1.08em; }
.guide-content { margin-top: 10px; font-size: 1em; }
.guide-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.98em; }
.guide-content th, .guide-content td { border: 1px solid #e3e6ef; padding: 6px 8px; text-align: left; }
.guide-faq { margin: 10px 0 0 0; padding: 0 0 0 16px; font-size: 0.98em; }
.guide-faq li { margin-bottom: 0.5em; }
.notice { color: #888; font-size: 0.95rem; margin-top: 10px; }
@media (max-width: 600px) {
  .calculator-ui-demo .container { padding: 0 2px 32px; }
  .input-card, .result-card { padding: 16px 8px; }
  .input-number { width: 100px; }
}

/* ===== 특징 섹션 (Features Section) ===== */
.features-section {
    background: #ffffff;
    padding: 60px 0;
}

.features-section .section-header {
    margin-bottom: 48px;
    text-align: center;
}

.features-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.features-section .section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .features-section .section-title {
        font-size: 1.75rem;
    }
    
    .features-section .section-subtitle {
        font-size: 1rem;
    }
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 300px;
    justify-content: center;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ===== 섹션 헤더 공통 스타일 ===== */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}


