/* index.html — 메인 페이지만 적용되는 그린 톤 */

body.index-page {
    --index-ink: #163126;
    --index-muted: rgba(22, 49, 38, 0.68);
    --index-line: rgba(22, 49, 38, 0.1);
    --index-paper: #f2f7f3;
    --index-card: #fbfffc;
    --index-accent: #1f8a4c;
    --index-deep: #145c38;
    background-color: var(--index-paper);
    background-image:
        radial-gradient(ellipse 80% 42% at 50% -8%, rgba(31, 138, 76, 0.12), transparent 70%),
        linear-gradient(180deg, #f7fbf8 0%, #e7f2eb 100%);
    color: var(--index-ink);
}

body.index-page .main {
    padding: 36px 20px 72px;
}

body.index-page .section {
    margin: 18px auto;
    padding: 36px 36px 32px;
    background: var(--index-card);
    border: 1px solid var(--index-line);
    border-radius: 22px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px rgba(20, 70, 42, 0.05);
}

body.index-page .section::before {
    display: none;
}

body.index-page .section-title {
    margin-bottom: 14px;
    font-size: clamp(1.45rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.25;
    color: var(--index-ink);
}

body.index-page .section-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 12px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--index-accent), rgba(31, 138, 76, 0.15));
}

body.index-page .section-intro {
    max-width: 40rem;
    margin-bottom: 12px;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--index-muted);
}

body.index-page .homepage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--index-deep);
    color: #f4fbf6;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 18px rgba(20, 92, 56, 0.2);
    text-decoration: none;
}

body.index-page .homepage-button::before {
    display: none;
}

body.index-page .homepage-button:hover,
body.index-page .index-section-link-button:hover {
    background: #0f452a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 92, 56, 0.26);
}

/* 날짜 · 날씨 */
body.index-page .today-date-section {
    max-width: 800px;
    margin: 0 auto 8px;
    padding: 16px 22px;
    border: 1px solid var(--index-line);
    border-radius: 18px;
    background: rgba(251, 255, 252, 0.78);
    box-shadow: 0 10px 28px rgba(20, 70, 42, 0.05);
    backdrop-filter: blur(8px);
}

body.index-page .today-date-text {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--index-ink);
}

body.index-page .today-weather-text {
    color: var(--index-muted);
}

body.index-page .today-weather-description,
body.index-page .today-weather-description-text {
    text-align: left;
}

body.index-page .today-weather-description-link {
    margin-top: 8px;
    border-color: rgba(31, 138, 76, 0.32);
    background: rgba(31, 138, 76, 0.08);
    color: #146b3a;
    font-weight: 600;
}

body.index-page .today-weather-description-link:hover {
    background: rgba(31, 138, 76, 0.16);
    border-color: rgba(31, 138, 76, 0.5);
    color: #0f452a;
}

/* 계정 */
body.index-page .auth-status {
    padding: 22px 24px;
    border-radius: 18px;
    border-color: var(--index-line);
    background: linear-gradient(180deg, #fff 0%, #f3faf6 100%);
    box-shadow: none;
}

body.index-page .auth-status::before {
    height: 2px;
    background: linear-gradient(90deg, var(--index-accent), transparent);
    opacity: 1;
}

body.index-page .auth-status:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(20, 70, 42, 0.07);
}

body.index-page .auth-status-label {
    letter-spacing: 0.14em;
    color: var(--index-accent);
}

body.index-page .auth-btn {
    border-radius: 999px;
}

body.index-page .auth-btn::before {
    display: none;
}

body.index-page .auth-btn.secondary {
    background: transparent;
    border-color: rgba(22, 49, 38, 0.16);
}

body.index-page .auth-btn.secondary:hover {
    background: rgba(31, 138, 76, 0.08);
    transform: none;
    box-shadow: none;
}

body.index-page .user-stat-item {
    border-radius: 16px;
    border-color: var(--index-line);
    background: #fff;
}

body.index-page .user-stat-value {
    color: var(--index-deep);
}

/* 견적 */
body.index-page .section.section--video-quote-index {
    padding: 32px 28px 28px;
    border-color: rgba(20, 92, 56, 0.12);
    background:
        linear-gradient(180deg, rgba(31, 138, 76, 0.06), transparent 120px),
        var(--index-card);
    box-shadow: 0 18px 40px rgba(20, 70, 42, 0.06);
}

body.index-page .section--video-quote-index__title {
    font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.7rem);
    letter-spacing: -0.045em;
}

body.index-page .section--video-quote-index__lead,
body.index-page .section--video-quote-index__footnote,
body.index-page .section--video-quote-index__source,
body.index-page .section--video-quote-index__revision-note {
    color: var(--index-muted);
    opacity: 1;
}

