/* ============================================
   ASIAN ROVER CHALLENGE - PREMIUM STYLES
   ============================================ */

:root {
    /* Core Layout Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-bg-dark: #f8fafc;
    /* Replaces deep space with light slate */
    --color-bg-light: #ffffff;

    /* Typography */
    --color-text-dark: #0f172a;
    --color-text-slate-700: #334155;
    --color-text-slate-600: #475569;
    --color-text-slate-500: #64748b;

    /* Primary Accents (Mars theme: rust, burnt amber, deep red) */
    --color-neon-cyan: #c4650a;
    /* Burnt Amber */
    --color-neon-blue: #9a4d08;
    /* Deep Rust */
    --color-neon-purple: #b91c1c;
    /* Mars Red */
    --color-neon-orange: #ea580c;
    /* Burnt Orange */
    --color-hover-blue: #6f3606;
    /* Darker hover state */

    /* Secondary Accents */
    --color-cyan-dark: #6f3606;
    --color-blue-dark: #7a3005;
    --color-indigo-dark: #4a2304;
    --color-orange-dark: #c2410c;
    --color-red-dark: #7f1d1d;
    --color-purple-dark: #991b1b;

    /* Translucent Overlays (Mapped to Mars rust instead of blue/white) */
    --rgba-cyan-30: rgba(196, 101, 10, 0.3);
    --rgba-cyan-40: rgba(196, 101, 10, 0.4);
    --rgba-cyan-5: rgba(196, 101, 10, 0.05);
    --rgba-cyan-10: rgba(196, 101, 10, 0.1);
    --rgba-cyan-20: rgba(196, 101, 10, 0.2);
    --rgba-cyan-0: rgba(196, 101, 10, 0);

    /* Structural Translucency (Warm backgrounds -> Dark rust overlays for contrast) */
    --rgba-white-10: rgba(45, 20, 2, 0.05);
    --rgba-white-50: rgba(45, 20, 2, 0.15);
    --rgba-white-80: rgba(255, 255, 255, 0.9);
    --rgba-white-5: rgba(45, 20, 2, 0.03);
    --rgba-white-60: rgba(45, 20, 2, 0.6);
    --rgba-white-40: rgba(45, 20, 2, 0.4);
    --rgba-white-20: rgba(45, 20, 2, 0.1);
    --rgba-white-3: rgba(45, 20, 2, 0.02);
    --rgba-white-4: rgba(45, 20, 2, 0.04);
    --rgba-white-90: rgba(255, 255, 255, 0.95);
    --rgba-white-0: rgba(255, 255, 255, 0);

    --rgba-black-10: rgba(0, 0, 0, 0.1);
    --rgba-black-15: rgba(0, 0, 0, 0.15);
    --rgba-black-3: rgba(0, 0, 0, 0.03);
    --rgba-black-2: rgba(0, 0, 0, 0.02);

    /* Layout Backgrounds */
    --rgba-dark-80: rgba(255, 255, 255, 0.9);
    --rgba-dark-98: rgba(253, 243, 231, 0.98);
    --rgba-dark-85: rgba(255, 255, 255, 0.85);

    --rgba-slate-70: rgba(45, 20, 2, 0.7);
    --rgba-slate-5: rgba(45, 20, 2, 0.05);
    --rgba-slate-98: rgba(253, 243, 231, 0.98);

    --rgba-purple-20: rgba(185, 28, 28, 0.15);
    --rgba-purple-10: rgba(185, 28, 28, 0.08);

    --rgba-cyan-dark-0: rgba(111, 54, 6, 0);
    --rgba-blue-dark-0: rgba(122, 48, 5, 0);
    --rgba-orange-dark-0: rgba(194, 65, 12, 0);
    --rgba-auto-1: rgba(196, 101, 10, 0.03);
}

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

::selection {
    background: var(--rgba-cyan-30);
    color: var(--color-white);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-neon-cyan), var(--color-neon-blue));
    border-radius: 3px;
}

