/* Motrix Landing Page - Brand Guidelines v2.0 */
/* Dark Mode First | Mission Control Aesthetic */

/* ================================
   CSS Custom Properties (Brand Colors)
   ================================ */
:root {
    /* Core Colors */
    --midnight-navy: #0B1020;
    --deep-black: #05070D;
    --electric-blue: #2563EB;
    --cyan-accent: #22D3EE;
    --neon-teal: #14F1D9;

    /* Neutral System */
    --charcoal: #111827;
    --slate: #1F2933;
    --steel-gray: #4B5563;
    --silver: #9CA3AF;
    --cloud: #E5E7EB;
    --cloud-white: #F9FAFB;

    /* Status Colors */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-headline: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 120px;
    --header-height: 72px;

    /* Effects */
    --glow-blue: 0 0 20px rgba(37, 99, 235, 0.3);
    --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.3);
}

/* ================================
   Reset & Base Styles
   ================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--deep-black);
    color: var(--cloud-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid Background Pattern */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cloud-white);
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 24px;
    font-family: var(--font-body);
    font-weight: 600;
}

p {
    color: var(--silver);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cyan-accent);
}

.overline {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan-accent);
    margin-bottom: 16px;
}

/* ================================
   Header
   ================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--silver);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--cloud-white);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cloud-white);
    transition: all 0.3s ease;
}

/* ================================
   Buttons
   ================================ */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--electric-blue);
    color: var(--cloud-white);
}

.btn-primary:hover {
    background: #3B82F6;
    box-shadow: var(--glow-blue);
    transform: translateY(-1px);
    color: var(--cloud-white);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 1px solid var(--electric-blue);
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--cloud-white);
}

.btn-ghost {
    background: transparent;
    color: var(--silver);
    border: 1px solid var(--steel-gray);
}

.btn-ghost:hover {
    color: var(--cloud-white);
    border-color: var(--silver);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    padding: calc(var(--header-height) + 80px) 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15), transparent);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan-accent);
    margin-bottom: 32px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--silver);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.hero-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 600;
    color: var(--cloud-white);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--steel-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================
   Capabilities Section
   ================================ */
.capabilities {
    padding: var(--section-padding) 0;
    background: var(--midnight-navy);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--silver);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.capability-card {
    padding: 32px;
    background: var(--charcoal);
    border: 1px solid var(--slate);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.capability-card:hover {
    border-color: var(--electric-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.capability-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--cyan-accent);
}

.capability-card h3 {
    margin-bottom: 12px;
    color: var(--cloud-white);
}

.capability-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* ================================
   Platform Section
   ================================ */
.platform {
    padding: var(--section-padding) 0;
    background: var(--deep-black);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.platform-text h2 {
    margin-bottom: 24px;
}

.platform-text > p {
    font-size: 18px;
    margin-bottom: 40px;
}

.platform-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.platform-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--silver);
    font-size: 15px;
}

