:root {
    color-scheme: dark;
    --background: #050914;
    --panel: #0b1323;
    --panel-soft: #101c31;
    --line: #263a59;
    --red: #e32636;
    --blue: #2f6df6;
    --blue-light: #5da2ff;
    --green: #1ed760;
    --text: #f7f9ff;
    --muted: #9db0cc;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(47, 109, 246, .15), transparent 30rem),
        radial-gradient(circle at 90% 15%, rgba(227, 38, 54, .12), transparent 28rem),
        var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 5vw, 70px);
    background: rgba(5, 9, 20, .94);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.brand span {
    display: grid;
    gap: 3px;
}

.brand strong {
    font-size: 18px;
    letter-spacing: 1px;
}

.brand small,
.eyebrow {
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.home-link {
    padding: 11px 18px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.tracking-page {
    width: min(1040px, calc(100% - 30px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.hero {
    max-width: 700px;
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 9px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1;
}

.hero p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.lookup-card,
.result-card {
    padding: clamp(22px, 4vw, 36px);
    background: rgba(11, 19, 35, .96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.lookup-card {
    max-width: 700px;
}

.lookup-card h2,
.result-card h2 {
    margin: 0;
    font-size: 24px;
}

form {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

label {
    margin-top: 6px;
    color: #cad7eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 15px 16px;
    background: #070d19;
    border: 1px solid #344966;
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    outline: none;
}

input:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(93, 162, 255, .15);
}

button,
.shipping-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 23px;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

button {
    width: fit-content;
    margin-top: 12px;
}

.lookup-message {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    line-height: 1.5;
}

.lookup-message.error {
    background: rgba(227, 38, 54, .12);
    border: 1px solid rgba(227, 38, 54, .55);
    color: #ffb5bc;
}

.result-card {
    margin-top: 28px;
}

.result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.status-pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(30, 215, 96, .13);
    border: 1px solid rgba(30, 215, 96, .55);
    color: #68ef99;
    font-size: 13px;
    font-weight: 800;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 34px 0;
}

.timeline-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 0 8px;
    color: #71849f;
    text-align: center;
}

.timeline-step::before {
    position: absolute;
    top: 21px;
    right: 50%;
    left: -50%;
    height: 3px;
    background: #27364d;
    content: "";
    z-index: 0;
}

.timeline-step:first-child::before {
    display: none;
}

.timeline-step span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    background: #0a1220;
    border: 2px solid #344966;
    border-radius: 50%;
    font-weight: 900;
    z-index: 1;
}

.timeline-step strong {
    color: #91a3bd;
    font-size: 14px;
}

.timeline-step small {
    font-size: 12px;
    line-height: 1.45;
}

.timeline-step.complete {
    color: #65e994;
}

.timeline-step.complete::before,
.timeline-step.complete span {
    background: var(--green);
    border-color: #56ee8d;
    color: #03150a;
}

.timeline-step.complete strong {
    color: var(--text);
}

.section-block h3 {
    margin: 0 0 14px;
    color: var(--blue-light);
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.item-list {
    display: grid;
    gap: 10px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    background: #080f1f;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.order-item div {
    display: grid;
    gap: 6px;
}

.order-item small,
.privacy-note {
    color: var(--muted);
}

.order-item > span {
    flex: 0 0 auto;
    color: var(--blue-light);
    font-weight: 800;
}

.shipping-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding: 18px;
    background: var(--panel-soft);
    border-left: 4px solid var(--red);
    border-radius: 11px;
}

.shipping-box div {
    display: grid;
    gap: 6px;
}

.shipping-box small {
    color: var(--blue-light);
    font-weight: 800;
    text-transform: uppercase;
}

.privacy-note {
    margin: 22px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .brand span {
        display: none;
    }

    .tracking-page {
        padding-top: 36px;
    }

    .result-heading,
    .shipping-box {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .result-heading {
        display: grid;
    }

    .status-pill {
        width: fit-content;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .timeline-step {
        grid-template-columns: 44px 1fr;
        justify-items: start;
        text-align: left;
    }

    .timeline-step::before {
        top: -18px;
        bottom: auto;
        left: 21px;
        width: 3px;
        height: 18px;
    }

    .timeline-step strong,
    .timeline-step small {
        grid-column: 2;
    }
}
