/* ============================================================
   GLOBAL NAVIGATION BAR — ASTRION ALIGNED
   Sticky, translucent over hero, solid on scroll
============================================================ */

#global-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(12px);
    background: rgba(10, 15, 25, 0.55); /* translucent over hero */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.35s ease, border-color 0.35s ease;
}

#global-nav.scrolled {
    background: rgba(255, 255, 255, 0.85); /* solid on scroll */
    border-bottom: 1px solid #d9e2ef;
}

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

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #9cc9ff;
    text-shadow: 0 0 8px rgba(90, 140, 200, 0.5);
}

.nav-links a {
    margin: 0 14px;
    font-size: 1rem;
    color: #d7e4f7;
    transition: 0.25s;
}

#global-nav.scrolled .nav-links a {
    color: #1f4f7a;
}

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

.nav-right .nav-cta {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(60, 110, 170, 0.35);
    border: 1px solid #3a6ea5;
    color: #d7e4f7;
    transition: 0.25s;
}

#global-nav.scrolled .nav-cta {
    background: rgba(60, 110, 170, 0.15);
    color: #1a2a3d;
}

.nav-cta:hover {
    background: rgba(60, 110, 170, 0.55);
}

/* ============================================================
   LDI1 + ASTRION UNIFIED THEME (Homepage + Products + Global)
   Dark Hero → Cinematic Fade → Soft Off‑White Body (#f7f9fc)
   ============================================================ */

/* ------------------------------------------------------------
   1. RESET + GLOBAL BASE
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #f7f9fc; /* Soft off‑white body */
    color: #222;
    line-height: 1.5;
}

a {
    color: #3a6ea5;
    text-decoration: none;
    transition: 0.25s;
}

a:hover {
    color: #1f4f7a;
}

/* GLOBAL CONTAINERS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GLOBAL GRID */
.grid {
    display: grid;
    gap: 25px;
}

/* GLOBAL BUTTONS */
button,
.btn,
.btn-primary,
.btn-secondary {
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    transition: 0.25s;
    border: 1px solid #3a6ea5;
    background: rgba(60, 110, 170, 0.25);
    color: #1a2a3d;
    box-shadow: 0 0 10px rgba(90, 140, 200, 0.25);
}

button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
    background: rgba(60, 110, 170, 0.45);
    box-shadow: 0 0 16px rgba(90, 140, 200, 0.45);
}

/* ------------------------------------------------------------
   2. HERO SECTION — DARK ASTRION BANNER + CINEMATIC FADE
------------------------------------------------------------ */

#hero {
    text-align: center;
    padding: 80px 20px 60px;

    /* Long cinematic fade */
    background: linear-gradient(
        180deg,
        #0b0f1a 0%,
        #0f1522 25%,
        #162033 50%,
        #1e2b44 70%,
        #f7f9fc 100%
    );
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #9cc9ff;
    text-shadow: 0 0 12px rgba(90, 140, 200, 0.6);
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #d7e4f7;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

/* ------------------------------------------------------------
   3. HOMEPAGE SECTIONS (Light Body)
------------------------------------------------------------ */

section h2 {
    text-align: center;
    font-size: 2rem;
    color: #1f4f7a;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* VALUE GRID */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 20px 40px;
}

.value-item {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.value-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(90, 140, 200, 0.25);
}

.value-item h3 {
    color: #1f4f7a;
    margin-bottom: 10px;
}

.value-item p {
    color: #4a5a6a;
}

/* TIER GRID */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 40px 60px;
}

.tier-card {
    background: #ffffff;
    border: 1px solid #d9e2ef;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.tier-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(90, 140, 200, 0.25);
}

.tier-card h3 {
    color: #1f4f7a;
    margin-bottom: 12px;
}

.tier-card p {
    color: #4a5a6a;
    margin-bottom: 20px;
}

.tier-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(60, 110, 170, 0.25);
    border: 1px solid #3a6ea5;
    color: #1a2a3d;
    transition: 0.25s;
}

.tier-link:hover {
    background: rgba(60, 110, 170, 0.45);
}

/* ASTRION SECTION */
#astrion {
    text-align: center;
    padding: 40px 20px;
}

#astrion p {
    max-width: 700px;
    margin: 0 auto 20px;
    color: #4a5a6a;
}

.astrion-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(60, 110, 170, 0.25);
    border: 1px solid #3a6ea5;
    color: #1a2a3d;
    transition: 0.25s;
}

