/* =========================================================
   PREMIUM TECHNICAL HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 90px 20px 0;
    box-sizing: border-box;
    background-color: #02040A;
}

/* Background */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(2, 4, 8, 0.96) 0%,
            rgba(2, 4, 8, 0.82) 52%,
            rgba(2, 4, 8, 0.92) 100%),
        url("../assets/hero_bg_dark_luxury.webp");

    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Technical grid: cyan #00D4FF visible sobre negro profundo.
   height:auto pisa el height:2px heredado de header::after (main.css),
   que la aplastaba en una franja invisible. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    height: auto;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.28) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(0, 212, 255, 0.28) 1px,
            transparent 1px);

    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom,
            black 0%,
            rgba(0, 0, 0, 0.65) 65%,
            transparent 100%);

    pointer-events: none;
    z-index: -1;
}

.hero-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
    gap: 64px;
    align-items: center;
}

/* ---------------------------------------------------------
   LEFT SIDE
   --------------------------------------------------------- */

.hero-copy {
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: var(--accent2);
}

.hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 12px var(--accent2);
}

.hero-title {
    margin: 0;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-weight: 700;

    color: #F3EEE2;
    text-shadow:
        0 0 50px rgba(0, 102, 255, 0.10);
}

.hero-title-line {
    display: block;
}

/* VILLAGRA en marfil premium sólido — sin degradado, look senior/ejecutivo */
.hero-title-accent {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #F3EEE2;
    color: #F3EEE2;
}

.hero-roles {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px 26px;

    margin-top: 26px;

    font-family: "JetBrains Mono", monospace;
    font-size: clamp(0.72rem, 1vw, 0.92rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;

    color: var(--text-muted);
}

.hero-roles span {
    position: relative;
}

.hero-roles span:not(:last-child)::after {
    content: "/";
    position: absolute;
    right: -16px;

    color: var(--accent);
}

.hero-description {
    max-width: 600px;
    margin: 30px 0 0;

    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
    color: var(--text-muted);
}

.hero-description strong {
    color: #ffffff;
    font-weight: 500;
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 84px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 48px;
    padding: 0 22px;

    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);

    color: #ffffff;
    text-decoration: none;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 24px rgba(0, 102, 255, 0.14);
}

.hero-btn-primary {
    border-color: rgba(243, 238, 226, 0.28);
    background: rgba(243, 238, 226, 0.04);
    color: #F3EEE2;
    box-shadow: none;
}

.hero-btn-primary:hover {
    background: rgba(243, 238, 226, 0.09);
    border-color: rgba(243, 238, 226, 0.55);
    color: #ffffff;
    box-shadow: 0 0 24px rgba(243, 238, 226, 0.12);
}

.hero-btn-primary i {
    transition: transform 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-btn-primary:hover i {
        transform: translateX(3px);
    }
}

/* ---------------------------------------------------------
   SYSTEM STATUS
   --------------------------------------------------------- */

.system-card {
    position: relative;

    padding: 28px;

    border: 1px solid var(--border);

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015));

    backdrop-filter: blur(14px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3);

    overflow: hidden;
}

.system-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(135deg,
            rgba(0, 102, 255, 0.055),
            transparent 45%);

    pointer-events: none;
}

.system-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;
    margin-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.system-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.system-index {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    color: var(--accent2);
}

.system-operational {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--accent);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 4px rgba(0, 102, 255, 0.06),
        0 0 16px rgba(0, 102, 255, 0.45);

    animation: heroPulse 2.2s ease-in-out infinite;
}

@keyframes heroPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.system-list {
    display: grid;
    gap: 12px;
}

.system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.73rem;
    letter-spacing: 1.5px;

    color: var(--text-muted);
}

.system-check {
    color: var(--accent);
}

.system-location {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid var(--border);

    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--text-muted);
}

/* ---------------------------------------------------------
   SECURITY STACK
   --------------------------------------------------------- */

.security-stack {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;

    margin-top: 54px;
    padding: 18px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.security-stack-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--accent2);
}

.security-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.security-stack-item {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--text-muted);
}

.security-stack-item::after {
    content: "·";
    margin-left: 18px;
    color: var(--accent);
}

.security-stack-item:last-child::after {
    content: "";
}

.mcp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(68, 147, 248, 0.3);
    border-radius: 4px;
    background: rgba(68, 147, 248, 0.1);
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-main {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-copy {
        max-width: none;
    }

    .system-card {
        max-width: 620px;
    }

    .security-stack {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 55px 16px 0;
    }

    .hero-title {
        font-size: clamp(2.7rem, 15vw, 4.6rem);
        letter-spacing: -1px;
    }

    .hero-roles {
        flex-wrap: wrap;
        white-space: normal;
        gap: 8px 14px;
        font-size: 0.68rem;
    }

    .hero-roles span:not(:last-child)::after {
        right: -11px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .system-card {
        padding: 22px;
    }

    .security-stack-list {
        gap: 7px 12px;
    }
}