/* style.css */
:root {
    --primary-blue: #0A2540;
    --primary-green: #20C997;
    --secondary-blue: #6366F1;
    --light-bg: #F8FAFC;
    --dark-bg: #0F172A;
    --text-main: #334155;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

ul { list-style: none; }

.text-white { color: var(--white) !important; }
.text-white p, .text-white h2 { color: var(--white); }
.text-green { color: var(--primary-green) !important; }
.text-blue { color: var(--secondary-blue) !important; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }

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

.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-green) 0%, #10B981 100%);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    padding: 1rem;
    border-radius: 2rem;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    display: block;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(32, 201, 151, 0.2);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.15);
    bottom: -200px;
    left: -100px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(32,201,151,0.1) 0%, rgba(32,201,151,0.2) 100%);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.about-card:hover .icon-box {
    background: var(--primary-green);
    color: var(--white);
}

/* Features */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.features-image {
    position: relative;
}

.features-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.floating-card {
    position: absolute;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    animation: float 4s ease-in-out infinite;
}

.floating-card.top-right {
    top: -20px;
    right: -20px;
}

.floating-card i {
    color: var(--primary-green);
    font-size: 1.25rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.feature-list p { margin-bottom: 0; }

/* How It Works */
.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    margin-top: 20px;
    opacity: 0.3;
}

/* Preferences */
.preferences {
    position: relative;
    overflow: hidden;
}

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

.pref-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.pref-card:hover {
    transform: translateY(-5px);
    border-color: rgba(32, 201, 151, 0.4);
}

.pref-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Safety */
.safety-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.safety-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.safety-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.safety-features i {
    font-size: 1.5rem;
    width: 30px;
}

.safety-visual {
    display: flex;
    justify-content: center;
}

.shield-graphic {
    position: relative;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(32,201,151,0.1), rgba(99,102,241,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-graphic i {
    font-size: 6rem;
    color: var(--primary-blue);
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Pricing */
.pricing-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

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

.metric i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    background: rgba(99,102,241,0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.result i {
    color: var(--white);
    background: var(--primary-green);
    box-shadow: 0 10px 20px rgba(32,201,151,0.3);
}

.metric span {
    font-weight: 600;
    color: var(--primary-blue);
}

.math-sign {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    border-top: 4px solid var(--primary-green);
}

.stars {
    color: #F59E0B;
    margin-bottom: 1.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
    padding-top: 1.5rem;
}

/* CTA */
.cta-box {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E3A8A 100%);
    color: var(--white);
    box-shadow: 0 20px 50px rgba(10,37,64,0.3);
}

.cta-box h2 {
    color: var(--white);
}

.cta-box p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.driver-link a {
    color: var(--primary-green);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-container h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: var(--primary-green);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-icons a:hover {
    background: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 0.8s all ease; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 0.8s all ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 0.8s all ease; }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container, .features-container, .safety-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons, .feature-list li {
        justify-content: center;
        text-align: left;
    }
    
    .hero-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .pricing-metrics {
        flex-direction: column;
    }
    
    .math-sign {
        transform: rotate(90deg);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
