:root {
    --ak-navy-950: #030a18;
    --ak-navy-900: #071126;
    --ak-navy-850: #0a1730;
    --ak-navy-800: #0d1d3b;
    --ak-navy-700: #13264a;
    --ak-orange: #ff6a1a;
    --ak-orange-light: #ff8b32;
    --ak-gold: #ffc928;
    --ak-gold-soft: #ffe186;
    --ak-white: #f8fafc;
    --ak-text: #eef3fb;
    --ak-muted: #aab7ce;
    --ak-line: rgba(255, 255, 255, .12);
    --ak-line-strong: rgba(255, 201, 40, .28);
    --ak-success: #3fd58b;
    --ak-danger: #ff7a72;
    --ak-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .3);
    --ak-radius-sm: .65rem;
    --ak-radius: 1rem;
    --ak-radius-lg: 1.5rem;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 88% 7%, rgba(255, 106, 26, .16), transparent 28rem),
        radial-gradient(circle at 8% 42%, rgba(35, 91, 216, .2), transparent 33rem),
        var(--ak-navy-900);
    color: var(--ak-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-underline-offset: .2rem;
}

button,
input,
select {
    font: inherit;
}

button,
.button {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    background: linear-gradient(135deg, var(--ak-orange), var(--ak-orange-light));
    color: #111827;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 .65rem 1.5rem rgba(255, 106, 26, .18);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

button:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 .85rem 1.8rem rgba(255, 106, 26, .28);
}

button.secondary,
.button.secondary {
    border-color: var(--ak-line);
    background: rgba(255, 255, 255, .06);
    color: var(--ak-white);
    box-shadow: none;
}

button.secondary:hover,
.button.secondary:hover {
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .1);
}

button.danger,
.button.danger {
    background: rgba(255, 73, 64, .14);
    border-color: rgba(255, 122, 114, .38);
    color: #ffd5d2;
    box-shadow: none;
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--ak-gold);
    outline-offset: 3px;
}

.shell,
.topbar-inner,
.page,
.site-footer-inner {
    width: min(100% - 2rem, 74rem);
    margin-inline: auto;
}

.site-header,
.topbar {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--ak-line);
    background: rgba(3, 10, 24, .86);
    backdrop-filter: blur(1rem);
}

.nav,
.topbar-inner {
    min-height: 5.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.025em;
    text-decoration: none;
}

.brand img {
    width: 4rem;
    height: 4rem;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 .4rem 1rem rgba(0, 0, 0, .32));
}

.brand-copy {
    min-width: 0;
}

.brand-copy small {
    display: block;
    color: var(--ak-gold);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-actions,
.nav-links,
.actions,
.footer-links,
.legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem;
}

.nav-links a,
.footer-links a,
.legal-links a {
    color: #cbd5e5;
    font-weight: 700;
}

.nav-links a:hover,
.footer-links a:hover,
.legal-links a:hover {
    color: #fff;
}

main {
    min-width: 0;
    flex: 1;
}

.eyebrow {
    margin: 0 0 .55rem;
    color: var(--ak-gold);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: #fff;
    line-height: 1.08;
    letter-spacing: -.04em;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.75rem);
}

h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.45rem, 3vw, 2.4rem);
}

h3 {
    margin: 0 0 .45rem;
}

.subtitle,
.muted,
.section-copy,
.lead {
    color: var(--ak-muted);
}

.subtitle {
    margin: .45rem 0 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, .95fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    padding: clamp(4rem, 8vw, 7rem) 0 5rem;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: .96;
    letter-spacing: -.065em;
}

.gradient {
    color: transparent;
    background: linear-gradient(100deg, #fff 5%, var(--ak-gold) 47%, var(--ak-orange));
    background-clip: text;
    -webkit-background-clip: text;
}

.lead {
    max-width: 42rem;
    margin: 1.5rem 0 2rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.choice-card {
    min-height: 12rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
    border: 1px solid var(--ak-line);
    border-radius: var(--ak-radius);
    background: linear-gradient(145deg, rgba(17, 38, 75, .9), rgba(8, 23, 49, .92));
    box-shadow: 0 .9rem 2rem rgba(0, 0, 0, .15);
}

.choice-card:first-child {
    border-color: rgba(255, 106, 26, .35);
}

.choice-card h2 {
    margin: .75rem 0 .45rem;
    font-size: 1.25rem;
}

.choice-card p {
    flex: 1;
    margin: 0 0 1.1rem;
    color: var(--ak-muted);
    font-size: .93rem;
}

.choice-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: .75rem;
    background: rgba(255, 201, 40, .12);
    color: var(--ak-gold);
    font-weight: 900;
}

.choice-card .button {
    width: 100%;
}

.trust {
    margin: 1.4rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    color: #cdd6e7;
    font-size: .84rem;
}

.trust span::before {
    content: "✓";
    margin-right: .4rem;
    color: var(--ak-gold);
    font-weight: 900;
}

.tv-showcase {
    position: relative;
}

.tv-glow {
    position: absolute;
    inset: 10% 5%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(41, 91, 215, .5), rgba(255, 106, 26, .42));
    filter: blur(4rem);
    opacity: .65;
}

