/* ============================================
   주덕 커뮤니티 Landing Page
   Color Palette: #F5F1ED  #4A3F35  #C9B8A8
   Font: Noto Serif KR
   ============================================ */

:root {
    --cream: #F5F1ED;
    --brown: #4A3F35;
    --taupe: #C9B8A8;
    --brown-light: #6B5D4F;
    --cream-dark: #EDE8E1;
    --accent: #8B7355;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(74, 63, 53, 0.06);
    --shadow-md: 0 8px 24px rgba(74, 63, 53, 0.1);
    --shadow-lg: 0 16px 48px rgba(74, 63, 53, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Serif KR', serif;
    background-color: var(--cream);
    color: var(--brown);
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Section Common ============ */

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--brown);
}

.section-header p {
    font-size: 1rem;
    color: var(--brown-light);
    max-width: 520px;
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    padding: 6px 14px;
    background: rgba(201, 184, 168, 0.25);
    border-radius: 100px;
}

/* ============ Buttons ============ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--brown);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-xl);
    font-family: 'Noto Serif KR', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(74, 63, 53, 0.25);
}

.btn-primary:hover {
    background: var(--brown-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 63, 53, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-kakao-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.05rem;
}

/* ============ HERO ============ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../images/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(245, 241, 237, 0.92) 0%,
        rgba(245, 241, 237, 0.85) 50%,
        rgba(245, 241, 237, 0.7) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brown);
    color: var(--cream);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.35;
    color: var(--brown);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--brown-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    padding: 20px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--taupe);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--taupe);
    opacity: 0.4;
}

.hero-btn {
    padding: 16px 36px;
    font-size: 1rem;
}

/* Hero Profile Image */
.hero-profile-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border: 4px solid var(--white);
}

/* ============ BENEFITS ============ */

.benefits {
    padding: 100px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 184, 168, 0.4);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown);
    color: var(--cream);
    border-radius: 18px;
    font-size: 1.4rem;
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--brown-light);
    line-height: 1.7;
}

/* ============ FEATURES ============ */

.feature {
    padding: 100px 0;
}

.feature-normal {
    background: var(--cream);
}

.feature-reverse {
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse > * {
    direction: ltr;
}

.feature-text .section-tag {
    margin-bottom: 18px;
}

.feature-text h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.feature-text > p {
    font-size: 0.95rem;
    color: var(--brown-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--brown);
}

.feature-list li i {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--taupe);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* Feature Images */
.feature-img-wrapper {
    display: flex;
    justify-content: center;
}

.feature-photo {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border: 3px solid var(--white);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-photo:hover {
    transform: scale(1.02);
}

/* ============ PAST REPORTS ============ */

.past-reports {
    padding: 100px 0;
    background: var(--white);
}

.reports-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.report-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 184, 168, 0.4);
}

.report-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
    color: var(--cream);
    font-size: 2.5rem;
}

.report-info {
    padding: 18px;
}

.report-date {
    font-size: 0.72rem;
    color: var(--taupe);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.report-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 4px 0;
}

.report-info p {
    font-size: 0.8rem;
    color: var(--brown-light);
}

.reports-cta {
    text-align: center;
}

/* ============ REVIEWS ============ */

.reviews {
    padding: 100px 0;
    background: var(--cream);
}

.reviews-board {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201, 184, 168, 0.2);
}

.board-header {
    display: flex;
    border-bottom: 1px solid rgba(201, 184, 168, 0.2);
}

.board-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--taupe);
    cursor: pointer;
    transition: all 0.25s;
    border-bottom: 2px solid transparent;
}

.board-tab.active {
    color: var(--brown);
    border-bottom-color: var(--brown);
}

.board-tab:hover {
    color: var(--brown);
}

.review-list {
    padding: 0;
}

.review-item {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(201, 184, 168, 0.15);
    transition: background 0.2s;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item:hover {
    background: rgba(245, 241, 237, 0.5);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brown);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.review-nickname {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
}

.review-level {
    font-size: 0.72rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-level i {
    font-size: 0.68rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--taupe);
}

.review-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.review-body p {
    font-size: 0.85rem;
    color: var(--brown-light);
    line-height: 1.75;
}

.review-footer {
    margin-top: 14px;
}

.review-reactions {
    display: flex;
    gap: 16px;
}

.reaction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--taupe);
    cursor: pointer;
    transition: color 0.2s;
}

.reaction:hover {
    color: var(--brown);
}

/* ============ FAQ ============ */

.faq {
    padding: 100px 0;
    background: var(--white);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--cream);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(201, 184, 168, 0.4);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 16px;
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--taupe);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--brown-light);
    line-height: 1.75;
}

