:root {
    --primary: #7d8f74;
    /* Sage Green */
    --primary-hover: #5d6a56;
    --accent: #e5e5e0;
    --text-dark: #3a4035;
    /* Dark Charcoal */
    --text-light: #5f665a;
    --bg-color: #f7f3ed;
    /* Warm Beige */
    --white: #FFFFFF;
}

body {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================
   Header / Navigation
   (base.html의 .site-header가 담당 — 아래 규칙은 비활성화)
   ============================================= */
/* header { ... } — base.html 상속 후 불필요 */

/* =============================================
   헤더 관련 클래스 (.logo, .desktop-nav, nav a, .auth-btns, .hamburger)
   base.html 상속 후 불필요 — 비활성화
   ============================================= */

/* 모바일 드로어 (.mobile-drawer, #mobile-nav-db-menu 등)
   base.html의 <style> 내 동일 규칙으로 처리 — 비활성화 */

/* Hero Section with Parallax & Gradient */
.hero {
    min-height: calc(100vh - var(--nav-height, 68px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0 6%;
    background: linear-gradient(135deg, #fcebdf 0%, #d8e0ca 100%);
    position: relative;
    overflow: hidden;
    gap: 4rem;
}

.hero-image {
    position: relative;
    top: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* 2.5D Layered Animation Keyframes */
@keyframes layer-float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes layer-float-delay {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

.floating-element {
    animation: layer-float 4s ease-in-out infinite;
}

.floating-element-delay {
    animation: layer-float-delay 5s ease-in-out infinite reverse;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(125, 143, 116, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

@keyframes bg-spin {
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: .5s;
}

.cta-button:hover::after {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(74, 144, 226, 0.4);
}

/* Sections */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Team Grid Wrapper */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
}

/* Footer */
/* base.html의 .site-footer가 담당 — footer { ... } 규칙 비활성화 */
/* .social-links — 랜딩 자체 footer가 없으므로 비활성화 */

/* Scroll Animation Trigger Class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    /* base.html의 .site-header가 헤더를 담당하므로 아래 규칙은 비활성화 */
    /* header > nav, .desktop-nav, header .auth-btns, .hamburger — base.html 처리 */

    /* Hero */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 3rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-image {
        display: none;
    }

    body.mobile-logged-in .hero-image.parallax-container {
        display: none !important;
    }

    body.mobile-logged-in #action-buttons {
        justify-content: center !important;
        width: 100% !important;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}