.tv-frame {
    position: relative;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1.45rem;
    background: linear-gradient(145deg, #263653, #060b14 45%, #1b263c);
    box-shadow: var(--ak-shadow);
}

.tv-screen {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .9rem;
    background: #020712;
    aspect-ratio: 16 / 9;
}

.tv-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-stand {
    width: 32%;
    height: 1.25rem;
    margin: 0 auto;
    border-radius: 0 0 1rem 1rem;
    background: linear-gradient(#1b2638, #070b12);
}

.tv-caption {
    margin: .9rem auto 0;
    color: var(--ak-muted);
    font-size: .8rem;
    text-align: center;
}

.section {
    padding: 4.5rem 0;
}

.section-head {
    max-width: 46rem;
    margin-bottom: 2rem;
}

.section-copy {
    margin: .8rem 0 0;
}

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

.card,
.document {
    min-width: 0;
    padding: 1.35rem;
    border: 1px solid var(--ak-line);
    border-radius: var(--ak-radius);
    background: linear-gradient(145deg, rgba(15, 31, 64, .94), rgba(8, 23, 49, .94));
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .15);
}

.card {
    margin-bottom: 1rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: .75rem;
    background: rgba(255, 201, 40, .12);
    color: var(--ak-gold);
    font-weight: 900;
}

.steps h3 {
    margin-top: 1.1rem;
    font-size: 1.15rem;
}

.steps p,
.feature-grid p {
    margin: 0;
    color: var(--ak-muted);
}

.access {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border: 1px solid var(--ak-line-strong);
    border-radius: var(--ak-radius-lg);
    background: linear-gradient(120deg, rgba(41, 91, 215, .2), rgba(255, 106, 26, .13));
}

.access p {
    margin: .55rem 0 0;
    color: var(--ak-muted);
}

.page {
    padding: 2.5rem 0 4rem;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-head h1,
.login-wrap h1,
.auth-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .9rem;
}

.alert {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid;
    border-radius: .75rem;
}

.alert.success {
    border-color: rgba(63, 213, 139, .38);
    background: rgba(63, 213, 139, .1);
    color: #a8f3cd;
}

.alert.error,
.error {
    border-color: rgba(255, 122, 114, .38);
    background: rgba(255, 73, 64, .1);
    color: #ffd0cd;
}

.alert ul {
    margin: .2rem 0;
    padding-left: 1.2rem;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ak-line);
    border-radius: .75rem;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

th {
    padding: .75rem;
    background: rgba(255, 255, 255, .055);
    color: #d7dfed;
    font-size: .73rem;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    padding: .8rem .75rem;
    border-top: 1px solid var(--ak-line);
    color: #e3e9f3;
    vertical-align: middle;
}

.badge {
    display: inline-flex;
    padding: .25rem .6rem;
    border: 1px solid var(--ak-line);
    border-radius: 99rem;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e5;
    font-size: .74rem;
    font-weight: 850;
}

.badge.active {
    border-color: rgba(63, 213, 139, .25);
    background: rgba(63, 213, 139, .12);
    color: #8fe8ba;
}

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

.field {
    min-width: 0;
    grid-column: span 6;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: .35rem;
    color: #e5ebf5;
    font-size: .87rem;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-width: 0;
    min-height: 2.9rem;
    padding: .65rem .75rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .65rem;
    background: rgba(3, 10, 24, .72);
    color: #fff;
}

input::placeholder {
    color: #72819a;
}

input:focus,
select:focus {
    border-color: var(--ak-gold);
}

.help {
    margin: .35rem 0 0;
    color: var(--ak-muted);
    font-size: .8rem;
}

.empty {
    padding: 3rem 1rem;
    color: var(--ak-muted);
    text-align: center;
}

.secret {
    max-width: 100%;
    padding: .8rem;
    overflow-wrap: anywhere;
    border: 1px dashed rgba(255, 201, 40, .35);
    border-radius: .6rem;
    background: rgba(255, 201, 40, .06);
    color: #fff1af;
}

dl.details {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    margin: 0;
}

dl.details dt,
dl.details dd {
    min-width: 0;
    margin: 0;
    padding: .75rem .8rem;
    border-top: 1px solid var(--ak-line);
}

dl.details dt {
    color: var(--ak-muted);
    font-weight: 800;
}

dl.details dd {
    overflow-wrap: anywhere;
}

.login-wrap,
.auth-shell {
    width: min(100% - 2rem, 31rem);
    margin: auto;
    padding: clamp(2.5rem, 8vw, 6rem) 0;
}

.login-wrap .card,
.auth-card {
    padding: clamp(1.35rem, 5vw, 2rem);
    border-color: rgba(255, 201, 40, .18);
    box-shadow: var(--ak-shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 900;
}

.login-brand img {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
}

.auth-form,
.secure-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.security-note {
    margin: 1rem 0 0;
    color: #8190a8;
    font-size: .78rem;
    text-align: center;
}

.draft {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 201, 40, .42);
    border-radius: .75rem;
    background: rgba(255, 201, 40, .1);
    color: var(--ak-gold-soft);
    font-weight: 750;
}

.legal-main {
    padding: 3.5rem 0 5rem;
}

.legal-main > .shell {
    width: min(100% - 2rem, 68rem);
}

.intro {
    max-width: 50rem;
    margin: 1.1rem 0 2.3rem;
    color: var(--ak-muted);
    font-size: 1.05rem;
}

.document {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.document section + section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--ak-line);
}