html {
    scroll-behavior: smooth;
   
}

body {
    cursor: default;
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #fdf3e7;
    background-image:
        radial-gradient(ellipse 90% 60% at 15% -10%, rgba(234, 88, 12, 0.16), transparent 60%),
        radial-gradient(ellipse 70% 50% at 95% 15%, rgba(196, 101, 10, 0.14), transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(185, 28, 28, 0.10), transparent 65%),
        linear-gradient(rgba(253, 243, 231, 0.88), rgba(253, 243, 231, 0.88)),
        url('assets/images/bg.jpeg');
    background-size: auto, auto, auto, cover, cover;
    background-position: 0 0, 0 0, 0 0, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed, fixed, fixed;
    color: #1c1917;
}

body.menu-open {
    overflow: hidden;
}

/* --- Text utility for true white text (e.g., on gradient CTAs) --- */
.text-purewhite {
    color: white;
}

.pureblack {
    background-color: rgb(0, 0, 0);
}

/* Navigation Text Contrast */
.nav-link,
.mobile-nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
    color: #ffffff;
}

#navbar {
    background: #150b04;
}

#navbar.scrolled {
    background: rgba(21, 11, 4, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay {
    background: rgba(253, 243, 231, 0.98);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--rgba-dark-98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 55;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}
/* --- Video Gallery: 3D Card Transition (adapted for 16:9 YouTube embeds) --- */
.carousel-viewport {
    perspective: 1400px;
    overflow: visible;
}

.video-item-3d {
    position: absolute;
    width: min(78vw, 900px);
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: #0f172a;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.7s ease, box-shadow 0.7s ease;
    will-change: transform, opacity;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.video-item-3d .ambient-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--rgba-cyan-30) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: -1;
    pointer-events: none;
}

.video-item-3d.prev {
    transform: translateX(-56%) scale(0.8) rotateY(12deg);
    opacity: 0.35;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.video-item-3d.active {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 30;
    pointer-events: auto;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 40px -5px var(--rgba-cyan-20);
}

.video-item-3d.active .ambient-glow {
    opacity: 1;
}

.video-item-3d.next {
    transform: translateX(56%) scale(0.8) rotateY(-12deg);
    opacity: 0.35;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.video-item-3d.hidden-card {
    opacity: 0;
    transform: translateX(0) scale(0.7);
    pointer-events: none;
    z-index: 0;
}
/* Video gallery sticky pin — explicit, build-independent */
.video-gallery-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 5rem;
    height: calc(100svh - 5rem); /* small viewport height — ignores toolbar overlap */
    height: calc(100dvh - 5rem); /* dynamic viewport height where supported (overrides above) */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (max-width: 768px) {
    .video-item-3d {
        width: 92vw;
    }
    .video-item-3d.prev,
    .video-item-3d.next {
        opacity: 0;
        pointer-events: none;
    }
}
/* --- Preloader --- */
#preloader {
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.ring-outer {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--color-neon-cyan);
    border-right-color: var(--color-neon-blue);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.ring-inner {
    position: absolute;
    inset: 10px;
    border: 2px solid transparent;
    border-bottom-color: var(--color-neon-purple);
    border-left-color: var(--color-neon-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    animation: loadPulse 1.5s ease-in-out infinite;
}

@keyframes loadPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* --- Grid Overlay --- */
.grid-overlay {
    background-image:
        linear-gradient(var(--rgba-slate-5) 1px, transparent 1px),
        linear-gradient(90deg, var(--rgba-slate-5) 1px, transparent 1px) !important;
    background-size: 60px 60px;
}

/* --- Navigation --- */
#navbar {
    z-index: 50;
}

#navbar.scrolled {
    background: rgba(21, 11, 4, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rgba-white-5);
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--rgba-white-90);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-neon-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.mobile-nav-link {
    color: var(--rgba-white-60);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    color: var(--color-neon-cyan);
    transform: translateX(10px);
}

/* --- Register Button --- */
.register-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: 1px solid var(--rgba-cyan-30);
    border-radius: 4px;
    color: var(--color-neon-cyan);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.register-btn:hover {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 20px var(--rgba-cyan-20);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--rgba-cyan-10), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.register-btn:hover .btn-glow {
    transform: translateX(100%);
}

/* --- CTA Buttons --- */
.primary-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-neon-cyan), var(--color-neon-blue), var(--color-neon-purple));
    z-index: 0;
    transition: opacity 0.3s ease;
}

