:root {
    --black: #090b0d;
    --steel-950: #101316;
    --steel-900: #15191d;
    --steel-850: #1b2025;
    --steel-800: #22282e;
    --steel-700: #343c44;
    --steel-500: #89949f;
    --steel-300: #b2bac1;
    --paper: #eef1f3;
    --amber: #ffb000;
    --amber-soft: #d89400;
    --red: #e25241;
    --green: #5fc493;
    --radius: 3px;
    font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    color: var(--paper);
    background: var(--black);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(115deg, rgba(255,176,0,.035), transparent 32%),
        radial-gradient(circle at 85% 15%, #1a2025 0, transparent 34rem),
        var(--black);
    color: var(--paper);
}
a { color: var(--paper); text-underline-offset: .22rem; }
a:hover { color: var(--amber); }
code, .panel-code, .eyebrow, th, .badge {
    font-family: "Cascadia Mono", Consolas, monospace;
}

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 4vw;
    border-bottom: 1px solid var(--steel-700);
    background: rgba(14,17,20,.92);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand { display: flex; gap: .8rem; align-items: center; text-decoration: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--amber);
    color: #111;
    font-weight: 900;
    letter-spacing: -.06em;
    clip-path: polygon(0 0, 85% 0, 100% 28%, 100% 100%, 15% 100%, 0 72%);
}
.brand strong { display: block; letter-spacing: .22em; }
.brand small { color: var(--steel-500); font-size: .62rem; letter-spacing: .12em; }
nav { display: flex; align-items: center; gap: 1.4rem; font-size: .88rem; }
nav a { text-decoration: none; color: var(--steel-300); }
nav form { margin: 0; }
.nav-button { border: 0; background: none; color: var(--steel-300); cursor: pointer; font: inherit; padding: 0; }
.nav-button:hover { color: var(--amber); }

main { width: min(1440px, 92vw); margin: 0 auto; padding: 4rem 0 6rem; }
footer {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 4vw;
    color: var(--steel-500);
    border-top: 1px solid var(--steel-800);
    font-size: .78rem;
    letter-spacing: .06em;
}
.status-dot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

