:root {
    --bg: #0D0E10;
    --bg-panel: #15171A;
    --text: #F5F4F0;
    --text-muted: #8C8F96;
    --athletics: #B8FF3F;
    --athletics-dark: #0D0E10;
    --training: #FF5630;
    --training-dark: #0D0E10;
    --font-display: 'Anton', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Prevent double-click/long-press text selection on UI elements
   (headlines, nav, labels, buttons) while leaving paragraph copy
   normally selectable for accessibility/usability. */
.nav-brand,
.nav-links a,
.eyebrow,
.hero-title,
.path,
.path-tag,
.path-title,
.path-cta,
.seam span,
.status-label {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* ---------- NAV ---------- */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 5vw;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    height: 34px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--text);
    transition: right 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    right: 0;
}

@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 16px 20px;
    }

    .hero {
        padding-top: 110px;
    }
}

/* ---------- HERO ---------- */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6vw;
    position: relative;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 11vw, 132px);
    line-height: 0.96;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero-sub {
    margin-top: 28px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-muted);
    max-width: 480px;
    font-weight: 500;
}

.scroll-cue {
    position: absolute;
    bottom: 36px;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--text-muted));
    overflow: hidden;
}

.scroll-cue span {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    60% { top: 100%; }
    100% { top: 100%; }
}

/* ---------- PATHS (the split) ---------- */
.paths {
    display: flex;
    min-height: 78vh;
    position: relative;
    border-top: 1px solid #232529;
}

.path {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel);
    overflow: hidden;
    transition: background 0.45s ease;
}

.path-athletics {
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    margin-right: -8vw;
    padding-right: 8vw;
}

.path-training {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.path-inner {
    max-width: 380px;
    padding: 48px 40px;
    position: relative;
    z-index: 2;
}

.path-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    display: block;
    margin-bottom: 18px;
    transition: color 0.45s ease;
}

.path-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1;
    margin-bottom: 18px;
    transition: color 0.45s ease;
}

.path-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
    transition: color 0.45s ease;
}

.path-cta {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    transition: color 0.45s ease;
}

.arrow {
    transition: transform 0.3s ease;
}

.path:hover .arrow {
    transform: translateX(4px);
}

/* Athletics identity */
.path-athletics .path-tag,
.path-athletics .path-title,
.path-athletics .path-cta {
    color: var(--athletics);
}

.path-athletics:hover {
    background: var(--athletics);
}

.path-athletics:hover .path-tag,
.path-athletics:hover .path-title,
.path-athletics:hover .path-cta {
    color: var(--athletics-dark);
}

.path-athletics:hover .path-desc {
    color: #232a10;
}

/* Training identity */
.path-training .path-tag,
.path-training .path-title,
.path-training .path-cta {
    color: var(--training);
}

.path-training:hover {
    background: var(--training);
}

.path-training:hover .path-tag,
.path-training:hover .path-title,
.path-training:hover .path-cta {
    color: var(--training-dark);
}

.path-training:hover .path-desc {
    color: #3a1208;
}

/* Seam between the two lanes */
.seam {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #3a3d42 20%, #3a3d42 80%, transparent);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.seam span {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    background: var(--bg);
    padding: 14px 6px;
    border: 1px solid #3a3d42;
}

/* Keyboard focus visibility */
.path:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: -6px;
}

/* ---------- FOOTER / STATUS ---------- */
.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 5vw;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid #1d1f23;
}

.status-label {
    letter-spacing: 0.14em;
}

#data-container {
    color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
    .paths {
        flex-direction: column;
        min-height: auto;
    }

    .path-athletics,
    .path-training {
        clip-path: none;
        margin-right: 0;
        padding-right: 0;
        min-height: 60vh;
    }

    .seam {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(to right, transparent, #3a3d42 20%, #3a3d42 80%, transparent);
    }

    .seam span {
        writing-mode: horizontal-tb;
        padding: 6px 14px;
    }

    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .path-inner {
        padding: 40px 28px;
    }
}

/* ---------- AUTH PAGES (signup / login) ---------- */
.auth-page {
    display: flex;
    min-height: 100vh;
}

/* Left: visual panel.
   Placeholder texture for now — swap in a real photo by replacing
   the background rule below with something like:

   .auth-visual {
       background:
           linear-gradient(180deg, rgba(13,14,16,0.25), rgba(13,14,16,0.9)),
           url('images/athlete-hero.jpg') center / cover no-repeat;
   }
*/
.auth-visual {
    flex: 1.1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background:
        radial-gradient(circle at 28% 20%, rgba(184, 255, 63, 0.16), transparent 50%),
        radial-gradient(circle at 82% 78%, rgba(255, 86, 48, 0.14), transparent 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 26px),
        var(--bg-panel);
}

.auth-visual-overlay {
    position: relative;
    z-index: 2;
    padding: 60px;
}

.auth-visual-overlay .eyebrow {
    color: var(--athletics);
    margin-bottom: 20px;
}

.auth-visual-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.2vw, 58px);
    line-height: 1.04;
    text-transform: uppercase;
    max-width: 420px;
}

/* Right: form panel */
.auth-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 6vw;
    background: var(--bg);
}

.auth-brand {
    position: absolute;
    top: 28px;
    left: 6vw;
    display: inline-flex;
    align-items: center;
}

.auth-logo {
    height: 40px;
    width: auto;
    display: block;
}