.primary-cta:hover .cta-bg {
    opacity: 0.9;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--rgba-cyan-30);
}

.secondary-cta {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border: 1px solid var(--rgba-white-20);
    border-radius: 4px;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.secondary-cta:hover {
    border-color: var(--rgba-white-50);
    color: rgb(39, 64, 206);
    background: var(--rgba-white-5);
}

/* --- Hero Rover Visual (blended, no card chrome) --- */
/* --- Hero Rover Visual: full-bleed layer behind hero content, fading left-to-right across the whole screen --- */
.hero-rover-visual {
    overflow: hidden;
}

.hero-rover-visual .hero-rover-img {
    object-fit: cover;
    object-position: right center;
    opacity: 0.9;
    mask-image: linear-gradient(to right, transparent 0%, black 40%, black 80%, transparent 100%),
                 linear-gradient(to bottom, transparent 0%, black 20%, black 85%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%, black 80%, transparent 100%),
                         linear-gradient(to bottom, transparent 0%, black 20%, black 85%, transparent 100%);
    -webkit-mask-composite: source-in;
}

@media (max-width: 1024px) {
    .hero-rover-visual .hero-rover-img {
        object-position: center center;
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
        opacity: 0.35;
    }
}

/* --- Scroll Indicator --- */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
}

/* --- Stats --- */
.stat-item {
    position: relative;
    padding: 12px 0;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40%;
    background: var(--rgba-white-5);
}

.stat-item:last-child::after {
    display: none;
}

/* --- Mission Tags --- */
.mission-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--rgba-white-3);
    border: 1px solid var(--rgba-white-5);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--rgba-white-60);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Timeline --- */
.timeline-line {
    transform-origin: top;
}

.timeline-dot {
    transition: all 0.3s ease;
}

.timeline-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 20px currentColor;
}

/* --- About Features --- */
.about-feature {
    transition: all 0.3s ease;
}

.about-feature:hover {
    border-color: var(--rgba-white-10);
    background: var(--rgba-white-4);
    transform: translateY(-4px);
}

/* --- Sponsor Cards --- */
.sponsor-card {
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    border-color: var(--rgba-cyan-20);
    background: var(--rgba-auto-1);
    transform: translateY(-4px);
}

/* --- Social Links --- */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--rgba-white-5);
    color: var(--rgba-white-40);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--rgba-cyan-30);
    color: var(--color-neon-cyan);
    background: var(--rgba-cyan-5);
    transform: translateY(-2px);
}

/* --- Hamburger --- */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffffff;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span {
    background: var(--color-neon-cyan);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* --- Challenge Cards --- */
.challenge-card {
    transition: all 0.4s ease;
}

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

/* --- Register Card --- */
.register-card {
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-neon-cyan), var(--color-neon-blue), var(--color-neon-purple), transparent);
}

/* --- Venue Card --- */
.venue-card {
    transition: all 0.4s ease;
}

.venue-card:hover {
    border-color: var(--rgba-purple-20);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px var(--rgba-purple-10);
}

/* --- Animated Gradient Border --- */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Floating Animation --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Scan Line Effect --- */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rgba-cyan-30), transparent);
    animation: scanMove 4s linear infinite;
    pointer-events: none;
}

