/* ===== Sovereign Backgrounds ===== */
.bg-hex-grid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill-rule='evenodd' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.32v12.68l11 6.35 11-6.35V17.32L14 10.97 3 17.32z' fill='%230057ff' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.radar-sweep {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 87, 255, 0.2);
    position: relative;
    background: conic-gradient(from 0deg at 50% 50%, rgba(0, 87, 255, 0.4) 0%, transparent 25%);
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.grid-overlay {
    background-image: linear-gradient(rgba(0, 87, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 87, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

/* ===== Enterprise Backgrounds ===== */
.hero-pattern {
    background-image: radial-gradient(#00b4d822 1px, transparent 1px);
    background-size: 30px 30px;
}

.gradient-text {
    background: linear-gradient(135deg, #0a1628 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Sovereign Radar Container ===== */
.radar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* ===== Shared ===== */
.glass-panel {
    background: rgba(17, 24, 35, 0.8);
    backdrop-filter: blur(8px);
}

/* ===== Blazor Error UI ===== */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== Split Hero ===== */
html.split-hero-active, .split-hero-active body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

#split-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
}

.side-sovereign {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 50%;
    background-color: #1a1d21;
    overflow: hidden;
    z-index: 10;
    clip-path: polygon(0 0, calc(100% + 5vw) 0, calc(100% - 5vw) 100%, 0 100%);
}

.side-enterprise {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #dce3ee;
    z-index: 5;
}

#drag-handle {
    position: absolute;
    top: 0; left: 50%;
    width: 4px; height: 100%;
    cursor: ew-resize;
    z-index: 40;
    transform: translateX(-50%) rotate(-10deg);
    background: linear-gradient(to bottom, #0057ff, #00b4d8);
    box-shadow: 0 0 15px rgba(0, 87, 255, 0.5);
}

#drag-handle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #fff;
    border: 2px solid #0057ff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.brand-hero-overlay {
    position: absolute;
    top: 15%; left: 0;
    width: 100%; text-align: center;
    z-index: 30;
    pointer-events: none;
}

.brand-hero-sovereign {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    color: white;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 31;
}

.brand-hero-enterprise {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    color: #0a1628;
    z-index: 30;
}

.content-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100vw;
    padding: 0 8%;
    pointer-events: none;
}

.content-wrapper a,
.content-wrapper button {
    pointer-events: auto;
}

.brand-logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
}

.brand-logo-icon .circle {
    position: absolute;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== Sovereign Reveal Text Overlay ===== */
.sovereign-reveal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 15; /* above enterprise (5), below sovereign content (10 clips it visually) */
    pointer-events: none;
    /* Match sovereign side diagonal clip — updated by JS */
    clip-path: polygon(0 0, calc(50% + 5vw) 0, calc(50% - 5vw) 100%, 0 100%);
    background: transparent;
}

/* ===== Mobile Stacked Fallback ===== */
@media (max-width: 767px) {
    #split-container {
        height: auto;
        flex-direction: column;
    }
    .side-sovereign {
        position: relative;
        width: 100% !important;
        height: 50vh;
        clip-path: none;
    }
    .side-enterprise {
        position: relative;
        height: 50vh;
    }
    #drag-handle {
        display: none;
    }
    .brand-hero-overlay {
        display: none;
    }
    .sovereign-reveal-overlay {
        display: none;
    }
    .content-wrapper {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        padding: 2rem;
    }
}
