/* Global Variables & Reset */
:root {
    --primary-color: #2E7D32;
    --primary-light: #E8F5E9;
    --secondary-color: #1B5E20;
    --accent-color: #FFC107;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --bg-light: #F9FBF9;
    --border-color: #EEEEEE;
    --container-width: 1200px;
    --section-padding: 8rem 0;
    --grass-bg: url('https://images.unsplash.com/photo-1556056504-517cf0121fb3?q=80&w=2070&auto=format&fit=crop');
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Layout System */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: var(--section-padding);
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

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

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--grass-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 6rem 1.5rem;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    word-break: keep-all;
}

.hero-subtitle {
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.6rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    word-break: keep-all;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography & Titles */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    word-break: keep-all;
    line-height: 1.4;
}

.subsection-title {
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.philosophy-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Grid System */
.method-grid, .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* 카드 높이 통일 */
}

/* Component: Cards */
.method-card {
    background: var(--white);
    padding: 3.5rem 2.2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.method-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    word-break: keep-all;
}

.method-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    word-break: keep-all;
    flex-grow: 1;
}

/* Recommendation Section */
#recommend {
    background-color: var(--bg-light);
}

.recommend-list {
    max-width: 850px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.recommend-item {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.recommend-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.recommend-item p {
    font-size: 1.1rem;
    word-break: keep-all;
    line-height: 1.6;
}

/* Analysis Section Wrappers */
.analysis-type-wrapper {
    margin-bottom: 8rem;
}

.analysis-type-wrapper:last-child {
    margin-bottom: 0;
}

#guide-method .container > .analysis-type-wrapper:first-of-type {
    background-color: var(--bg-light);
    padding: 5rem 3rem;
    border-radius: 40px;
}

.guide-notice {
    text-align: center;
    margin-top: 3rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.7;
    word-break: keep-all;
}

/* Review Cards */
.review-card {
    background: var(--white);
    padding: 4rem 2.5rem 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.review-card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.06;
    z-index: 0;
}

.review-text {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    flex-grow: 1;
    word-break: keep-all;
}

.review-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.review-author::before {
    content: "";
    width: 20px;
    height: 2px;
    background-color: var(--primary-light);
}

/* FAQ Section */
#faq {
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    line-height: 1.5;
}

.faq-item h3 span {
    color: var(--accent-color);
    font-weight: 800;
    flex-shrink: 0;
}

.faq-item p {
    font-size: 1.05rem;
    color: var(--text-muted);
    padding-left: 45px;
    line-height: 1.7;
    word-break: keep-all;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #333;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
}

/* Pricing Page Specific */
.pricing-notice-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 24px;
    margin-top: 4rem;
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pricing-notice-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-main);
    display: grid;
    grid-template-columns: 30px 1fr; /* 아이콘 영역 고정 */
    align-items: start;
    word-break: keep-all;
}

.pricing-notice-card p i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.3rem; /* 첫 줄 텍스트 높이에 맞춤 */
}

.pricing-notice-card p strong {
    white-space: nowrap; /* 제목 부분은 붙여서 표시 */
}

/* Subpage Header */
.subpage-header {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 10rem 1.5rem;
}

.subpage-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    word-break: keep-all;
}

.subpage-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    line-height: 1.6;
    word-break: keep-all;
    max-width: 800px;
    margin: 0 auto;
}

/* Kakao Section */
.kakao-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.kakao-notice-box {
    background-color: #fee500;
    color: #3c1e1e;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 3rem;
    display: inline-block;
    line-height: 1.4;
    word-break: keep-all;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #dddddd;
    padding: 5rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: #ffffff;
    margin: 0 1rem;
    text-decoration: none;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 4.5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 0.5rem 0;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        width: 100vw;
        overflow-x: auto;
        padding: 0.8rem 1.5rem;
        gap: 1.5rem;
        justify-content: flex-start;
        border-top: 1px solid var(--border-color);
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        white-space: nowrap;
    }

    .nav-menu a {
        font-size: 0.95rem;
    }

    #hero {
        height: auto;
        min-height: 60vh;
        padding: 5rem 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .method-grid, .review-grid {
        gap: 1.5rem;
    }

    #guide-method .container > .analysis-type-wrapper:first-of-type {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }

    .faq-item {
        padding: 1.8rem 1.5rem;
    }

    .faq-item p {
        padding-left: 0;
        margin-top: 1rem;
    }

    .kakao-section {
        padding: 3rem 1.5rem;
    }

    .pricing-notice-card {
        padding: 1.8rem 1.5rem;
    }

    .pricing-notice-card p {
        font-size: 1rem;
    }

    .mobile-only {
        display: inline;
    }
}
