/**
 * SAR-OS Landing Page Styles
 * Brand: Signal Blue #2E86DE, Rescue Orange #E67E22
 * Background: Deep Navy #0D1B2A
 */

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

html { scroll-behavior: smooth; }

body {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0D1B2A;
    color: #E8ECF1;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.landing-nav.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(46, 134, 222, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #E8ECF1;
}

/* Scientific Foundations highlight — Rescue Orange, 6.1:1 on navy */
.nav-links a.nav-sci {
    color: #E67E22;
    font-weight: 600;
}

.nav-links a.nav-sci:hover {
    color: #F5A65B;
}

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

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

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #E8ECF1;
    border-radius: 2px;
    transition: transform 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #2E86DE;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #2570C0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 134, 222, 0.4);
}

.btn-outline {
    background: transparent;
    color: #E8ECF1;
    border: 1.5px solid rgba(232, 236, 241, 0.3);
}

.btn-outline:hover {
    border-color: #2E86DE;
    color: #2E86DE;
}

.btn-ghost {
    background: transparent;
    color: #E8ECF1;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(46, 134, 222, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(230, 126, 34, 0.04) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2E86DE;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 22px;
    font-weight: 500;
    color: #E67E22;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-description {
    font-size: 17px;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Screenshots — dual images side-by-side */
.hero-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 24px;
}

.hero-screenshot {
    position: relative;
    text-align: center;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(46, 134, 222, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(46, 134, 222, 0.1);
}

.hero-img-label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   PRODUCT SCREENSHOTS
   ============================================ */

.product-screenshot {
    margin-bottom: 20px;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #344B60;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.screenshot-img--card {
    max-width: 420px;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.stat-grid--compact {
    gap: 12px;
}

.stat-grid--compact .stat-card {
    padding: 16px 12px;
}

.stat-grid--compact .stat-value {
    font-size: 22px;
}

/* Search Card Showcase */
.search-card-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(46, 134, 222, 0.12);
}

.showcase-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
}

.showcase-text p {
    font-size: 16px;
    color: #94A3B8;
    line-height: 1.7;
}

.showcase-image {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-screenshots {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .search-card-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .showcase-image {
        order: -1;
    }

    .screenshot-img--card {
        max-width: 100%;
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 17px;
    color: #94A3B8;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   CAPABILITIES GRID
   ============================================ */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.capability-card {
    background: #1E293B;
    border: 1px solid #344B60;
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.2s, transform 0.2s;
}

.capability-card:hover {
    border-color: #2E86DE;
    transform: translateY(-2px);
}

.capability-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: #2E86DE;
}

.capability-icon svg {
    width: 100%;
    height: 100%;
}

.capability-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.capability-card p {
    font-size: 16px;
    color: #94A3B8;
    line-height: 1.6;
}

/* Capability highlight variant (CalTopo) */
.capability-card--highlight {
    border-color: #E67E22;
    background: linear-gradient(135deg, #1E293B 0%, rgba(230, 126, 34, 0.06) 100%);
}

.capability-card--highlight:hover {
    border-color: #F39C12;
}

.capability-icon--orange {
    color: #E67E22;
}

/* ============================================
   CALTOPO SECTION
   ============================================ */

.caltopo {
    background: #0D1B2A;
}

.caltopo-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.caltopo-card {
    background: #1E293B;
    border: 1px solid #344B60;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.caltopo-card:hover {
    border-color: #E67E22;
    transform: translateY(-2px);
}

.caltopo-img-wrap {
    position: relative;
    overflow: hidden;
}

.caltopo-img-wrap .screenshot-img {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.caltopo-card-text {
    padding: 24px;
}

.caltopo-card-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.caltopo-card-text p {
    font-size: 16px;
    color: #94A3B8;
    line-height: 1.6;
}

.caltopo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid rgba(230, 126, 34, 0.15);
}

.caltopo-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: rgba(230, 126, 34, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(230, 126, 34, 0.12);
}

.caltopo-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #E67E22;
}

.caltopo-feature-icon svg {
    width: 100%;
    height: 100%;
}

.caltopo-feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #E8ECF1;
}

.caltopo-feature p {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .caltopo-showcase {
        grid-template-columns: 1fr;
    }

    .caltopo-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DIFFERENTIATOR CALLOUTS
   ============================================ */

.differentiators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(46, 134, 222, 0.12);
}

.differentiators--three {
    grid-template-columns: repeat(3, 1fr);
}

.diff-card {
    padding: 28px 28px 28px 24px;
    border-left: 3px solid #2E86DE;
    background: rgba(46, 134, 222, 0.04);
    border-radius: 0 10px 10px 0;
}

.diff-card--evidence {
    border-left-color: #E67E22;
    background: rgba(230, 126, 34, 0.04);
}

.diff-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2E86DE;
    margin-bottom: 10px;
}

.diff-card--evidence .diff-label {
    color: #E67E22;
}

.diff-card p {
    font-size: 16px;
    color: #CBD5E1;
    line-height: 1.65;
}

.diff-stat {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(230, 126, 34, 0.08);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 8px;
}

.diff-stat-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #E67E22;
    margin-bottom: 2px;
}

.diff-stat-detail {
    font-size: 13px;
    color: #94A3B8;
}

