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

html {
    scroll-behavior: smooth;
}

body {
    background: #05070a;
    color: #f1f1f1;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

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

button {
    font-family: inherit;
}

:root {
    --gold: #d6b45c;
    --gold-light: #f0d889;
    --gold-dark: #8f7431;
    --bg: #05070a;
    --bg-2: #080b10;
    --panel: #0b0f15;
    --panel-2: #10151d;
    --border: rgba(255,255,255,0.08);
    --muted: #8c929c;
    --white: #f4f4f4;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 13, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s ease;
}

.nav-inner {
    width: min(1400px, calc(100% - 50px));
    margin: auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-name {
    font-size: 21px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.nav-links a {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #bfc3ca;
    transition: color 0.2s ease;
}

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

.discord-btn {
    padding: 11px 18px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.discord-btn:hover {
    background: var(--gold);
    color: #05070a;
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    color: white;
    font-size: 27px;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 850px;
    padding: 150px max(25px, calc((100vw - 1400px) / 2)) 90px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 80px;
    background:
        radial-gradient(circle at 70% 35%, rgba(214,180,92,0.08), transparent 30%),
        linear-gradient(120deg, #05070a, #080c12);
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.eyebrow,
.section-kicker {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
}

.hero h1 {
    margin-top: 18px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(70px, 8vw, 125px);
    line-height: 0.82;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-description {
    max-width: 580px;
    margin-top: 30px;
    color: #aeb3bc;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--gold);
    color: #05070a;
}

.btn-primary:hover {
    background: var(--gold-light);
}

.btn-secondary {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}


/* =========================
   NEXT RACE
========================= */

.next-race-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
        #080b10;
    border: 1px solid rgba(214,180,92,0.25);
    padding: 35px;
    min-height: 510px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold-light);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e4c35e;
    box-shadow: 0 0 15px rgba(228,195,94,0.8);
}

.round-label {
    margin-top: 35px;
    color: #707780;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

.lightning {
    color: var(--gold);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 50px;
    line-height: 1;
    margin-top: 4px;
}

.next-label {
    margin-top: 15px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #737983;
}

.next-race-card h2 {
    margin-top: 5px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 55px;
    line-height: 0.9;
    font-weight: 900;
}

.location {
    margin-top: 18px;
    color: #858b94;
    font-size: 13px;
    letter-spacing: 1px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 30px;
}

.count-box {
    padding: 12px 5px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.count-box strong {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 29px;
}

.count-box span {
    font-size: 8px;
    color: #777d85;
    letter-spacing: 1px;
}

.race-date {
    margin-top: 25px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
}

.race-date span {
    color: var(--gold);
    font-size: 12px;
}


/* =========================
   STATS
========================= */

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    background: #070a0f;
}

.stat {
    padding: 30px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: 0;
}

.stat span {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 42px;
    font-weight: 800;
}

.stat small {
    color: #737a84;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================
   SECTIONS
========================= */

.section {
    width: min(1400px, calc(100% - 50px));
    margin: auto;
    padding: 110px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin-top: 3px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 65px;
    line-height: 0.9;
    font-weight: 900;
}

.section-heading p {
    color: #737983;
    font-size: 14px;
}


/* =========================
   STANDINGS
========================= */

.standings-block {
    margin-bottom: 50px;
    background: var(--panel);
    border: 1px solid var(--border);
}

.table-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 1px solid var(--border);
}

.table-title span {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.table-title small {
    color: #707780;
    font-size: 10px;
    letter-spacing: 1px;
}

.table-title > strong {
    font-family: "Barlow Condensed", sans-serif;
    color: var(--gold);
}

.table-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    padding: 14px 20px;
    color: #6e747d;
    background: #080b10;
    text-align: left;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.standings-table td {
    padding: 13px 20px;
    border-top: 1px solid rgba(255,255,255,0.045);
    font-size: 14px;
}

.standings-table tr {
    transition: background 0.15s ease;
}

.standings-table tbody tr:hover {
    background: rgba(255,255,255,0.025);
}

.standings-table .leader {
    background: rgba(214,180,92,0.07);
}

.standings-table .leader td:first-child {
    color: var(--gold-light);
    font-weight: 800;
}


/* =========================
   TEAM COLORS
========================= */

.team-hrt { color: #d5c299; }
.team-redbull { color: #0600ef; }
.team-ferrari { color: #dc0000; }
.team-mercedes { color: #00d2be; }
.team-tororosso { color: #4c00be; }
.team-sauber { color: #ffffff; }
.team-mclaren { color: #c0c0c0; }
.team-williams { color: #0082fa; }
.team-lotus { color: #2b8220; }
.team-virgin { color: #5a0000; }
.team-renault { color: #fff500; }
.team-forceindia { color: #ff5f0f; }


/* =========================
   CALENDAR
========================= */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.calendar-card {
    min-height: 280px;
    padding: 25px;
    position: relative;
    background: #090d13;
    border: 1px solid var(--border);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.calendar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214,180,92,0.35);
}

.calendar-number {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    line-height: 1;
}

.calendar-status {
    margin-top: 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #737a83;
}

.calendar-card h3 {
    margin-top: 15px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 0.9;
}

.calendar-card p {
    margin-top: 7px;
    color: #777e87;
    font-size: 12px;
    letter-spacing: 1px;
}

.calendar-date {
    margin-top: 35px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.calendar-time {
    display: block;
    margin-top: 3px;
    color: var(--gold);
    font-size: 11px;
}

.completed {
    border-top: 2px solid rgba(255,255,255,0.12);
}

.next {
    border: 1px solid rgba(214,180,92,0.5);
    background:
        linear-gradient(145deg, rgba(214,180,92,0.08), transparent),
        #090d13;
}

.next .calendar-status {
    color: var(--gold-light);
}

.next .calendar-number {
    color: rgba(214,180,92,0.22);
}

.upcoming {
    opacity: 0.7;
}

.test-card {
    opacity: 0.55;
}

.race-link {
    cursor: pointer;
}

.click-hint {
    position: absolute;
    right: 22px;
    bottom: 22px;
    color: var(--gold);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.2s ease;
}

.race-link:hover .click-hint {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   RACES
========================= */

.race-feature {
    display: grid;
    grid-template-columns: 130px 1fr 150px;
    align-items: center;
    background:
        linear-gradient(110deg, rgba(214,180,92,0.07), transparent),
        #0a0e14;
    border: 1px solid rgba(214,180,92,0.25);
    padding: 30px;
}

.race-feature-round {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    color: #707780;
    letter-spacing: 1px;
}

.race-feature-round strong {
    font-size: 60px;
    color: var(--gold-light);
    line-height: 0.9;
}

.race-feature-main > span {
    color: var(--gold);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.race-feature-main h3 {
    margin-top: 5px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 48px;
    line-height: 0.95;
}

.race-feature-main p {
    margin-top: 8px;
    color: #777e87;
}

.race-feature-date {
    text-align: right;
    font-family: "Barlow Condensed", sans-serif;
}

.race-feature-date strong {
    display: block;
    font-size: 58px;
    line-height: 0.8;
}

.race-feature-date span {
    display: block;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 2px;
}

.race-feature-date small {
    color: #737983;
}


/* =========================
   INFO
========================= */

.info-banner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    padding: 55px;
    background:
        radial-gradient(circle at 10% 50%, rgba(214,180,92,0.08), transparent 30%),
        #090d13;
    border: 1px solid var(--border);
}

.info-symbol {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-symbol img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.info-content h2 {
    margin-top: 3px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 65px;
    line-height: 0.9;
}

.info-content p {
    margin-top: 22px;
    color: #a2a8b0;
    max-width: 850px;
}

.info-content .disclaimer {
    color: var(--gold-light);
    border-left: 2px solid var(--gold);
    padding-left: 14px;
}


/* =========================
   RACE RESULTS OVERLAY
========================= */

.race-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(2,4,7,0.94);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.race-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.race-modal {
    width: min(1200px, 100%);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #080c12;
    border: 1px solid rgba(214,180,92,0.28);
    box-shadow: 0 40px 120px rgba(0,0,0,0.65);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.race-overlay.active .race-modal {
    transform: translateY(0);
}

.close-race {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.035);
    color: #fff;
    font-size: 27px;
    cursor: pointer;
    z-index: 2;
    transition: 0.2s ease;
}

.close-race:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.race-modal-header {
    padding: 42px 45px 30px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid var(--border);
}

.race-modal-header h2 {
    margin-top: 5px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 70px;
    font-weight: 900;
    line-height: 0.85;
}

.race-modal-header p {
    margin-top: 12px;
    color: #737983;
    font-size: 13px;
    letter-spacing: 1px;
}

.result-date {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: var(--gold-light);
}

.result-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.highlight-box {
    padding: 23px;
    border-right: 1px solid var(--border);
}

.highlight-box:last-child {
    border-right: 0;
}

.highlight-box span {
    display: block;
    color: #707780;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.highlight-box strong {
    display: block;
    margin-top: 7px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: #fff;
}

.result-section {
    padding: 30px 45px;
}

.result-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-section-title span {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 25px;
    font-weight: 900;
}

.result-section-title small {
    color: #666d76;
    letter-spacing: 1px;
}

.result-table-wrapper {
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th {
    padding: 12px 15px;
    text-align: left;
    color: #686f78;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    background: #06090d;
}

.result-table td {
    padding: 13px 15px;
    border-top: 1px solid rgba(255,255,255,0.045);
    font-size: 14px;
}

.result-table tr:first-child td {
    background: rgba(214,180,92,0.06);
}

.result-position {
    width: 70px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--gold-light);
}

.status-dnf,
.status-dns,
.status-dsq {
    color: #777e87;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
}

.status-dsq {
    color: #d85b5b;
}

.race-back {
    padding: 0 45px 35px;
}

.race-back button {
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: #b8bdc5;
    padding: 12px 18px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s ease;
}

.race-back button:hover {
    color: var(--gold-light);
    border-color: var(--gold);
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid var(--border);
    background: #040609;
}

.footer-inner {
    width: min(1400px, calc(100% - 50px));
    margin: auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-brand img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.footer-copy {
    color: #616770;
    font-size: 12px;
}


/* =========================
   REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 130px;
    }

    .next-race-card {
        max-width: 650px;
    }

    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-banner {
        grid-template-columns: 1fr;
    }

    .info-symbol {
        width: 120px;
        height: 120px;
    }

    .race-modal-header h2 {
        font-size: 55px;
    }

}


@media (max-width: 760px) {

    .nav-inner {
        width: calc(100% - 30px);
        min-height: 68px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 15px;
        right: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: #080b10;
        border: 1px solid var(--border);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a {
        padding: 13px;
    }

    .discord-btn {
        margin-left: auto;
        padding: 8px 12px;
        font-size: 12px;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 115px;
    }

    .hero h1 {
        font-size: clamp(58px, 18vw, 95px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .section {
        width: calc(100% - 30px);
        padding: 75px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2,
    .info-content h2 {
        font-size: 52px;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .race-feature {
        grid-template-columns: 75px 1fr;
        gap: 20px;
    }

    .race-feature-date {
        grid-column: 2;
        text-align: left;
        margin-top: 20px;
    }

    .result-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-box:nth-child(2) {
        border-right: 0;
    }

    .highlight-box:nth-child(3),
    .highlight-box:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .race-modal-header,
    .result-section,
    .race-back {
        padding-left: 22px;
        padding-right: 22px;
    }

    .race-modal-header {
        align-items: start;
        flex-direction: column;
        gap: 15px;
        padding-top: 75px;
    }

    .race-modal-header h2 {
        font-size: 48px;
    }

    .footer-inner {
        width: calc(100% - 30px);
        flex-direction: column;
        justify-content: center;
        padding: 25px 0;
    }

}


@media (max-width: 500px) {

    .discord-btn {
        display: none;
    }

    .next-race-card {
        padding: 25px;
    }

    .next-race-card h2 {
        font-size: 46px;
    }

    .countdown {
        gap: 4px;
    }

    .count-box strong {
        font-size: 25px;
    }

    .result-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-box {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .highlight-box:last-child {
        border-bottom: 0;
    }

}
