/* --- 기본 설정 --- */
:root {
    --primary-color: #0F172A;
    --accent-color: #64748B;
    --highlight-color: #2563EB;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--highlight-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* --- 헤더 --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    z-index: 1002;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-gray);
    transition: 0.3s;
}

nav a:hover {
    color: var(--highlight-color);
}

/* 햄버거 버튼 */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: 0.3s;
    border-radius: 3px;
}

/* --- Hero 섹션 --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero h1 {
    font-size: 3.5rem; /* 폰트 사이즈 살짝 조정 */
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--highlight-color);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(37, 99, 235, 0.1);
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero 섹션 다이어그램 스타일 */
.hero-diagram {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.hero-diagram img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Philosophy 섹션 --- */
.philosophy {
    padding: 120px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.section-title p {
    color: var(--highlight-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.story-box {
    display: flex;
    gap: 60px;
    align-items: stretch;
    background: white;
}

.story-content {
    flex: 1.2;
}

.story-content h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    line-height: 1.4;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 1.05rem;
}

.quote-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.quote-box em {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

.story-img {
    flex: 1;
    min-height: 400px;
    background-color: #E2E8F0;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-image: url('../img/philosophy-tool.png');
    background-size: cover;
    background-position: center;
}

/* --- Solution 섹션 --- */
.solution {
    padding: 120px 0;
    background: #F1F5F9;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.3s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    background: #EFF6FF;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--highlight-color);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card p {
    font-size: 1rem;
    color: var(--text-gray);
    word-break: keep-all;
}

/* --- Contact 섹션 --- */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--highlight-color);
}

.contact-form {
    flex: 1.2;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* 개인정보 동의 체크박스 스타일 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--highlight-color);
}

.checkbox-wrapper label {
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper label:hover {
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: var(--highlight-color);
}

/* 전송 성공/실패 메시지 */
#form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.success-msg {
    background-color: #dcfce7;
    color: #166534;
}

.error-msg {
    background-color: #fee2e2;
    color: #991b1b;
}

/* --- Footer --- */
footer {
    background: #0b1120;
    color: white;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    opacity: 0.6;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .story-box {
        flex-direction: column;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        flex: none;
    }

    .contact-form {
        padding: 30px 20px;
    }

    header {
        padding: 15px 20px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .hero-diagram {
        margin-top: 30px;
    }
}
