/* =============================================
   home.css — Hero / Landing Section
   ============================================= */

.home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

/* ---- Subtle dot-grid background ---- */
.home__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
    background-size: cover;
    pointer-events: none;
}

.home__bg-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ---- Content ---- */
.home__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--container-pad);
    max-width: 800px;
}

/* ---- Eyebrow status indicator ---- */
.home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
    padding: var(--sp-1) var(--sp-3);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: var(--color-surface);
}

.home__eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

/* ---- Main title ---- */
.home__title {
    font-family: var(--font-mono);
    font-size: clamp(var(--text-5xl), 14vw, var(--text-8xl));
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: var(--sp-4);
    /* Subtle blue glow on the title */
    text-shadow: 0 0 60px rgba(59, 130, 246, 0.2);
}

/* ---- Tagline ---- */
.home__tagline {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    font-weight: 600;
    color: var(--color-blue);
    letter-spacing: 0.04em;
    margin-bottom: var(--sp-4);
}

/* ---- Subtitle ---- */
.home__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-10);
    letter-spacing: 0.01em;
}

/* ---- Scroll hint ---- */
.home__scroll-hint {
    position: absolute;
    bottom: var(--sp-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    color: var(--color-text-dim);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1s both;
}

.home__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-dim), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* =============================================
   Abstract Cyber Nexus Animation
   ============================================= */

.cyber-nexus {
    position: absolute;
    width: 55vw;
    height: 55vw;
    max-width: 600px;
    max-height: 600px;
    min-width: 350px;
    min-height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric tech rings */
.cyber-ring {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    /* Subtle base shadow */
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.02),
        inset 0 0 20px rgba(59, 130, 246, 0.02);
}

.cyber-ring-1 {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.05);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    animation: nexusSpin 35s linear infinite;
}

.cyber-ring-2 {
    width: 75%;
    height: 75%;
    border: 1px dashed rgba(59, 130, 246, 0.2);
    animation: nexusSpinReverse 25s linear infinite;
}

.cyber-ring-3 {
    width: 45%;
    height: 45%;
    border: 1px solid transparent;
    border-left: 1px solid rgba(59, 130, 246, 0.4);
    border-right: 1px solid rgba(59, 130, 246, 0.4);
    animation: nexusSpin 15s ease-in-out infinite alternate;
}

/* Soft glowing core */
.cyber-pulse {
    position: absolute;
    width: 15%;
    height: 15%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    animation: nexusPulse 4s ease-in-out infinite;
}

/* Subtle crosshairs / axes */
.cyber-crosshair {
    position: absolute;
    background: rgba(59, 130, 246, 0.15);
}

.ch-x {
    width: 120%;
    height: 1px;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
}

.ch-y {
    width: 1px;
    height: 120%;
    left: 50%;
    top: -10%;
    transform: translateX(-50%);
}

@keyframes nexusSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes nexusSpinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes nexusPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.8;
    }
}

/* Subtle data particles moving over the horizontal crosshair */
.ch-x::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 20px;
    height: 3px;
    background: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
    animation: dataSweep 6s ease-in-out infinite;
    opacity: 0;
}

@keyframes dataSweep {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}