/* Modern Industrial Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #2d3748; line-height: 1.6; background-color: #f7fafc; overflow-x: hidden; width: 100%; }

/* Layout Containers */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.text-center { text-align: center; }

/* Typography */
h1 { font-size: 3rem; color: #1a202c; margin-bottom: 20px; line-height: 1.1; }
h2 { font-size: 2.25rem; color: #1a202c; margin-bottom: 20px; }
h4 { color: #004a99; margin-bottom: 8px; }
p { font-size: 1.1rem; color: #4a5568; margin-bottom: 20px; }

/* Navigation */
.main-nav { background: white; border-bottom: 1px solid #e2e8f0; padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo {
    /* Increase size to match the presence of the login screen */
    font-size: 2rem; 
    font-weight: 800;
    color: #004a99;
    /* Relaxing the spacing slightly for better legibility at this scale */
    letter-spacing: -1px; 
    text-transform: lowercase;
    display: inline-block;
    line-height: 1; /* Ensures no extra vertical clipping */
}

.logo span {
    font-weight: 300;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: #4a5568; font-weight: 500; font-size: 0.9rem; }
.nav-auth { display: flex; gap: 20px; align-items: center; }

/* Grids */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.launch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; margin-top: 50px; }

/* Components */
.btn { display: inline-block; background: #004a99; color: white; padding: 10px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background 0.2s; }
.btn:hover { background: #003366; }
.btn-large { padding: 15px 40px; font-size: 1.1rem; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef3c7; color: #92400e; }

.app-screenshot { background: #ddd; border-radius: 8px; border: 4px solid #fff; box-shadow: 0 10px 15px rgba(0,0,0,0.1); width: 100%; }
.app-screenshot img { width: 100%; display: block; border-radius: 4px; }
.phone-mockup { max-width: 320px; margin: 0 auto; border-radius: 20px; border: 8px solid #1a202c; }
.full-width-img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; }

/* Pricing Section Styles */
.pricing-container { max-width: 900px; }
.pricing-card { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.pricing-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.display-wrapper { display: flex; justify-content: center; margin-bottom: 20px; }
#ticketDisplay { font-weight: 800; color: #004a99; font-size: 1.5rem; background: #ebf4ff; padding: 8px 20px; border-radius: 30px; border: 2px solid #bee3f8; min-width: 160px; text-align: center; }
input[type="range"] { width: 100%; height: 12px; border-radius: 6px; background: #e2e8f0; accent-color: #004a99; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: #718096; font-size: 0.85rem; font-weight: 600; margin-bottom: 30px; }
.total-box { text-align: center; background: #fdfdfd; padding: 25px; border-radius: 12px; border: 1px solid #edf2f7; }
.price-display { font-size: 3.5rem; font-weight: 800; color: #1a202c; display: flex; align-items: center; justify-content: center; }
.currency { font-size: 1.5rem; align-self: flex-start; margin-top: 8px; }

.schedule-side { background: #f8fafc; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; }
.rate-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; align-items: center; }
.fee-row { border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; font-weight: 500; }
.tier-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.unlimited-badge { margin-top: 25px; padding: 12px; border-radius: 6px; background: #f0fff4; color: #15803d; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; text-align: center; border: 1px solid #c6f6d5; }

/* Footer */
.main-footer { background: #f8fafc; padding: 80px 0; border-top: 1px solid #e2e8f0; color: #4a5568; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid ul { list-style: none; }
.footer-grid a { text-decoration: none; color: #718096; }
.footer-bottom { padding-top: 30px; border-top: 1px solid #e2e8f0; font-size: 0.8rem; text-align: center; }

/* --- MOBILE RESPONSIVE LOGIC --- */
@media screen and (max-width: 768px) {
    .grid, .launch-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .nav-flex { flex-direction: column; gap: 20px; }
    .nav-links { flex-direction: column; gap: 15px; }
    .nav-auth { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    
    .hero-grid { text-align: center; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Reverse order so images go below text on mobile for some sections */
    .driver-grid .driver-image { order: 2; }
    .driver-grid .driver-content { order: 1; }
    .office-grid .office-image { order: 2; }
    .office-grid .office-content { order: 1; }
}

/* The Grid Layout for the 3 steps */
.launch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

/* The "Nice Box" styling */
.step-card {
    padding: 30px;
    background: #f8fafc; /* Light grey/blue background */
    border-radius: 12px;
    border: 1px solid #e2e8f0; /* Subtle border */
    transition: transform 0.2s;
}

.step-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #004a99;
    margin-bottom: 12px;
}

/* Mobile Fix: Make the boxes stack on top of each other */
@media screen and (max-width: 768px) {
    .launch-grid {
        grid-template-columns: 1fr !important; /* 1 column on mobile */
    }
}

/* Specific fix for the Navigation Button */
.btn-nav {
    color: #ffffff !important; /* Force text to white */
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important; /* Centers text vertically */
}

/* Ensure the hover state stays visible */
.btn-nav:hover {
    background-color: #003366 !important;
    color: #ffffff !important;
}

/* Mobile Fix: Ensure it doesn't look weird when stacked */
@media screen and (max-width: 768px) {
    .btn-nav {
        width: 100%;
        margin-top: 10px;
    }
}

/* 1. THE STICKY HEADER */
.main-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    
    /* These three lines make it stay at the top */
    position: sticky;
    top: 0;
    z-index: 9999; 
}

/* 2. ALTERNATING BACKGROUNDS */
.section-white {
    background-color: #ffffff;
}

.section-alt {
    background-color: #f8fafc; /* This is the very light gray/blue */
}

/* 3. MOBILE OPTIMIZATION FOR STICKY HEADER */
@media screen and (max-width: 768px) {
    .main-nav {
        position: sticky; /* Keeps it sticky on mobile too */
        padding: 10px 0;
    }
    
    /* Ensure the mobile menu doesn't get cut off if it's too long */
    .nav-links {
        background: white;
    }
}

/* Pricing Schedule Box */
.schedule-side {
    background: #ffffff; /* Makes the box white */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* The 'Lighting Up' Logic */
.rate-row {
    color: #a0aec0; /* Dimmed out by default */
    transition: all 0.3s ease;
    padding: 8px 0;
    opacity: 0.5;
}

.rate-row.fee-row, .rate-row.active {
    color: #2d3748; /* Dark/Bold when active */
    opacity: 1;
    font-weight: 600;
}

.rate-row.active .bold {
    color: #004a99; /* Highlights the cost in blue when active */
}

/* 1. Ensure the grid container doesn't let the image push it around */
.hero-grid {
    align-items: center; /* Keeps text and image vertically centered */
    gap: 40px;           /* Gives some breathing room between text and image */
}

/* 2. Control the 'frame' around the screenshot */
.app-screenshot {
    width: 100%;
    max-width: 600px;    /* Prevents it from being too massive on desktop */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;    /* Keeps the image corners inside the rounded border */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* The 'premium' look */
    border: 1px solid #ddd;
}

/* 3. The 'Leash' for the actual image file */
.app-screenshot img {
    width: 100%;         /* Forces image to match the .app-screenshot width */
    height: auto;        /* Keeps the dashboard proportions perfect */
    display: block;      /* Fixes extra space at the bottom of the container */
}

.app-screenshot a {
    display: block;
    cursor: zoom-in; /* Changes cursor to a magnifying glass on most browsers */
    transition: transform 0.3s ease; /* Makes the movement smooth */
}

.app-screenshot a:hover {
    transform: scale(1.02); /* Very slight zoom effect on hover */
}

.app-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
