/* Home Hero block + the radar mock (.vbm-radar). Tokens and type scale come from style.css. */

.homehero-block {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
}

/* Network mesh: the design's 1440x780 line field, drifting slowly, with a white
 * glow over the text column so the copy stays clean. */
.homehero-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.homehero-mesh-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.46;
    animation: vbMesh 26s ease-in-out infinite;
}

.homehero-mesh-fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(115% 85% at 22% 42%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 38%, rgba(255, 255, 255, 0.18) 68%, rgba(255, 255, 255, 0) 100%);
}

@keyframes vbMesh {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.02); }
    50% { transform: translate3d(-1.4%, -1.1%, 0) scale(1.05); }
}

.homehero-block > .container {
    position: relative;
    z-index: 1;
}

.homehero-block.has-visual .homehero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.homehero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.homehero-block .homehero-eyebrow {
    margin: 0;
}

.homehero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--vb-hair);
    border-radius: 999px;
    background: var(--vb-white);
    text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

a.homehero-chip:hover {
    border-color: var(--vb-midnight);
    box-shadow: var(--shadow-card);
}

.homehero-chip-img {
    display: block;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.homehero-chip-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--vb-midnight);
}

.homehero-title {
    margin: 24px 0 0;
}

.homehero-sub {
    max-width: 530px;
    margin-top: 26px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--vb-ink);
    text-wrap: pretty;
}

.homehero-buttons {
    margin-top: 34px;
}

.homehero-note {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--vb-text-secondary);
}

.homehero-media img,
.homehero-media video {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--vb-hair);
    border-radius: 16px;
    box-shadow: var(--shadow-pop);
}

/* -----------------------------------------------------------------------------
 * Mock: asset-profile radar
 * -------------------------------------------------------------------------- */
.vbm-radar {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
    border: 1px solid var(--vb-hair);
    border-radius: 16px;
    background: var(--vb-white);
    box-shadow: var(--shadow-pop);
}

.vbm-radar-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 38px;
    padding: 0 14px;
    background: var(--vb-surface);
    border-bottom: 1px solid var(--vb-hair);
}

.vbm-radar-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.vbm-radar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--vb-midnight);
}

.vbm-radar-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    font-size: 14px;
    color: var(--vb-text-secondary);
}

.vbm-radar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vb-green-text);
    animation: vbPulse 1.8s ease-in-out infinite;
}

@keyframes vbPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.vbm-radar-body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    padding: 20px 18px 6px;
}

.vbm-radar-label {
    flex: 0 0 auto;
    padding: 0 6px 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vb-text-secondary);
}

.vbm-radar-chart {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
}

.vbm-radar-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.vbm-radar-stop-1 { stop-color: var(--vb-orange); }
.vbm-radar-stop-2 { stop-color: var(--vb-magenta); }
.vbm-radar-stop-3 { stop-color: var(--vb-violet); }
.vbm-radar-stop-4 { stop-color: var(--vb-blue); }

.vbm-radar-grid polygon,
.vbm-radar-grid line {
    fill: none;
    stroke: var(--vb-navy);
    stroke-opacity: 0.09;
    stroke-width: 1;
}

.vbm-radar-grid polygon.is-outer {
    stroke-opacity: 0.16;
}

.vbm-radar-grid line {
    stroke-opacity: 0.1;
}

.vbm-radar-bench {
    fill: none;
    stroke: var(--vb-midnight);
    stroke-opacity: 0.8;
    stroke-width: 2.4;
    stroke-dasharray: 8 5;
}

.vbm-radar-shape {
    fill-opacity: 0.2;
    stroke: var(--vb-magenta);
    stroke-width: 2.6;
    stroke-linejoin: round;
}

.vbm-radar-pt {
    fill: var(--vb-magenta);
    stroke: var(--vb-white);
    stroke-width: 1.8;
}

.vbm-radar-hit {
    fill: transparent;
    cursor: pointer;
}

.vbm-radar-axis {
    font-family: var(--font1);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    fill: var(--vb-text-secondary);
}

.vbm-radar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    padding: 2px 6px 10px;
    font-size: 14px;
    color: var(--vb-ink);
}

.vbm-radar-key {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vbm-radar-swatch {
    flex: 0 0 auto;
}

.vbm-radar-swatch.is-asset {
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: var(--vb-magenta);
}

.vbm-radar-swatch.is-bench {
    width: 20px;
    height: 0;
    border-top: 2.6px dashed var(--vb-midnight);
    opacity: 0.8;
}

/* -----------------------------------------------------------------------------
 * Tablet
 * -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .homehero-block {
        padding: 72px 0;
    }

    .homehero-block.has-visual .homehero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .homehero-text {
        max-width: 720px;
    }

    .homehero-mesh-fade {
        background: radial-gradient(120% 70% at 30% 28%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0) 100%);
    }

    /* Stacked under the copy, the card fills the content width like the blocks below it. */
    .homehero-visual {
        max-width: none;
    }

    .vbm-radar {
        height: auto;
    }

    .vbm-radar-body,
    .vbm-radar-chart {
        flex: 0 0 auto;
    }

    .vbm-radar-chart {
        aspect-ratio: 608 / 470;
    }
}

/* -----------------------------------------------------------------------------
 * Mobile
 * -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .homehero-block {
        padding: 48px 0 56px;
    }

    .homehero-top {
        gap: 12px;
    }

    .homehero-title {
        margin-top: 20px;
    }

    .homehero-sub {
        margin-top: 20px;
        font-size: 18px;
    }

    .homehero-buttons {
        margin-top: 28px;
    }

    .homehero-buttons .btn {
        min-height: 48px;
    }

    .homehero-block.has-visual .homehero-grid {
        gap: 40px;
    }

    .vbm-radar-bar {
        padding: 0 12px;
    }

    .vbm-radar-title {
        font-size: 12px;
    }

    .vbm-radar-status {
        font-size: 13px;
    }

    .vbm-radar-body {
        padding: 16px 8px 4px;
    }

    .vbm-radar-label {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    /* viewBox units: the chart is drawn at ~0.55x here, so the axis labels are
     * enlarged to stay around 11-12px on screen. */
    .vbm-radar-axis {
        font-size: 21px;
    }

    .vbm-radar-legend {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homehero-mesh-svg,
    .vbm-radar-dot {
        animation: none;
    }
}
