:root {
    --bg-main: #e5e7eb;
    --bg-panel: #f8fafc;
    --bg-panel-soft: #eef2f7;
    --text-main: #111827;
    --text-sub: #4b5563;
    --text-muted: #6b7280;
    --brand: #475569;
    --brand-dark: #334155;
    --accent: #2563eb;
    --line: rgba(17, 24, 39, 0.14);
    --shadow: 0 22px 54px rgba(17, 24, 39, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 8% 10%, rgba(71, 85, 105, 0.22), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.1), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #e5e7eb 45%, #d1d5db 100%),
        var(--bg-main);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        radial-gradient(rgba(71, 85, 105, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 76%);
}

.wrap {
    width: min(1120px, 92vw);
    margin: 28px auto 52px;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
    gap: clamp(10px, 4vw, 16px);
    /*align-items: center;*/
    min-height: 430px;
    padding: clamp(28px, 4.7vw, 56px);
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 38px 38px 96px 38px;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.94)),
        radial-gradient(circle at top right, rgba(71, 85, 105, 0.12), transparent 38%);
    box-shadow: var(--shadow);
}

.hero::before {
    position: absolute;
    top: -100px;
    right: -70px;
    width: 300px;
    height: 300px;
    border-radius: 45%;
    content: "";
    background: rgba(100, 116, 139, 0.14);
    transform: rotate(18deg);
}

.hero::after {
    position: absolute;
    left: 36px;
    bottom: 34px;
    width: 92px;
    height: 92px;
    border: 18px solid rgba(71, 85, 105, 0.14);
    border-radius: 999px;
    content: "";
    background: transparent;
    transform: none;
}

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    min-height: 100px;
    margin: 0 auto 20px;
    padding: 14px 24px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 28px;
    background: linear-gradient(145deg, #1f2937, #475569), radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 38%);
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.1);
}

.logo {
    display: block;
    width: 230px;
    max-width: 68vw;
    height: auto;
}

h1 {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.55rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.brand {
    display: block;
    margin-top: 18px;
    color: var(--brand);
    font-size: clamp(1.1rem, 2.2vw, 1.72rem);
    letter-spacing: -0.02em;
    word-break: break-all;
}

.lead {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 30px 0 130px;
    color: #e4edbf;
    font-weight: bold;
    font-size: clamp(1rem, 1.8vw, 1.42rem);
    line-height: 1.75;
    word-break: keep-all;
}

.url-box {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding: 16px 20px;
    border: 2px dashed rgba(71, 85, 105, 0.34);
    border-radius: 22px;
    background: #f8fafc;
    color: var(--brand);
    font-size: clamp(1.08rem, 2.1vw, 1.35rem);
    font-weight: 900;
    text-align: center;
    word-break: break-all;
    box-shadow: none;
}

.url-box em {
    font-style: normal;
}

.cta-row {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 82px;
    padding: 15px 28px;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-main {
    font-size: 1.8rem;
    flex: 1 1 250px;
    background: linear-gradient(135deg, var(--brand-dark), var(--accent));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
}

.content-box {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1 / span 4;
    padding: 30px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 34px;
    background:
        linear-gradient(145deg, #1f2937, #475569),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 38%);
    color: #ffffff;
    font-size: clamp(0.96rem, 1.7vw, 1.08rem);
    /* font-weight: 800; */
    line-height: 2;
    text-align: center;
    box-shadow: 0 24px 48px rgba(23, 32, 51, 0.2);
}

.guide {
    counter-reset: guide-card;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.guide-title {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    padding: 0 0 20px;
    border-bottom: 2px solid rgba(71, 85, 105, 0.22);
    color: var(--text-main);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.35;
    letter-spacing: -0.04em;
}

.guide-lead {
    grid-column: 1 / -1;
    margin: 0 0 6px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 1.88;
    text-align: justify;
    word-break: keep-all;
}

.guide-card {
    position: relative;
    display: block;
    min-height: 100%;
    margin: 0;
    padding: 16px 16px 22px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 26px;
    background:
        linear-gradient(180deg, #f8fafc, #eef2f7),
        radial-gradient(circle at top left, rgba(71, 85, 105, 0.08), transparent 38%);
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.1);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 20px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 20px;
    object-fit: cover;
    background: #e5e7eb;
}

.guide-card::before {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
    counter-increment: guide-card;
    content: "0" counter(guide-card);
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(31, 41, 55, 0.82);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.guide-card::after {
    display: none;
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 24px 54px rgba(23, 32, 51, 0.16);
}

.guide-card-title {
    margin: 0 0 12px;
    color: var(--text-main);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.guide-card p {
    margin: 0;
    color: var(--text-sub);
    font-size: 0.96rem;
    line-height: 1.82;
    text-align: left;
    word-break: keep-all;
}

footer {
    margin: 26px 4px 0;
    color: #64748b;
    font-size: 0.84rem;
    text-align: center;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 28px;
    }

    .hero::after {
        display: none;
    }

    .content-box {
        grid-column: auto;
        grid-row: auto;
    }

    .guide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(94vw, 1080px);
        margin-top: 22px;
    }

    .hero,
    .guide-card,
    .guide-lead {
        border-radius: 20px;
    }

    .logo-link {
        width: min(280px, 86vw);
    }

    .guide {
        grid-template-columns: 1fr;
    }
}
