/* ========================================
   Racing Game Studio - Design System
   ======================================== */

:root {
    --accent: #FD520E;
    --accent-hover: #e84a0a;
    --accent-glow: rgba(253, 82, 14, 0.4);
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-glass-border: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dark: #1a1a1a;
    --text-dark-secondary: #555555;
    --bg-light: #ffffff;
    --bg-light-alt: #f8f8f8;
    --border-light: #e5e5e5;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::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-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-text {
    color: var(--accent);
}

.logo-slash {
    color: var(--text-primary);
    opacity: 0.9;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: var(--accent);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 2px 16px var(--accent-glow);
}

.btn-header:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-slash {
    opacity: 0.7;
}

/* ========================================
   Hero Section
   ======================================== */

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            rgba(10, 10, 10, 0.95) 0%, 
            rgba(10, 10, 10, 0.7) 40%, 
            rgba(253, 82, 14, 0.15) 100%
        ),
        radial-gradient(circle at 80% 50%, rgba(253, 82, 14, 0.08) 0%, transparent 60%),
        var(--bg-dark);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(253, 82, 14, 0.06) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 5%) scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-hot {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.badge-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-title {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    max-width: 700px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description strong {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 1px;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

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

/* ========================================
   Features Section
   ======================================== */

.features {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 100px 0;
    position: relative;
}

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

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-tagline {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark-secondary);
    margin-bottom: 32px;
}

.features-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-dark);
    margin-bottom: 36px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.feature-item div {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark-secondary);
}

.feature-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 2px;
}

.btn-download {
    padding: 16px 32px;
}

.features-image {
    position: relative;
}

.features-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 0;
    animation: imageGlow 4s ease-in-out infinite alternate;
}

@keyframes imageGlow {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

.game-screenshot {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.speed-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(253, 82, 14, 0.3), transparent);
    animation: speedLine 2s linear infinite;
}

.speed-line:nth-child(1) { top: 20%; left: -100%; width: 60%; animation-delay: 0s; }
.speed-line:nth-child(2) { top: 50%; left: -100%; width: 80%; animation-delay: 0.7s; }
.speed-line:nth-child(3) { top: 75%; left: -100%; width: 50%; animation-delay: 1.4s; }

@keyframes speedLine {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200%)); }
}

.motorcycle-icon {
    font-size: 80px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    animation: bikeFloat 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes bikeFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.speed-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.15);
    margin-top: 20px;
    z-index: 1;
}

/* ========================================
   Rating Section
   ======================================== */

.rating {
    background: var(--bg-light-alt);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.rating-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star {
    font-size: 36px;
    color: #FFB800;
    filter: drop-shadow(0 2px 4px rgba(255, 184, 0, 0.3));
    animation: starPop 0.5s ease-out both;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.1s; }
.star:nth-child(3) { animation-delay: 0.2s; }
.star:nth-child(4) { animation-delay: 0.3s; }
.star:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPop {
    from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.rating-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark-secondary);
    letter-spacing: 0.5px;
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    background: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark-secondary);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-dark);
    padding: 60px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(253, 82, 14, 0.3), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-newsletter {
    text-align: center;
    margin-bottom: 48px;
}

.footer-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 15px;
    outline: none;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(253, 82, 14, 0.15);
}

.btn-subscribe {
    padding: 14px 24px;
}

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

.footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--accent);
}

/* ========================================
   Scroll Animations
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .features-image {
        order: -1;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 16px;
    }

    .badge-hot {
        align-self: flex-start;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
