:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #00ff41;
    --accent-dim: rgba(0, 255, 65, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --easing: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* SVG Title Styles */
.hero-title-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    cursor: default;
}

.display-text-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.display-text-svg text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 130px;
    fill: transparent;
    letter-spacing: -5px;
}

.text-base {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2px;
}

.text-anim {
    stroke: var(--accent-color);
    stroke-width: 2px;
    stroke-dasharray: 3000;
    /* Large enough to cover the text path */
    stroke-dashoffset: 3000;
    /* Start fully hidden */
    opacity: 0.5;
}

.hero-title-container:hover .text-anim {
    animation: drawStroke 3s ease-in-out forwards;
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--accent-color));
}

@media (max-width: 768px) {
    .text-anim {
        animation: drawStroke 3s ease-in-out forwards;
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--accent-color));
        animation-delay: 0.5s;
        /* Slight delay on load */
    }
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    color: #fff;
}

.highlight {
    color: var(--accent-color);
}

/* Layout */
.wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 10vh 0;
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.countdown-container {
    display: flex;
    gap: 2rem;
    margin: 4rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    transition: all 0.5s var(--easing);
}

.feature-card:hover {
    background: var(--accent-dim);
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Strava Section */
.strava-section {
    background: linear-gradient(45deg, #0a0a0a, #111);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.strava-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.strava-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.strava-pill:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Utilities */
.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
}

/* Background Elements */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: translateY(-100%);
    animation: scrollDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

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

/* Scrollytelling Sections */
.pin-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.pin-wrap {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pin-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.pin-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    pointer-events: none;
    /* Let clicks pass through to visual if needed */
}

.story-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    position: absolute;
    /* Stack them */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(50px);
    /* Start slightly down */
    width: 100%;
    max-width: 500px;
    opacity: 0;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.story-card:last-child {
    margin-bottom: 0;
}

.story-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Map Visuals */
/* Map Visuals */
.map-visual {
    width: 100%;
    height: 100%;
    position: absolute;
    background:
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) scale(2);
    opacity: 0.6;
    mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulseMap 4s infinite ease-in-out;
    mix-blend-mode: screen;
}

@keyframes pulseMap {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
}

/* Core Visuals */
/* Core Visuals */
.core-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-color);
}

.core-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

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