* {
    box-sizing: border-box;
}

:root {
    --main-green: #a9bea3;
    --main-green-dark: #7f9877;
    --deep-green: #2f4f35;
    --soft-green: #e7f0e3;
    --light-bg: #f7faf5;
    --white: #ffffff;
    --text-main: #26352a;
    --text-sub: #667266;
    --line: rgba(47, 79, 53, 0.14);
    --shadow: 0 18px 45px rgba(47, 79, 53, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: var(--light-bg);
    font-family: Arial, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(169, 190, 163, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
}

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

.logo {
    font-weight: 900;
    letter-spacing: 0.24em;
    color: var(--white);
}

.desktop-nav {
    display: flex;
    gap: 34px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    font-weight: 700;
}

    .desktop-nav a {
        transition: color 0.2s ease;
    }

        .desktop-nav a:hover,
        .desktop-nav a.is-active {
            color: var(--deep-green);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-button,
.menu-button,
.close-button {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--white);
    background: transparent;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
}

    .contact-button:hover,
    .menu-button:hover,
    .close-button:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    background: rgba(47, 79, 53, 0.45);
}

    .mobile-menu.is-open {
        display: block;
    }

.mobile-menu-panel {
    margin-left: auto;
    width: min(360px, 88vw);
    min-height: 100%;
    padding: 24px;
    background: var(--white);
    border-left: 1px solid var(--line);
}

.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.mobile-menu a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--deep-green);
    font-weight: 800;
}

/* Home hero */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient( 90deg, rgba(247, 250, 245, 0.96) 0%, rgba(247, 250, 245, 0.86) 38%, rgba(247, 250, 245, 0.28) 72%, rgba(247, 250, 245, 0.12) 100% ), url("../img/hero-main.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--main-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 0;
    color: var(--deep-green);
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

/* Home hero animation */
.hero .eyebrow,
.hero h1 {
    opacity: 0;
    transform: translateX(-120px);
    transition: transform 0.9s ease, opacity 0.9s ease;
    will-change: transform, opacity;
}

    .hero .eyebrow.hero-text-visible,
    .hero h1.hero-text-visible {
        opacity: 1;
        transform: translateX(0);
    }

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 34px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 50px;
    border-radius: 999px;
    font-weight: 900;
}

.primary-button {
    background: var(--deep-green);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(47, 79, 53, 0.2);
}

.secondary-button {
    color: var(--deep-green);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.primary-button:hover {
    background: #243d29;
}

.secondary-button:hover {
    background: var(--white);
}

/* Home category */
.home-category-section {
    padding: 86px 0;
    background: var(--white);
}

.section-title {
    margin-bottom: 30px;
}

    .section-title h2 {
        margin: 0;
        color: var(--deep-green);
        font-size: 36px;
        letter-spacing: -0.03em;
    }

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-card {
    min-height: 270px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--white), var(--soft-green));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .home-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 55px rgba(47, 79, 53, 0.16);
    }

    .home-card span {
        color: var(--main-green-dark);
        font-size: 14px;
        font-weight: 900;
    }

    .home-card h3 {
        margin: 26px 0 12px;
        color: var(--deep-green);
        font-size: 28px;
    }

    .home-card p {
        min-height: 54px;
        margin: 0 0 28px;
        color: var(--text-sub);
        line-height: 1.7;
    }

    .home-card b {
        display: inline-flex;
        color: var(--white);
        background: var(--main-green-dark);
        border-radius: 999px;
        padding: 11px 16px;
        font-size: 14px;
    }

/* Sub pages */
.sub-hero {
    position: relative;
    padding: 92px 0 70px;
    background: linear-gradient(135deg, rgba(247, 250, 245, 1), rgba(231, 240, 227, 1));
    border-bottom: 1px solid var(--line);
}

    .sub-hero h1 {
        margin: 0;
        color: var(--deep-green);
        font-size: clamp(38px, 6vw, 70px);
        letter-spacing: -0.04em;
    }

    .sub-hero p:not(.eyebrow) {
        max-width: 680px;
        margin: 22px 0 0;
        color: var(--text-sub);
        line-height: 1.75;
        font-size: 18px;
    }

/* Sub page middle image */
.sub-visual-band {
    padding: 0 0 48px;
    background: var(--light-bg);
}

.sub-visual-box {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
}

    .sub-visual-box img {
        display: block;
        width: 100%;
        height: auto;
    }

/* Product common */
.product-section {
    padding: 70px 0 90px;
    background: var(--light-bg);
}