.astrion-link:hover {
    background: rgba(60, 110, 170, 0.45);
}

/* ONBOARDING */
.onboarding-steps {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #4a5a6a;
}

#onboarding {
    text-align: center;
    padding: 40px 20px;
}

/* FOOTER */
#footer {
    text-align: center;
    padding: 20px;
    color: #6a7a8a;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------
   4. PRODUCT PAGES (Light Body + Dark Cards)
------------------------------------------------------------ */

header {
    text-align: center;
    padding: 60px 20px 30px;
}

header h1 {
    font-size: 2.4rem;
    color: #1f4f7a;
}

header p {
    color: #4a5a6a;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* PRODUCT TABS */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 40px;
}

.product-tabs button {
    background: rgba(60, 110, 170, 0.25);
    border: 1px solid #3a6ea5;
    color: #1a2a3d;
}

.product-tabs button.active {
    background: rgba(60, 110, 170, 0.55);
    box-shadow: 0 0 18px rgba(90, 140, 200, 0.45);
}

/* PRODUCT CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 20px 40px 60px;
}

.card {
    background: #1b2433;
    border: 1px solid #2c3a52;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(90, 140, 200, 0.4);
}

.card h3 {
    color: #d7e4f7;
    margin-bottom: 12px;
}

.card p {
    color: #b8c7dd;
    margin-bottom: 20px;
}

/* PRODUCT PAGE BUTTONS */
.card button {
    background: rgba(60, 110, 170, 0.25);
    border: 1px solid #3a6ea5;
    color: #d7e4f7;
}

/* PRODUCT PAGE PRICE */
.price {
    font-size: 22px;
    font-weight: bold;
    color: #4da3ff;
    margin: 15px 0;
}

/* ------------------------------------------------------------
   5. LEGACY SUPPORT (Grid + Cards)
------------------------------------------------------------ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card,
.service-card {
    background: #14171c;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #1f2227;
}

.product-card h3,
.service-card h3 {
    color: #4da3ff;
    margin-bottom: 10px;
}

.product-card p,
.service-card p {
    color: #c7c7c7;
    margin-bottom: 10px;
}

/* ------------------------------------------------------------
   6. RESPONSIVE RULES
------------------------------------------------------------ */

@media (max-width: 600px) {
    main.container h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .value-grid,
    .tier-grid,
    .card-grid {
        grid-template-columns: 1fr !important;
        padding: 10px 20px 40px;
    }
}

/* ASTRION Identity Bar */
#identity-bar {
    width: 100%;
    background: linear-gradient(90deg, #0d0f14 0%, #1a1f2b 100%);
    border-bottom: 1px solid rgba(122,162,255,0.35);
    padding: 14px 0;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

#identity-bar::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #7aa2ff 0%, #00c6ff 100%);
    opacity: 0.65;
    margin-top: 6px;
}

.identity-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.identity-title {
    font-size: 15px;
    font-weight: 700;
    color: #7aa2ff;
    letter-spacing: 1.2px;

.identity-engine {
    color: rgba(255,255,255,0.85);
}

#identity-bar {
    margin-bottom: 28px;
}

#identity-bar {
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), 
                0 -2px 8px rgba(122,162,255,0.25);
}





/* MOBILE FIXES FOR IDENTITY BAR */
@media (max-width: 600px) {

    #identity-bar {
        padding: 18px 0;
        background: #1b2233; /* brighter for mobile */
        margin-bottom: 16px;
    }

    .identity-container {
        padding: 0 14px;
        gap: 6px;
    }

    .identity-title {
        font-size: 16px;
        font-weight: 700;
        color: #a8c4ff;
        text-shadow: none; /* cleaner on small screens */
    }

    .identity-lineage,
    .identity-engine {
        font-size: 13px;
        color: rgba(255,255,255,0.9);
        line-height: 1.4;
    }

    #identity-bar::after {
        height: 2px;
        opacity: 0.9; /* stronger line for mobile visibility */
    }
}

/* HOMEPAGE MOBILE FIXES */
@media (max-width: 600px) {

    /* More breathing room under identity bar */
    #identity-bar {
        margin-bottom: 28px;
    }

    /* Center hero text better */
    #hero .hero-content {
        padding-top: 10px;
        text-align: center;
    }

    /* Fix button spacing */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 0;
    }
}


