/* Landing Page Specific Styles - Lightened navy colors */
:root {
    --bg-landing: #0a1525;
    --panel-landing: rgba(12, 22, 42, 0.75);
    --panel-strong-landing: rgba(15, 26, 50, 0.9);
}

body {
    background:
            radial-gradient(circle at 20% 20%, rgba(122, 225, 255, 0.06), transparent 45%),
            radial-gradient(circle at 80% 10%, rgba(194, 139, 255, 0.08), transparent 50%),
            var(--bg-landing);
}

/* =========================
   Layout shell
========================== */

.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.landing-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
    background: transparent;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    z-index: 10;
    flex-shrink: 0;
}

.landing-header .brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.landing-brand {
    display: flex;
    flex-direction: column;
}

.landing-brand-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.landing-brand-sub {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
}

.landing-content {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.landing-content .landing {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* =========================
   Header nav
========================== */

.landing-header .landing-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.landing-header .landing-nav a,
.landing-header .landing-nav button {
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.landing-header .landing-nav a:hover,
.landing-header .landing-nav button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   Hero
========================== */

.landing-content .hero {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    margin-bottom: 0;
    background: var(--panel-landing);
    box-shadow:
            0 0 0 1px var(--border),
            0 0 40px rgba(122, 225, 255, 0.08),
            0 24px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    box-sizing: border-box;
}

.landing-content .hero .hero-header {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.landing-content .hero .hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    align-items: start;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.landing-content .hero .hero-header h1,
.landing-content .hero .hero-copy h1 {
    font-size: 24px;
}

.landing-content .hero .lede {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.landing-content .hero .eyebrow {
    font-size: 9px;
}

.landing-content .hero .hero-badges {
    font-size: 10px;
}

.landing-content .hero .hero-badges span {
    padding: 4px 8px;
}

.landing-content .hero .hero-actions .cta {
    font-size: 13px;
    padding: 8px 14px;
}

.landing-content .hero .hero-copy h1 {
    position: relative;
}

.landing-content .hero .hero-copy h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    margin-top: 12px;
}

.centered {
    text-align: center;
}

/* =========================
   Background planet imagery
========================== */

.moon {
    background-image: url("mars.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 40px rgba(255, 130, 90, 0.35);
    right: 2%;
}

.moon-real,
.earth-real {
    position: absolute;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.62;
    mix-blend-mode: screen;
    animation: drift 32s linear infinite alternate;
    z-index: 0;
}

.moon-real {
    top: 13%;
    left: 2%;
    width: 90px;
    height: 90px;
    background-image: url("moon.png");
    box-shadow: 0 0 34px rgba(188, 210, 255, 0.32);
}

.earth-real {
    bottom: 8%;
    left: 2%;
    width: 170px;
    height: 170px;
    background-image: url("earth.png");
    box-shadow: 0 0 34px rgba(122, 225, 255, 0.3);
    animation-duration: 36s;
}

/* =========================
   Screenshot panel
========================== */

/* Screenshot card */
.hero-screenshot {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;              /* keep the card clean */
}

.landing-content .hero .hero-panel {
    flex-direction: column;
    align-items: center;
}

/* Prevent screenshot from growing and pushing caption out of view on resize */
.landing-content .hero .hero-screenshot {
    flex: 0 1 auto;
    max-height: min(50vh, 420px);
}

/* Image area: reserve space for caption */
.hero-screenshot-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;              /* clip image only */
}

/* Image must never push layout */
.hero-screenshot-placeholder img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Caption below the screenshot card */
.hero-screenshot-caption {
    margin: 10px 0 0;
    padding: 0;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}



/* =========================
   Footer
========================== */

.landing-footer {
    text-align: center;
    padding: 16px;
    color: var(--muted);
    font-size: 11px;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: rgba(10, 18, 32, 0.6);
}

/* =========================
   Modal
========================== */

.landing-modal.interception-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 16, 35, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-modal .interception-modal-content {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
    background: var(--panel-strong-landing);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.landing-modal.interception-modal.active {
    display: flex !important;
}

.landing-modal .interception-modal-body .section {
    margin: 24px 0;
    border-bottom: 1px solid var(--border);
}

.landing-modal .section {
    padding: 12px !important;
}

.landing-modal .interception-modal-body .section:last-child {
    border-bottom: none;
    padding: 2px;
}

#whitepaperModal .interception-modal-body {
    padding: 24px;
}

.whitepaper-pdf-preview {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.whitepaper-pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.landing-modal .briefing-form .form-group {
    margin-bottom: 20px;
}

.landing-modal .briefing-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
}

.landing-modal .briefing-form input,
.landing-modal .briefing-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
}

/* =========================
   Responsive
========================== */

@media (max-width: 900px) {
    .landing-page {
        position: relative;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .landing-content {
        overflow: visible;
        min-height: auto;
        padding: 12px 16px;
    }

    .landing-header {
        padding: 10px 16px;
    }

    .landing-footer {
        padding: 12px;
        font-size: 10px;
    }

    .landing-header .landing-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(6, 12, 24, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 8px;
        box-shadow: var(--shadow);
    }

    .landing-header .landing-nav.open {
        display: flex;
    }

    .landing-header .landing-nav a,
    .landing-header .landing-nav button {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .landing-content .hero {
        padding: 12px;
        min-height: auto;
    }

    .landing-content .hero .hero-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .landing-content .hero .hero-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .landing-content .hero .hero-header h1,
    .landing-content .hero .hero-copy h1 {
        font-size: 20px;
    }

    .landing-content .hero .lede {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .landing-content .hero .eyebrow {
        font-size: 8px;
    }

    .landing-content .hero .hero-badges {
        font-size: 9px;
    }

    .landing-content .hero .hero-badges span {
        padding: 3px 6px;
    }

    .landing-content .hero .hero-actions .cta {
        font-size: 12px;
        padding: 6px 12px;
    }

    .landing-content .hero .hero-panel {
        order: -1;
        min-height: 220px;
    }

    .hero-screenshot {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .landing-content .hero .hero-header h1,
    .landing-content .hero .hero-copy h1 {
        font-size: 18px;
    }

    .landing-content .hero .lede {
        font-size: 11px;
    }

    .landing-content {
        padding: 10px 12px;
    }

    .landing-header {
        padding: 8px 12px;
    }

    .landing-logo {
        height: 55px;
    }

    .landing-brand-title {
        font-size: 16px;
    }

    .hero-screenshot {
        min-height: 180px;
    }

    .landing-content .hero .hero-panel {
        min-height: 180px;
    }
}