:root {
    --navy-950: #061326;
    --navy-900: #071a33;
    --navy-800: #0c2b4f;
    --blue-700: #14598a;
    --blue-600: #176a9f;
    --orange-500: #ff893b;
    --orange-400: #ff9f5f;
    --paper: #f4f7fa;
    --white: #ffffff;
    --ink: #0d2035;
    --muted: #66788b;
    --line: #dce5ed;
    --shadow: 0 28px 70px rgba(4, 20, 39, .14);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img, svg {
    display: block;
}

.public-page {
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, var(--navy-900) 0, var(--navy-900) 25rem, var(--paper) 25rem, var(--paper) 100%);
}

.ambient {
    position: absolute;
    z-index: 0;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    opacity: .52;
    animation: ambient-drift 11s ease-in-out infinite alternate;
}

.ambient-one {
    top: -13rem;
    right: -8rem;
    background: radial-gradient(circle, rgba(255, 137, 59, .2), rgba(255, 137, 59, 0) 69%);
}

.ambient-two {
    top: 8rem;
    left: -16rem;
    background: radial-gradient(circle, rgba(24, 130, 190, .28), rgba(24, 130, 190, 0) 70%);
    animation-delay: -4s;
}

.public-header,
.public-main,
.public-footer {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 6.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    border-radius: .75rem;
}

.brand-link:focus-visible,
.manual-card:focus-visible,
.error-card a:focus-visible {
    outline: 3px solid var(--orange-400);
    outline-offset: 4px;
}

.brand-link img {
    width: 10.75rem;
    height: auto;
    filter: brightness(0) invert(1);
}

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .025em;
    backdrop-filter: blur(10px);
}

.official-dot {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--orange-400);
    box-shadow: 0 0 0 .24rem rgba(255, 137, 59, .12);
}

.public-main {
    padding: 4.2rem 0 1.5rem;
}

.intro {
    max-width: 47rem;
    margin-bottom: 3rem;
    color: var(--white);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    color: var(--orange-400);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow-line {
    width: 2rem;
    height: 2px;
    background: currentColor;
}

.intro h1 {
    max-width: 42rem;
    margin: 0;
    font-size: clamp(2.25rem, 7vw, 4.7rem);
    font-weight: 740;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
}

.intro p {
    max-width: 40rem;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(1rem, 2.1vw, 1.16rem);
}

.manual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.manual-card {
    position: relative;
    display: flex;
    min-height: 26.5rem;
    overflow: hidden;
    flex-direction: column;
    padding: 1.55rem;
    border: 1px solid rgba(215, 226, 235, .9);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s ease;
}

a.manual-card::after {
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 137, 59, .11), rgba(255, 137, 59, 0) 72%);
    content: "";
    transition: transform .6s var(--ease-out);
}

a.manual-card:hover {
    border-color: rgba(255, 137, 59, .48);
    box-shadow: 0 34px 90px rgba(4, 20, 39, .21);
    transform: translateY(-.55rem);
}

a.manual-card:hover::after {
    transform: scale(1.45);
}

.manual-card-disabled {
    background: rgba(249, 251, 252, .94);
    box-shadow: 0 20px 50px rgba(4, 20, 39, .08);
}

.manual-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.manual-number {
    color: #9aabba;
    font-size: .78rem;
    font-weight: 760;
    letter-spacing: .08em;
}

.manual-status {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .32rem .58rem;
    border-radius: 999px;
    background: #eef2f5;
    color: #798897;
    font-size: .7rem;
    font-weight: 700;
}

.manual-status span {
    width: .37rem;
    height: .37rem;
    border-radius: 50%;
    background: currentColor;
}

.manual-status.is-available {
    background: #e9f8f1;
    color: #16724c;
}

.manual-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin-top: 2.2rem;
    border-radius: 1.15rem;
    place-items: center;
    background: linear-gradient(145deg, #eff6fa, #e6f0f6);
    color: var(--blue-600);
    transition: transform .5s var(--ease-out), background .4s ease, color .4s ease;
}

.manual-icon svg {
    width: 2rem;
    height: 2rem;
}