/* ============ FINAL CTA ============ */

.final-cta {
    padding: 100px 0;
    background: var(--brown);
    color: var(--cream);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--cream);
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--taupe);
    margin-bottom: 36px;
    line-height: 1.8;
}

.final-cta .btn-primary {
    background: var(--cream);
    color: var(--brown);
}

.final-cta .btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.cta-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--taupe);
}

/* ============ FOOTER ============ */

.footer {
    background: var(--brown);
    color: var(--taupe);
    padding: 48px 0 24px;
    border-top: 1px solid rgba(201, 184, 168, 0.15);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(201, 184, 168, 0.15);
}

.footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--taupe);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(201, 184, 168, 0.15);
}

.footer-legal a {
    color: var(--taupe);
    text-decoration: none;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-legal a:hover {
    color: var(--cream);
}

.footer-legal-divider {
    color: rgba(201, 184, 168, 0.3);
    font-size: 0.7rem;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(201, 184, 168, 0.6);
}

/* ============ LEGAL MODAL ============ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(74, 63, 53, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--cream);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(74, 63, 53, 0.3);
    animation: modalSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(201, 184, 168, 0.3);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(201, 184, 168, 0.4);
    border-radius: 50%;
    color: var(--brown-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--brown);
    color: var(--cream);
    border-color: var(--brown);
}

.modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    font-size: 0.88rem;
    color: var(--brown-light);
    line-height: 1.85;
}

.modal-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brown);
    margin: 20px 0 8px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 10px;
}

/* ============ FIXED BOTTOM CTA ============ */

.fixed-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(to top, rgba(245, 241, 237, 0.98) 60%, rgba(245, 241, 237, 0));
    pointer-events: none;
}

.btn-fixed {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--brown);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-xl);
    font-family: 'Noto Serif KR', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 28px rgba(74, 63, 53, 0.35);
    pointer-events: all;
    animation: bounce-urgent 2s ease-in-out infinite;
}

.btn-fixed:hover {
    background: var(--brown-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 36px rgba(74, 63, 53, 0.45);
    animation: none;
}

.btn-fixed .btn-kakao-icon {
    width: 24px;
    height: 24px;
}

@keyframes bounce-urgent {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 6px 28px rgba(74, 63, 53, 0.35);
    }
    10% {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 14px 36px rgba(74, 63, 53, 0.45);
    }
    20% {
        transform: translateY(0);
        box-shadow: 0 6px 28px rgba(74, 63, 53, 0.35);
    }
    30% {
        transform: translateY(-7px) scale(1.015);
        box-shadow: 0 10px 32px rgba(74, 63, 53, 0.4);
    }
    40% {
        transform: translateY(0);
        box-shadow: 0 6px 28px rgba(74, 63, 53, 0.35);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(74, 63, 53, 0.38);
    }
    60% {
        transform: translateY(0);
        box-shadow: 0 6px 28px rgba(74, 63, 53, 0.35);
    }
}

/* ============ ANIMATIONS ============ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reports-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 72px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 48px;
        padding-bottom: 48px;
        min-height: auto;
    }

    .hero {
        min-height: auto;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .hero-profile-img {
        max-width: 360px;
        width: 100%;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-grid,
    .feature-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .feature-text {
        text-align: center;
    }

    .feature-text h2 {
        font-size: 1.6rem;
    }

    .feature-list {
        align-items: flex-start;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }

    .feature-text .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .feature-image {
        display: flex;
        justify-content: center;
    }

    .feature-photo {
        max-width: 100%;
    }

    .reports-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .report-cover {
        height: 100px;
        font-size: 1.8rem;
    }

    .review-item {
        padding: 20px;
    }

    .review-body h4 {
        font-size: 0.9rem;
    }

    .review-body p {
        font-size: 0.82rem;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 0.92rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-box {
        max-height: 75vh;
    }

    .modal-header {
        padding: 20px 20px 14px;
    }

    .modal-body {
        padding: 20px;
    }

    .btn-fixed {
        padding: 14px 36px;
        font-size: 0.92rem;
    }

    .feature {
        padding: 72px 0;
    }

    .benefits, .past-reports, .reviews, .faq {
        padding: 72px 0;
    }

    .final-cta {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.55rem;
    }

    .hero-stats {
        padding: 16px 14px;
        gap: 14px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.68rem;
    }

    .benefits-grid {
        max-width: 100%;
    }

    .reports-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .report-info {
        padding: 12px;
    }

    .report-info h4 {
        font-size: 0.82rem;
    }

    .btn-fixed {
        padding: 13px 28px;
        font-size: 0.85rem;
        width: calc(100% - 32px);
        justify-content: center;
    }
}