@keyframes scanMove {
    0% {
        top: -2px;
    }

    100% {
        top: 100%;
    }
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .stat-item::after {
        display: none;
    }

    .timeline-item .md\:text-right {
        text-align: left;
    }

    .hero-word-rotator {
        height: 24px;
    }

    .hero-word-rotator .font-mono {
        font-size: 11px;
    }

}

/* --- Text animation utilities --- */
.text-scramble {
    display: inline-block;
}

.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.word-slide-up {
    display: inline-block;
    overflow: hidden;
}

.word-slide-up span {
    display: inline-block;
}

/* Glitch text effect for section headers */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text.active::before {
    animation: glitch1 0.3s ease forwards;
    color: var(--color-neon-cyan);
    z-index: -1;
}

.glitch-text.active::after {
    animation: glitch2 0.3s ease forwards;
    color: var(--color-neon-purple);
    z-index: -2;
}

@keyframes glitch1 {
    0% {
        opacity: 0.8;
        transform: translate(-2px, -1px);
    }

    50% {
        opacity: 0.5;
        transform: translate(2px, 1px);
    }

    100% {
        opacity: 0;
        transform: translate(0);
    }
}

@keyframes glitch2 {
    0% {
        opacity: 0.8;
        transform: translate(2px, 1px);
    }

    50% {
        opacity: 0.5;
        transform: translate(-2px, -1px);
    }

    100% {
        opacity: 0;
        transform: translate(0);
    }
}

/* --- Noise texture overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Stepper Component --- */
.stepper-container {
    position: relative;
}

.stepper-track,
.stepper-progress {
    position: absolute;
    left: 47px;
    /* 24px (pl-6) + 24px (half of 48px dot) - 1px (half of 2px width) */
    top: 24px;
    /* start at the center of the first dot */
    width: 2px;
    border-radius: 1px;
}

