.guest-home {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    background:
        radial-gradient(circle at 78% -10%, rgb(112 93 226 / 18%), transparent 34rem),
        radial-gradient(circle at 8% 74%, rgb(54 134 196 / 8%), transparent 28rem),
        var(--agnita-portal-bg);
    color: var(--agnita-portal-text);
}

.guest-home::before {
    position: absolute;
    z-index: -1;
    top: 8.5rem;
    right: -12rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgb(155 135 245 / 8%);
    border-radius: 50%;
    box-shadow:
        0 0 0 5rem rgb(112 93 226 / 2.5%),
        0 0 0 10rem rgb(112 93 226 / 1.8%);
    content: "";
    pointer-events: none;
}

.guest-home-container {
    width: min(100% - 3rem, 1280px);
    margin-inline: auto;
}

.guest-home-skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 0.65rem;
    background: #fff;
    color: #111827;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-130%);
}

.guest-home-skip-link:focus {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.guest-home-header {
    border-bottom: 1px solid rgb(41 53 72 / 80%);
    background: rgb(11 18 32 / 70%);
    backdrop-filter: blur(18px);
}

.guest-home-header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.guest-home-brand,
.guest-home-main-site,
.guest-home-button,
.guest-home-support a,
.guest-home-footer a {
    border-radius: 0.75rem;
    text-decoration: none;
}

.guest-home-brand:focus-visible,
.guest-home-main-site:focus-visible,
.guest-home-button:focus-visible,
.guest-home-support a:focus-visible,
.guest-home-footer a:focus-visible {
    outline: 2px solid var(--agnita-portal-focus);
    outline-offset: 3px;
}

.guest-home-brand {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
}

.guest-home-brand img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

.guest-home-brand span {
    font-family: var(--agnita-portal-font-heading);
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.guest-home-main-site {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0.75rem;
    color: var(--agnita-portal-link);
    font-size: 0.875rem;
    font-weight: 700;
    transition: 160ms ease;
    transition-property: color, background-color;
}

.guest-home-main-site:hover {
    background: rgb(255 255 255 / 4%);
    color: #fff;
}

.guest-home-main-site svg {
    width: 1.05rem;
    height: 1.05rem;
}

.guest-home-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

.guest-home-content-grid {
    display: grid;
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
}

.guest-home-intro {
    max-width: 680px;
}

.guest-home-eyebrow,
.guest-home-auth-heading p {
    margin: 0;
    color: var(--agnita-portal-focus);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.guest-home-intro h1 {
    margin: 1rem 0 0;
    font-family: var(--agnita-portal-font-heading);
    font-size: clamp(3.75rem, 7vw, 5.5rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.guest-home-lead {
    max-width: 600px;
    margin: 1.5rem 0 0;
    color: var(--agnita-portal-text-muted);
    font-size: 1.125rem;
    line-height: 1.75;
}

.guest-home-features {
    display: grid;
    max-width: 660px;
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 0;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
}

.guest-home-feature {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(41 53 72 / 82%);
    border-radius: 1rem;
    background: rgb(255 255 255 / 2.2%);
    color: #dce4ef;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.45;
}

.guest-home-feature-icon,
.guest-home-support-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgb(112 93 226 / 15%);
    color: var(--agnita-portal-link);
    place-items: center;
}

.guest-home-feature-icon svg,
.guest-home-support-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.guest-home-auth-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgb(155 135 245 / 18%);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 100% 0, rgb(112 93 226 / 19%), transparent 17rem),
        linear-gradient(145deg, rgb(27 38 55 / 98%), rgb(18 27 42 / 98%));
    box-shadow: 0 35px 90px rgb(2 6 23 / 40%);
}

.guest-home-auth-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.guest-home-auth-heading h2 {
    margin: 0.5rem 0 0;
    font-family: var(--agnita-portal-font-heading);
    font-size: 1.7rem;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.guest-home-auth-icon {
    display: grid;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: linear-gradient(145deg, var(--agnita-portal-primary-hover), #5846c4);
    box-shadow: 0 12px 28px rgb(112 93 226 / 23%);
    place-items: center;
}

.guest-home-auth-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.guest-home-auth-copy {
    margin: 1.75rem 0 0;
    color: var(--agnita-portal-text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.guest-home-button {
    display: flex;
    min-height: 54px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.94rem;
    font-weight: 750;
    transition: 160ms ease;
    transition-property: transform, border-color, background-color;
}

.guest-home-button:hover {
    transform: translateY(-1px);
}

.guest-home-button svg {
    width: 1.1rem;
    height: 1.1rem;
}

.guest-home-button-primary {
    margin-top: 2rem;
    background: var(--agnita-portal-primary);
    box-shadow: 0 14px 32px rgb(51 29 139 / 26%);
    color: #fff;
}

.guest-home-button-primary:hover {
    background: var(--agnita-portal-primary-hover);
}

.guest-home-button-secondary {
    border: 1px solid rgb(118 102 199 / 60%);
    background: rgb(255 255 255 / 2.5%);
    color: #e8e4ff;
}

.guest-home-button-secondary:hover {
    border-color: var(--agnita-portal-focus);
    background: rgb(112 93 226 / 10%);
}

.guest-home-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block: 1.5rem;
    color: #78869c;
}

.guest-home-divider span {
    height: 1px;
    flex: 1;
    background: var(--agnita-portal-border);
}

.guest-home-divider small {
    font-size: 0.75rem;
}

.guest-home-support {
    display: grid;
    align-items: center;
    margin-top: clamp(2.5rem, 5vh, 3rem);
    padding: 1.25rem 1.5rem;
    border: 1px solid rgb(76 89 117 / 48%);
    border-radius: 1.125rem;
    background:
        radial-gradient(circle at 80% 50%, rgb(91 62 190 / 12%), transparent 22rem),
        rgb(15 24 41 / 78%);
    gap: 1.25rem;
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.4fr) auto;
}

.guest-home-support-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guest-home-support h2 {
    margin: 0;
    font-family: var(--agnita-portal-font-heading);
    font-size: 1rem;
    font-weight: 650;
}

.guest-home-support-heading p {
    margin: 0.25rem 0 0;
    color: var(--agnita-portal-text-muted);
    font-size: 0.75rem;
}

.guest-home-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.guest-home-support-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding-inline: 0.5rem;
    color: var(--agnita-portal-link);
    font-size: 0.875rem;
    font-weight: 700;
}

.guest-home-support-links a:hover {
    background: rgb(255 255 255 / 3.5%);
    color: #fff;
}

.guest-home-response {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 0.6rem;
    margin: 0;
    color: var(--agnita-portal-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.guest-home-response span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #5ee6b8;
    box-shadow: 0 0 0 5px rgb(94 230 184 / 8%);
}

.guest-home-footer {
    border-top: 1px solid rgb(41 53 72 / 60%);
}

.guest-home-footer-inner {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: #78869c;
    font-size: 0.75rem;
}

.guest-home-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.guest-home-footer a {
    color: inherit;
}

.guest-home-footer a:hover {
    color: #dce4ef;
}

@media (max-width: 900px) {
    .guest-home-content-grid {
        gap: 2.5rem;
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
    }

    .guest-home-features {
        grid-template-columns: 1fr;
    }

    .guest-home-feature {
        min-height: 64px;
    }

    .guest-home-support {
        grid-template-columns: 1fr 1fr;
    }

    .guest-home-response {
        justify-self: start;
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .guest-home {
        overflow: auto;
    }

    .guest-home::before {
        top: 2rem;
        right: -21rem;
        opacity: 0.7;
    }

    .guest-home-container {
        width: min(100% - 2rem, 1280px);
    }

    .guest-home-header-inner {
        min-height: 68px;
    }

    .guest-home-brand img {
        width: 30px;
        height: 30px;
    }

    .guest-home-brand span {
        font-size: 1.5rem;
    }

    .guest-home-main-site span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .guest-home-main {
        justify-content: flex-start;
        padding-block: 2rem;
    }

    .guest-home-content-grid {
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .guest-home-intro h1 {
        margin-top: 0.75rem;
        font-size: clamp(3.5rem, 18vw, 4.5rem);
    }

    .guest-home-lead {
        margin-top: 1rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .guest-home-features {
        display: none;
    }

    .guest-home-auth-card {
        padding: 1.5rem;
    }

    .guest-home-auth-copy {
        margin-top: 1.25rem;
    }

    .guest-home-button-primary {
        margin-top: 1.5rem;
    }

    .guest-home-support {
        margin-top: 2rem;
        padding: 1.25rem;
        grid-template-columns: 1fr;
    }

    .guest-home-response {
        grid-column: auto;
    }

    .guest-home-footer-inner {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-home-main-site,
    .guest-home-button {
        transition: none;
    }
}
