* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(93, 76, 255, 0.18), transparent 18%),
        radial-gradient(circle at top right, rgba(255, 194, 97, 0.16), transparent 18%),
        radial-gradient(circle at bottom left, rgba(83, 227, 255, 0.18), transparent 18%),
        radial-gradient(circle at bottom right, rgba(255, 169, 83, 0.16), transparent 18%),
        linear-gradient(135deg, #080b1c 0%, #10172d 50%, #151f35 100%);
    color: #ffffff;
    overflow-x: hidden;
}

.portal-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.portal-frame {
    position: relative;
    width: min(96vw, 1680px);
    border-radius: 36px;
    padding: clamp(8px, 0.9vw, 14px) clamp(12px, 1.3vw, 20px) clamp(10px, 1.1vw, 16px);
    background:
        radial-gradient(circle at top left, rgba(125, 176, 255, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 193, 124, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(22, 28, 48, 0.86);
    border: 1px solid rgba(164, 176, 203, 0.28);
    box-shadow:
        0 28px 80px rgba(3, 6, 20, 0.56),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.portal-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background:
        linear-gradient(90deg, rgba(92, 240, 255, 0.88), rgba(138, 124, 255, 0.5), rgba(255, 206, 125, 0.86));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.9;
    pointer-events: none;
}

.frame-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    opacity: 0.55;
}

.frame-glow--cyan {
    left: 14%;
    bottom: -7%;
    width: 220px;
    height: 220px;
    background: rgba(83, 227, 255, 0.34);
}

.frame-glow--gold {
    right: -2%;
    bottom: -4%;
    width: 230px;
    height: 230px;
    background: rgba(255, 183, 92, 0.28);
}

.portal-header,
.hero-copy,
.role-grid {
    position: relative;
    z-index: 1;
}

.portal-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 104px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(38, 66, 145, 0.24));
}

