:root {
    color-scheme: dark;
    --bg: #0a101b;
    --panel: #111827;
    --panel-2: #162033;
    --text: #eef4ff;
    --muted: #aab7ca;
    --line: rgba(148, 163, 184, .22);
    --accent: #38bdf8;
    --accent-2: #f7c948;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 76px;
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, .13), transparent 32%),
        linear-gradient(180deg, #0b1220 0%, var(--bg) 34%, #080d16 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.top-rail {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid rgba(125, 211, 252, .18);
    background: rgba(7, 12, 21, .88);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .28), 0 1px 0 rgba(56, 189, 248, .08);
    backdrop-filter: blur(14px);
}

.top-rail-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
}

.brand {
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
}

.brand span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.nav,
.cta-row,
.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a,
.button {
    border: 1px solid rgba(125, 211, 252, .28);
    border-radius: 6px;
    padding: 9px 11px;
    color: #e0f2fe;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
}

.nav a {
    border-color: transparent;
    background: transparent;
    color: #d8e7fb;
}

.nav a:hover,
.nav a.account-primary,
.button.secondary {
    border-color: rgba(125, 211, 252, .3);
    background: rgba(22, 32, 51, .82);
}

.button.primary,
button {
    border-color: rgba(56, 189, 248, .65);
    background: #0ea5e9;
    color: #04111f;
}

.account-main {
    padding: 34px 0 52px;
}

.account-main h1 {
    margin: 0 0 16px;
    font-size: 2rem;
}

.card,
.note {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 32, 51, .84), rgba(17, 24, 39, .94));
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

p,
.muted {
    color: var(--muted);
    line-height: 1.55;
}

.notice {
    border-left: 3px solid #38bdf8;
}

.error {
    border-left: 3px solid #f87171;
}

label {
    display: block;
    margin: 12px 0 6px;
    color: #cbd5e1;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .28);
    background: #050914;
    color: #eef4ff;
    border-radius: 6px;
    padding: 10px;
    font: inherit;
}

button,
.button {
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    text-align: left;
    vertical-align: top;
}

th {
    color: #93c5fd;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
}

td {
    overflow-wrap: anywhere;
}

.key {
    font-family: Consolas, monospace;
    background: #050914;
    border: 1px solid rgba(148, 163, 184, .22);
    padding: 12px;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

.platform-footer {
    padding: 48px 0 54px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 16, 27, .4), rgba(5, 9, 20, .95));
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.footer-brand {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 900;
}

.footer-copy {
    max-width: 360px;
    margin: 12px 0 0;
    line-height: 1.6;
}

.footer-col h3 {
    margin: 0 0 12px;
    color: #dbeafe;
    font-size: .86rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    width: fit-content;
    margin: 9px 0;
    color: var(--muted);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--text);
}

@media (max-width: 900px) {
    .top-rail-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    body {
        padding-top: 164px;
    }

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

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        padding-top: 210px;
    }

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