@media (max-width: 768px) {
    .differentiators,
    .differentiators--three {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SCIENCE SECTION
   ============================================ */

.science {
    background: #1E293B;
}

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

.science-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.science-text p {
    color: #94A3B8;
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #CBD5E1;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2E86DE;
}

/* Monte Carlo Steps */
.monte-carlo-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mc-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #0D1B2A;
    border-radius: 10px;
    border: 1px solid #344B60;
}

.mc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(46, 134, 222, 0.15);
    color: #2E86DE;
    font-weight: 700;
    font-size: 16px;
}

.mc-step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mc-step p {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.5;
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.two-col.reverse .col-visual {
    order: -1;
}

.col-text .lead {
    font-size: 17px;
    color: #94A3B8;
    margin-bottom: 24px;
    line-height: 1.7;
}

.col-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Stats Grid */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: #1E293B;
    border: 1px solid #344B60;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2E86DE;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   PLATFORM SECTION
   ============================================ */

.platform {
    background: #1E293B;
}

.platform-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.platform-card {
    background: #0D1B2A;
    border: 1px solid #344B60;
    border-radius: 12px;
    padding: 32px;
}

.platform-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.platform-card p {
    font-size: 16px;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.platform-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-steps span {
    padding: 4px 10px;
    background: rgba(46, 134, 222, 0.1);
    border: 1px solid rgba(46, 134, 222, 0.25);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #2E86DE;
}

/* ============================================
   SECURITY SECTION
   ============================================ */

.security-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sec-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    background: #1E293B;
    border: 1px solid #344B60;
    border-radius: 10px;
    text-align: center;
}

.sec-icon-svg {
    width: 36px;
    height: 36px;
    color: #2E86DE;
}

.sec-badge span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: #CBD5E1;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 80px 0 100px;
}

.cta-card {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, rgba(46, 134, 222, 0.08) 0%, rgba(230, 126, 34, 0.05) 100%);
    border: 1px solid rgba(46, 134, 222, 0.2);
    border-radius: 16px;
}

.cta-card h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 16px;
    color: #94A3B8;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.landing-footer {
    border-top: 1px solid #1E293B;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 24px;
    width: auto;
}

.footer-brand p {
    font-size: 14px;
    color: #64748B;
}

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

.footer-links a {
    color: #64748B;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #E8ECF1;
}

.footer-meta {
    font-size: 12px;
    color: #475569;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-mobile-toggle { display: flex; }

    .landing-nav.nav-open .nav-links,
    .landing-nav.nav-open .nav-cta {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 27, 42, 0.98);
        padding: 24px;
        border-bottom: 1px solid #344B60;
    }

    .landing-nav.nav-open .nav-links {
        gap: 16px;
    }

    .science-content,
    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .two-col.reverse .col-visual {
        order: 0;
    }

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

    .hero {
        min-height: auto;
        padding: 140px 24px 80px;
    }

    .section {
        padding: 64px 0;
    }

    .cta-card {
        padding: 40px 24px;
    }

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

/* ============================================
   THREE-DOMAIN HERO (v20260719)
   ============================================ */

.hero-screenshots--three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

/* ============================================
   BADGES
   ============================================ */

.badge-new,
.badge-pilot {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.badge-new {
    background: #E67E22;
    color: #FFFFFF;
}

.badge-pilot {
    background: transparent;
    color: #E67E22;
    border: 1px solid rgba(230, 126, 34, 0.5);
}

/* ============================================
   DOMAIN OVERVIEW STRIP
   ============================================ */

.domains-grid {
    grid-template-columns: repeat(3, 1fr);
}

.domain-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.domain-card p {
    flex: 1;
}

.domain-card--aero {
    border-color: rgba(230, 126, 34, 0.5);
    background: linear-gradient(135deg, #1E293B 0%, rgba(230, 126, 34, 0.06) 100%);
}

.domain-card--aero:hover {
    border-color: #E67E22;
}

.domain-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #2E86DE;
}

.domain-card--aero .domain-link {
    color: #E67E22;
}

/* ============================================
   VALIDATION STRIP
   ============================================ */

.validation {
    background: #1E293B;
}

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

.validation-card {
    border-radius: 10px;
}

.validation-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #E8ECF1;
}

.validation-card .feature-list li {
    font-size: 16px;
}

.validation-card .feature-list li::before {
    background: #E67E22;
}

.validation-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.validation-stats .stat-card {
    background: #0D1B2A;
    padding: 18px 12px;
}

.quote-card {
    margin: 0 0 18px;
    padding: 16px 18px;
    background: rgba(46, 134, 222, 0.06);
    border: 1px solid rgba(46, 134, 222, 0.15);
    border-radius: 8px;
}

.quote-card:last-child {
    margin-bottom: 0;
}

.quote-card p {
    font-size: 16px;
    font-style: italic;
    color: #E8ECF1;
    line-height: 1.6;
    margin-bottom: 8px;
}

.quote-card cite {
    display: block;
    font-size: 12px;
    font-style: normal;
    color: #94A3B8;
}

/* ============================================
   AERO DOMAIN SECTION
   ============================================ */

.aero-domain .col-visual .diff-card {
    margin-top: 20px;
}

.aero-domain h2 .badge-pilot {
    margin-left: 6px;
}

.honesty-note {
    margin-top: 48px;
    padding: 18px 22px;
    border-left: 3px solid rgba(230, 126, 34, 0.5);
    background: rgba(230, 126, 34, 0.04);
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    font-style: italic;
    color: #94A3B8;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .hero-screenshots--three {
        grid-template-columns: 1fr;
    }

    .domains-grid,
    .validation-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; }
}