.auth-form-wrap {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.auth-form-wrap .eyebrow {
    margin-bottom: 16px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 56px);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.auth-sub {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 36px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    user-select: none;
}

.auth-form input {
    background: var(--bg-panel);
    border: 1px solid #2A2D31;
    color: var(--text);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.auth-form input::placeholder {
    color: #5A5D63;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--athletics);
    background: #191B1E;
}

.auth-form input:focus-visible {
    outline: 2px solid var(--athletics);
    outline-offset: 2px;
}

.auth-form button[type="submit"] {
    margin-top: 8px;
    background: var(--athletics);
    color: var(--athletics-dark);
    border: none;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: filter 0.25s ease, transform 0.15s ease;
}

.auth-form button[type="submit"]:hover {
    filter: brightness(1.08);
}

.auth-form button[type="submit"]:active {
    transform: scale(0.98);
}

.auth-form button[type="submit"]:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.auth-error {
    display: none;
    margin-top: 18px;
    padding: 12px 14px;
    background: rgba(255, 86, 48, 0.1);
    border: 1px solid rgba(255, 86, 48, 0.35);
    color: var(--training);
    font-size: 13px;
    line-height: 1.4;
    border-radius: 2px;
}

.auth-switch {
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--text);
    border-bottom: 1px solid var(--text-muted);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.auth-switch a:hover {
    color: var(--athletics);
    border-color: var(--athletics);
}

/* ---------- AUTH RESPONSIVE ---------- */
@media (max-width: 900px) {
    .auth-page {
        flex-direction: column;
        min-height: auto;
    }

    .auth-visual {
        flex: none;
        min-height: 30vh;
        align-items: center;
        justify-content: center;
    }

    .auth-visual-overlay {
        padding: 36px 7vw;
        text-align: center;
    }

    .auth-visual-title {
        max-width: none;
    }

    .auth-brand {
        position: static;
        display: block;
        margin-bottom: 36px;
    }

    .auth-panel {
        padding: 40px 7vw 64px;
    }
}

@media (max-width: 420px) {
    .auth-visual {
        min-height: 22vh;
    }
}

/* ---------- ACCOUNT PAGE ---------- */
.account-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 6vw 60px;
}

.account-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-panel);
    border: 1px solid #232529;
    padding: 48px 40px;
    text-align: center;
}

.account-card .eyebrow {
    color: var(--athletics);
    margin-bottom: 20px;
}

#account-username {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 36px);
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 10px;
}

.account-email {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--training);
    color: var(--training);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.logout-btn:hover {
    background: var(--training);
    color: var(--training-dark);
}

.logout-btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .account-card {
        padding: 40px 28px;
    }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ---------- ABOUT: HERO ---------- */
.about-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.about-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 14, 16, 0.35) 0%, rgba(13, 14, 16, 0.55) 55%, rgba(13, 14, 16, 0.95) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 6vw 90px;
}

.about-hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1.02;
    text-transform: uppercase;
    max-width: 720px;
}

.about-hero .eyebrow {
    color: var(--athletics);
    margin-bottom: 18px;
}

/* ---------- SHARED SECTION LAYOUT ---------- */
.story, .offer, .bio, .team, .partners, .mission {
    padding: 110px 6vw;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.2vw, 46px);
    text-transform: uppercase;
    margin-top: 14px;
    margin-bottom: 48px;
    max-width: 720px;
}

.story .eyebrow,
.offer .eyebrow,
.bio .eyebrow,
.team .eyebrow,
.partners .eyebrow,
.mission .eyebrow {
    color: var(--athletics);
}

/* ---------- TIMELINE ---------- */
.timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    border-top: 1px solid #232529;
    padding-top: 40px;
}

.timeline-item {
    flex: 1;
    min-width: 240px;
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--training);
    display: inline-block;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--training);
}

.timeline-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 420px;
}

/* ---------- OFFER CARDS ---------- */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.offer-card {
    background: var(--bg-panel);
    border: 1px solid #232529;
    border-top: 3px solid var(--athletics);
    padding: 32px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
}

.offer-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.offer-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.offer-training {
    border-top-color: var(--training);
}

.offer-neutral {
    border-top-color: var(--text-muted);
}

.offer-note,
.bio-note {
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.75;
}

/* ---------- BIO ---------- */
.bio {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

.bio-avatar {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 1px solid #232529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--athletics);
    user-select: none;
}

.bio-text {
    max-width: 620px;
}

.bio-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 560px;
}

/* ---------- TEAM ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
}

.team-card-placeholder {
    border: 1px dashed #3a3d42;
    padding: 28px 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-avatar-placeholder {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 1px dashed #3a3d42;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Player card */
.player-card {
    background: var(--bg-panel);
    border: 1px solid #232529;
    border-top: 3px solid var(--athletics);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.player-card:hover {
    transform: translateY(-4px);
}

.player-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-info {
    padding: 24px 22px 28px;
}

.player-name {
    font-family: var(--font-display);
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.player-role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--athletics);
    margin-bottom: 16px;
}

.player-bio {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.player-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border: 1px solid #2a2d31;
    padding: 5px 10px;
    border-radius: 2px;
}

/* ---------- PARTNERS ---------- */
.partner-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-placeholder {
    flex: 1;
    min-width: 160px;
    height: 80px;
    border: 1px dashed #3a3d42;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- MISSION BAND ---------- */
.mission {
    background: var(--bg-panel);
    border-top: 1px solid #232529;
    border-bottom: 1px solid #232529;
    text-align: center;
}

.mission .eyebrow {
    margin-bottom: 28px;
}

.mission-text {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.3;
    text-transform: uppercase;
    max-width: 880px;
    margin: 0 auto;
}

/* ---------- ABOUT RESPONSIVE ---------- */
@media (max-width: 860px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .bio {
        flex-direction: column;
        gap: 28px;
    }
}

@media (max-width: 700px) {
    .story, .offer, .bio, .team, .partners, .mission {
        padding: 80px 7vw;
    }

    .about-hero {
        min-height: 70vh;
    }
}