/* ============================================================================
   ⚓ MOAI BRAND SPLASH DECK: PRODUCTION EXTERNAL SURFACE STYLES
   ============================================================================ */

/* 1. Viewport Ground Rules: Fixes the Mobile Bottom White Cutoff Bug Natively */
html, body {
    background-color: #0a0d12 !important; /* Hardlocks the pitch-black backdrop natively */
    color: #f8fafc !important;            /* Ensures your text maps out in bright white */
    width: 100% !important;
    /* Allows the canvas height to grow naturally with your panels */
    min-height: 100vh !important;
    /* Remove margins and paddings cleanly without clipping out bounds content */
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 2. Standard Responsive Content Wrapper Frame */
.moai-splash-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
}

/* Top status tag */
.status-tag {
    display: inline-block;
    color: #3b82f6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid #1d4ed8;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Main Heading */
h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

/* Subtitle */
.subtitle {
    font-size: 16px;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Launch Banner Button with Expanded Glow Layer Tool */
.launch-btn {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 32px auto;
    padding: 18px;
    background: #0f172a;
    border: 1px solid #1e3a8a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    /* Expanded bottom pooling glow setup requested by user */
    box-shadow: 0 15px 45px -5px rgba(29, 78, 216, 0.65), 0 25px 70px -10px rgba(30, 64, 175, 0.45);
    transition: all 0.3s ease;
}

.launch-btn:hover {
    box-shadow: 0 26px 55px 0px rgba(29, 78, 216, 0.85);
    border-color: #2563eb;
}

/* Links container matching layout exactly with custom tooltip properties */
.red-links-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
}
.red-link-item {
    position: relative;
    color: #DC143C; /* Clean solid red typography */
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid #ef4444;
    cursor: help;
}

/* Blue atmospheric aura shadows for the red link anchor triggers */
.red-link-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    box-shadow: 0 4px 14px #2563eb, 0 8px 24px #1d4ed8;
    opacity: 0.85;
}

/* Tooltip Box Layout - Injected exactly from blueprint matrix definitions */
.red-link-item .tooltip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background-color: #0f172a;
    border: 1px solid #1e40af;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(37, 99, 235, 0.2);
    text-align: left;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.red-link-item:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-quote {
    color: #38bdf8; /* Soft blue tint for the interface tagline quote */
    font-size: 12px;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tooltip-desc {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
    border-top: 1px solid #1e293b;
    padding-top: 8px;
}

/* 2x2 Core Matrix Grid System Layout Rules */
.quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
}

.quad-card {
    background-color: #0f131a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 32px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.quad-card:hover {
    border-color: #334155;
}

.card-icon {
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.card-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.thumbnail-container {
    margin-top: 20px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
    background: #040608;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.3s ease;
}

.thumbnail-container:hover {
    transform: scale(1.01);
    border-color: #2563eb;
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 3. The Interactive Dashboard Thumbnail Pop-Up Lightbox Layer */
.moui-lightbox-modal {
    display: none;                /* Kept completely hidden out of sight by default */
    position: fixed !important;   /* Anchors overlay straight to the mobile viewport window */
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important; /* Jet-black dimming mask shield */
    z-index: 99999 !important;    /* Hover block layer sits securely over launch buttons */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.moui-lightbox-modal img {
    max-width: 90% !important;
    max-height: 85% !important;
    border: 2px solid #3a4f6e !important; /* Muted slate metallic focus ring accent */
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.95);
}

/* Responsive Breakdowns to avoid blowing outer wrapper limits out of box constraints */
@media (max-width: 768px) {
    .quad-grid {
        grid-template-columns: 1fr;
    }
    .red-links-container {
        gap: 30px;
    }
}

/* === MOAI homepage enamel / landscape treatment (scoped overrides) === */
.launch-btn {
    position: relative;
    background: linear-gradient(180deg, #070b13 0%, #05070d 45%, #111827 100%);
    border: 2px solid #1e40af;
    border-radius: 18px;
    box-shadow: inset 0 0 0 4px #03050a, inset 0 1px 2px rgba(125,170,255,.25),
        0 15px 45px -5px rgba(29,78,216,.65), 0 25px 70px -10px rgba(30,64,175,.45);
}
.launch-btn::before {
    content: ''; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: #253956;
    box-shadow: 0 0 0 2px #03050a; pointer-events: none;
}
.launch-btn:hover, .launch-btn:focus-visible {
    border-color: #2563eb;
    box-shadow: inset 0 0 0 4px #03050a, inset 0 1px 2px rgba(125,170,255,.3),
        0 26px 55px 0 rgba(29,78,216,.85), 0 30px 75px rgba(30,64,175,.45);
}
.red-links-container { align-items: flex-start; gap: 16px; position: relative; }
.red-link-item {
    display: inline-flex; width: 146px; max-width: calc((100% - 32px) / 3);
    padding: 0; border: 0; color: inherit; letter-spacing: normal;
    flex: 0 1 146px; align-items: center; justify-content: center;
    filter: drop-shadow(0 4px 3.5px rgba(0,0,0,.72));
}
.red-link-item::after { display: none; }
.brand-pill { width: 100%; height: auto; display: block; overflow: visible; }
.red-link-item:hover .brand-pill, .red-link-item:focus-visible .brand-pill {
    filter: brightness(1.1) drop-shadow(0 0 7px rgba(65,110,245,.32));
}
.red-link-item:focus-visible .tooltip-box {
    visibility: visible; opacity: 1; transform: translateX(-50%) translateY(-5px);
}
.moai-footer { margin: 16px auto 24px; padding: 10px 16px; color: #64748b; font-size: 11px; }
.moai-footer a { color: #94a3b8; text-decoration: none; }
.moai-footer a:hover { color: #cbd5e1; text-decoration: underline; }
@media (max-width: 480px) {
    .red-links-container { gap: 8px; }
    .red-link-item { max-width: calc((100% - 16px) / 3); }
    .red-link-item .tooltip-box { width: min(290px, 85vw); }
}
