/* 1. 브랜드 테마 정의 및 리셋 */
:root {
    --primary: #2C70C9;       /* 코발트 블루 */
    --secondary: #F86624;     /* 비비드 오렌지 */
    --bg-neutral: #EAF0F7;    /* 쿨 민트 그레이 */
    --dark-blue: #1F4E8C;     /* 딥 스틸 블루 */
    --light-blue: #6FA3E6;    /* 소프트 스카이 블루 */
    --text-main: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.7;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 2. 상단 고정 헤더 */
.officex-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(31, 78, 140, 0.04);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.officex-logo {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--dark-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.officex-logo span {
    color: var(--secondary);
}

.officex-nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.officex-nav-item a {
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* 활성화된 메뉴 강조 */
.officex-nav-item a.active {
    color: var(--primary);
}

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

.officex-nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: var(--bg-neutral);
}

.btn-signup {
    background-color: var(--primary);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn-signup:hover {
    background-color: var(--dark-blue);
}

/* 모바일 햄버거 버튼 */
.officex-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.officex-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark-blue);
    border-radius: 999px;
    transition: all 0.25s ease;
}

/* 모바일 메뉴 패널 */
.officex-mobile-menu {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(31, 78, 140, 0.08);
}

.officex-mobile-navigation {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 4px;
}

.officex-mobile-navigation > a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 800;
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.officex-mobile-navigation > a:hover {
    color: var(--primary);
}

.officex-mobile-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.mobile-btn-login,
.mobile-btn-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.mobile-btn-login {
    background: var(--bg-neutral);
    color: var(--dark-blue);
}

.mobile-btn-signup {
    background: var(--primary);
    color: #ffffff !important;
}

/* 3. AI 솔루션 전용 히어로 섹션 */
.ai-hero {
    background: linear-gradient(135deg, rgba(31, 78, 140, 0.95), rgba(44, 112, 201, 0.85)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 140px 0;
    color: #ffffff;
    text-align: center;
}

.ai-hero .badge {
    display: inline-block;
    background-color: rgba(248, 102, 36, 0.2);
    color: #F86624;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(248, 102, 36, 0.4);
    margin-bottom: 25px;
    font-family: 'Urbanist', sans-serif;
    letter-spacing: 1px;
}

.ai-hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 25px;
    letter-spacing: -0.03em;
}

.ai-hero h1 span {
    color: var(--secondary);
    border-bottom: 4px solid var(--secondary);
}

.ai-hero p {
    font-size: 22px;
    color: var(--bg-neutral);
    margin-bottom: 45px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. 고통 공감 섹션 */
.pain-points {
    padding: 100px 0 60px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pain-card {
    background-color: var(--bg-neutral);
    border-top: 4px solid #cbd5e1;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.pain-card:hover {
    border-top-color: #ef4444;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pain-card i {
    font-size: 40px;
    color: #ef4444;
    margin-bottom: 20px;
}

.pain-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.pain-card p {
    font-size: 15px;
    color: #475569;
}

/* 5. 핵심 솔루션 상세 설명 */
.ai-features {
    padding: 80px 0 120px 0;
    background-color: #ffffff;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-num {
    font-family: 'Urbanist', sans-serif;
    font-size: 50px;
    font-weight: 900;
    color: var(--light-blue);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.feature-text h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 17px;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 900;
    font-size: 20px;
    line-height: 1.2;
}

.feature-img {
    flex: 1;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(31, 78, 140, 0.1);
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. 데이터 신뢰 */
.ai-stats {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary) 100%);
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item .stat-num {
    font-family: 'Urbanist', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item .stat-desc {
    font-size: 18px;
    font-weight: 500;
    color: var(--bg-neutral);
}

/* 7. AI 솔루션 가격 */
.officex-pricing {
    padding: 100px 0;
    background-color: #ffffff;
}

/* 토글 스타일 */
.billing-toggle {
    text-align: center;
    margin-bottom: 40px;
}

.toggle-container {
    display: inline-flex;
    background: #e2e8f0;
    padding: 5px;
    border-radius: 50px;
    cursor: pointer;
}

.toggle-btn {
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
}

.toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.price-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.price-card.featured {
    border: 2px solid var(--secondary);
    box-shadow: 0 15px 35px rgba(248, 102, 36, 0.1);
    transform: scale(1.02);
    z-index: 1;
}

.card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.price-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.price-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 600;
    min-height: 18px;
}

.price-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 10px;
    line-height: 1.2;
}

.price-value-sub {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
    font-weight: 600;
}

.price-card.featured .price-value {
    color: var(--secondary);
}

.price-features-list {
    list-style: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    flex-grow: 1;
}

.price-features-list li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.price-features-list li i {
    color: var(--primary);
    font-size: 12px;
    margin-top: 3px;
}

.price-btn {
    display: block;
    text-align: center;
    background-color: var(--bg-neutral);
    color: var(--dark-blue);
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.2s;
}

.price-btn:hover {
    background-color: var(--light-blue);
    color: #fff;
}

.price-card.featured .price-btn {
    background-color: var(--secondary);
    color: #fff;
}

.price-card.featured .price-btn:hover {
    background-color: #e05315;
}

/* 건별 결제 할인 배너 */
.discount-banner {
    background-color: #f8fafc;
    border: 1px dashed var(--light-blue);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.discount-banner h3 {
    color: var(--dark-blue);
    font-size: 18px;
    margin-bottom: 20px;
}

.discount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.discount-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.discount-item .count {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.discount-item .price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 14px;
}

.discount-item .price-new {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    margin: 5px 0;
}

.discount-item .rate {
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
}

/* 8. CTA 및 푸터 */
.ai-cta {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-neutral);
}

.ai-cta h2 {
    font-size: 40px;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.btn-cta-large {
    display: inline-block;
    background-color: var(--secondary);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    padding: 20px 50px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(248, 102, 36, 0.3);
    transition: all 0.3s;
}

.btn-cta-large:hover {
    background-color: #e05315;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(248, 102, 36, 0.4);
}

.officex-footer {
    background-color: var(--dark-blue);
    color: #ffffff;
    padding: 60px 0;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Urbanist', sans-serif;
    font-size: 26px;
    font-weight: 900;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-contact {
    text-align: right;
    color: #94a3b8;
}

/* WordPress / Hello child theme additions */
body.maka-officex-theme {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.maka-officex-theme .site-main {
    flex: 1;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

body.admin-bar .officex-navbar {
    top: 32px;
}

.officex-page {
    background: #f8fafc;
    min-height: 60vh;
}

.officex-page .entry-title {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 28px;
    color: var(--dark-blue);
    font-weight: 900;
}

.officex-page .entry-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(31, 78, 140, 0.05);
}

/* 태블릿 / 모바일 */
@media (max-width: 968px) {
    .pain-grid,
    .stats-grid,
    .pricing-grid {
        flex-direction: column;
        gap: 40px;
        display: flex;
    }

    .discount-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: none;
    }

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 40px;
    }

    .officex-nav-menu,
    .officex-nav-auth {
        display: none;
    }

    .navbar-inner {
        height: 68px;
    }

    .officex-logo {
        font-size: 26px;
    }

    .officex-mobile-toggle {
        display: flex;
    }

    body.officex-mobile-menu-open .officex-mobile-menu {
        display: block;
    }

    body.officex-mobile-menu-open .officex-mobile-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.officex-mobile-menu-open .officex-mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.officex-mobile-menu-open .officex-mobile-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .ai-hero {
        padding: 100px 0;
    }

    .ai-hero h1 {
        font-size: 40px;
    }

    .ai-hero p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .feature-text h3 {
        font-size: 28px;
    }

    .feature-img {
        height: 320px;
    }

    .stats-grid {
        gap: 34px;
    }

    .stat-item .stat-num {
        font-size: 52px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 782px) {
    body.admin-bar .officex-navbar {
        top: 46px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .officex-page {
        padding: 50px 0;
    }

    .officex-page .entry-title {
        font-size: 30px;
    }

    .officex-page .entry-content {
        padding: 26px 20px;
    }

    .ai-hero {
        padding: 80px 0;
    }

    .ai-hero h1 {
        font-size: 32px;
    }

    .ai-hero p {
        font-size: 16px;
    }

    .pain-points {
        padding: 70px 0 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .pain-card {
        padding: 32px 24px;
    }

    .ai-features {
        padding: 60px 0 80px 0;
    }

    .feature-row {
        margin-bottom: 70px;
    }

    .feature-text h3 {
        font-size: 25px;
    }

    .feature-text p {
        font-size: 16px;
    }

    .feature-img {
        height: 260px;
    }

    .ai-stats {
        padding: 60px 0;
    }

    .stat-item .stat-num {
        font-size: 46px;
    }

    .stat-item .stat-desc {
        font-size: 16px;
    }

    .officex-pricing {
        padding: 70px 0;
    }

    .toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .discount-banner {
        padding: 24px 18px;
    }

    .ai-cta {
        padding: 70px 0;
    }

    .ai-cta h2 {
        font-size: 30px;
    }

    .btn-cta-large {
        width: 100%;
        font-size: 18px;
        padding: 18px 24px;
    }

    .officex-mobile-auth {
        grid-template-columns: 1fr;
    }
}

/* 회원가입 유형 선택 모달 */
.signup-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.signup-modal-overlay.active {
    display: flex;
    opacity: 1;
}

body.signup-modal-open {
    overflow: hidden;
}

.signup-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.signup-modal-overlay.active .signup-modal-content {
    transform: translateY(0);
}

.signup-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signup-modal-close:hover {
    color: #1e293b;
}

.signup-modal-content h2 {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.signup-modal-content > p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}

.signup-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.signup-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    background: #ffffff;
}

.signup-type-card:hover {
    border-color: var(--primary);
    background-color: var(--bg-neutral);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 112, 201, 0.1);
}

.signup-type-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.signup-type-card.partner i {
    color: var(--secondary);
}

.signup-type-card h3 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 900;
}

.signup-type-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.5;
}

.signup-type-card.partner:hover {
    border-color: var(--secondary);
    background-color: #fff7ed;
    box-shadow: 0 10px 25px rgba(248, 102, 36, 0.1);
}

@media (max-width: 640px) {
    .signup-modal-content {
        padding: 42px 22px 28px;
        border-radius: 18px;
    }

    .signup-modal-content h2 {
        font-size: 25px;
    }

    .signup-modal-content > p {
        font-size: 15px;
        margin-bottom: 26px;
    }

    .signup-type-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .signup-type-card {
        padding: 28px 18px;
    }

    .signup-type-icon {
        font-size: 38px;
        margin-bottom: 14px;
    }

    .signup-type-card h3 {
        font-size: 20px;
    }
}

.footer-policy-links {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.footer-policy-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-policy-links a:hover {
    color: #0f172a;
    text-decoration: underline;
}

.footer-policy-links span {
    margin: 0 8px;
    color: #cbd5e1;
}