:root {
    --hub-bg: #eef6f1;
    --hub-surface: rgba(255, 255, 255, 0.88);
    --hub-surface-strong: rgba(255, 255, 255, 0.96);
    --hub-stroke: rgba(15, 66, 41, 0.10);
    --hub-text: #102319;
    --hub-muted: #5b6f64;
    --hub-accent: #1f7a4c;
    --hub-accent-2: #28a96a;
    --hub-shadow: 0 24px 60px rgba(12, 41, 24, 0.10);
    --hub-shadow-soft: 0 16px 38px rgba(12, 41, 24, 0.07);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    color: var(--hub-text);
    background:
        radial-gradient(circle at 0% 0%, rgba(67, 160, 99, 0.22), transparent 24%),
        radial-gradient(circle at 100% 10%, rgba(31, 122, 76, 0.18), transparent 22%),
        radial-gradient(circle at 80% 100%, rgba(111, 188, 132, 0.20), transparent 24%),
        linear-gradient(180deg, #f6fbf7 0%, #edf5ef 46%, #ddebe0 100%);
}

a {
    color: inherit;
}

.hub-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 18px 48px;
}

.hub-hero,
.portal-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    color: #f5fff8;
    background:
        linear-gradient(135deg, rgba(8, 31, 19, 0.98) 0%, rgba(18, 79, 48, 0.96) 54%, rgba(33, 115, 69, 0.93) 100%);
    box-shadow: 0 30px 80px rgba(7, 25, 15, 0.22);
}

.hub-hero::before,
.portal-hero::before {
    content: "";
    position: absolute;
    inset: auto auto -40px -20px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(94, 233, 153, 0.28), rgba(94, 233, 153, 0));
}

.hub-hero::after,
.portal-hero::after {
    content: "";
    position: absolute;
    inset: -40px -20px auto auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.hub-hero__inner,
.portal-hero__inner {
    position: relative;
    z-index: 1;
    padding: 34px 34px 30px;
}

.hub-eyebrow,
.portal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hub-eyebrow::before,
.portal-eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #76f0a7;
    box-shadow: 0 0 0 6px rgba(118, 240, 167, 0.16);
}

.hub-title,
.portal-title {
    margin: 18px 0 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hub-lead,
.portal-lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(245, 255, 248, 0.82);
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
}

.hub-stat-grid,
.portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hub-stat,
.portal-stat {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.hub-stat__label,
.portal-stat__label {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hub-stat__value,
.portal-stat__value {
    display: block;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.hub-card,
.portal-card,
.portal-info {
    background: var(--hub-surface);
    border: 1px solid var(--hub-stroke);
    box-shadow: var(--hub-shadow-soft);
    backdrop-filter: blur(14px);
}

.hub-card {
    display: flex;
    flex-direction: column;
    min-height: 268px;
    padding: 22px;
    border-radius: 28px;
}

.hub-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.hub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--hub-accent) 0%, var(--hub-accent-2) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 16px 28px rgba(31, 122, 76, 0.24);
}

.hub-kind {
    align-self: flex-start;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(24, 101, 60, 0.08);
    color: #266142;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hub-card__title {
    margin: 22px 0 10px;
    font-size: 29px;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hub-card__copy {
    margin: 0;
    color: var(--hub-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hub-path {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(16, 35, 25, 0.08);
    color: #2e4b3a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hub-actions,
.portal-actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
}

.hub-button,
.portal-button,
.portal-button--secondary,
.portal-button--ghost,
.portal-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hub-button,
.portal-button {
    color: #fff;
    background: linear-gradient(135deg, var(--hub-accent) 0%, var(--hub-accent-2) 100%);
    box-shadow: 0 16px 28px rgba(31, 122, 76, 0.24);
}

.portal-button--secondary {
    color: #1f5331;
    background: rgba(48, 139, 87, 0.10);
    border: 1px solid rgba(31, 122, 76, 0.14);
}

.portal-button--ghost,
.portal-back {
    color: #244633;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(16, 35, 25, 0.08);
}

.hub-button:hover,
.portal-button:hover,
.portal-button--secondary:hover,
.portal-button--ghost:hover,
.portal-back:hover {
    transform: translateY(-1px);
}

.portal-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 18px 42px;
}

.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}

.portal-card,
.portal-info {
    border-radius: 28px;
    padding: 22px;
}

.portal-section-label {
    display: block;
    color: #2b6d49;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.portal-section-value {
    display: block;
    margin-top: 10px;
    color: #12261b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    word-break: break-all;
}

.portal-back {
    margin-top: 14px;
}

.portal-frame-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 14px 24px;
}

.portal-frame-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(13, 46, 28, 0.92);
    color: #effff5;
    box-shadow: var(--hub-shadow);
}

.portal-frame-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.portal-frame-copy {
    margin: 6px 0 0;
    color: rgba(239, 255, 245, 0.72);
    font-size: 14px;
}

.portal-frame-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-frame-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.portal-frame {
    width: 100%;
    min-height: calc(100vh - 140px);
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--hub-shadow-soft);
}

@media (max-width: 900px) {
    .hub-stat-grid,
    .portal-stat-grid,
    .portal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hub-shell,
    .portal-shell {
        padding: 16px 12px 30px;
    }

    .hub-hero__inner,
    .portal-hero__inner {
        padding: 24px 20px 22px;
    }

    .hub-card,
    .portal-card,
    .portal-info {
        border-radius: 22px;
    }

    .hub-card__title {
        font-size: 25px;
    }

    .portal-frame-head {
        padding: 16px;
        border-radius: 20px;
    }

    .portal-frame {
        min-height: calc(100vh - 170px);
        border-radius: 18px;
    }
}