.document h2 {
    font-size: 1.35rem;
}

.document h3 {
    margin: 1.1rem 0 .35rem;
    font-size: 1.02rem;
}

.document p {
    margin: .65rem 0;
    color: #d6deec;
}

.document ul {
    padding-left: 1.25rem;
}

.document li + li {
    margin-top: .45rem;
}

.placeholder {
    display: inline-block;
    padding: .08rem .4rem;
    border: 1px dashed var(--ak-gold);
    border-radius: .3rem;
    background: rgba(255, 201, 40, .1);
    color: #ffe68b;
    font-weight: 800;
}

.company-data {
    display: grid;
    grid-template-columns: minmax(10rem, .45fr) minmax(0, 1fr);
    margin: 1rem 0 0;
}

.company-data dt,
.company-data dd {
    min-width: 0;
    margin: 0;
    padding: .65rem .75rem;
    border-top: 1px solid var(--ak-line);
}

.company-data dt {
    color: var(--ak-muted);
    font-weight: 750;
}

.company-data dd {
    overflow-wrap: anywhere;
}

.site-footer,
footer {
    margin-top: auto;
    border-top: 1px solid var(--ak-line);
    background: rgba(3, 10, 24, .58);
    color: #8796b2;
    font-size: .84rem;
}

.footer-inner,
.site-footer-inner {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 64rem) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 48rem;
    }

    .hero h1 {
        max-width: 13ch;
    }

    .tv-showcase {
        width: min(100%, 46rem);
        margin-inline: auto;
    }
}

@media (max-width: 52rem) {
    .steps,
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .page-head {
        flex-direction: column;
    }

    .field {
        grid-column: 1 / -1;
    }

    dl.details {
        grid-template-columns: 1fr;
    }

    dl.details dd {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 42rem) {
    .shell,
    .topbar-inner,
    .page,
    .site-footer-inner,
    .legal-main > .shell {
        width: min(100% - 1.25rem, 74rem);
    }

    .nav,
    .topbar-inner {
        min-height: 4.8rem;
    }

    .brand img {
        width: 3.4rem;
        height: 3.4rem;
    }

    .brand-copy small {
        display: none;
    }

    .nav-actions .button {
        padding-inline: .8rem;
        font-size: .84rem;
    }

    .hero {
        padding-top: 3.5rem;
    }

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

    .actions > .button,
    .actions > button {
        flex: 1 1 auto;
    }

    .section {
        padding: 3.5rem 0;
    }

    .table-wrap {
        border-inline: 0;
        border-radius: 0;
    }

    .footer-inner,
    .site-footer-inner {
        min-height: 0;
        flex-direction: column;
        justify-content: center;
        padding: 1.25rem 0;
        text-align: center;
    }

    .footer-links,
    .legal-links {
        justify-content: center;
    }

    .company-data {
        grid-template-columns: 1fr;
    }

    .company-data dd {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 30rem) {
    .brand-copy {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .button {
        min-height: 2.65rem;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 15vw, 4rem);
    }

    .card,
    .document {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    button,
    .button {
        transition: none;
    }
}