h1, h2, h3 {
    margin-top: 0;
    font-family: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
    font-stretch: semi-condensed;
    line-height: 1.06;
}
h1 { font-size: clamp(2rem, 5vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { color: var(--steel-300); line-height: 1.65; }
.muted { color: var(--steel-500); }
.eyebrow { color: var(--amber); letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.panel-code { color: var(--steel-500); font-size: .68rem; letter-spacing: .12em; }

.panel {
    background: linear-gradient(145deg, rgba(34,40,46,.94), rgba(19,23,27,.98));
    border: 1px solid var(--steel-700);
    border-top-color: #49535d;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: var(--radius);
    box-shadow: 0 20px 55px rgba(0,0,0,.22);
}
.panel-narrow { max-width: 620px; margin: 0 auto; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: center; gap: clamp(3rem, 8vw, 9rem); min-height: calc(100vh - 220px); }
.auth-intro { max-width: 700px; }
.auth-intro h1 span { color: var(--amber); }
.auth-intro > p:not(.eyebrow) { max-width: 570px; font-size: 1.08rem; }
.auth-panel h1, .auth-panel h2 { font-size: 2rem; }
.signal-strip { display: flex; align-items: end; height: 55px; gap: 5px; margin-top: 3rem; }
.signal-strip i { width: 5px; height: 22px; background: var(--steel-700); }
.signal-strip i:nth-child(2) { height: 38px; background: var(--amber-soft); }
.signal-strip i:nth-child(3) { height: 16px; }
.signal-strip i:nth-child(4) { height: 48px; background: var(--amber); }
.signal-strip i:nth-child(5) { height: 29px; }
.feature-list { list-style: none; padding: 0; color: var(--steel-300); }
.feature-list li { padding: .65rem 0 .65rem 1.5rem; border-bottom: 1px solid var(--steel-800); position: relative; }
.feature-list li::before { content: "▸"; color: var(--amber); position: absolute; left: 0; }

form { display: grid; gap: .7rem; }
label { color: var(--steel-300); font-size: .82rem; font-weight: 650; margin-top: .4rem; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--steel-700);
    border-radius: 2px;
    background: #0e1114;
    color: var(--paper);
    padding: .83rem .9rem;
    font: inherit;
    outline: 0;
}
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible {
    border-color: var(--amber);
    outline: 2px solid rgba(255,176,0,.28);
    outline-offset: 2px;
}
.checkbox { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: .65rem; line-height: 1.4; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--amber); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    width: max-content;
    padding: .7rem 1.1rem;
    border: 1px solid var(--steel-500);
    border-radius: 2px;
    background: var(--steel-800);
    color: var(--paper);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}
.button-primary { width: 100%; margin-top: .75rem; border-color: var(--amber); background: var(--amber); color: #111; }
.button-danger { border-color: var(--red); background: transparent; color: #ff8b7e; }
.button:hover { filter: brightness(1.08); color: inherit; }
.button:disabled { filter: grayscale(.55); cursor: not-allowed; opacity: .48; }
.form-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-size: .82rem; }
.validation { color: #ff9185; font-size: .8rem; }
.validation:empty { display: none; }
.notice { padding: 1rem; margin: 1rem 0; border-left: 3px solid var(--steel-500); background: rgba(0,0,0,.22); }
.notice.success { border-color: var(--green); color: #a8e2c6; }

.page-heading { max-width: 880px; margin-bottom: 3rem; }
.page-heading h1 { font-size: clamp(2.2rem, 4vw, 4rem); margin-bottom: .6rem; }
.dashboard-hero { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3.5rem; }
.dashboard-hero h1 { font-size: clamp(2rem, 4.6vw, 4.2rem); margin-bottom: .5rem; }
.tier-card { min-width: 230px; padding: 1.2rem; border-left: 3px solid var(--amber); background: var(--steel-900); }
.tier-card small, .tier-card strong { display: block; }
.tier-card small { color: var(--steel-500); font-size: .68rem; letter-spacing: .15em; }
.tier-card strong { font-size: 1.5rem; margin: .35rem 0 .75rem; }
.tier-readout { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; color: var(--steel-300); font: .72rem "Cascadia Mono", Consolas, monospace; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-title h2 { margin: 0; }
.section-title span { color: var(--steel-500); font-size: .76rem; }
.card-grid, .vehicle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.app-card .compact-readout { grid-column: 1 / -1; }
.capability-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.capability-list li { padding: .25rem .45rem; border-left: 2px solid var(--amber-soft); background: rgba(0,0,0,.22); color: var(--steel-300); font: .68rem "Cascadia Mono", Consolas, monospace; }
.app-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--amber-soft); color: var(--amber); font: 700 .7rem Consolas; }
.badge { display: inline-block; padding: .25rem .45rem; border: 1px solid #57616a; color: #cbd1d6; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dashboard-lower { margin-top: 1rem; }
.readout, .compact-readout { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr; gap: .7rem 1rem; margin: 1.2rem 0; }
.readout dt, .compact-readout dt { color: var(--steel-500); font-size: .76rem; }
.readout dd, .compact-readout dd { margin: 0; text-align: right; font-size: .82rem; }
.allowance { margin: 1.2rem 0; }
.allowance > div:first-child { display: flex; justify-content: space-between; font-size: .8rem; }
.allowance span { color: var(--steel-500); }
.meter { height: 4px; margin-top: .55rem; background: #090b0d; }
.meter i { display: block; height: 100%; background: var(--amber); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th { padding: .7rem; color: var(--steel-500); text-align: left; font-size: .65rem; letter-spacing: .08em; border-bottom: 1px solid var(--steel-700); }
td { padding: .8rem .7rem; border-bottom: 1px solid var(--steel-800); }
.vehicle-topline { display: flex; justify-content: space-between; align-items: center; }
.vehicle-card h2 { margin: 1.2rem 0 .35rem; }
.vin { color: var(--amber); letter-spacing: .11em; }
.empty-state { padding: 2rem; border: 1px dashed var(--steel-700); color: var(--steel-500); }
.secret-panel { border-color: var(--amber); margin-bottom: 1rem; }
.one-time-key { display: block; overflow-wrap: anywhere; padding: 1rem; color: #161008; background: var(--amber); font-size: clamp(.8rem, 2vw, 1.1rem); user-select: all; }
.danger-panel { border-color: #64352f; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--steel-300); text-decoration: none; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 10rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8.5rem; top: 0; bottom: 0; width: 1px; background: var(--steel-700); }
.timeline li { position: relative; margin-bottom: 1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.83rem; top: 1rem; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); }
.timeline time { position: absolute; right: calc(100% + 2.6rem); top: .75rem; width: 7rem; color: var(--steel-500); font: .68rem Consolas; text-align: right; }
.timeline-title { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 850px) {
    .site-header { align-items: flex-start; padding-top: 1rem; padding-bottom: 1rem; position: static; }
    nav { flex-wrap: wrap; justify-content: flex-end; gap: .8rem; }
    .auth-grid, .two-column { grid-template-columns: 1fr; }
    .auth-grid { min-height: auto; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
    .tier-card { width: 100%; }
}
@media (max-width: 560px) {
    main { width: min(94vw, 100%); padding-top: 2rem; }
    .site-header { display: block; }
    nav { justify-content: flex-start; margin-top: 1rem; }
    .timeline { padding-left: 1.5rem; }
    .timeline::before { left: 0; }
    .timeline li::before { left: -1.76rem; }
    .timeline time { position: static; display: block; width: auto; text-align: left; margin-bottom: .4rem; }
    footer { flex-direction: column; gap: .5rem; }
}
