:root {
    --tommy-red: #BF0202;
    --tommy-red-bright: #E10808;
    --tommy-ink: #0A0A0C;
    --tommy-charcoal: #1D1E22;
}

body {
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand {
    font-weight: 800;
    letter-spacing: -0.035em;
}

.brand-mark {
    border-color: rgba(255, 255, 255, .26);
    background: linear-gradient(145deg, #E10808, #BF0202 58%, #720000);
    box-shadow: 0 8px 24px rgba(191, 2, 2, .34);
    font-style: italic;
}

.brand-accent,
.hero-red {
    color: #EF4444;
}

.tommy-hero {
    isolation: isolate;
    background:
        radial-gradient(circle at 80% 15%, rgba(191, 2, 2, .25), transparent 30%),
        linear-gradient(135deg, #070708, #141416 62%, #2A0707);
}

.tommy-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("basketball-hero.png") center right / cover no-repeat;
    content: "";
    opacity: .15;
}

.tommy-hero::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 7, 8, .98) 0%, rgba(7, 7, 8, .88) 45%, rgba(7, 7, 8, .5) 100%),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    mask-image: none;
}

.tommy-hero h1 {
    font-weight: 760;
    letter-spacing: -.055em;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.hero-trust span {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    color: #d6d6da;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 7px 11px;
    text-transform: uppercase;
}

.analytics-preview {
    background: #fff;
}

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

.metric-card {
    min-height: 176px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.metric-card > span,
.metric-card div > span {
    display: block;
    color: var(--slate-500);
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 12px 0 3px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1;
}

.metric-card small {
    color: var(--slate-500);
}

.metric-card-dark {
    border-color: #2c2c30;
    background: linear-gradient(145deg, #0A0A0C, #242428);
    color: #fff;
}

.metric-card-dark > span,
.metric-card-dark small {
    color: #b9b9c0;
}

.metric-image-card {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
    background: #111;
    color: #fff;
}

.metric-image-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 8, 9, .95), rgba(8, 8, 9, .48));
    content: "";
}

.metric-image-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metric-image-card div {
    position: relative;
    z-index: 1;
}

.metric-image-card strong {
    font-size: 2.3rem;
}

.metric-image-card div > span,
.metric-image-card small {
    color: #f4b1b1;
}

.recent-results {
    margin-top: 22px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: var(--slate-50);
    padding: 22px;
}

.recent-results-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.recent-results-head span {
    color: var(--slate-500);
    font-size: .85rem;
}

.compact-results .score-card {
    min-height: 0;
}

.image-story {
    overflow: hidden;
    background: #0A0A0C;
    color: #fff;
}

.image-story-grid {
    display: grid;
    min-height: 520px;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
}

.image-story-copy {
    align-self: center;
    max-width: 630px;
    padding: 72px 48px 72px 0;
}

.image-story-copy h2 {
    margin: 14px 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1;
}

.image-story-copy > p:not(.section-kicker) {
    color: #c6c6cb;
    font-size: 1.08rem;
}

.image-story-grid > img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    mask-image: linear-gradient(90deg, transparent 0, #000 24%);
}

.story-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-alert {
    background: #F5B400;
    box-shadow: 0 10px 28px rgba(245, 180, 0, .3);
    color: #171205;
}

.button-alert:hover,
.button-alert:focus-visible {
    background: #FFD24A;
}

.page-hero {
    background:
        radial-gradient(circle at 82% 24%, rgba(191, 2, 2, .28), transparent 32%),
        linear-gradient(135deg, #09090B, #1D1E22);
    color: #fff;
    padding: 74px 0;
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: .96;
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 0;
    color: #c9c9cf;
    font-size: 1.08rem;
}

.section-compact {
    margin-top: 22px;
}

.results-heading {
    margin-top: 54px;
}

.analytics-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
}

.date-control {
    display: flex;
    align-items: end;
    gap: 9px;
}

.date-control label {
    display: grid;
    gap: 5px;
    color: var(--slate-600);
    font-size: .76rem;
    font-weight: 750;
    text-transform: uppercase;
}

.date-control input {
    min-height: 44px;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    background: #fff;
    padding: 0 12px;
}

.date-button {
    min-height: 44px;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    background: #fff;
    color: var(--slate-700);
    cursor: pointer;
    font-weight: 750;
    padding: 0 14px;
}

.date-button:hover {
    border-color: var(--tommy-red);
    color: var(--tommy-red);
}

.analysis-note {
    border-left: 4px solid var(--tommy-red);
    border-radius: 0 14px 14px 0;
    background: #FFF5F5;
    color: #5F2222;
    margin-top: 22px;
    padding: 16px 18px;
}

@media (max-width: 980px) {
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-story-grid {
        grid-template-columns: 1fr;
    }

    .image-story-copy {
        padding-right: 0;
    }

    .image-story-grid > img {
        min-height: 340px;
        mask-image: linear-gradient(180deg, transparent 0, #000 18%);
    }
}

@media (max-width: 640px) {
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metric-card {
        min-height: 144px;
        padding: 18px;
    }

    .metric-card strong {
        font-size: 2rem;
    }

    .metric-image-card {
        grid-column: 1 / -1;
    }

    .image-story-copy {
        padding: 54px 0 32px;
    }

    .image-story-grid > img {
        min-height: 270px;
    }

    .date-control {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .date-control input {
        width: 100%;
    }
}
