/* =============================================================================
   MilesOn Landing Page Styles (Compressed)
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-amber: #f59e0b;
    --primary-amber-dark: #d97706;
    --primary-amber-light: #fbbf24;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --success-green: #10b981;
    --gradient-amber: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-amber-hover: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #1e3a5f 0%, #152238 30%, #0f172a 60%, #0f172a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* =============================================================================
   Header
   ============================================================================= */

.header {
    padding: 1.5rem 2rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.main-logo {
    height: 70px;
    width: auto;
}

.header-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.header-badge span {
    color: var(--primary-amber);
    font-weight: 600;
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--primary-amber);
    margin-bottom: 1.25rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    background: var(--gradient-amber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =============================================================================
   Email Form
   ============================================================================= */

.email-form-container {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.email-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

.email-form input::placeholder {
    color: var(--text-muted);
}

.email-form button {
    background: var(--gradient-amber);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.email-form button:hover {
    background: var(--gradient-amber-hover);
    transform: translateY(-1px);
}

.email-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.form-note svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* =============================================================================
   Download Section
   ============================================================================= */

.download-section {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.download-section.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--success-green);
    font-weight: 500;
    margin-bottom: 1rem;
}

.download-success svg {
    width: 24px;
    height: 24px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-amber);
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.download-button:hover {
    background: var(--gradient-amber-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.download-button svg {
    width: 24px;
    height: 24px;
}

.download-info {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================================================
   Screenshots Section
   ============================================================================= */

.screenshots {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.screenshots-header {
    text-align: center;
    margin-bottom: 2rem;
}

.screenshots-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.screenshots-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.screenshot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    border-color: var(--primary-amber);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.screenshot-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.screenshot-placeholder span {
    font-size: 0.875rem;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshot-card img:hover {
    transform: scale(1.02);
}

.screenshot-caption {
    padding: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
}

/* =============================================================================
   Lightbox Modal
   ============================================================================= */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.lightbox-close:hover {
    background: var(--primary-amber);
    border-color: var(--primary-amber);
    color: #1e293b;
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-caption {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    font-size: 1rem;
    text-align: center;
}

/* =============================================================================
   Video Demo Section
   ============================================================================= */

.video-demo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.video-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 350px;
}

.video-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.video-highlights {
    list-style: none;
}

.video-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0;
    color: var(--text-secondary);
}

.video-highlights li svg {
    width: 20px;
    height: 20px;
    color: var(--success-green);
    flex-shrink: 0;
}

.video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================================================
   Features Grid
   ============================================================================= */

.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.features-header {
    text-align: center;
    margin-bottom: 2rem;
}

.features-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.features-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-amber);
    transform: translateY(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-amber);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* =============================================================================
   Apps Section
   ============================================================================= */

.apps-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-amber);
}

.app-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-card h3 span {
    font-size: 1.375rem;
}

.app-card .app-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.app-features {
    list-style: none;
}

.app-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.375rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.app-features li svg {
    width: 20px;
    height: 20px;
    color: var(--success-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* =============================================================================
   Pricing Section
   ============================================================================= */

.pricing {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem;
    text-align: center;
}

.pricing h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pricing-cards {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    min-width: 200px;
    flex: 1;
    max-width: 250px;
}

.pricing-card .price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-amber);
    margin-bottom: 0.25rem;
}

.pricing-card .price-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-divider::before,
.pricing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.bsv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    margin-top: 1.5rem;
    color: var(--primary-amber);
    font-size: 0.9375rem;
}

.bsv-badge svg {
    width: 20px;
    height: 20px;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-amber);
}

/* =============================================================================
   Utilities
   ============================================================================= */

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #1e293b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 900px) {
    .video-container {
        grid-template-columns: 1fr;
    }

    .video-content {
        padding: 1.5rem;
    }

    .video-player {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .hero {
        padding: 1.5rem 1rem 2.5rem;
    }

    .email-form {
        flex-direction: column;
    }

    .email-form button {
        width: 100%;
    }

    .screenshots-carousel {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 300px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}