/* hero.css */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 60% 40%, rgba(59, 139, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 70%, rgba(0, 229, 160, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 10% 60%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}


/* Left — copy */
.hero-label {
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-sub code {
    font-family: var(--font-mono);
    font-size: 0.87em;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 5px;
    padding: 1px 6px;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Pill strip */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.hero-pill .icon {
    font-size: 0.875rem;
}

/* Right — mesh SVG */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mesh {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    position: relative;
}

.hero-mesh img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(59, 139, 255, 0.2));
    animation: mesh-float 6s ease-in-out infinite;
}

.hero-mesh-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-bottom: 10px;
}

.mesh-legend-item {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--c, var(--text-muted));
    letter-spacing: 0.04em;
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.mesh-legend-item:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes mesh-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Inline SVG mesh (animated nodes) */
.mesh-svg {
    width: 100%;
    height: 100%;
}

.mesh-node {
    animation: node-glow 2s ease-in-out infinite;
}

.mesh-node:nth-child(2) {
    animation-delay: 0.4s;
}

.mesh-node:nth-child(3) {
    animation-delay: 0.8s;
}

.mesh-node:nth-child(4) {
    animation-delay: 1.2s;
}

.mesh-node:nth-child(5) {
    animation-delay: 1.6s;
}

.mesh-node:nth-child(6) {
    animation-delay: 2.0s;
}

@keyframes node-glow {

    0%,
    100% {
        opacity: 0.7;
        r: 5;
    }

    50% {
        opacity: 1;
        r: 7;
    }
}

.mesh-arc {
    stroke-dasharray: 8 4;
    animation: arc-flow 3s linear infinite;
}

.mesh-arc:nth-child(even) {
    animation-duration: 4s;
}

@keyframes arc-flow {
    to {
        stroke-dashoffset: -60;
    }
}

.mesh-pulse {
    animation: pulse-travel 3s ease-in-out infinite;
}

@keyframes pulse-travel {
    0% {
        opacity: 0;
        offset-distance: 0%;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        offset-distance: 100%;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-pills {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        max-width: 380px;
        margin: 0 auto;
    }
}