/* ============================================================
   BIZIX AEROSPACE — Homepage
   AESTHETIC: Tactical HUD — 3D scene + cockpit overlays
   ============================================================ */

/* --- 3D CANVAS BACKGROUND --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* --- HUD GRID OVERLAY (on top of Three.js) --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 70%);
}

/* Scan-line overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
    pointer-events: none;
    position: relative;
}

/* HUD corner brackets on hero */
.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 5%;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
    opacity: 0.3;
    animation: hud-flicker-fast 7s infinite;
    pointer-events: none;
    z-index: 2;
    box-shadow: -4px -4px 20px rgba(0, 240, 255, 0.15), -2px -2px 40px rgba(0, 240, 255, 0.05);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 5%;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--accent-warm);
    border-right: 2px solid var(--accent-warm);
    opacity: 0.3;
    animation: hud-flicker-fast 8s infinite 0.5s;
    pointer-events: none;
    z-index: 2;
    box-shadow: 4px 4px 20px rgba(160, 180, 255, 0.15), 2px 2px 40px rgba(160, 180, 255, 0.05);
}

.hero-content {
    pointer-events: auto;
    max-width: 900px;
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5rem;
    line-height: 0.95;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #7a8a9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: glitch-skew 18s infinite;
    filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.06));
}

/* Glitch echo — secondary channel (offset slightly for chromatic split) */
.hero h1::before {
    content: 'Navigation Independent Of Orbit';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-warm) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: glitch-shift 18s ease-in-out infinite 1s;
    pointer-events: none;
}

/* Glitch echo — cyan channel (main, slightly ahead) */
.hero h1::after {
    content: 'Navigation Independent Of Orbit';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: glitch-shift 18s ease-in-out infinite;
    pointer-events: none;
}

p.lead {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 3rem;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 3px solid var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(3, 5, 8, 0.8) 100%);
    backdrop-filter: blur(8px);
    position: relative;
    box-shadow: -4px 0 20px rgba(0, 240, 255, 0.1), -2px 0 40px rgba(0, 240, 255, 0.04);
    animation: hud-flicker 14s infinite;
}
p.lead::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-top: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}
p.lead strong {
    color: var(--accent-cyan);
}

/* --- FEATURES SECTION --- */
.features {
    background: linear-gradient(to bottom, transparent, var(--bg-deep) 90%);
}

/* --- SOCIAL PROOF --- */
.social-proof {
    background: var(--bg-deep);
    text-align: center;
    padding: 4rem 5% !important;
    position: relative;
    overflow: hidden;
}
.social-proof::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--glass-border) 20%,
        var(--accent-cyan-dim) 50%,
        var(--glass-border) 80%,
        transparent
    );
    animation: pulse-line 6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), 0 0 40px rgba(0, 240, 255, 0.04);
}
.social-proof p {
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    position: relative;
    z-index: 1;
    animation: color-glitch 12s infinite;
}

/* --- USE CASES TEASER --- */
.use-cases-teaser {
    background: var(--bg-section);
}
.use-cases-teaser .card {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.use-cases-teaser .card h3 {
    font-size: 0.85rem;
}

/* --- PLATFORM SECTION --- */
#platform {
    background: var(--bg-deep);
    position: relative;
}

.platform-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.platform-text p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.platform-text ul { list-style: none; padding: 0; }
.platform-text li {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-body);
    font-size: 0.95rem;
}
.platform-text li::before {
    content: '//';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    animation: hud-flicker-fast 8s infinite;
}
.platform-text li strong {
    color: var(--text-main);
}

/* --- HOMEPAGE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; letter-spacing: 2px; }
    .hero h1::after { display: none; }
    .hero::before, .hero::after { display: none; }
    p.lead { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
}
