/* ============================================
   Home Page
   ============================================ */

.index-body {
    min-height: 100vh;
    background: #f8f7f3;
    color: #252525;
    overflow-x: hidden;
}

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

.home-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: 2rem;
    min-height: 78px;
    padding: 0 5.2vw;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(39, 45, 37, 0.08);
    box-shadow: 0 1px 12px rgba(31, 37, 28, 0.04);
}

.home-brand,
.home-nav a,
.home-login {
    color: #252525;
    text-decoration: none;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.brand-mark {
    position: relative;
    width: 26px;
    height: 28px;
    display: inline-block;
}

.brand-mark span {
    position: absolute;
    width: 12px;
    height: 20px;
    background: #6f8d67;
    border-radius: 12px 12px 2px 12px;
    transform-origin: bottom center;
}

.brand-mark span:nth-child(1) {
    left: 1px;
    bottom: 2px;
    transform: rotate(-38deg);
}

.brand-mark span:nth-child(2) {
    left: 9px;
    bottom: 9px;
    transform: rotate(0deg);
}

.brand-mark span:nth-child(3) {
    right: 0;
    bottom: 2px;
    transform: rotate(38deg);
}

.home-nav {
    display: flex;
    align-items: stretch;
    gap: 2.9rem;
    height: 78px;
}

.home-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 86px;
    height: 3px;
    background: #6f8d67;
    border-radius: 99px 99px 0 0;
    transform: translateX(-50%);
}

.home-login {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 800;
}

.login-icon {
    position: relative;
    width: 17px;
    height: 17px;
    display: inline-block;
}

.login-icon::before,
.login-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #252525;
}

.login-icon::before {
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.login-icon::after {
    bottom: 0;
    width: 16px;
    height: 8px;
    border-radius: 10px 10px 3px 3px;
}

.home-main {
    width: 100%;
}

.home-hero {
    position: relative;
    min-height: 344px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
    align-items: stretch;
    padding: 0 5.9vw;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(244, 238, 226, 0.3) 72%),
        linear-gradient(180deg, #f4efe6 0%, #e9dfcc 100%);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 4.4rem 0 3.9rem;
}

.hero-copy h1 {
    margin: 0 0 1.7rem;
    color: #252525;
    font-family: "Noto Sans KR", sans-serif;
    font-size: clamp(2.35rem, 3.8vw, 3.75rem);
    line-height: 1.28;
    font-weight: 400;
    letter-spacing: 0;
}

.hero-copy h1 span {
    display: inline-block;
    color: #4e654b;
    white-space: nowrap;
}

.hero-copy p {
    color: #222;
    font-size: clamp(1rem, 1.35vw, 1.32rem);
    line-height: 1.8;
    font-weight: 700;
}

.hero-still {
    position: relative;
    min-height: 344px;
}

.hero-still::before {
    content: "";
    position: absolute;
    inset: 0 -8vw 0 -8vw;
    background:
        radial-gradient(circle at 28% 36%, rgba(111, 141, 103, 0.14) 0 4px, transparent 5px),
        radial-gradient(circle at 35% 21%, rgba(111, 141, 103, 0.16) 0 6px, transparent 7px),
        radial-gradient(circle at 44% 30%, rgba(111, 141, 103, 0.14) 0 5px, transparent 6px),
        radial-gradient(circle at 51% 20%, rgba(111, 141, 103, 0.17) 0 7px, transparent 8px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(188, 166, 131, 0.16));
    filter: blur(0.1px);
}

.plant {
    position: absolute;
    right: 19%;
    top: 2.5rem;
    width: 230px;
    height: 176px;
    border-bottom: 66px solid #efe7d7;
    border-radius: 4px 4px 78px 78px;
}

.plant::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 45px;
    width: 6px;
    height: 120px;
    background: #6f8d67;
    border-radius: 99px;
    transform: rotate(-10deg);
    box-shadow:
        -42px 28px 0 -1px #6f8d67,
        35px 19px 0 -1px #6f8d67,
        -70px 64px 0 -1px #6f8d67,
        61px 58px 0 -1px #6f8d67;
}