.platform-feature svg {
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

/* Comparison Table */
.comparison-table {
    background: var(--charcoal);
    border: 1px solid var(--slate);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0;
    padding: 16px 20px;
    background: var(--slate);
    border-bottom: 1px solid var(--steel-gray);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    font-size: 14px;
    color: var(--cloud);
    transition: background 0.2s ease;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: rgba(37, 99, 235, 0.05);
}

.comparison-label {
    font-weight: 500;
}

.comparison-col {
    text-align: center;
}

.comparison-col.highlight {
    color: var(--electric-blue);
    font-weight: 600;
}

.compare-yes {
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

.compare-no {
    color: var(--steel-gray);
    font-size: 18px;
    opacity: 0.6;
}

.compare-partial {
    color: var(--warning);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
        padding: 12px 14px;
        font-size: 12px;
    }

    .comparison-header {
        font-size: 11px;
    }
}

/* ================================
   About Section
   ================================ */
.about {
    padding: var(--section-padding) 0;
    background: var(--midnight-navy);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text blockquote {
    margin-top: 40px;
    padding-left: 24px;
    border-left: 3px solid var(--electric-blue);
    font-size: 20px;
    font-style: italic;
    color: var(--cloud-white);
}

.about-metrics {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.metric-card {
    padding: 24px;
    background: var(--charcoal);
    border: 1px solid var(--slate);
    border-radius: 8px;
    text-align: center;
}

.metric-value {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 700;
    color: var(--cloud-white);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 13px;
    color: var(--steel-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--deep-black) 0%, var(--midnight-navy) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 18px;
    margin-bottom: 48px;
}

.access-form {
    margin-bottom: 24px;
}

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

.form-row input {
    flex: 1;
    padding: 14px 18px;
    background: var(--charcoal);
    border: 1px solid var(--slate);
    border-radius: 6px;
    color: var(--cloud-white);
    font-size: 15px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}

.form-row input::placeholder {
    color: var(--steel-gray);
}

.form-row input:focus {
    outline: none;
    border-color: var(--electric-blue);
}

.form-note {
    font-size: 14px;
    color: var(--steel-gray);
    margin-bottom: 40px;
}

.form-note a {
    color: var(--silver);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.form-note a:hover {
    color: var(--electric-blue);
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--silver);
}

.badge svg {
    color: var(--success);
}

/* ================================
   Footer
   ================================ */
footer {
    padding: 80px 0 40px;
    background: var(--deep-black);
    border-top: 1px solid var(--slate);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 28px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--steel-gray);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--silver);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--steel-gray);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--cloud-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--slate);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--steel-gray);
}

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

.footer-legal a {
    font-size: 13px;
    color: var(--steel-gray);
}

.footer-legal a:hover {
    color: var(--cloud-white);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-metrics {
        flex-direction: row;
    }

    .metric-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--header-height) + 40px);
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .banner-text {
        flex-direction: column;
        gap: 6px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox {
        padding: 20px;
    }

    .about-metrics {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .form-row button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .cta-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        font-size: 12px;
    }
}

/* ================================
   Mobile App Banner
   ================================ */
.mobile-app-banner {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(34, 211, 238, 0.08) 100%);
    border-top: 1px solid rgba(37, 99, 235, 0.2);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    padding: 16px 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.banner-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 8px;
    color: var(--cyan-accent);
    flex-shrink: 0;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-black);
    background: var(--cyan-accent);
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.banner-text p {
    font-size: 14px;
    color: var(--silver);
    margin: 0;
}

/* ================================
   Screenshots Section
   ================================ */
.screenshots-section {
    padding: var(--section-padding) 0;
    background: var(--deep-black);
}

.screenshot-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--slate);
    border-radius: 100px;
    color: var(--silver);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--electric-blue);
    color: var(--cloud-white);
}

.filter-btn.active {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    color: var(--cloud-white);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.screenshot-item {
    background: var(--charcoal);
    border: 1px solid var(--slate);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    border-color: var(--electric-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.screenshot-item.hidden {
    display: none;
}

.screenshot-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--midnight-navy);
}

.screenshot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-wrapper img {
    transform: scale(1.03);
}

.screenshot-caption {
    padding: 16px 20px;
}

.screenshot-caption h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--cloud-white);
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.screenshot-caption p {
    font-size: 13px;
    color: var(--steel-gray);
    line-height: 1.5;
    margin: 0;
}

/* ================================
   Lightbox
   ================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 13, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--cloud-white);
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 10001;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--cyan-accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 41, 51, 0.8);
    border: 1px solid var(--slate);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cloud-white);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--slate);
}

.lightbox-caption {
    margin-top: 16px;
    font-size: 15px;
    color: var(--silver);
    text-align: center;
}

/* ================================
   Utility Classes
   ================================ */
.text-center { text-align: center; }
.text-cyan { color: var(--cyan-accent); }
.text-blue { color: var(--electric-blue); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* Selection */
::selection {
    background: var(--electric-blue);
    color: var(--cloud-white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steel-gray);
}