.brand-name {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    margin: 0 0 8px;
    font-size: clamp(2.8rem, 3.8vw, 3.7rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #67d8ff 0%, #76adff 30%, #a486ff 62%, #ffbf74 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(9, 14, 31, 0.22);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 1.12rem;
    font-weight: 1000;
    font-family: "Arial Black", "Segoe UI", "Trebuchet MS", sans-serif;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1.15;
    background: linear-gradient(90deg, #67e8f9 0%, #7dd3fc 24%, #c4b5fd 56%, #f9a8d4 78%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translate(10px, -38px);
}

.hero-kicker::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, #67e8f9 0%, #7dd3fc 24%, #c4b5fd 56%, #f9a8d4 78%, #fde68a 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-kicker::after {
    content: attr(data-label);
    position: absolute;
    inset: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    line-height: inherit;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: translateX(0.55px);
    pointer-events: none;
}

.hero-copy {
    margin-top: clamp(16px, 1.8vw, 28px);
}

.hero-copy h1 {
    margin: 0;
    max-width: 1180px;
    font-size: clamp(2.1rem, 2vw + 1.35rem, 3.65rem);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
    background: linear-gradient(90deg, #f8fafc 0%, #7dd3fc 26%, #c4b5fd 58%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-inline: auto;
    padding-inline: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
    overflow: visible;
}

.hero-copy p {
    max-width: 1180px;
    margin: 14px auto 0;
    font-size: clamp(1rem, 0.45vw + 0.92rem, 1.2rem);
    line-height: 1.6;
    color: rgba(234, 239, 247, 0.82);
    font-weight: 700;
    text-align: center;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 1.6vw, 30px);
    margin-top: clamp(24px, 2vw, 36px);
    align-items: stretch;
}

.role-card {
    position: relative;
    overflow: hidden;
    min-height: clamp(360px, 34vh, 470px);
    padding: clamp(20px, 1.6vw, 28px);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(14, 20, 38, 0.9);
    border: 1px solid rgba(167, 183, 212, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 44px rgba(4, 8, 24, 0.42);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.role-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 54%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 24px 54px rgba(4, 8, 24, 0.5);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card__spark {
    position: absolute;
    inset: 20% 8% auto;
    height: 68px;
    pointer-events: none;
    opacity: 0.64;
    filter: blur(10px);
}

.role-icon-shell,
.role-card__body,
.role-action {
    position: relative;
    z-index: 1;
}

.role-icon-shell {
    width: clamp(90px, 5vw, 118px);
    height: clamp(90px, 5vw, 118px);
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 60%),
        rgba(15, 24, 42, 0.76);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 36px rgba(255, 255, 255, 0.08);
}

.role-icon {
    width: clamp(42px, 2.2vw, 54px);
    height: clamp(42px, 2.2vw, 54px);
    color: #ffffff;
}

.role-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.role-card__body {
    margin-top: clamp(16px, 1.4vw, 22px);
    text-align: center;
}

.role-card__body h2 {
    margin: 0;
    font-size: clamp(1.8rem, 1.2vw + 1.3rem, 2.35rem);
    line-height: 1.14;
    font-weight: 1000;
    color: #f8f7fb;
    padding-bottom: 0.08em;
    overflow: visible;
}

.employee .role-card__body h2 {
    background: linear-gradient(90deg, #6edcff 0%, #78b8ff 45%, #b892ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hr .role-card__body h2 {
    background: linear-gradient(90deg, #ffd16b 0%, #69f0c7 45%, #79b6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.admin .role-card__body h2 {
    background: linear-gradient(90deg, #ff8f79 0%, #ff77b5 44%, #89a0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.role-card__body p {
    margin: 14px auto 0;
    max-width: 420px;
    color: rgba(239, 242, 249, 0.82);
    font-size: clamp(0.94rem, 0.35vw + 0.86rem, 1.08rem);
    line-height: 1.45;
    font-weight: 700;
}

.role-action {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: clamp(54px, 4vw, 68px);
    padding: 0 clamp(18px, 1.2vw, 24px);
    border-radius: 999px;
    color: #fdfcff;
    font-size: clamp(1.08rem, 0.42vw + 0.98rem, 1.22rem);
    font-weight: 1000;
    letter-spacing: 0.02em;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
        rgba(18, 27, 46, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(4, 8, 24, 0.28);
    text-decoration: none;
}

.role-action > span:first-child {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    white-space: nowrap;
}

.role-action__label {
    display: inline-block;
    position: relative;
    font-family: "Arial Black", "Segoe UI", "Trebuchet MS", sans-serif;
    font-weight: 1000;
    letter-spacing: 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: scaleX(1.045);
    transform-origin: left center;
}

.role-action__label::before {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    z-index: -1;
    font: inherit;
    letter-spacing: inherit;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: translateX(0.55px);
}

.role-action__arrow {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 2.4vw, 46px);
    height: clamp(38px, 2.4vw, 46px);
    border-radius: 50%;
    opacity: 0.98;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.role-action__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.employee {
    background:
        radial-gradient(circle at top center, rgba(106, 227, 255, 0.16), transparent 40%),
        linear-gradient(180deg, rgba(18, 33, 60, 0.96), rgba(16, 26, 46, 0.92));
    border-color: rgba(105, 225, 255, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 44px rgba(4, 8, 24, 0.42),
        0 0 0 2px rgba(100, 220, 255, 0.08);
}

.employee .role-card__spark {
    background:
        radial-gradient(circle, rgba(105, 225, 255, 0.82) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(105, 225, 255, 0.68) 0 1.5px, transparent 2.5px),
        radial-gradient(circle, rgba(105, 225, 255, 0.35), transparent 65%);
    background-position: 18% 60%, 45% 46%, center;
    background-size: 54px 54px, 90px 90px, 100% 100%;
}

.employee .role-icon-shell {
    border-color: rgba(102, 229, 255, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 36px rgba(102, 229, 255, 0.34);
}

.employee .role-icon {
    color: #59b8ff;
}

.employee .role-action {
    background:
        linear-gradient(180deg, rgba(141, 206, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(18, 32, 54, 0.92);
}

.employee .role-action__label {
    background-image: linear-gradient(90deg, #7dd3fc 0%, #93c5fd 48%, #f0abfc 100%);
}

.employee .role-action__arrow {
    color: #7dd3fc;
    background:
        radial-gradient(circle at center, rgba(125, 211, 252, 0.22), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
}

.hr {
    background:
        radial-gradient(circle at top center, rgba(196, 255, 218, 0.16), transparent 40%),
        linear-gradient(180deg, rgba(20, 43, 58, 0.96), rgba(14, 32, 42, 0.92));
    border-color: rgba(179, 255, 214, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 44px rgba(4, 8, 24, 0.42),
        0 0 0 2px rgba(158, 255, 224, 0.08);
}

.hr .role-card__spark {
    background:
        radial-gradient(circle, rgba(192, 255, 176, 0.82) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(148, 255, 233, 0.62) 0 1.5px, transparent 2.5px),
        radial-gradient(circle, rgba(148, 255, 233, 0.32), transparent 65%);
    background-position: 24% 58%, 52% 44%, center;
    background-size: 60px 60px, 96px 96px, 100% 100%;
}

.hr .role-icon-shell {
    border-color: rgba(194, 255, 183, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 36px rgba(174, 255, 205, 0.28);
}

.hr .role-icon {
    color: #b7f2b8;
}

.hr .role-action {
    background:
        linear-gradient(180deg, rgba(136, 255, 223, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(22, 58, 62, 0.9);
}

.hr .role-action__label {
    background-image: linear-gradient(90deg, #bef264 0%, #6ee7b7 48%, #7dd3fc 100%);
}

.hr .role-action__arrow {
    color: #86efac;
    background:
        radial-gradient(circle at center, rgba(134, 239, 172, 0.22), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
}

.admin {
    background:
        radial-gradient(circle at top center, rgba(255, 196, 168, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(80, 53, 58, 0.96), rgba(58, 43, 49, 0.92));
    border-color: rgba(255, 182, 168, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 44px rgba(4, 8, 24, 0.42),
        0 0 0 2px rgba(255, 154, 145, 0.1);
}

.admin .role-card__spark {
    background:
        radial-gradient(circle, rgba(255, 166, 145, 0.82) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 196, 130, 0.62) 0 1.5px, transparent 2.5px),
        radial-gradient(circle, rgba(255, 166, 145, 0.28), transparent 65%);
    background-position: 24% 58%, 50% 46%, center;
    background-size: 60px 60px, 96px 96px, 100% 100%;
}

.admin .role-icon-shell {
    border-color: rgba(255, 176, 145, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 36px rgba(255, 166, 145, 0.28);
}

.admin .role-icon {
    color: #ff9b86;
}

.admin .role-action {
    background:
        linear-gradient(180deg, rgba(255, 172, 155, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(75, 55, 59, 0.9);
}

.admin .role-action__label {
    background-image: linear-gradient(90deg, #fb7185 0%, #f9a8d4 48%, #a5b4fc 100%);
}

.admin .role-action__arrow {
    color: #fda4af;
    background:
        radial-gradient(circle at center, rgba(253, 164, 175, 0.22), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
}

@media (min-width: 901px) {
    .portal-header__row {
        align-items: center;
    }

    .hero-kicker {
        flex: 0 0 auto;
        white-space: nowrap;
        transform: translateY(-24px);
    }

    .hero-kicker::after {
        display: none;
    }
}
@media (max-width: 1100px) {
    .portal-frame {
        width: min(100%, 1500px);
        min-height: auto;
        padding: 8px 12px 10px;
    }

    .role-grid {
        gap: 14px;
    }

    .role-card {
        min-height: 290px;
        padding: 16px 14px 14px;
    }

    .role-card__body h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    .portal-stage {
        padding: 8px 10px;
    }

    .portal-frame {
        border-radius: 28px;
        padding: 7px 9px 9px;
    }

    .portal-header__row {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-lockup {
        gap: 14px;
    }

    .brand-logo {
        width: 92px;
    }

    .brand-name {
        font-size: 2.15rem;
        padding: 8px 14px;
    }

    .hero-kicker {
        font-size: 0.92rem;
        font-weight: 1000;
        padding: 9px 14px;
        transform: translateY(0);
    }

    .hero-copy {
        margin-top: 12px;
    }

    .hero-copy h1 {
        font-size: 1.7rem;
    }

    .hero-copy p {
        font-size: 0.9rem;
        white-space: normal;
    }

    .role-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 16px;
    }

    .role-card {
        min-height: 0;
    }

    .role-icon-shell {
        width: 82px;
        height: 82px;
    }

    .role-card__body {
        margin-top: 12px;
    }

    .role-card__body p {
        max-width: none;
    }

    .role-action {
        min-height: 50px;
        margin-top: 18px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .portal-stage {
        padding: 4px 6px;
    }

    .portal-frame {
        border-radius: 24px;
        padding: 5px 6px 7px;
    }

    .brand-lockup {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .portal-header__row {
        align-items: center;
    }

    .brand-logo {
        width: 65px;
        transform: translateX(-6px);
    }

    .brand-name {
        font-size: 1.9rem;
        margin: 0;
        white-space: nowrap;
        transform: translateX(-16px);
    }

    .hero-kicker {
        align-self: center;
        font-size: 0.9rem;
        font-weight: 1000;
        padding: 9px 14px;
        transform: translateY(0);
        color: transparent;
        -webkit-text-fill-color: transparent;
        background:
            linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.76)),
            rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(125, 211, 252, 0.72);
        box-shadow:
            0 8px 20px rgba(5, 10, 28, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    .hero-kicker::after {
        content: attr(data-label);
        inset: 9px 14px;
        transform: none;
        background: linear-gradient(90deg, #67e8f9 0%, #7dd3fc 24%, #c4b5fd 56%, #f9a8d4 78%, #fde68a 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .hero-kicker::before {
        background: linear-gradient(90deg, #67e8f9 0%, #7dd3fc 24%, #c4b5fd 56%, #f9a8d4 78%, #fde68a 100%);
    }

    .hero-copy h1 {
        font-size: 1.28rem;
    }

    .hero-copy p {
        margin-top: 10px;
        font-size: 0.84rem;
        white-space: normal;
    }

    .role-card {
        border-radius: 22px;
        padding: 14px 12px 12px;
    }

    .role-icon-shell {
        width: 74px;
        height: 74px;
    }

    .role-icon {
        width: 36px;
        height: 36px;
    }

    .role-card__body h2 {
        font-size: 1.45rem;
    }

    .role-card__body p {
        font-size: 0.82rem;
    }

    .role-action {
        min-height: 46px;
        padding: 0 14px;
        font-size: 0.92rem;
    }

    .role-action__arrow {
        width: 30px;
        height: 30px;
    }

    .role-action__arrow svg {
        width: 14px;
        height: 14px;
    }
}
