/* HERO INDUSTRIAL REDESIGN (The Kinetic Redesign) */
/* Rule: Defense-tier, brutalist industrial aesthetic. */

:root {
    --industrial-teal: #00FFCC;
    --industrial-bg: #000000; /* Pure Black */
    --industrial-text: #ffffff;
    --industrial-muted: #A0A0A0; /* Muted Silver */
}

.hero-industrial {
    position: relative;
    width: 100%;
    /* Removed fixed height/min-height */
    padding: 8rem 0 4rem; /* Adjusted to move content up */
    background-color: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Allow content to stack naturally */
    align-items: center;
    justify-content: center;
    color: var(--industrial-text);
    font-family: 'Inter', sans-serif;
}

/* --- Action 2: The Two-Phase Animation Background --- */

.hero-industrial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2; /* Neural net sits on top of bg image */
}

/* Phase 2 Background: Autonomous Aerial Grid */
.hero-bg-operate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/factory-topdown.jpg'); /* Placeholder for Drone Footage */
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden in State 1 */
    filter: grayscale(100%) brightness(0.3) contrast(1.2);
    z-index: 1;
    /* Animation: Fade in at 1.5s */
    animation: fadeToOperate 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.5s;
}

/* Global Grain */
.hero-industrial-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}

/* Bottom Fade */
.hero-industrial-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, #000000);
    z-index: 4;
    pointer-events: none;
}

/* --- Action 2 (Part 2): Telemetry & Rings (State 2) --- */

.hero-state-operate {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Spinning Rings */
.hero-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1.5); /* Start expanded */
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.ring-outer {
    width: 600px; height: 600px;
    border: 1px dashed rgba(0, 255, 204, 0.3);
    /* Animation: Snap in at 1.5s, then spin */
    animation: snapInRing 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.5s,
               spinRight 60s linear infinite 2.5s;
}

.ring-inner {
    width: 400px; height: 400px;
    border: 1px solid rgba(0, 255, 204, 0.1);
    border-left: 1px solid rgba(0, 255, 204, 0.6);
    border-right: 1px solid rgba(0, 255, 204, 0.6);
    /* Animation: Snap in at 1.5s, then spin */
    animation: snapInRing 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.6s,
               spinLeft 40s linear infinite 2.6s;
}

@keyframes snapInRing {
    0% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes spinRight { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinLeft { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Telemetry Tags */
.hero-telemetry-tags {
    position: absolute;
    width: 100%; height: 100%;
}

.tele-tag {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--industrial-teal);
    background: rgba(0, 20, 10, 0.8);
    padding: 4px 8px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    opacity: 0;
    /* Animation: Flicker in after State 2 triggers */
    animation: flickerText 0.5s steps(4) forwards 2s;
}

.tag-1 { top: 20%; left: 10%; }
.tag-2 { bottom: 25%; right: 10%; animation-delay: 2.2s; }
.tag-3 { top: 30%; right: 20%; animation-delay: 2.4s; }

/* --- Action 1: The Typography Stack --- */

.hero-content-layer {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 1000px; /* Reduced width to force wrapping naturally */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto; /* Ensure centering */
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--industrial-teal);
    text-transform: uppercase;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

.hero-industrial-h1 {
    font-size: clamp(3rem, 7vw, 5.5rem); /* Matches Customers page clamp */
    font-weight: 800; /* Adjusted weight */
    line-height: 0.95;
    letter-spacing: -0.02em; /* Adjusted tracking */
    color: #ffffff;
    margin-bottom: 2rem; /* Adjusted margin */
}

.hero-industrial-sub {
    font-size: 1.25rem; /* Matches customers.css hero-subtext */
    color: var(--industrial-muted);
    max-width: 700px; /* Adjusted width */
    line-height: 1.6;
    margin: 0 auto 3rem; /* Centered margin */
    font-weight: 400;
}

/* Buttons */
.hero-btn-group {
    display: flex;
    gap: 24px;
    align-items: center;
}

.btn-industrial-primary {
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    padding: 16px 32px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-industrial-primary:hover {
    background-color: var(--industrial-teal);
    border-color: var(--industrial-teal);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.btn-industrial-secondary {
    background-color: transparent;
    color: #ffffff;
    font-weight: 500;
    padding: 16px 32px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-industrial-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* --- Action 3: The Genesis Node --- */

.genesis-node-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
}

.genesis-node {
    width: 4px;
    height: 4px;
    background-color: var(--industrial-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--industrial-teal), 0 0 20px var(--industrial-teal);
    animation: pulse-node 2s infinite;
}

/* Animations */
@keyframes fadeToOperate {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes flickerText {
    0% { opacity: 0; }
    50% { opacity: 1; }
    60% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulse-node {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-industrial-h1 {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }
    .hero-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    .btn-industrial-primary, .btn-industrial-secondary {
        width: 100%;
        justify-content: center;
    }
    /* Hide fancy rings on mobile to save performance/space */
    .hero-ring { display: none; }
}
