:root {
    --color-gold: #E8A538;
    --color-gold-light: #F4C56A;
    --color-gold-dark: #C88A2A;
    --color-navy: #0D1B2A;
    --color-navy-deep: #0A1420;
    --color-space: #1B2838;
    --color-slate: #3D5A80;
    --color-sky: #5B8FB9;
    --color-earth: #7EB4D2;
    --color-earth-light: #A8D4EA;
    --color-white: #FFFFFF;
    --color-light: #E8EEF2;
    --color-muted: #94A3B8;
    --color-dim: #64748B;
    --gradient-gold: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    --gradient-space: linear-gradient(180deg, var(--color-navy) 0%, var(--color-space) 50%, var(--color-slate) 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 50%, var(--color-space) 100%);
    --font-primary: 'DM Sans', sans-serif;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --section-padding: clamp(80px, 10vw, 140px);
    --container-width: 1320px;
    --nav-height: 80px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-light);
    background: var(--color-navy-deep);
    overflow-x: hidden;
}

p {
    margin-bottom: 1.8em;
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--color-gold);
    color: var(--color-navy);
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gold {
    color: var(--color-gold);
}

.text-gradient {
    color: var(--color-gold);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section.compact {
    padding: clamp(40px, 6vw, 80px) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.compact {
    margin-bottom: 32px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
    max-width: 600px;
    margin-top: 20px;
    line-height: 1.7;
}

.section-header.center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --- Navbar --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    border-radius: 8px;
    transition: all 0.3s var(--ease-smooth);
}

.nav-links a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-navy);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-outline:hover {
    background: rgba(232, 165, 56, 0.1);
    color: var(--color-gold);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
    transform: translate(3px, -3px);
}

/* --- Cards --- */

.card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
}

.card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(232, 165, 56, 0.2);
    transform: translateY(-4px);
}

.card.compact {
    padding: 28px;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.card p {
    color: var(--color-muted);
    line-height: 1.7;
}

/* --- Hero --- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(126, 180, 210, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 165, 56, 0.06) 0%, transparent 50%);
}

.hero-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-stars::before,
.hero-stars::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(2px 2px at 100px 150px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 400px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 200px 350px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 550px 250px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 700px 100px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 850px 300px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 50px 500px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 300px 450px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 600px 400px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 750px 550px, rgba(255,255,255,0.7), transparent);
    background-size: 1000px 700px;
    animation: twinkle 6s ease-in-out infinite alternate;
}

.hero-stars::after {
    animation-delay: -3s;
    opacity: 0.5;
    background-size: 800px 500px;
}

@keyframes twinkle {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    padding-top: var(--nav-height);
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 6rem);
    margin-bottom: 28px;
    color: var(--color-white);
}

.hero-title .line {
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-muted);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-dim);
    font-size: 0.85rem;
    z-index: 10;
}

.scroll-hint .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-dim);
    border-radius: 12px;
    position: relative;
}

.scroll-hint .wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0; top: 18px; }
}

.scroll-hint-chevrons { display: none; }

.chevron-icon {
    width: 28px;
    height: 28px;
    color: var(--color-dim);
    animation: chevron-bounce 2s ease-in-out infinite;
}

.chevron-icon:nth-child(2) {
    margin-top: -12px;
    animation-delay: 0.15s;
}

@keyframes chevron-bounce {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* --- Page Header --- */

.page-header {
    padding: calc(var(--nav-height) + 80px) 0 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.page-header.compact {
    padding: calc(var(--nav-height) + 50px) 0 40px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(126, 180, 210, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 70% 30%, rgba(232, 165, 56, 0.04) 0%, transparent 50%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-white);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 600px;
}

/* --- Grid --- */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- Stats --- */

.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- CTA Section --- */

.cta-section {
    text-align: center;
    padding: 100px 0;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(232, 165, 56, 0.08) 0%, transparent 70%);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* --- Footer --- */

.footer {
    padding: 60px 0 40px;
    background: var(--color-navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.95rem;
    color: var(--color-muted);
    padding: 6px 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-disclaimer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--color-dim);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-dim);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--color-muted);
    transition: all 0.3s var(--ease-smooth);
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* --- Animations --- */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utilities --- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* --- Sponsors --- */

.sponsors-grid {
    display: grid;
    gap: 20px;
}

.sponsors-diamond {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.sponsors-platinum {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.sponsors-gold {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.sponsors-silver {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.sponsors-bronze {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.sponsors-supporters {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}

.sponsor-logo {
    width: 100%;
    max-width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(232, 165, 56, 0.3);
    transform: translateY(-4px);
}

.sponsor-card h4 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.sponsor-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.sponsor-card.diamond {
    padding: 40px;
    background: linear-gradient(135deg, rgba(185, 242, 255, 0.03) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(185, 242, 255, 0.15);
}

.sponsor-card.diamond:hover {
    border-color: rgba(185, 242, 255, 0.4);
}

.sponsor-card.platinum {
    background: linear-gradient(135deg, rgba(229, 228, 226, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(229, 228, 226, 0.12);
}

.sponsor-card.platinum:hover {
    border-color: rgba(229, 228, 226, 0.35);
}

.sponsor-card.gold {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.sponsor-card.gold:hover {
    border-color: rgba(232, 165, 56, 0.4);
}

.sponsor-card.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(192, 192, 192, 0.12);
}

.sponsor-card.silver:hover {
    border-color: rgba(192, 192, 192, 0.35);
}

.sponsor-card.bronze {
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.sponsor-card.bronze:hover {
    border-color: rgba(205, 127, 50, 0.35);
}

.sponsor-card.bronze h4 {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.sponsor-card.supporter,
.sponsor-card.media {
    padding: 20px;
    text-align: center;
    justify-content: center;
}

.sponsor-card.supporter h4,
.sponsor-card.media h4 {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-muted);
}

.sponsor-card.supporter:hover h4,
.sponsor-card.media:hover h4 {
    color: var(--color-white);
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .hero-layout { flex-direction: column; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-tagline { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .scroll-hint { bottom: 20px; }
    .scroll-hint-mouse { display: none; }
    .scroll-hint-chevrons { display: flex; flex-direction: column; align-items: center; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-row { gap: 40px; flex-wrap: wrap; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 70px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-navy-deep);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        transition: right 0.4s var(--ease-out-expo);
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; padding: 16px 24px; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; gap: 32px; }
    .stat-value { font-size: 2.5rem; }

    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand { max-width: 100%; text-align: center; }
    .footer-col { text-align: center; }
    .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
    .footer-social { justify-self: center; }
    .footer-disclaimer { text-align: center; }

    .sponsors-diamond, .sponsors-platinum, .sponsors-gold, .sponsors-silver { grid-template-columns: 1fr; }
    .sponsors-bronze, .sponsors-supporters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; }
    .page-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .card { padding: 24px; }
}