.stepper-track {
    bottom: 24px;
    /* end at the center of the last dot */
    background: linear-gradient(to bottom, #dbeafe, #e0e7ff, #ede9fe);
}

.stepper-progress {
    background: linear-gradient(to bottom, #3b82f6, #6366f1, #8b5cf6);
    transition: height 0.7s ease;
    max-height: calc(100% - 48px);
    /* don't go past the last dot center */
}

.stepper-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stepper-step:last-child {
    margin-bottom: 0;
}

.stepper-step.stepper-active {
    opacity: 1;
    transform: translateY(0);
}

.stepper-dot {
    position: relative;
    z-index: 10;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stepper-step:hover .stepper-dot {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    transform: scale(1.08);
}

.stepper-step.stepper-active .stepper-dot {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.stepper-content {
    padding-top: 4px;
    min-height: 48px;
}

@media (min-width: 640px) {

    .stepper-track,
    .stepper-progress {
        left: 51px;
        /* 24px (pl-6) + 28px (half of 56px dot) - 1px */
        top: 28px;
    }

    .stepper-track {
        bottom: 28px;
    }

    .stepper-progress {
        max-height: calc(100% - 56px);
    }

    .stepper-dot {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .stepper-step {
        gap: 28px;
        margin-bottom: 48px;
    }

    .stepper-content {
        padding-top: 8px;
    }
}

/* ============================================
   CHALLENGES / TIMELINE / CTA — plain CSS
   (no Tailwind build dependency, uses existing
   root variables from the top of this file)
   ============================================ */
/* ============================================
   CHALLENGES / TIMELINE / CTA — plain CSS
   (no Tailwind build dependency, uses existing
   root variables from the top of this file)
  /* ============================================
   CHALLENGES / TIMELINE / CTA — plain CSS
   (no Tailwind build dependency, uses existing
   root variables from the top of this file)
   ============================================ */

.text-heading-dark   { color: var(--color-text-dark); }
.text-body-muted     { color: var(--color-text-slate-600); }

/* Badges */
.badge-purple {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; border-radius: 9999px;
    border: 1px solid rgba(109,40,217,0.25);
    background: rgba(109,40,217,0.06);
    color: var(--color-neon-purple);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; letter-spacing: 0.15em; font-weight: 600;
    width: max-content;
}
.badge-blue {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; border-radius: 9999px;
    border: 1px solid rgba(37,99,235,0.25);
    background: rgba(37,99,235,0.06);
    color: var(--color-neon-cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; letter-spacing: 0.15em; font-weight: 600;
    width: max-content;
}

/* Bullet list items — dot sits right against the text, no native marker gap */
.challenge-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--color-text-slate-700);
    line-height: 1.5;
}
.challenge-list-item::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}
.challenge-list-item.dot-purple::before { background: var(--color-neon-purple); }
.challenge-list-item.dot-blue::before   { background: var(--color-neon-cyan); }

/* Challenge card shell */
.challenge-card-inner {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(15,23,42,0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.challenge-card-inner:hover {
    box-shadow: 0 25px 55px -10px rgba(15,23,42,0.2);
    transform: translateY(-4px);
}

/* Section heading gradient — same orange-500 to red-500 gradient as the $1200 prize pool number */
.heading-gradient-structure {
    background: linear-gradient(90deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.underline-gradient-structure {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

/* Timeline recolor for light theme — top and bottom pulled in symmetrically so
   the line starts/ends at the first/last dot's center instead of overshooting
   past "Registration & Guidelines" at the top and "Grand Challenge" at the bottom */
.timeline-central-line {
    background: linear-gradient(to bottom, var(--color-neon-cyan), var(--color-neon-blue), var(--color-neon-purple));
    top: 20px;    /* fallback until JS measures the real dot positions */
    bottom: 20px;
}

.timeline-dot {
    top: 4px;     /* pin dot near the top of each phase block on mobile, regardless of text length */
}
@media (min-width: 768px) {
    .timeline-dot {
        top: auto;  /* restore flex vertical-centering, which already works correctly on desktop */
    }
}
.timeline-dot-shell {
    background: #ffffff;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid;
}
.timeline-dot-fill {
    width: 12px; height: 12px;
    border-radius: 50%;
}

/* Orange CTA — same structural pattern as .primary-cta, recolored */
.orange-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
}
.orange-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f97316, var(--color-neon-orange), var(--color-orange-dark));
    z-index: 0;
    transition: opacity 0.3s ease;
}
.orange-cta:hover .orange-cta-bg { opacity: 0.9; }
.orange-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(234,88,12,0.35); }
.orange-cta-label { position: relative; z-index: 10; display: flex; align-items: center; gap: 8px; }

/* ============================================================
   MARS THEME OVERRIDES (no Tailwind rebuild)
   Retint the compiled utility classes from dist/output.css.
   This file loads AFTER dist/output.css, so equal-specificity
   rules here win by source order.
   Palette:  amber #c4650a rgb(196 101 10)
             rust  #9a4d08 rgb(154 77 8)
             red   #b91c1c rgb(185 28 28)
             cream #fdf3e7 rgb(253 243 231)
   ============================================================ */

/* --- Fonts (display/body/mono utilities) --- */
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-body    { font-family: 'IBM Plex Sans', sans-serif; }
.font-mono    { font-family: 'IBM Plex Mono', monospace; }

/* --- Accent TEXT colors (neon-* -> Mars) --- */
.text-neon-cyan   { color: #c4650a; }
.text-neon-blue   { color: #9a4d08; }
.text-neon-purple { color: #b91c1c; }
.text-neon-cyan\/60 { color: rgb(196 101 10 / 0.6); }
.hover\:text-neon-cyan:hover { color: #c4650a; }
.group:hover .group-hover\:text-neon-cyan { color: #c4650a; }
.marker\:text-neon-cyan *::marker { color: #c4650a; }
.marker\:text-neon-cyan::marker  { color: #c4650a; }

/* --- Accent BACKGROUND colors --- */
.bg-neon-cyan       { background-color: #c4650a; }
.bg-neon-blue       { background-color: #9a4d08; }
.bg-neon-cyan\/5    { background-color: rgb(196 101 10 / 0.05); }
.bg-neon-cyan\/10   { background-color: rgb(196 101 10 / 0.1); }
.bg-neon-cyan\/15   { background-color: rgb(196 101 10 / 0.15); }
.bg-neon-cyan\/20   { background-color: rgb(196 101 10 / 0.2); }
.bg-neon-blue\/10   { background-color: rgb(154 77 8 / 0.1); }
.bg-neon-blue\/20   { background-color: rgb(154 77 8 / 0.2); }
.bg-neon-purple\/5  { background-color: rgb(185 28 28 / 0.05); }
.hover\:bg-neon-cyan:hover { background-color: #c4650a; }

/* --- Accent BORDER colors --- */
.border-neon-cyan      { border-color: #c4650a; }
.border-neon-blue      { border-color: #9a4d08; }
.border-neon-cyan\/20  { border-color: rgb(196 101 10 / 0.2); }
.border-neon-cyan\/30  { border-color: rgb(196 101 10 / 0.3); }
.border-neon-blue\/20  { border-color: rgb(154 77 8 / 0.2); }
.border-neon-purple\/20{ border-color: rgb(185 28 28 / 0.2); }
.hover\:border-neon-cyan:hover     { border-color: #c4650a; }
.hover\:border-neon-cyan\/70:hover { border-color: rgb(196 101 10 / 0.7); }

/* --- Gradient FROM stops --- */
.from-neon-cyan {
  --tw-gradient-from: #c4650a var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(196 101 10 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-neon-cyan\/20 {
  --tw-gradient-from: rgb(196 101 10 / 0.2) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(196 101 10 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-neon-cyan\/5 {
  --tw-gradient-from: rgb(196 101 10 / 0.05) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(196 101 10 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-neon-blue\/20 {
  --tw-gradient-from: rgb(154 77 8 / 0.2) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(154 77 8 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-neon-purple\/20 {
  --tw-gradient-from: rgb(185 28 28 / 0.2) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(185 28 28 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* --- Gradient VIA stops --- */
.via-neon-blue {
  --tw-gradient-to: rgb(154 77 8 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #9a4d08 var(--tw-gradient-via-position), var(--tw-gradient-to);
}

/* --- Gradient TO stops --- */
.to-neon-blue     { --tw-gradient-to: #9a4d08 var(--tw-gradient-to-position); }
.to-neon-purple   { --tw-gradient-to: #b91c1c var(--tw-gradient-to-position); }
.to-neon-blue\/5  { --tw-gradient-to: rgb(154 77 8 / 0.05) var(--tw-gradient-to-position); }
.to-neon-cyan\/5  { --tw-gradient-to: rgb(196 101 10 / 0.05) var(--tw-gradient-to-position); }
.to-neon-purple\/5{ --tw-gradient-to: rgb(185 28 28 / 0.05) var(--tw-gradient-to-position); }

/* --- Background layers (space-* white -> warm cream) --- */
.bg-space-950     { background-color: #fdf3e7; }
.bg-space-900\/50 { background-color: rgb(246 233 216 / 0.5); }
.from-space-950 {
  --tw-gradient-from: #fdf3e7 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(253 243 231 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-space-950\/40 {
  --tw-gradient-from: rgb(253 243 231 / 0.4) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(253 243 231 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-space-950     { --tw-gradient-to: #fdf3e7 var(--tw-gradient-to-position); }
.to-space-950\/50 { --tw-gradient-to: rgb(253 243 231 / 0.5) var(--tw-gradient-to-position); }

/* --- Nav / footer warm dark (bg-black used only on navbar + footer) --- */
.bg-black { background-color: #150b04; }
