/* ====================================
   Milebagger - Main Stylesheet
   ==================================== */

/* ====================================
   CSS Reset & Base Styles
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f1419;
    --tesla-red: #E82127;
    --gray-light: #c9d1d9;
    --gray-medium: #8b949e;
    --gray-dark: #21262d;
    --mountain-gradient: linear-gradient(135deg, #1a1f26 0%, #0f1419 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--gray-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================================
   Typography & Lists
   ==================================== */
ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.5rem;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ====================================
   Animated Road
   ==================================== */
.road {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100%;
    opacity: 0.1;
}

.road-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 60px;
    background: var(--gray-medium);
    margin-left: -2px;
    opacity: 0.4;
    animation: roadMove 2s linear infinite, roadSway 4s ease-in-out infinite;
}

.road-line:nth-child(1) { animation-delay: 0s, 0s; }
.road-line:nth-child(2) { animation-delay: 0.4s, 0.8s; }
.road-line:nth-child(3) { animation-delay: 0.8s, 1.6s; }
.road-line:nth-child(4) { animation-delay: 1.2s, 2.4s; }
.road-line:nth-child(5) { animation-delay: 1.6s, 3.2s; }

@keyframes roadMove {
    0% {
        bottom: 100%;
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        bottom: -60px;
        opacity: 0;
    }
}

@keyframes roadSway {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-15px);
    }
    75% {
        transform: translateX(15px);
    }
}

/* ====================================
   Mountain SVG
   ==================================== */
.mountain-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    z-index: 2;
}

.mountain-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(232, 33, 39, 0.3));
}

.summit-flag {
    animation: flagWave 3s ease-in-out infinite;
    transform-origin: bottom left;
}

@keyframes flagWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

.summit-glow {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ====================================
   Hero Content
   ==================================== */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.logo {
    width: clamp(120px, 20vw, 200px);
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(232, 33, 39, 0.3));
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--tesla-red);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(232, 33, 39, 0.5);
}

.tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.subheadline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-medium);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator::before {
    content: '↓';
    color: var(--tesla-red);
    font-size: 2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ====================================
   Progress Ring
   ==================================== */
.progress-ring-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-ring-container.visible {
    opacity: 1;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.3s;
    stroke: var(--tesla-red);
    stroke-linecap: round;
}

.progress-ring-bg {
    stroke: var(--gray-dark);
}

/* ====================================
   Benefits Section
   ==================================== */
.benefits {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 5rem;
    letter-spacing: 0.05em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.benefit-card {
    background: var(--gray-dark);
    border: 1px solid rgba(232, 33, 39, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 33, 39, 0.1), transparent);
    transition: left 0.5s;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    border-color: var(--tesla-red);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232, 33, 39, 0.2), rgba(232, 33, 39, 0.05));
    border-radius: 50%;
    font-size: 2.5rem;
}

.benefit-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--tesla-red);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.benefit-card p {
    color: var(--gray-medium);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ====================================
   Privacy Section
   ==================================== */
.privacy-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, rgba(232, 33, 39, 0.05) 0%, transparent 100%);
    position: relative;
}

.privacy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 33, 39, 0.3), transparent);
}

.privacy-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 33, 39, 0.3), transparent);
}

.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 33, 39, 0.1);
    border: 1px solid var(--tesla-red);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tesla-red);
}

.privacy-badge::before {
    content: '🔒';
    font-size: 1.2rem;
}

.privacy-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.privacy-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gray-medium);
    margin-bottom: 4rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.privacy-feature {
    background: var(--gray-dark);
    border: 1px solid rgba(232, 33, 39, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.privacy-feature:hover {
    border-color: var(--tesla-red);
    transform: translateY(-4px);
}

.privacy-feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.privacy-feature h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--gray-light);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.privacy-feature p {
    color: var(--gray-medium);
    line-height: 1.7;
    font-size: 1rem;
}

/* ====================================
   Analytics Section
   ==================================== */
.analytics-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.analytics-card {
    background: linear-gradient(135deg, var(--gray-dark) 0%, rgba(33, 38, 45, 0.5) 100%);
    border: 1px solid rgba(232, 33, 39, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.analytics-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(232, 33, 39, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.analytics-card:hover {
    border-color: var(--tesla-red);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.analytics-card:hover::after {
    width: 150px;
    height: 150px;
}

.analytics-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--tesla-red);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(232, 33, 39, 0.3);
}

.analytics-label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.analytics-description {
    color: var(--gray-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ====================================
   Screenshot Section
   ==================================== */
.screenshots {
    padding: 8rem 2rem;
    background: var(--mountain-gradient);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    position: relative;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 8px solid #2a2a2a;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f26 100%);
    border-radius: 32px;
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 0.9rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.phone-screen:has(.screenshot-image) {
    padding: 0;
    background: transparent;
}

.screenshot-placeholder {
    padding: 3rem 1.5rem;
}

.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.screenshot-placeholder::before {
    content: '📱';
    font-size: 3rem;
    opacity: 0.5;
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--tesla-red);
    width: 24px;
    border-radius: 4px;
}

/* ====================================
   CTA Section
   ==================================== */
.cta-section {
    padding: 10rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tesla-red), transparent);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.cta-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-medium);
    max-width: 700px;
    margin: 0 auto 1rem;
    font-weight: 400;
    line-height: 1.8;
}

.cta-highlight {
    color: var(--tesla-red);
    font-weight: 600;
}

.app-store-badge {
    display: inline-block;
    margin: 2rem 0;
    transition: transform 0.3s;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 60px;
    width: auto;
}

.badge-placeholder {
    background: #000;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--tesla-red);
}

.badge-placeholder:hover {
    background: var(--tesla-red);
    transform: scale(1.05);
}

.badge-placeholder::before {
    content: '';
    font-size: 1.8rem;
}

.android-note {
    color: var(--gray-medium);
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* ====================================
   Footer
   ==================================== */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--gray-dark);
    color: var(--gray-medium);
    font-size: 0.95rem;
}

footer a {
    color: var(--tesla-red);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--gray-light);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-divider {
    color: var(--gray-dark);
}

/* ====================================
   Cookie Banner
   ==================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mountain-gradient);
    border-top: 1px solid var(--gray-dark);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    color: var(--gray-light);
    font-size: 0.9rem;
    flex: 1;
}

.cookie-banner button {
    background: var(--tesla-red);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.cookie-banner button:hover {
    background: #c61a1f;
}

/* ====================================
   Animations
   ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-in-delay-1 { animation-delay: 0.2s; }
.animate-in-delay-2 { animation-delay: 0.4s; }
.animate-in-delay-3 { animation-delay: 0.6s; }

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .progress-ring-container {
        width: 60px;
        height: 60px;
        top: 1rem;
        right: 1rem;
    }

    .screenshot-card {
        flex: 0 0 250px;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-divider {
        display: none;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-banner {
        padding: 1rem;
    }
}
