/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --midnight-blue: #0A0F1C;
    --deep-space: #050810;
    --electric-blue: #2563EB;
    --neon-cyan: #00F0FF;
    --soft-gray: #E0E6ED;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--electric-blue), var(--neon-cyan));
    --gradient-glow: linear-gradient(180deg, rgba(0, 240, 255, 0.1), transparent);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

[data-theme="light"] {
    --midnight-blue: #ffffff;
    --deep-space: #f3f4f6;
    --soft-gray: #1f2937;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --image-overlay: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight-blue);
    color: var(--soft-gray);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.neon-glow {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--midnight-blue);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 240, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background 0.3s ease, top 0.3s ease, padding 0.3s ease;
}

/* Mobile Navbar Logic: Hidden initially, shown on scroll */
@media (max-width: 768px) {
    .navbar {
        top: -100px;
        /* Hidden via negative top margin equivalent */
        padding: 1rem 0;
    }

    .navbar.scrolled {
        top: 0;
        /* Visible when scrolled */
    }
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--neon-cyan);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('assets/hero-new.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 8, 16, 0.95) 0%, rgba(5, 8, 16, 0.70) 50%, rgba(5, 8, 16, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 10;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid var(--electric-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Ensure text stays white in always-dark sections */
.driver-section .section-title,
.driver-section .section-desc {
    color: #fff;
    opacity: 1;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #cbd5e0;
    margin-bottom: 3rem;
    max-width: 90%;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Responsive Styles for Hero */
@media (max-width: 1024px) {
    .hero-bg {
        background-position: center left;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    /* Driver Section Tablet */
    .driver-split-container {
        gap: 3rem;
    }

    .driver-visual {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(5, 8, 16, 0.8) 0%, rgba(5, 8, 16, 0.8) 100%);
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-tags {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Features */
.features {
    padding: var(--spacing-xl) 0;
    background: url('assets/bg-pattern.png') repeat;
    background-size: 40%;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--midnight-blue) 0%, transparent 50%, var(--midnight-blue) 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}


.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--soft-gray);
}

.section-desc {
    font-size: 1.2rem;
    color: var(--soft-gray);
    opacity: 0.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
}

.feature-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Since icons are in a sprite/set or individual? The generated image is a set. I'll need to use CSS to crop/display or mostly just show the concept. 
       Wait, the user prompted "Feature Icons & Graphics" and I got one image 'feature_icons_set.png'.
       For this demo, to be robust without cropping tools, I will set the icon as background image and use object-position, 
       OR just display the whole set as a visual element and list text below. 
       A better approach for the 'code' part without cropping capabilities is to use SVG icons or just placeholders.
       However, I have the image assets/icons.png. I'll display the whole image in the 'Features' section as a visual anchor 
       and use FontAwesome or SVG for the individual cards to ensure it looks clean.
       Actually, I will just disable the icon-specific card display and make a graphic section for the icons.
    */
}

/* App Showcase */
.showcase {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.showcase-list {
    margin: 2rem 0;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.check-icon {
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

.showcase-image {
    position: relative;
}

.app-screen {
    width: 100%;
    max-width: 400px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* border: 8px solid #1a1f2e; Removed as per request */
}

.floating-card {
    position: absolute;
    bottom: 50px;
    left: -50px;
    padding: 1.5rem;
    width: 250px;
}

/* Driver Section Split Layout */
/* Driver Section Centered Pattern Layout */
.driver-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    background: radial-gradient(circle at center, #0a0f1c 0%, #050810 100%), url('assets/bg-pattern.png');
    background-blend-mode: overlay;
}

.driver-pattern-container {
    position: relative;
    z-index: 2;
}

.driver-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    padding: 3rem 2rem;
}

.driver-card:hover {
    transform: translateY(-10px);
    border-color: var(--electric-blue);
    background: rgba(37, 99, 235, 0.05);
}

.driver-split-container,
.driver-visual,
.driver-text,
.driver-feature-list,
.driver-feature,
.driver-content {
    /* Deprecated styles kept for safety or simply removed */
    display: none;
}

/* Testimonials */
.testimonials {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.testimonial-wrapper {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--neon-glow);
}

/* Download */
.download {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.download-visual {
    margin-top: 3rem;
    max-width: 600px;
    /* Reduced from 800px */
    margin-left: auto;
    margin-right: auto;
}

.download-visual img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    /* Optional: adds rounded corners if the image doesn't have them built-in */
}


/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: #050810;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}

.footer-desc {
    color: #a0aec0;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a0aec0;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: #718096;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .showcase-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .showcase-item {
        justify-content: center;
    }

    .showcase-image {
        order: -1;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }

    /* Mobile Text Logic */
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
        width: 80%;
    }
}

/* Base states for text logic */
.mobile-text {
    display: none;
}

/* Theme Toggle Filled Style */
#theme-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--glass-border) !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for MVP */
    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .driver-content {
        padding: 2rem;
    }
}