.product-list {
    display: grid;
    gap: 28px;
}

.product-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.product-content {
    padding: 8px 0;
}

.product-type {
    margin: 0 0 14px;
    color: var(--main-green-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.product-content h2 {
    margin: 0;
    color: var(--deep-green);
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.035em;
}

.price {
    margin: 16px 0 0;
    color: var(--deep-green);
    font-weight: 900;
    font-size: 18px;
}

.line {
    width: 100%;
    height: 1px;
    margin: 24px 0;
    background: var(--line);
}

.product-content p:last-child {
    margin: 0;
    color: var(--text-sub);
    line-height: 1.85;
    font-size: 16px;
}

/* Product image boxes */
.product-image-placeholder,
.product-image-box,
.device-image {
    width: 220px;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--soft-green);
    color: var(--main-green-dark);
}

.product-image-placeholder {
    border: 1px dashed rgba(47, 79, 53, 0.28);
}

    .product-image-placeholder span {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.12em;
    }

    .product-image-placeholder small {
        margin-top: 10px;
        color: var(--text-sub);
    }

.product-image-box img,
.device-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 190px;
    object-fit: contain;
    object-position: center;
}

/* Beauty device card: image + text + video */
.product-card.device-card {
    grid-template-columns: 220px minmax(0, 1fr) 160px;
}

.device-video {
    width: 160px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
    box-shadow: 0 12px 28px rgba(47, 79, 53, 0.16);
}

    .device-video iframe,
    .device-video video {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        object-fit: cover;
    }

    .device-video.video-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }

        .device-video.video-empty span {
            font-size: 13px;
            font-weight: 900;
            letter-spacing: 0.12em;
        }

        .device-video.video-empty small {
            margin-top: 8px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
        }

/* Education */
.empty-card,
.education-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.empty-card {
    padding: 34px;
    margin-bottom: 22px;
}

    .empty-card h2 {
        margin: 0 0 14px;
        color: var(--deep-green);
        font-size: 34px;
    }

    .empty-card p {
        color: var(--text-sub);
        line-height: 1.75;
    }

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

.education-card {
    padding: 26px;
}

    .education-card h3 {
        margin: 0 0 12px;
        color: var(--deep-green);
        font-size: 22px;
    }

    .education-card p {
        color: var(--text-sub);
        line-height: 1.7;
    }

    .education-card span {
        display: inline-flex;
        margin-top: 16px;
        border-radius: 999px;
        padding: 9px 13px;
        color: var(--white);
        background: var(--main-green-dark);
        font-size: 13px;
        font-weight: 900;
    }

/* Contact */
.contact-section {
    padding: 72px 0;
    background: var(--soft-green);
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

    .contact-box h2 {
        margin: 0 0 16px;
        color: var(--deep-green);
        font-size: 38px;
    }

    .contact-box p {
        color: var(--text-sub);
        line-height: 1.7;
    }

.contact-info {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

    .contact-info strong {
        display: inline-block;
        width: 72px;
        color: var(--deep-green);
    }

/* Footer */
.site-footer {
    padding: 46px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--deep-green);
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.footer-logo {
    color: var(--white);
    letter-spacing: 0.22em;
    font-weight: 900;
}

.footer-logo-img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-bottom: 14px;
}

.copyright {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-info p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-info span {
    display: inline-block;
    width: 72px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
}

/* Mobile */
@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .desktop-nav {
        display: none;
    }

    .contact-button {
        display: none;
    }

    .hero {
        min-height: auto;
        background-image: linear-gradient( 180deg, rgba(247, 250, 245, 0.96) 0%, rgba(247, 250, 245, 0.88) 52%, rgba(247, 250, 245, 0.68) 100% ), url("../img/hero-main.jpg");
        background-position: center;
    }

    .hero-inner {
        padding: 86px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .home-category-grid,
    .product-card,
    .product-card.device-card,
    .contact-box,
    .education-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .home-card {
        min-height: auto;
    }

    .sub-hero {
        padding: 72px 0 52px;
    }

    .sub-visual-band {
        padding: 0 0 32px;
    }

    .sub-visual-box {
        border-radius: 18px;
    }

    .product-image-placeholder,
    .product-image-box,
    .device-image {
        width: 100%;
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

        .product-image-box img,
        .device-image img {
            max-width: 88%;
            max-height: 190px;
        }

    .device-video {
        width: min(240px, 100%);
        margin: 0 auto;
    }

    .footer-grid {
        align-items: start;
        gap: 22px;
    }

    .footer-logo-img {
        width: 160px;
    }
}