body.index-page .section--video-quote-index__plan {
    padding: 18px 18px 16px;
    border-radius: 16px;
    border-color: var(--index-line);
    background: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.index-page .section--video-quote-index__plan:nth-child(2) {
    border-color: rgba(31, 138, 76, 0.4);
    background: linear-gradient(180deg, #f7fdf9 0%, #e7f6ee 100%);
}

body.index-page .section--video-quote-index__plan-price {
    color: var(--index-deep);
    font-variant-numeric: tabular-nums;
}

body.index-page .section--video-quote-index__plan--bundle {
    border-color: rgba(20, 92, 56, 0.18);
    background: linear-gradient(135deg, rgba(31, 138, 76, 0.08), #fff 55%);
}

body.index-page .section--video-quote-index__cta {
    border: none;
    border-radius: 999px;
    background: var(--index-deep);
    box-shadow: 0 10px 22px rgba(20, 92, 56, 0.24);
}

body.index-page .section--video-quote-index__cta:hover {
    filter: none;
    background: #0f452a;
}

/* 상단 광고 · 가이드 티저 */
body.index-page .section.section--top-banner-pricing-index {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 22px 26px;
    border: 1px solid rgba(20, 92, 56, 0.18);
    background:
        linear-gradient(120deg, #145c38 0%, #0f3d28 55%, #1a7a48);
    box-shadow: 0 16px 32px rgba(15, 61, 40, 0.18);
}

body.index-page .section--top-banner-pricing-index__title,
body.index-page .section--top-banner-pricing-index__desc {
    color: #f4fbf6;
    opacity: 1;
}

body.index-page .section--top-banner-pricing-index__desc {
    color: rgba(244, 251, 246, 0.8);
}

body.index-page .section--top-banner-pricing-index__cta {
    background: #e7f8ee;
    color: var(--index-ink);
    box-shadow: none;
    font-weight: 700;
}

body.index-page .section--top-banner-pricing-index__cta:hover {
    filter: none;
    background: #fff;
    color: var(--index-ink);
}

body.index-page .section--top-banner-pricing-index__cta--disabled,
body.index-page .section--top-banner-pricing-index__cta--disabled:hover {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.72);
}

/* 크몽 */
body.index-page .kmong-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

body.index-page .kmong-btn {
    min-height: 108px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    border: 1px solid var(--index-line);
    background: #fff;
    color: var(--index-ink);
    box-shadow: none;
    justify-content: space-between;
}

body.index-page .kmong-btn.primary,
body.index-page .kmong-btn.accent,
body.index-page .kmong-btn.outline {
    background: #fff;
    color: var(--index-ink);
    border: 1px solid var(--index-line);
}

body.index-page .kmong-btn.primary {
    background: linear-gradient(180deg, #fff 0%, #f3fbf6 100%);
    border-color: rgba(31, 138, 76, 0.28);
}

body.index-page .kmong-btn-title {
    font-size: 0.98rem;
    letter-spacing: -0.03em;
}

body.index-page .kmong-btn-desc {
    color: var(--index-muted);
    opacity: 1;
}

body.index-page .kmong-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 138, 76, 0.4);
    box-shadow: 0 14px 28px rgba(20, 70, 42, 0.08);
}

body.index-page .kmong-btn.accent .kmong-btn-arrow-img {
    filter: none;
}

body.index-page .kmong-reviews-wrap {
    border-top-color: var(--index-line);
}

body.index-page .kmong-reviews-item {
    border-radius: 14px;
}

/* 포트폴리오 */
body.index-page .portfolio-home-feature {
    padding: 36px 28px 32px;
    text-align: left;
    border: none;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(110, 210, 150, 0.35), transparent 42%),
        linear-gradient(160deg, #1a6b42 0%, #0e3a26 100%);
    box-shadow: 0 18px 36px rgba(14, 58, 38, 0.22);
}

body.index-page .portfolio-home-feature-icon {
    margin: 0 0 16px;
    color: #e7f8ee;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.index-page .portfolio-home-feature-title,
body.index-page .portfolio-home-feature-desc {
    color: #f4fbf6;
    margin-left: 0;
    margin-right: 0;
}

body.index-page .portfolio-home-feature-desc {
    opacity: 0.82;
}

body.index-page .portfolio-home-feature .homepage-button {
    background: #e7f8ee;
    color: var(--index-ink);
    box-shadow: none;
}

body.index-page .portfolio-home-feature .homepage-button:hover {
    background: #fff;
    color: var(--index-ink);
}

body.index-page .portfolio-channel-card {
    border-radius: 16px;
    border-color: var(--index-line);
    background: #fff;
    box-shadow: none;
}

body.index-page .portfolio-channel-badge {
    color: var(--index-deep);
    background: rgba(31, 138, 76, 0.12);
    letter-spacing: 0.16em;
}

body.index-page .portfolio-channel-link {
    color: var(--index-deep);
    border-color: rgba(20, 92, 56, 0.22);
    background: transparent;
}

body.index-page .portfolio-channel-link:hover {
    background: rgba(31, 138, 76, 0.08);
    color: var(--index-deep);
}

/* 바로가기 섹션 */
body.index-page .section.section--index-link-cta .section-group > p:last-child {
    margin-top: 18px;
}

@media (max-width: 768px) {
    body.index-page .main {
        padding: 20px 14px 56px;
    }

    body.index-page .section {
        padding: 26px 18px 22px;
        border-radius: 18px;
    }

    body.index-page .kmong-buttons {
        grid-template-columns: 1fr;
    }

    body.index-page .portfolio-home-feature {
        text-align: center;
    }

    body.index-page .portfolio-home-feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    body.index-page .portfolio-home-feature-desc {
        margin-left: auto;
        margin-right: auto;
    }

    body.index-page .section.section--index-link-cta .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
}

/* 다크 모드 */
body.index-page.dark-mode {
    --index-ink: #e7f6ec;
    --index-muted: rgba(231, 246, 236, 0.7);
    --index-line: rgba(231, 246, 236, 0.12);
    --index-paper: #0f1612;
    --index-card: #17211b;
    --index-accent: #7ddea3;
    --index-deep: #8ee0ad;
    background-color: #0f1612;
    background-image:
        radial-gradient(ellipse 70% 40% at 50% -10%, rgba(125, 222, 163, 0.1), transparent 70%),
        linear-gradient(180deg, #141c17 0%, #0c120f 100%);
    color: var(--index-ink);
}

body.index-page.dark-mode .section,
body.index-page.dark-mode .section--video-quote-index__plan,
body.index-page.dark-mode .kmong-btn,
body.index-page.dark-mode .kmong-btn.primary,
body.index-page.dark-mode .kmong-btn.accent,
body.index-page.dark-mode .kmong-btn.outline,
body.index-page.dark-mode .portfolio-channel-card,
body.index-page.dark-mode .auth-status,
body.index-page.dark-mode .user-stat-item {
    background: var(--index-card);
    color: var(--index-ink);
    border-color: var(--index-line);
    box-shadow: none;
}

body.index-page.dark-mode .section.section--video-quote-index {
    background:
        linear-gradient(180deg, rgba(125, 222, 163, 0.08), transparent 140px),
        var(--index-card);
}

body.index-page.dark-mode .section--video-quote-index__plan:nth-child(2) {
    background: linear-gradient(180deg, #1c2a22 0%, #1a3326 100%);
    border-color: rgba(125, 222, 163, 0.4);
}

body.index-page.dark-mode .today-date-section {
    background: rgba(23, 33, 27, 0.86);
}

body.index-page.dark-mode .today-date-text,
body.index-page.dark-mode .section-title,
body.index-page.dark-mode .section--video-quote-index__title,
body.index-page.dark-mode .section--video-quote-index__plan-price,
body.index-page.dark-mode .user-stat-value {
    color: var(--index-ink);
}

body.index-page.dark-mode .section-intro,
body.index-page.dark-mode .today-weather-text,
body.index-page.dark-mode .today-weather-description,
body.index-page.dark-mode .today-weather-description-text {
    color: var(--index-muted);
}

body.index-page.dark-mode .homepage-button,
body.index-page.dark-mode .section--video-quote-index__cta {
    background: #d7f5e4;
    color: #123524;
}

body.index-page.dark-mode .homepage-button:hover,
body.index-page.dark-mode .index-section-link-button:hover,
body.index-page.dark-mode .section--video-quote-index__cta:hover {
    background: #fff;
    color: #123524;
}

body.index-page.dark-mode .today-weather-description-link,
body.index-page.dark-mode .portfolio-channel-link {
    color: var(--index-accent);
    border-color: rgba(125, 222, 163, 0.35);
    background: transparent;
}

body.index-page.dark-mode .auth-btn.secondary {
    color: var(--index-ink);
    border-color: var(--index-line);
    background: transparent;
}

body.index-page.dark-mode .kmong-btn .kmong-btn-arrow-img {
    filter: invert(1) brightness(1.15);
}

body.index-page.dark-mode .kmong-btn.primary {
    background: linear-gradient(180deg, #17211b 0%, #1c2e24 100%);
    border-color: rgba(125, 222, 163, 0.28);
}