.plant::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 18px;
    width: 220px;
    height: 110px;
    background:
        radial-gradient(ellipse at 16% 66%, #6f8d67 0 12px, transparent 13px),
        radial-gradient(ellipse at 33% 34%, #5f7f57 0 12px, transparent 13px),
        radial-gradient(ellipse at 55% 18%, #748f63 0 14px, transparent 15px),
        radial-gradient(ellipse at 70% 42%, #5c7b52 0 13px, transparent 14px),
        radial-gradient(ellipse at 86% 66%, #6f8d67 0 12px, transparent 13px);
}

.notebook {
    position: absolute;
    right: 26%;
    bottom: 3rem;
    width: 255px;
    height: 62px;
    background: #efe8d9;
    border: 1px solid rgba(103, 82, 52, 0.18);
    border-radius: 6px;
    transform: skewX(-10deg);
    box-shadow: 12px 15px 0 rgba(170, 143, 104, 0.25);
}

.notebook::before {
    content: "";
    position: absolute;
    inset: 12px 18px;
    border-top: 2px solid rgba(103, 82, 52, 0.12);
    border-bottom: 2px solid rgba(103, 82, 52, 0.12);
}

.cup {
    position: absolute;
    right: 4%;
    bottom: 3.7rem;
    width: 105px;
    height: 88px;
    background: #b5ad91;
    border-radius: 8px 8px 34px 34px;
    box-shadow: inset -14px -10px 0 rgba(79, 73, 57, 0.09);
}

.cup::after {
    content: "";
    position: absolute;
    right: -36px;
    top: 14px;
    width: 49px;
    height: 45px;
    border: 11px solid #b5ad91;
    border-left: 0;
    border-radius: 0 35px 35px 0;
}

.exam-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.55rem;
    width: min(100% - 7.2vw, 1350px);
    margin: -0.7rem auto 1.9rem;
}

.exam-card {
    display: flex;
    flex-direction: column;
    gap: 1.45rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(32, 38, 30, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(31, 37, 28, 0.12);
}

.exam-card-head {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.exam-card h2 {
    margin: 0 0 0.48rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
    color: #252525;
}

.exam-card p {
    margin: 0.38rem 0;
    color: #2f332f;
    font-size: clamp(0.92rem, 1.05vw, 1.06rem);
    line-height: 1.45;
    font-weight: 500;
}

.exam-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.habit-icon {
    background:
        radial-gradient(circle at 50% 32%, transparent 0 9px, #6f8d67 10px 12px, transparent 13px),
        radial-gradient(ellipse at 50% 70%, transparent 0 23px, #6f8d67 24px 27px, transparent 28px),
        #e2eddf;
}

.laq-icon {
    background:
        radial-gradient(circle at 37% 38%, transparent 0 15px, #587181 16px 19px, transparent 20px),
        radial-gradient(circle at 63% 38%, transparent 0 15px, #587181 16px 19px, transparent 20px),
        linear-gradient(45deg, transparent 45%, #587181 46% 53%, transparent 54%),
        #e9f1f8;
}

.media-still {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6.7;
    min-height: 210px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.media-habit {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 22, 18, 0.12)),
        radial-gradient(circle at 50% 34%, #5d7a48 0 27px, transparent 28px),
        linear-gradient(160deg, transparent 0 48%, rgba(80, 112, 55, 0.72) 49% 54%, transparent 55%),
        linear-gradient(14deg, #a8bb73 0 36%, #738c43 37% 46%, #d5d7c7 47% 100%);
}

.media-laq {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(15, 22, 32, 0.16)),
        linear-gradient(0deg, rgba(63, 83, 83, 0.85) 0 6%, transparent 7%),
        linear-gradient(90deg, transparent 0 43%, rgba(76, 68, 53, 0.85) 44% 45%, transparent 46% 54%, rgba(76, 68, 53, 0.85) 55% 56%, transparent 57%),
        linear-gradient(0deg, #91a9b4 0 35%, #d4b897 36% 58%, #e9d0b0 59% 100%);
}

.notice-band {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 1.25rem;
    width: min(100% - 11.6vw, 1220px);
    margin: 0 auto 2.1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(61, 67, 57, 0.18);
    border-radius: 8px;
}

.notice-band h2 {
    margin: 0 0 0.35rem;
    color: #252525;
    font-size: 1.05rem;
    font-weight: 900;
}

.notice-band p {
    margin: 0;
    color: #4b4f48;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 500;
}

.notice-icon {
    width: 58px;
    height: 58px;
    justify-self: center;
    border: 2px solid #c9d4c6;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 48%, transparent 0 14px, #6f8d67 15px 17px, transparent 18px),
        radial-gradient(circle at 50% 47%, #f8f7f3 0 7px, transparent 8px);
}

.notice-leaf {
    width: 64px;
    height: 54px;
    justify-self: end;
    background:
        radial-gradient(ellipse at 34% 74%, transparent 0 13px, #6f8d67 14px 17px, transparent 18px),
        radial-gradient(ellipse at 58% 48%, transparent 0 13px, #6f8d67 14px 17px, transparent 18px),
        radial-gradient(ellipse at 75% 25%, transparent 0 13px, #6f8d67 14px 17px, transparent 18px);
}

@media (max-width: 980px) {
    .home-header {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        min-height: auto;
        padding: 1rem 1.15rem;
    }

    .home-brand {
        font-size: 1.35rem;
    }

    .home-nav {
        order: 3;
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        gap: 1.1rem;
        overflow-x: auto;
        padding-top: 0.7rem;
    }

    .home-nav a {
        font-size: 0.9rem;
        padding-bottom: 0.45rem;
    }

    .home-nav a.active::after {
        width: 72px;
        height: 2px;
    }

    .home-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 0;
    }

    .hero-copy {
        padding: 2rem 1.5rem 1.1rem;
    }

    .hero-copy p br {
        display: none;
    }

    .hero-still {
        min-height: 156px;
        margin-top: 0;
    }

    .plant {
        right: 34%;
        top: -0.2rem;
        transform: scale(0.62);
    }

    .notebook {
        right: 35%;
        bottom: 1.15rem;
        transform: scale(0.7) skewX(-10deg);
    }

    .cup {
        right: 10%;
        bottom: 1.55rem;
        transform: scale(0.68);
    }

    .exam-grid {
        grid-template-columns: 1fr;
        width: min(100% - 2rem, 680px);
        margin-top: 1rem;
    }

    .exam-card {
        padding: 1.35rem;
    }

    .exam-card-head {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0.95rem;
    }

    .exam-icon {
        width: 60px;
        height: 60px;
    }

    .media-still {
        min-height: 175px;
    }

    .notice-band {
        grid-template-columns: 56px minmax(0, 1fr);
        width: min(100% - 2rem, 680px);
        padding: 1rem;
    }

    .notice-leaf {
        display: none;
    }
}

@media (max-width: 540px) {
    .hero-copy h1 {
        font-size: 1.72rem;
        line-height: 1.23;
        margin-bottom: 1.25rem;
    }

    .hero-copy h1 span {
        white-space: nowrap;
    }

    .hero-copy p {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .exam-card-head {
        grid-template-columns: 1fr;
    }

    .notice-band {
        grid-template-columns: 1fr;
    }

    .notice-icon {
        justify-self: start;
    }
}
