:root {
    --bg: #f7f4ef;
    --bg-soft: #f1ede6;
    --panel: #ffffff;
    --text: #1b1a17;
    --muted: rgba(27, 26, 23, 0.62);
    --gold: #c29b5b;
    --gold-soft: rgba(194, 155, 91, 0.18);
    --border: rgba(27, 26, 23, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans KR', 'SUIT', sans-serif;
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(255, 255, 255, 0.8), transparent 60%),
        radial-gradient(760px 380px at 88% 10%, rgba(194, 155, 91, 0.18), transparent 65%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container {
    width: min(1040px, 100%);
    padding: 0 20px;
    margin: 0 auto;
}

.section-head {
    width: min(1040px, 100%);
    padding: 0 20px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.section-head h2 {
    font-family: 'Brygada 1918', 'Noto Sans KR', 'SUIT', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 0.6rem;
    letter-spacing: 0.01em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.feature-head h2 {
    font-family: 'Brygada 1918', 'Noto Sans KR', 'SUIT', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
    margin: 0;
    color: var(--text);
}

.feature-head .line1,
.feature-head .line2 {
    color: var(--gold);
    font-weight: 800;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 242, 234, 0.92);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    min-height: 60px;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: none;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
    color: var(--text);
}

.contact-link {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-link:focus-visible {
    outline: 2px solid rgba(42, 26, 0, 0.55);
    outline-offset: 3px;
}

/* Hero */
.hero {
    padding: 54px 0;
    display: grid;
    gap: 1.5rem;
    justify-items: center;
}

.hero-title {
    margin: 0;
    font-family: 'Brygada 1918', 'Noto Sans KR', 'SUIT', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    letter-spacing: 0.02em;
    font-weight: 800;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    color: rgba(255, 255, 255, 0.92);
}

.highlight-red {
    color: #D62828;
    font-weight: 900;
}

.highlight-gradient {
    background: linear-gradient(90deg, #FFB800, #FF6A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.hero-video {
    position: relative;
    margin: 0 auto;
    width: min(1040px, 100%);
    padding: 0 20px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 0 2rem 2.2rem;
}

.hero-sub {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.02em;
    max-width: 680px;
}

.mute-toggle {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(200, 164, 93, 0.8);
    background: rgba(10, 10, 10, 0.65);
    color: var(--gold);
    font-size: 1.15rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(6px);
}

.mute-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(200, 164, 93, 0.25);
}

.mute-toggle:active {
    transform: translateY(0);
}

.mute-toggle:focus-visible {
    outline: 2px solid rgba(200, 164, 93, 0.8);
    outline-offset: 2px;
}

/* Features */
.features {
    padding: 54px 0;
    background: var(--bg-soft);
}

.feature-grid {
    width: min(1040px, 100%);
    padding: 0 20px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: stretch;
}

.feature-card {
    background: var(--panel);
    padding: 1.8rem;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(27, 26, 23, 0.08);
    display: grid;
    gap: 1.25rem;
    grid-template-rows: auto auto 1fr;
    height: 100%;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 600;
}

.feature-title {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.feature-title-line {
    white-space: nowrap;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.feature-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #f6f1ea;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text);
    font-size: 0.95rem;
    box-shadow: 0 8px 22px rgba(27, 26, 23, 0.08);
    overflow: hidden;
    align-self: end;
    max-height: 220px;
}

.feature-video video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
    display: block;
    opacity: 1;
    visibility: visible;
}

.feature-video-1 .factory-crop {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.feature-video-1 .factory-crop video {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.feature-video-1 {
    background: transparent;
    border-color: transparent;
}

.feature-video-1 .factory-crop::before,
.feature-video-1 .factory-crop::after {
    content: none;
}

.feature-video.vertical {
    background: #f6f1ea;
}

.feature-video.vertical video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.feature-video.vertical-portrait {
    aspect-ratio: 9 / 16;
    width: min(100%, 280px);
    max-height: clamp(260px, 36vw, 360px);
    justify-self: center;
    background: #f6f1ea;
}

.feature-video.vertical-portrait video {
    object-fit: cover;
}

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

.feature-video video::-webkit-media-controls,
.feature-video video::-webkit-media-controls-enclosure {
    display: none !important;
}

.feature-video .video-error {
    position: absolute;
    inset: auto 0 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: #fff2cf;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
    text-align: center;
}

.video-card,
.description-box {
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(27, 26, 23, 0.08);
}

/* Inquiry Form */
.inquiry {
    padding: 54px 0;
}

.inquiry-form {
    width: min(520px, 100%);
    padding: 0 20px;
    margin: 0 auto;
    display: grid;
    gap: 1.4rem;
}

.inquiry-form label,
.radio-group {
    display: grid;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.inquiry-form input {
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    padding: 0 0.9rem;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.inquiry-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(200, 164, 93, 0.35);
    background: #ffffff;
}

.radio-group {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    background: #ffffff;
}

.radio-group legend {
    padding: 0 0.5rem;
    color: var(--gold);
    font-weight: 600;
}

.radio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.radio-item input {
    accent-color: var(--gold);
}

.btn {
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(194, 155, 91, 0.55);
    background: linear-gradient(135deg, rgba(214, 180, 122, 0.95), rgba(184, 139, 74, 0.95));
    color: #1a150e;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px var(--gold-soft);
}

.btn:disabled {
    cursor: not-allowed;
    background: rgba(200, 164, 93, 0.25);
    color: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transform: none;
}

/* Footer */
.site-footer {
    padding: 2rem 0 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.floating-kakao {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 9999;
    background-color: #FEE500;
    color: #000;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-kakao:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 960px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 54px 0;
    }

    .hero-video {
        width: min(720px, 100%);
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.5;
    }

    .container,
    .section-head,
    .feature-grid,
    .hero-video,
    .inquiry-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-inner {
        text-align: center;
        flex-direction: column;
        gap: 0.4rem;
    }

    .header-contact {
        justify-content: center;
        width: 100%;
    }

    .contact-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid var(--border);
        font-weight: 700;
        min-height: 40px;
    }

    .contact-link:active {
        transform: scale(0.98);
    }

    h1,
    .hero-title {
        font-size: 26px;
        line-height: 1.25;
        text-align: center;
        letter-spacing: -0.5px;
    }

    .hero-line1,
    .hero-line2,
    .line1,
    .line2,
    .line3 {
        display: block;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-sub {
        font-size: 15px;
    }

    .feature-video,
    .video-card {
        width: 100%;
        border-radius: 16px;
    }

    .feature-card,
    .description-box {
        border-radius: 16px;
    }

    .btn,
    .inquiry-form button {
        width: 100%;
    }

    .feature-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

}

@media (max-width: 640px) {
    .header-inner {
        padding: 0.25rem 0;
    }

    .logo-image {
        height: 42px;
    }

    .hero-content {
        padding: 0 1.2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 0.03em;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.6rem;
    }

    .inquiry-form input {
        padding: 0.9rem 0;
    }

    .feature-head h2 {
        font-size: clamp(2rem, 6vw, 2.6rem);
        line-height: 1.3;
    }

    .mute-toggle {
        width: 52px;
        height: 52px;
        right: 0.9rem;
        bottom: 0.9rem;
        font-size: 1.25rem;
    }

    .feature-video.vertical-portrait {
        width: 100%;
        max-width: 100%;
        max-height: none;
        aspect-ratio: 9 / 16;
    }

    .feature-video.vertical-portrait video {
        object-fit: contain;
        object-position: center;
    }

    .feature-video-1 .factory-crop video {
        object-fit: cover;
        object-position: top;
        height: 120%;
    }

    .feature-video.feature-video-3 {
        width: 100%;
        aspect-ratio: 16 / 9;
        padding: 0;
    }

    .feature-video.feature-video-3 video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .feature-video {
        max-height: 200px;
    }
}