a.manual-card:hover .manual-icon {
    background: linear-gradient(145deg, var(--orange-500), #ffad73);
    color: var(--white);
    transform: rotate(-4deg) scale(1.05);
}

.manual-copy {
    margin-top: 1.65rem;
}

.manual-copy h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 735;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.manual-copy p {
    margin: .72rem 0 0;
    color: var(--muted);
    font-size: .93rem;
}

.manual-meta {
    display: flex;
    min-height: 2.6rem;
    flex-direction: column;
    justify-content: end;
    gap: .1rem;
    margin-top: auto;
    padding-top: 1.6rem;
    color: #8896a4;
    font-size: .73rem;
}

.manual-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--blue-700);
    font-size: .9rem;
    font-weight: 740;
}

.manual-action svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform .4s var(--ease-out);
}

a.manual-card:hover .manual-action svg {
    transform: translateX(.3rem);
}

.manual-action.is-disabled {
    color: #9aa7b3;
}

.support-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 39rem;
    margin: 2rem auto 0;
    padding: 1rem 1.2rem;
    color: #667789;
    font-size: .82rem;
    text-align: left;
}

.support-mark {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 auto;
    border: 1px solid #d5e1e9;
    border-radius: .8rem;
    place-items: center;
    background: var(--white);
    color: var(--blue-600);
}

.support-mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

.support-note strong,
.support-note span {
    display: block;
}

.support-note strong {
    margin-bottom: .1rem;
    color: var(--ink);
    font-size: .86rem;
}

.public-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #ffd9bf;
    border-radius: 1rem;
    background: #fff7f1;
    color: #8a451c;
}

.public-alert p {
    margin: 0;
}

.alert-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 50%;
    place-items: center;
    background: var(--orange-500);
    color: var(--white);
    font-weight: 800;
}

.public-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 5.5rem;
    color: #83919f;
    font-size: .75rem;
}

.footer-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--orange-500);
}

.reveal {
    opacity: 0;
    transform: translateY(1.15rem);
    animation: reveal-in .8s var(--ease-out) forwards;
}

.reveal-one { animation-delay: .08s; }
.reveal-two { animation-delay: .16s; }
.reveal-card-1 { animation-delay: .18s; }
.reveal-card-2 { animation-delay: .28s; }
.reveal-card-3 { animation-delay: .38s; }
.reveal-last { animation-delay: .48s; }

.error-page {
    display: grid;
    padding: 1.5rem;
    place-items: center;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 137, 59, .15), transparent 28rem),
        var(--navy-900);
}

.error-card {
    width: min(100%, 30rem);
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: var(--white);
    text-align: center;
    box-shadow: 0 35px 90px rgba(0, 0, 0, .28);
}

.error-card img {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.error-code {
    color: var(--orange-500);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.error-card h1 {
    margin: .45rem 0 .65rem;
    font-size: 1.65rem;
    letter-spacing: -.03em;
}

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

.error-card a {
    display: inline-flex;
    margin-top: 1.5rem;
    padding: .8rem 1rem;
    border-radius: .75rem;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

@keyframes reveal-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ambient-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-1rem, 1.5rem, 0) scale(1.08); }
}

@media (max-width: 860px) {
    .public-page {
        background: linear-gradient(180deg, var(--navy-900) 0, var(--navy-900) 23rem, var(--paper) 23rem, var(--paper) 100%);
    }

    .public-main {
        padding-top: 3.2rem;
    }

    .intro {
        margin-bottom: 2.2rem;
    }

    .manual-grid {
        grid-template-columns: 1fr;
    }

    .manual-card {
        min-height: 21.5rem;
    }
}

@media (max-width: 560px) {
    .public-header,
    .public-main,
    .public-footer {
        width: min(100% - 1.35rem, 72rem);
    }

    .public-header {
        min-height: 5.4rem;
    }

    .brand-link img {
        width: 8.6rem;
    }

    .official-badge {
        padding: .48rem .62rem;
        font-size: .66rem;
    }

    .public-main {
        padding-top: 2.65rem;
    }

    .intro h1 {
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .intro p {
        font-size: 1rem;
    }

    .manual-card {
        min-height: 22.5rem;
        padding: 1.3rem;
        border-radius: 1.2rem;
    }

    .manual-icon {
        margin-top: 1.8rem;
    }

    .support-note {
        align-items: flex-start;
        padding-inline: .65rem;
    }

    .public-footer {
        flex-wrap: wrap;
        padding: 1.25rem 0;
        line-height: 1.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
