:root {
    --bg: #0f0f10;
    --bg-elevated: #18181b;
    --surface: #1f1f23;
    --surface-2: #27272c;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --red: #e63946;
    --red-soft: #f06674;
    --yellow: #ffcc00;
    --yellow-soft: #ffd84d;
    --radius: 20px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* ============ LAYOUT ============ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
}

.tsne-utility-bar {
    padding: 20px 0 0;
}

.tsne-utility-bar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: auto;
    display: grid;
    place-items: start center;
    padding: 56px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    translate: -50% 0;
    width: 1200px;
    height: 800px;
    background: radial-gradient(ellipse at center,
        rgba(230, 57, 70, 0.22) 0%,
        rgba(230, 57, 70, 0.08) 25%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle,
        rgba(255, 204, 0, 0.1) 0%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding-top: 12px;
    width: 100%;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
}

.hero img.logo {
    max-width: min(300px, 65vw);
    height: auto;
    margin-bottom: 36px;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.4));
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    margin: 0 0 24px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: clamp(1.16rem, 1.8vw, 1.42rem);
    color: var(--text-muted);
    margin: 0 auto 44px;
    max-width: 620px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

.btn--primary:hover {
    background: var(--red-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.btn .arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(3px) rotate(45deg);
}

/* ============ STATS ============ */
.stats {
    padding: 40px 0 20px;
}

.survey-alert-strip {
    padding: 24px 0 0;
}

.survey-alert-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.16), rgba(255, 204, 0, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.survey-alert-card__copy h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.survey-alert-card__copy p {
    margin: 0;
    color: var(--text-muted);
}

.survey-alert-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.survey-alert-card__reward {
    margin-top: 10px !important;
    color: #fff0b0 !important;
    font-weight: 600;
}

.survey-alert-card__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.survey-alert-card__decline-form {
    margin: 0;
}

.home-leagues-strip {
    padding: 28px 0 0;
}

.home-bar-events-strip {
    padding: 28px 0 0;
}

.home-bar-events-card {
    background: linear-gradient(135deg, rgba(30, 26, 27, 0.98) 0%, rgba(41, 32, 33, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.home-bar-events-card__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.home-bar-events-card__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 10px;
}

.home-bar-events-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
}

.home-bar-events-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.home-bar-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.home-bar-event-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
}

.home-bar-event-tile:hover,
.home-bar-event-tile:focus {
    border-color: rgba(255, 204, 0, 0.28);
    background: rgba(255, 255, 255, 0.03);
}

.home-bar-event-tile__pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.18);
    color: var(--yellow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-bar-event-tile h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.home-bar-event-tile p {
    margin: 0;
    color: var(--text-muted);
}

.home-bar-event-tile__copy {
    color: #c9bfc5 !important;
}

.home-leagues-card {
    background: linear-gradient(135deg, rgba(30, 26, 27, 0.98) 0%, rgba(41, 32, 33, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.home-leagues-card__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.home-leagues-card__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 10px;
}

.home-leagues-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
}

.home-leagues-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.home-leagues-card__actions {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.home-leagues-card__select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    outline: none;
    font-size: 1rem;
}

.home-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.home-league-selected {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
}

.home-league-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-league-tile.is-active {
    border-color: rgba(255, 77, 103, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 77, 103, 0.2) inset;
}

.home-league-tile__pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.18);
    color: var(--yellow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-leagues-card__actions .btn {
    border-radius: 12px;
    padding: 13px 22px;
}

.home-league-tile h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.home-league-tile__title-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.home-league-tile__title-link:hover,
.home-league-tile__title-link:focus {
    color: #fff0b0;
    text-shadow: 0 0 16px rgba(255, 204, 0, 0.22);
}

.home-league-tile p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.home-league-tile__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat {
    padding: 24px 16px;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: background 0.25s var(--ease);
}

.stat:hover {
    background: var(--surface);
}

.stat__num {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat__num .unit {
    color: var(--yellow);
}

.stat__label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
}

/* ============ SECTION HEADER ============ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--red-soft);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.16rem;
    margin: 0;
}

/* ============ FEATURES ============ */
.features {
    padding: 100px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature {
    position: relative;
    padding: 32px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.feature:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.22);
    margin-bottom: 20px;
    font-size: 20px;
}

.feature h3 {
    font-size: 1.28rem;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0;
    line-height: 1.72;
}

/* ============ STEPS ============ */
.steps {
    padding: 100px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    counter-increment: step;
}

.step__num {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.step__num::before {
    content: '0' counter(step) ' — ';
}

.step h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.24rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* ============ CTA STRIP ============ */
.cta-strip {
    padding: 100px 0;
}

.cta-strip__inner {
    position: relative;
    padding: 64px 40px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    overflow: hidden;
}

.cta-strip__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    translate: -50% 0;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center,
        rgba(230, 57, 70, 0.12) 0%,
        transparent 50%);
    pointer-events: none;
}

.cta-strip__content {
    position: relative;
}

.cta-strip h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin: 0 0 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.cta-strip p {
    color: var(--text-muted);
    margin: 0 0 32px;
    font-size: 1.14rem;
}

/* ============ FOOTER ============ */
.footer {
    padding: 80px 24px 50px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer__tagline {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text);
    font-weight: 600;
    margin-bottom: 24px;
}

.footer__logo {
    max-height: 120px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s var(--ease);
}

.footer__logo:hover {
    transform: scale(1.04);
}

.footer__meta {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .tsne-utility-bar__inner {
        justify-content: center;
        flex-wrap: wrap;
    }

    .survey-alert-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-bar-events-card__header,
    .home-leagues-card__header {
        flex-direction: column;
    }

    .home-leagues-card__actions {
        justify-content: flex-start;
    }

    .steps__grid {
        grid-template-columns: 1fr;
    }

    .features, .steps, .cta-strip {
        padding: 72px 0;
    }

    .cta-strip__inner {
        padding: 48px 28px;
    }
}

@media (max-width: 480px) {
    .home-bar-events-card {
        padding: 22px;
    }

    .hero {
        padding: 40px 20px 60px;
        min-height: auto;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-leagues-card {
        padding: 22px;
    }

    .home-leagues-card__select {
        min-width: 100%;
        width: 100%;
    }

    .btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
