/* ============================================================
   EnvisionSCADA homepage (v2)
   Scoped styles for Pages/Index.cshtml only.
   Every class is prefixed hv- to avoid collisions with site.css,
   which is still loaded for the shared header, nav and footer.
   ============================================================ */

:root {
    --hv-navy-950: #060b1c;
    --hv-navy-900: #0b1228;
    --hv-navy-850: #0e1731;
    --hv-navy-800: #131f42;
    --hv-ink: #0f172a;
    --hv-slate: #475569;
    --hv-slate-light: #94a3b8;
    --hv-blue: #2563eb;
    --hv-blue-deep: #1d4ed8;
    --hv-sky: #38bdf8;
    --hv-cyan: #22d3ee;
    --hv-light: #f8fafc;
    --hv-card-border: #dbe4f0;
    --hv-display-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --hv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   Shared building blocks
   ------------------------------------------------------------ */

.hv-section {
    position: relative;
    padding: 7rem 0;
}

.hv-dark {
    background: var(--hv-navy-950);
    color: #e2e8f0;
}

.hv-dark + .hv-dark {
    padding-top: 2rem;
}

.hv-light {
    background: var(--hv-light);
    color: var(--hv-ink);
}

.hv-light-alt {
    background: linear-gradient(180deg, #eef4fd 0%, var(--hv-light) 100%);
}

.hv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
    color: var(--hv-sky);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hv-light .hv-eyebrow,
.hv-light-alt .hv-eyebrow {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.07);
    color: var(--hv-blue-deep);
}

.hv-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hv-cyan);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
    animation: hv-pulse 2.4s ease-out infinite;
}

.hv-light .hv-eyebrow-dot,
.hv-light-alt .hv-eyebrow-dot {
    background: var(--hv-blue);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
}

@keyframes hv-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hv-h1 {
    margin: 0;
    font-family: var(--hv-display-font);
    font-size: clamp(2.5rem, 5.2vw, 4.1rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.hv-h2 {
    margin: 0;
    font-family: var(--hv-display-font);
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.hv-dark .hv-h2 { color: #f8fafc; }
.hv-light .hv-h2,
.hv-light-alt .hv-h2 { color: var(--hv-ink); }

.hv-gradient-text {
    background: linear-gradient(92deg, #38bdf8 0%, #22d3ee 45%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hv-lede {
    margin: 1.25rem 0 0;
    max-width: 640px;
    font-size: 1.12rem;
    line-height: 1.75;
}

.hv-dark .hv-lede { color: #b6c3d9; }
.hv-light .hv-lede,
.hv-light-alt .hv-lede { color: var(--hv-slate); }

.hv-section-head {
    max-width: 780px;
    margin: 0 auto 4.25rem;
    text-align: center;
}

.hv-section-head .hv-lede {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */

.hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.85rem 1.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--hv-ease), box-shadow 0.25s var(--hv-ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hv-btn:hover { transform: translateY(-2px); }
.hv-btn:active { transform: translateY(0); }

.hv-btn-primary,
.hv-btn-primary:visited {
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 14px 38px rgba(37, 99, 235, 0.4);
}

.hv-btn-primary:hover,
.hv-btn-primary:focus {
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(56, 189, 248, 0.45);
}

.hv-btn-ghost,
.hv-btn-ghost:visited {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.08);
}

.hv-btn-ghost:hover,
.hv-btn-ghost:focus {
    color: #ffffff;
    border-color: rgba(226, 232, 240, 0.7);
    background: rgba(148, 163, 184, 0.16);
}

.hv-btn-outline,
.hv-btn-outline:visited {
    color: var(--hv-blue-deep);
    border-color: #c3d4ee;
    background: #ffffff;
}

.hv-btn-outline:hover,
.hv-btn-outline:focus {
    color: #1e40af;
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.18);
}

.hv-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hv-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s var(--hv-ease);
}

.hv-text-link:hover { gap: 0.7rem; }

.hv-dark .hv-text-link { color: var(--hv-sky) !important; }
.hv-light .hv-text-link,
.hv-light-alt .hv-text-link { color: var(--hv-blue-deep) !important; }

.hv-text-link svg {
    width: 16px;
    height: 16px;
}

/* Scroll reveal */

.hv-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--hv-ease), transform 0.7s var(--hv-ease);
    transition-delay: var(--hv-delay, 0s);
}

.hv-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Screenshot frames */

.hv-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0e1731;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.55);
}

.hv-light .hv-frame,
.hv-light-alt .hv-frame {
    border-color: var(--hv-card-border);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.hv-frame-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.hv-frame-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.hv-frame-bar span:nth-child(1) { background: #f87171; }
.hv-frame-bar span:nth-child(2) { background: #fbbf24; }
.hv-frame-bar span:nth-child(3) { background: #34d399; }

.hv-frame-url {
    flex: 1;
    min-width: 0;
    margin-left: 0.6rem;
    padding: 0.28rem 0.9rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    font-size: 0.74rem;
    font-family: 'Consolas', 'SFMono-Regular', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.hv-shot-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    text-align: inherit;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hv-hero {
    position: relative;
    overflow: hidden;
    padding: 4.75rem 0 5.5rem;
    background:
        radial-gradient(900px 480px at 12% -10%, rgba(37, 99, 235, 0.28), transparent 60%),
        radial-gradient(760px 420px at 88% 8%, rgba(34, 211, 238, 0.14), transparent 60%),
        var(--hv-navy-950);
    color: #e2e8f0;
}

.hv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 35%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 35%, transparent 78%);
    pointer-events: none;
}

.hv-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
    animation: hv-drift 16s ease-in-out infinite alternate;
}

.hv-orb-1 {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%);
}

.hv-orb-2 {
    width: 360px;
    height: 360px;
    top: 30%;
    right: -140px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
    animation-delay: -6s;
}

@keyframes hv-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(46px, 34px, 0) scale(1.12); }
}

.hv-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    gap: 4.5rem;
    align-items: center;
}

.hv-hero-copy .hv-lede {
    max-width: 560px;
}

.hv-hero-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.hv-hero-brand img {
    width: 44px;
    flex-shrink: 0;
}

.hv-hero-brand span {
    font-family: var(--hv-display-font);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #cbd5e1;
}

.hv-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2.1rem;
}

.hv-hero-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.35rem 0 0;
    color: #cbd5e1;
    font-size: 0.98rem;
    font-weight: 600;
}

.hv-hero-note svg {
    width: 17px;
    height: 17px;
    color: #34d399;
    flex-shrink: 0;
}

/* Hero visual */

.hv-hero-visual {
    position: relative;
    perspective: 1600px;
}

.hv-hero-shot {
    transform: rotateY(-7deg) rotateX(3deg);
    transition: transform 0.7s var(--hv-ease);
    animation: hv-float 7s ease-in-out infinite;
}

.hv-hero-visual:hover .hv-hero-shot {
    transform: rotateY(0deg) rotateX(0deg);
}

@keyframes hv-float {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -12px; }
}

.hv-hero-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(11, 18, 40, 0.86);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.5);
    font-size: 0.8rem;
    color: #e2e8f0;
    animation: hv-float 6s ease-in-out infinite;
}

.hv-hero-chip strong {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
}

.hv-hero-chip small {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hv-chip-live {
    top: -20px;
    right: 8%;
    animation-delay: -2.2s;
}

.hv-chip-flow {
    bottom: -18px;
    left: -3%;
    animation-delay: -4s;
}

.hv-chip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    animation: hv-pulse 2.2s ease-out infinite;
    flex-shrink: 0;
}

.hv-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.16);
    color: var(--hv-sky);
    flex-shrink: 0;
}

.hv-chip-icon svg {
    width: 16px;
    height: 16px;
}

/* Hero stats strip */

.hv-hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 5.75rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hv-stat strong {
    display: block;
    font-family: var(--hv-display-font);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hv-stat span {
    display: block;
    margin-top: 0.3rem;
    color: #8fa3c0;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   AI assistant section
   ------------------------------------------------------------ */

.hv-ai {
    background:
        radial-gradient(820px 420px at 85% 0%, rgba(129, 140, 248, 0.12), transparent 60%),
        radial-gradient(700px 420px at 8% 90%, rgba(37, 99, 235, 0.16), transparent 60%),
        var(--hv-navy-950);
}

.hv-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 3.5rem;
    padding: 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hv-tab {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.68rem 1.5rem;
    background: transparent;
    color: #94a3b8;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.hv-tab:hover { color: #e2e8f0; }

.hv-tab[aria-selected="true"] {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.3));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.hv-tab-panel {
    display: none;
}

.hv-tab-panel.is-active {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
    gap: 4rem;
    align-items: center;
    animation: hv-panel-in 0.55s var(--hv-ease);
}

@keyframes hv-panel-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.hv-tab-copy h3 {
    margin: 0 0 1rem;
    font-family: var(--hv-display-font);
    font-size: 1.65rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.hv-prompt {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0 0 1.3rem;
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(37, 99, 235, 0.12);
}

.hv-prompt svg {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    color: var(--hv-sky);
    flex-shrink: 0;
}

.hv-prompt p {
    margin: 0;
    color: #dbeafe;
    font-size: 1.02rem;
    line-height: 1.6;
    font-style: italic;
}

.hv-tab-copy > p {
    margin: 0 0 1.4rem;
    color: #b6c3d9;
    line-height: 1.75;
}

.hv-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hv-check-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: #cbd5e1;
    line-height: 1.65;
}

.hv-check-list li + li { margin-top: 0.7rem; }

.hv-check-list svg {
    width: 18px;
    height: 18px;
    margin-top: 0.22rem;
    color: var(--hv-cyan);
    flex-shrink: 0;
}

.hv-light .hv-check-list li,
.hv-light-alt .hv-check-list li { color: var(--hv-slate); }

.hv-light .hv-check-list svg,
.hv-light-alt .hv-check-list svg { color: var(--hv-blue); }

/* ------------------------------------------------------------
   MCP section
   ------------------------------------------------------------ */

.hv-mcp-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: 4.5rem;
    align-items: center;
}

.hv-mcp-card {
    padding: 2.2rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(160deg, rgba(19, 31, 66, 0.85), rgba(11, 18, 40, 0.95));
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.5);
}

.hv-mcp-diagram {
    display: block;
    width: 100%;
    height: auto;
}

.hv-mcp-diagram .hv-d-node {
    fill: rgba(15, 23, 42, 0.9);
    stroke: rgba(148, 163, 184, 0.4);
    stroke-width: 1.2;
}

.hv-mcp-diagram .hv-d-node-accent {
    fill: rgba(37, 99, 235, 0.22);
    stroke: rgba(56, 189, 248, 0.7);
    stroke-width: 1.4;
}

.hv-mcp-diagram .hv-d-label {
    fill: #e2e8f0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.hv-mcp-diagram .hv-d-sub {
    fill: #7d90b0;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.hv-mcp-diagram .hv-d-mono {
    fill: #38bdf8;
    font-family: 'Consolas', 'SFMono-Regular', monospace;
    font-size: 11px;
}

.hv-mcp-diagram .hv-d-wire {
    fill: none;
    stroke: rgba(56, 189, 248, 0.35);
    stroke-width: 1.6;
    stroke-dasharray: 6 7;
    animation: hv-wire-flow 1.6s linear infinite;
}

@keyframes hv-wire-flow {
    to { stroke-dashoffset: -13; }
}

.hv-mcp-diagram .hv-d-dot {
    fill: var(--hv-cyan);
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.9));
}

.hv-mcp-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

.hv-pill {
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Split feature sections (reports / tour intro)
   ------------------------------------------------------------ */

.hv-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
    gap: 4.5rem;
    align-items: center;
}

.hv-split-copy h2 { margin-bottom: 0; }

.hv-split-copy .hv-check-list { margin-top: 1.6rem; }

.hv-split-copy .hv-cta-row { margin-top: 1.9rem; }

/* ------------------------------------------------------------
   Platform tour
   ------------------------------------------------------------ */

.hv-tour {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 3.25rem;
    align-items: start;
}

.hv-tour-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hv-tour-item {
    appearance: none;
    width: 100%;
    text-align: left;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--hv-ease);
}

.hv-tour-item:hover {
    background: #ffffff;
    border-color: var(--hv-card-border);
}

.hv-tour-item.is-active {
    background: #ffffff;
    border-color: #bfd7f8;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
    transform: translateX(6px);
}

.hv-tour-item strong {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--hv-ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.hv-tour-item strong svg {
    width: 19px;
    height: 19px;
    color: var(--hv-blue);
    flex-shrink: 0;
}

.hv-tour-item span {
    display: block;
    margin-top: 0.35rem;
    color: var(--hv-slate);
    font-size: 0.92rem;
    line-height: 1.6;
}

.hv-tour-stage {
    position: sticky;
    top: 130px;
}

.hv-tour-shot {
    display: none;
}

.hv-tour-shot.is-active {
    display: block;
    animation: hv-panel-in 0.5s var(--hv-ease);
}

.hv-tour-caption {
    margin: 1rem 0 0;
    color: var(--hv-slate);
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
}

/* ------------------------------------------------------------
   Feature bento grid (structural styles; visuals live at the
   end of this file under "Bento visuals & motion")
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Team
   ------------------------------------------------------------ */

.hv-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.hv-team-card {
    padding: 2.1rem 1.5rem 2.3rem;
    border-radius: 20px;
    border: 1px solid var(--hv-card-border);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    text-align: center;
    transition: transform 0.35s var(--hv-ease), box-shadow 0.35s var(--hv-ease);
}

.hv-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.hv-team-card img {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0ecfd;
}

.hv-team-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hv-ink);
    line-height: 1.35;
}

.hv-team-card p {
    margin: 0.4rem 0 0;
    color: var(--hv-slate);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Partners marquee
   ------------------------------------------------------------ */

.hv-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hv-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: hv-marquee-scroll 45s linear infinite;
}

.hv-marquee:hover .hv-marquee-track {
    animation-play-state: paused;
}

.hv-marquee-track a {
    display: block;
    flex-shrink: 0;
}

@keyframes hv-marquee-scroll {
    to { transform: translateX(-50%); }
}

.hv-marquee-track img {
    height: 96px;
    width: auto;
    flex-shrink: 0;
    border-radius: 18px;
    border: 1px solid var(--hv-card-border);
    background: #ffffff;
    padding: 0.85rem 1.6rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    object-fit: contain;
    transition: transform 0.3s var(--hv-ease), box-shadow 0.3s var(--hv-ease);
}

.hv-marquee-track img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

/* ------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------ */

.hv-cta {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
    background:
        radial-gradient(760px 420px at 50% -20%, rgba(37, 99, 235, 0.4), transparent 65%),
        radial-gradient(560px 320px at 85% 110%, rgba(34, 211, 238, 0.16), transparent 60%),
        var(--hv-navy-950);
    color: #e2e8f0;
    text-align: center;
}

.hv-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hv-cta .hv-h2 { color: #f8fafc; }

.hv-cta .hv-lede {
    margin-left: auto;
    margin-right: auto;
}

.hv-cta .hv-cta-row {
    justify-content: center;
    margin-top: 2.3rem;
}

.hv-cta-note {
    margin: 1.5rem 0 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */

.hv-lightbox {
    border: 0;
    padding: 0;
    max-width: min(1400px, 94vw);
    max-height: 92vh;
    background: transparent;
    outline: none;
}

.hv-lightbox::backdrop {
    background: rgba(3, 7, 18, 0.86);
    backdrop-filter: blur(6px);
}

.hv-lightbox img {
    display: block;
    max-width: min(1400px, 94vw);
    max-height: 86vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.hv-lightbox figcaption {
    margin-top: 0.8rem;
    text-align: center;
    color: #cbd5e1;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.95rem;
}

.hv-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1080px) {
    .hv-hero-grid,
    .hv-tab-panel.is-active,
    .hv-mcp-grid,
    .hv-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hv-hero { padding-top: 4.5rem; }

    .hv-hero-grid > *,
    .hv-split > *,
    .hv-mcp-grid > * {
        min-width: 0;
    }

    .hv-hero-shot {
        transform: none;
        animation: none;
    }

    .hv-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .hv-tour {
        grid-template-columns: 1fr;
    }

    .hv-tour-stage {
        position: static;
        order: -1;
    }

    .hv-tour-item.is-active { transform: none; }
}

@media (max-width: 720px) {
    .hv-section { padding: 4.5rem 0; }

    .hv-eyebrow {
        white-space: normal;
        letter-spacing: 0.12em;
    }

    .hv-hero { padding: 3.5rem 0 3rem; }

    .hv-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
        margin-top: 3rem;
    }

    .hv-hero-chip { display: none; }

    .hv-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hv-team-card img { width: 96px; height: 96px; }

    .hv-tabs {
        width: 100%;
        border-radius: 20px;
    }

    .hv-tab {
        flex: 1;
        padding: 0.6rem 0.9rem;
        font-size: 0.86rem;
    }

    .hv-btn {
        width: 100%;
    }

    .hv-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hv-marquee-track img { height: 68px; }
}


/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .hv-orb,
    .hv-hero-shot,
    .hv-hero-chip,
    .hv-eyebrow-dot,
    .hv-chip-dot,
    .hv-marquee-track,
    .hv-mcp-diagram .hv-d-wire {
        animation: none !important;
    }

    .hv-mcp-diagram .hv-d-dot { display: none; }

    .hv-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hv-tab-panel.is-active,
    .hv-tour-shot.is-active {
        animation: none;
    }
}

/* ============================================================
   Bento visuals & motion
   Animated feature cards, the HA failover diagram and the
   live engineering/operations diagram.
   ============================================================ */

/* Layout */

.hv-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.75rem;
}

.hv-b2 { grid-column: span 2; }
.hv-b3 { grid-column: span 3; }
.hv-b6 { grid-column: span 6; }

.hv-b {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid var(--hv-card-border);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: transform 0.35s var(--hv-ease), box-shadow 0.35s var(--hv-ease), border-color 0.35s ease;
}

.hv-b:hover {
    transform: translateY(-4px);
    border-color: #bfd7f8;
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.13);
}

.hv-b-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 1.25rem 0;
    padding: 1.1rem;
    min-height: 200px;
    border-radius: 15px;
    border: 1px solid #e0eafa;
    background: linear-gradient(180deg, #f3f8fe 0%, #e9f1fc 100%);
}

.hv-b-visual-dark {
    background: linear-gradient(170deg, #101a38, #0b1228);
    border-color: rgba(148, 163, 184, 0.25);
}

.hv-vis {
    width: 100%;
    height: auto;
}

.hv-b-body {
    padding: 1.4rem 1.6rem 1.8rem;
}

.hv-b-body h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.55rem;
    font-family: var(--hv-display-font);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--hv-ink);
}

.hv-b-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(37, 99, 235, 0.16));
    color: var(--hv-blue-deep);
}

.hv-b-ic svg {
    width: 17px;
    height: 17px;
}

.hv-b-body p {
    margin: 0;
    color: var(--hv-slate);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* Shared schematic primitives (light panels) */

.hv-v-node { fill: #ffffff; stroke: #c9d8ee; stroke-width: 1.4; }
.hv-v-accent { fill: #dbeafe; }
.hv-v-line { stroke: #c9d8ee; stroke-width: 2; stroke-linecap: round; }
.hv-v-tag { fill: #64748b; font: 700 10px 'Inter', sans-serif; letter-spacing: 0.08em; }
.hv-v-tinytag { fill: #94a3b8; font: 600 8.5px 'Inter', sans-serif; letter-spacing: 0.06em; }
.hv-v-label { fill: #ffffff; font: 700 10.5px 'Inter', sans-serif; letter-spacing: 0.08em; }

.hv-v-wire {
    fill: none;
    stroke: #93c5fd;
    stroke-width: 2;
    stroke-dasharray: 5 6;
    animation: hv-wire-flow 1.4s linear infinite;
}

/* HTML5: synchronized device bars */

.hv-v-bar {
    fill: #60a5fa;
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: hv-vbar 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * -2s);
}

@keyframes hv-vbar {
    0%, 100% { transform: scaleY(0.45); }
    35% { transform: scaleY(1); }
    70% { transform: scaleY(0.62); }
}

.hv-v-live {
    fill: #34d399;
    animation: hv-vblink 2.2s ease-in-out infinite;
}

@keyframes hv-vblink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* Unlimited clients: dots joining rings */

.hv-v-ring { fill: none; stroke: #d4e2f6; stroke-width: 1.4; stroke-dasharray: 3 5; }

.hv-v-cdot {
    fill: #3b82f6;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: hv-cdot 9s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.62s);
}

@keyframes hv-cdot {
    0% { transform: scale(0); opacity: 0; }
    6% { transform: scale(1); opacity: 1; }
    55% { transform: scale(1); opacity: 1; }
    68% { transform: scale(0.6); opacity: 0; }
    100% { opacity: 0; }
}

.hv-v-server { fill: #1d4ed8; stroke: #93c5fd; stroke-width: 1.4; }

/* Historian: pens drawing into the archive */

.hv-v-grid { stroke: #dde8f7; stroke-width: 1; }

.hv-v-pen1,
.hv-v-pen2 {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.hv-v-pen1 { stroke: #2563eb; animation: hv-pen1 12s linear infinite; }
.hv-v-pen2 { stroke: #f59e0b; animation: hv-pen2 12s linear infinite; }

@keyframes hv-pen1 {
    0%, 4% { stroke-dashoffset: 1; opacity: 1; }
    55% { stroke-dashoffset: 0; opacity: 1; }
    90% { stroke-dashoffset: 0; opacity: 1; }
    96%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes hv-pen2 {
    0%, 12% { stroke-dashoffset: 1; opacity: 1; }
    65% { stroke-dashoffset: 0; opacity: 1; }
    90% { stroke-dashoffset: 0; opacity: 1; }
    96%, 100% { stroke-dashoffset: 1; opacity: 0; }
}

.hv-v-db { fill: none; stroke: #93a9c9; stroke-width: 1.6; }

.hv-v-dbrow {
    stroke: #60a5fa;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.25;
    animation: hv-dbrow 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.1s);
}

@keyframes hv-dbrow {
    0%, 100% { opacity: 0.25; }
    15% { opacity: 1; }
    40% { opacity: 0.25; }
}

/* Free development: pipeline chips */

.hv-pipe {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hv-pipe-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    border: 1.5px solid #c9d8ee;
    background: #ffffff;
    animation: hv-pipe 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.4s);
}

.hv-pipe-step b { font-size: 0.8rem; font-weight: 700; color: var(--hv-ink); }
.hv-pipe-step i { font-style: normal; font-size: 0.72rem; font-weight: 700; color: #059669; }
.hv-pipe-live i { color: var(--hv-blue-deep); }
.hv-pipe-arrow { color: #94a3b8; font-weight: 700; }

@keyframes hv-pipe {
    0%, 100% { border-color: #c9d8ee; box-shadow: none; transform: none; }
    6% { border-color: #60a5fa; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18); transform: translateY(-3px); }
    14% { border-color: #c9d8ee; box-shadow: none; transform: none; }
}

/* Secure by design: locks, pings and shield */

.hv-v-lock path { fill: none; stroke: #b45309; stroke-width: 1.8; }
.hv-v-lock rect { fill: #fbbf24; stroke: #b45309; stroke-width: 1.2; }

.hv-v-ping {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 1.6;
    opacity: 0;
    animation: hv-ping 4s ease-out infinite;
    animation-delay: calc(var(--i) * 2s);
}

@keyframes hv-ping {
    0% { r: 6; opacity: 0.7; }
    30% { r: 16; opacity: 0; }
    100% { r: 16; opacity: 0; }
}

.hv-v-shield {
    transform-box: fill-box;
    transform-origin: center;
    animation: hv-shield 4s ease-in-out infinite;
}

.hv-v-shield path { fill: rgba(37, 99, 235, 0.12); stroke: #2563eb; stroke-width: 1.8; }
.hv-v-shield polyline { fill: none; stroke: #2563eb; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes hv-shield {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

/* Code windows (Python + terminal) */

.hv-codewin {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0d1526;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 34px rgba(2, 8, 23, 0.4);
}

.hv-codebar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.hv-codebar span { width: 9px; height: 9px; border-radius: 50%; }
.hv-codebar span:nth-child(1) { background: #f87171; }
.hv-codebar span:nth-child(2) { background: #fbbf24; }
.hv-codebar span:nth-child(3) { background: #34d399; }
.hv-codebar em { margin-left: 0.5rem; color: #94a3b8; font: 600 0.72rem 'Consolas', monospace; font-style: normal; }

.hv-code,
.hv-term {
    margin: 0;
    padding: 0.9rem 1rem 1.1rem;
    font: 500 12.5px/1.8 'Consolas', 'SFMono-Regular', monospace;
    color: #dbe4f2;
    overflow: hidden;
}

.hv-tl {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

.hv-k { color: #c084fc; font-style: normal; }
.hv-s { color: #86efac; font-style: normal; }
.hv-n { color: #fbbf24; font-style: normal; }

.hv-tl1 { animation: hv-tl1 14s linear infinite; }
.hv-tl2 { animation: hv-tl2 14s linear infinite; }
.hv-tl3 { animation: hv-tl3 14s linear infinite; }
.hv-tl4 { animation: hv-tl4 14s linear infinite; }

@keyframes hv-tl1 {
    0%, 4% { width: 0; animation-timing-function: steps(26, end); }
    16%, 92% { width: var(--ch); }
    96%, 100% { width: 0; }
}

@keyframes hv-tl2 {
    0%, 18% { width: 0; animation-timing-function: steps(16, end); }
    26%, 92% { width: var(--ch); }
    96%, 100% { width: 0; }
}

@keyframes hv-tl3 {
    0%, 28% { width: 0; animation-timing-function: steps(30, end); }
    42%, 92% { width: var(--ch); }
    96%, 100% { width: 0; }
}

@keyframes hv-tl4 {
    0%, 44% { width: 0; animation-timing-function: steps(20, end); }
    54%, 92% { width: var(--ch); }
    96%, 100% { width: 0; }
}

.hv-tl5 {
    width: auto;
    color: #34d399;
    opacity: 0;
    margin-top: 0.35rem;
    animation: hv-tl5 14s linear infinite;
}

@keyframes hv-tl5 {
    0%, 56% { opacity: 0; }
    60%, 92% { opacity: 1; }
    96%, 100% { opacity: 0; }
}

/* ------------------------------------------------------------
   HA failover spotlight
   ------------------------------------------------------------ */

.hv-ha-svg { display: block; width: 100%; height: auto; }

.hv-ha-client rect { fill: rgba(15, 23, 42, 0.75); stroke: rgba(148, 163, 184, 0.5); stroke-width: 1.3; }
.hv-ha-client line { stroke: rgba(148, 163, 184, 0.4); stroke-width: 2; stroke-linecap: round; }

.hv-ha-lp,
.hv-ha-ls,
.hv-ha-sync,
.hv-ha-bs-line {
    fill: none;
    stroke-width: 1.8;
    stroke-dasharray: 5 6;
}

.hv-ha-lp {
    stroke: #38bdf8;
    opacity: 0.9;
    animation: hv-ha-lp 16s linear infinite, hv-wire-flow 1.1s linear infinite;
}

.hv-ha-ls {
    stroke: #38bdf8;
    opacity: 0.15;
    animation: hv-ha-ls 16s linear infinite, hv-wire-flow 1.1s linear infinite;
}

.hv-ha-sync {
    stroke: #22d3ee;
    opacity: 0.8;
    animation: hv-ha-sync 16s linear infinite, hv-wire-flow 0.9s linear infinite;
}

@keyframes hv-ha-lp {
    0%, 33% { opacity: 0.9; }
    37%, 90% { opacity: 0.12; }
    95%, 100% { opacity: 0.9; }
}

@keyframes hv-ha-ls {
    0%, 36% { opacity: 0.15; }
    40%, 92% { opacity: 0.9; }
    97%, 100% { opacity: 0.15; }
}

@keyframes hv-ha-sync {
    0%, 33% { opacity: 0.8; }
    36%, 90% { opacity: 0.08; }
    95%, 100% { opacity: 0.8; }
}

.hv-ha-a-box { stroke-width: 1.6; animation: hv-ha-abox 16s linear infinite; }

@keyframes hv-ha-abox {
    0%, 33% { stroke: #34d399; fill: rgba(16, 185, 129, 0.08); }
    36%, 66% { stroke: #f87171; fill: rgba(248, 113, 113, 0.1); }
    70%, 88% { stroke: #fbbf24; fill: rgba(251, 191, 36, 0.08); }
    94%, 100% { stroke: #34d399; fill: rgba(16, 185, 129, 0.08); }
}

.hv-ha-b-box { stroke-width: 1.6; animation: hv-ha-bbox 16s linear infinite; }

@keyframes hv-ha-bbox {
    0%, 36% { stroke: #64748b; fill: rgba(148, 163, 184, 0.06); }
    40%, 90% { stroke: #34d399; fill: rgba(16, 185, 129, 0.08); }
    96%, 100% { stroke: #64748b; fill: rgba(148, 163, 184, 0.06); }
}

.hv-ha-name { fill: #e2e8f0; font: 700 12px 'Inter', sans-serif; letter-spacing: 0.1em; }

.hv-ha-a-pill { animation: hv-ha-apill 16s linear infinite; }

@keyframes hv-ha-apill {
    0%, 33% { fill: rgba(16, 185, 129, 0.2); }
    36%, 66% { fill: rgba(248, 113, 113, 0.22); }
    70%, 88% { fill: rgba(251, 191, 36, 0.2); }
    94%, 100% { fill: rgba(16, 185, 129, 0.2); }
}

.hv-ha-b-pill { animation: hv-ha-bpill 16s linear infinite; }

@keyframes hv-ha-bpill {
    0%, 36% { fill: rgba(148, 163, 184, 0.18); }
    40%, 90% { fill: rgba(16, 185, 129, 0.2); }
    96%, 100% { fill: rgba(148, 163, 184, 0.18); }
}

.hv-ha-state { font: 700 8.5px 'Inter', sans-serif; letter-spacing: 0.12em; }

.hv-ha-a-t1 { fill: #6ee7b7; animation: hv-ha-at1 16s linear infinite; }
.hv-ha-a-t2 { fill: #fca5a5; opacity: 0; animation: hv-ha-at2 16s linear infinite; }
.hv-ha-a-t3 { fill: #fcd34d; opacity: 0; animation: hv-ha-at3 16s linear infinite; }

@keyframes hv-ha-at1 {
    0%, 33% { opacity: 1; }
    35%, 92% { opacity: 0; }
    95%, 100% { opacity: 1; }
}

@keyframes hv-ha-at2 {
    0%, 34% { opacity: 0; }
    36%, 66% { opacity: 1; }
    69%, 100% { opacity: 0; }
}

@keyframes hv-ha-at3 {
    0%, 68% { opacity: 0; }
    70%, 88% { opacity: 1; }
    92%, 100% { opacity: 0; }
}

.hv-ha-b-t1 { fill: #cbd5e1; animation: hv-ha-bt1 16s linear infinite; }
.hv-ha-b-t2 { fill: #6ee7b7; opacity: 0; animation: hv-ha-bt2 16s linear infinite; }

@keyframes hv-ha-bt1 {
    0%, 36% { opacity: 1; }
    39%, 92% { opacity: 0; }
    96%, 100% { opacity: 1; }
}

@keyframes hv-ha-bt2 {
    0%, 38% { opacity: 0; }
    41%, 90% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

.hv-ha-alert { opacity: 0; animation: hv-ha-alert 16s linear infinite; }
.hv-ha-alert circle { fill: #ef4444; }
.hv-ha-alert text { fill: #ffffff; font: 800 12px 'Inter', sans-serif; }

@keyframes hv-ha-alert {
    0%, 32% { opacity: 0; }
    34%, 44% { opacity: 1; }
    48%, 100% { opacity: 0; }
}

.hv-ha-drop { stroke: rgba(148, 163, 184, 0.4); stroke-width: 1.6; }

.hv-ha-db ellipse,
.hv-ha-db path {
    fill: rgba(15, 23, 42, 0.5);
    stroke: #7d90b0;
    stroke-width: 1.4;
}

.hv-ha-tiny { fill: #7d90b0; font: 600 8.5px 'Inter', sans-serif; letter-spacing: 0.14em; }

.hv-ha-bs { opacity: 0; animation: hv-ha-bs 16s linear infinite; }
.hv-ha-bs-line { stroke: #fbbf24; animation: hv-wire-flow 1s linear infinite; }
.hv-ha-bs-head { fill: #fbbf24; }
.hv-ha-bs .hv-ha-tiny { fill: #fcd34d; }

@keyframes hv-ha-bs {
    0%, 66% { opacity: 0; }
    70%, 88% { opacity: 1; }
    92%, 100% { opacity: 0; }
}

.hv-ha-caps {
    position: relative;
    height: 1.6em;
    margin-top: 0.9rem;
    text-align: center;
}

.hv-ha-caps span {
    position: absolute;
    left: 0;
    right: 0;
    color: #8fa3c0;
    font-size: 0.88rem;
    opacity: 0;
}

.hv-ha-cap1 { animation: hv-ha-cap1 16s linear infinite; }
.hv-ha-cap2 { animation: hv-ha-cap2 16s linear infinite; }
.hv-ha-cap3 { animation: hv-ha-cap3 16s linear infinite; }

@keyframes hv-ha-cap1 {
    0%, 33% { opacity: 1; }
    36%, 94% { opacity: 0; }
    97%, 100% { opacity: 1; }
}

@keyframes hv-ha-cap2 {
    0%, 34% { opacity: 0; }
    37%, 64% { opacity: 1; }
    68%, 100% { opacity: 0; }
}

@keyframes hv-ha-cap3 {
    0%, 66% { opacity: 0; }
    70%, 90% { opacity: 1; }
    94%, 100% { opacity: 0; }
}

/* ------------------------------------------------------------
   Live engineering + operations diagram
   ------------------------------------------------------------ */

.hv-live {
    background:
        radial-gradient(760px 420px at 15% 100%, rgba(34, 211, 238, 0.1), transparent 60%),
        radial-gradient(820px 460px at 85% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
        var(--hv-navy-950);
}

.hv-live-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.75rem 2.75rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(160deg, rgba(19, 31, 66, 0.85), rgba(11, 18, 40, 0.95));
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.5);
}

.hv-live-svg { display: block; width: 100%; height: auto; }

.hv-lv-wire {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 1.7;
    stroke-dasharray: 5 6;
    opacity: 0.25;
    animation: hv-wire-flow 1.3s linear infinite;
}

.hv-lv-w1 { animation: hv-lv-w1 16s linear infinite, hv-wire-flow 1.3s linear infinite; }
.hv-lv-w2 { animation: hv-lv-w2 16s linear infinite, hv-wire-flow 1.3s linear infinite; }
.hv-lv-w3 { animation: hv-lv-wout1 16s linear infinite, hv-wire-flow 1.3s linear infinite; }
.hv-lv-w4 { animation: hv-lv-wout2 16s linear infinite, hv-wire-flow 1.3s linear infinite; }
.hv-lv-w5 { animation: hv-lv-wout3 16s linear infinite, hv-wire-flow 1.3s linear infinite; }

@keyframes hv-lv-w1 {
    0%, 3% { opacity: 0.25; }
    6%, 18% { opacity: 0.95; }
    24%, 100% { opacity: 0.25; }
}

@keyframes hv-lv-w2 {
    0%, 53% { opacity: 0.25; }
    56%, 68% { opacity: 0.95; }
    74%, 100% { opacity: 0.25; }
}

@keyframes hv-lv-wout1 {
    0%, 23% { opacity: 0.25; }
    26%, 38% { opacity: 0.95; }
    44%, 73% { opacity: 0.25; }
    76%, 88% { opacity: 0.95; }
    94%, 100% { opacity: 0.25; }
}

@keyframes hv-lv-wout2 {
    0%, 25% { opacity: 0.25; }
    28%, 40% { opacity: 0.95; }
    46%, 75% { opacity: 0.25; }
    78%, 90% { opacity: 0.95; }
    96%, 100% { opacity: 0.25; }
}

@keyframes hv-lv-wout3 {
    0%, 27% { opacity: 0.25; }
    30%, 42% { opacity: 0.95; }
    48%, 77% { opacity: 0.25; }
    80%, 92% { opacity: 0.95; }
    98%, 100% { opacity: 0.25; }
}

.hv-lv-dot {
    fill: #22d3ee;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.9));
}

@supports (offset-path: path("M0 0 L10 10")) {
    .hv-lv-d1 {
        offset-path: path("M155 82 C 230 82, 240 140, 300 152");
        animation: hv-lv-d1 16s linear infinite;
    }

    .hv-lv-d2 {
        offset-path: path("M155 232 C 230 232, 240 200, 300 188");
        animation: hv-lv-d2 16s linear infinite;
    }

    .hv-lv-do1 {
        offset-path: path("M420 150 C 480 140, 500 68, 575 68");
        animation: hv-lv-do1 16s linear infinite;
    }

    .hv-lv-do2 {
        offset-path: path("M420 170 C 480 168, 510 165, 575 165");
        animation: hv-lv-do2 16s linear infinite;
    }

    .hv-lv-do3 {
        offset-path: path("M420 190 C 480 200, 500 262, 575 262");
        animation: hv-lv-do3 16s linear infinite;
    }
}

@keyframes hv-lv-d1 {
    0%, 6% { offset-distance: 0%; opacity: 0; }
    8% { opacity: 1; }
    17% { opacity: 1; }
    19%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes hv-lv-d2 {
    0%, 56% { offset-distance: 0%; opacity: 0; }
    58% { opacity: 1; }
    67% { opacity: 1; }
    69%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes hv-lv-do1 {
    0%, 25% { offset-distance: 0%; opacity: 0; }
    27% { opacity: 1; }
    35% { opacity: 1; }
    37% { offset-distance: 100%; opacity: 0; }
    38%, 75% { offset-distance: 0%; opacity: 0; }
    77% { opacity: 1; }
    85% { opacity: 1; }
    87% { offset-distance: 100%; opacity: 0; }
    88%, 100% { offset-distance: 0%; opacity: 0; }
}

@keyframes hv-lv-do2 {
    0%, 27% { offset-distance: 0%; opacity: 0; }
    29% { opacity: 1; }
    37% { opacity: 1; }
    39% { offset-distance: 100%; opacity: 0; }
    40%, 77% { offset-distance: 0%; opacity: 0; }
    79% { opacity: 1; }
    87% { opacity: 1; }
    89% { offset-distance: 100%; opacity: 0; }
    90%, 100% { offset-distance: 0%; opacity: 0; }
}

@keyframes hv-lv-do3 {
    0%, 29% { offset-distance: 0%; opacity: 0; }
    31% { opacity: 1; }
    39% { opacity: 1; }
    41% { offset-distance: 100%; opacity: 0; }
    42%, 79% { offset-distance: 0%; opacity: 0; }
    81% { opacity: 1; }
    89% { opacity: 1; }
    91% { offset-distance: 100%; opacity: 0; }
    92%, 100% { offset-distance: 0%; opacity: 0; }
}

.hv-lv-scr {
    fill: rgba(15, 23, 42, 0.8);
    stroke: rgba(148, 163, 184, 0.55);
    stroke-width: 1.5;
}

.hv-lv-e1 { animation: hv-lv-e1 16s linear infinite; }
.hv-lv-e2 { animation: hv-lv-e2 16s linear infinite; }

@keyframes hv-lv-e1 {
    0% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    2%, 7% { stroke: #38bdf8; fill: rgba(56, 189, 248, 0.12); }
    11%, 100% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
}

@keyframes hv-lv-e2 {
    0%, 50% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    52%, 57% { stroke: #38bdf8; fill: rgba(56, 189, 248, 0.12); }
    61%, 100% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
}

.hv-lv-o1 { animation: hv-lv-o1 16s linear infinite; }
.hv-lv-o2 { animation: hv-lv-o2 16s linear infinite; }
.hv-lv-o3 { animation: hv-lv-o3 16s linear infinite; }

@keyframes hv-lv-o1 {
    0%, 36% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    38%, 44% { stroke: #34d399; fill: rgba(52, 211, 153, 0.12); }
    48%, 86% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    88%, 94% { stroke: #34d399; fill: rgba(52, 211, 153, 0.12); }
    98%, 100% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
}

@keyframes hv-lv-o2 {
    0%, 38% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    40%, 46% { stroke: #34d399; fill: rgba(52, 211, 153, 0.12); }
    50%, 88% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    90%, 96% { stroke: #34d399; fill: rgba(52, 211, 153, 0.12); }
    100% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
}

@keyframes hv-lv-o3 {
    0%, 40% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    42%, 48% { stroke: #34d399; fill: rgba(52, 211, 153, 0.12); }
    52%, 90% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
    92%, 98% { stroke: #34d399; fill: rgba(52, 211, 153, 0.12); }
    100% { stroke: rgba(148, 163, 184, 0.55); fill: rgba(15, 23, 42, 0.8); }
}

.hv-lv-code { fill: #38bdf8; font: 700 20px 'Consolas', monospace; }
.hv-lv-base { fill: rgba(148, 163, 184, 0.25); }
.hv-lv-tag { fill: #7d90b0; font: 700 9px 'Inter', sans-serif; letter-spacing: 0.16em; }

.hv-lv-save rect { fill: rgba(52, 211, 153, 0.15); stroke: #34d399; stroke-width: 1.2; }
.hv-lv-save text { fill: #6ee7b7; font: 800 8px 'Inter', sans-serif; letter-spacing: 0.1em; }

.hv-lv-save1 { opacity: 0; animation: hv-lv-save1 16s linear infinite; }
.hv-lv-save2 { opacity: 0; animation: hv-lv-save2 16s linear infinite; }

@keyframes hv-lv-save1 {
    0%, 1% { opacity: 0; }
    3%, 8% { opacity: 1; }
    12%, 100% { opacity: 0; }
}

@keyframes hv-lv-save2 {
    0%, 51% { opacity: 0; }
    53%, 58% { opacity: 1; }
    62%, 100% { opacity: 0; }
}

.hv-lv-ripple { fill: none; stroke: #22d3ee; stroke-width: 1.6; opacity: 0; }
.hv-lv-ripple1 { animation: hv-lv-rip1 16s linear infinite; }
.hv-lv-ripple2 { animation: hv-lv-rip2 16s linear infinite; }

@keyframes hv-lv-rip1 {
    0%, 18% { r: 30; opacity: 0; }
    19% { opacity: 0.7; }
    26% { r: 95; opacity: 0; }
    27%, 100% { r: 30; opacity: 0; }
}

@keyframes hv-lv-rip2 {
    0%, 68% { r: 30; opacity: 0; }
    69% { opacity: 0.7; }
    76% { r: 95; opacity: 0; }
    77%, 100% { r: 30; opacity: 0; }
}

.hv-lv-server { fill: rgba(37, 99, 235, 0.16); stroke: rgba(56, 189, 248, 0.75); stroke-width: 1.6; }
.hv-lv-name { fill: #f8fafc; font: 700 14px 'Space Grotesk', 'Inter', sans-serif; letter-spacing: 0.08em; }
.hv-lv-sub { fill: #7d90b0; font: 600 7.5px 'Inter', sans-serif; letter-spacing: 0.14em; }

.hv-lv-chip { fill: rgba(15, 23, 42, 0.6); stroke: rgba(148, 163, 184, 0.4); stroke-width: 1.1; }
.hv-lv-chip-eng { animation: hv-lv-chipeng 16s linear infinite; }
.hv-lv-chip-run { animation: hv-lv-chiprun 16s linear infinite; }

@keyframes hv-lv-chipeng {
    0%, 17% { stroke: rgba(148, 163, 184, 0.4); fill: rgba(15, 23, 42, 0.6); }
    19%, 24% { stroke: #22d3ee; fill: rgba(34, 211, 238, 0.14); }
    28%, 66% { stroke: rgba(148, 163, 184, 0.4); fill: rgba(15, 23, 42, 0.6); }
    68%, 74% { stroke: #22d3ee; fill: rgba(34, 211, 238, 0.14); }
    78%, 100% { stroke: rgba(148, 163, 184, 0.4); fill: rgba(15, 23, 42, 0.6); }
}

@keyframes hv-lv-chiprun {
    0%, 23% { stroke: rgba(148, 163, 184, 0.4); fill: rgba(15, 23, 42, 0.6); }
    25%, 31% { stroke: #34d399; fill: rgba(52, 211, 153, 0.14); }
    35%, 73% { stroke: rgba(148, 163, 184, 0.4); fill: rgba(15, 23, 42, 0.6); }
    75%, 81% { stroke: #34d399; fill: rgba(52, 211, 153, 0.14); }
    85%, 100% { stroke: rgba(148, 163, 184, 0.4); fill: rgba(15, 23, 42, 0.6); }
}

.hv-lv-chiptext { fill: #cbd5e1; font: 700 8.5px 'Inter', sans-serif; letter-spacing: 0.12em; }

.hv-lv-gauge { fill: none; stroke: rgba(148, 163, 184, 0.5); stroke-width: 2; stroke-linecap: round; }

.hv-lv-needle {
    stroke: #34d399;
    stroke-width: 2;
    stroke-linecap: round;
    transform-box: fill-box;
    transform-origin: 100% 100%;
    animation: hv-lv-needle 5s ease-in-out infinite;
}

@keyframes hv-lv-needle {
    0%, 100% { transform: rotate(0); }
    30% { transform: rotate(24deg); }
    60% { transform: rotate(-10deg); }
}

.hv-lv-stand { stroke: rgba(148, 163, 184, 0.5); stroke-width: 2.5; stroke-linecap: round; }

.hv-live-caps {
    position: relative;
    height: 1.6em;
    margin-top: 1rem;
    text-align: center;
}

.hv-live-caps span {
    position: absolute;
    left: 0;
    right: 0;
    color: #8fa3c0;
    font-size: 0.92rem;
    opacity: 0;
}

.hv-live-cap1 { animation: hv-live-cap1 8s linear infinite; }
.hv-live-cap2 { animation: hv-live-cap2 8s linear infinite; }
.hv-live-cap3 { animation: hv-live-cap3 8s linear infinite; }

@keyframes hv-live-cap1 {
    0%, 24% { opacity: 1; }
    28%, 96% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes hv-live-cap2 {
    0%, 26% { opacity: 0; }
    30%, 52% { opacity: 1; }
    56%, 100% { opacity: 0; }
}

@keyframes hv-live-cap3 {
    0%, 54% { opacity: 0; }
    58%, 94% { opacity: 1; }
    98%, 100% { opacity: 0; }
}

.hv-live-note {
    margin: 0.7rem 0 0;
    text-align: center;
    color: #7d90b0;
    font-size: 0.85rem;
}

/* ------------------------------------------------------------
   Bento responsive
   ------------------------------------------------------------ */

@media (max-width: 1080px) {
    .hv-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hv-b2,
    .hv-b3 { grid-column: span 1; }

    .hv-b6 { grid-column: span 2; }
}

@media (max-width: 720px) {
    .hv-bento { grid-template-columns: 1fr; }

    .hv-b2,
    .hv-b3,
    .hv-b6 { grid-column: auto; }

    .hv-live-card { padding: 1.2rem 1rem; }

    .hv-live-caps span { font-size: 0.8rem; }

    .hv-code,
    .hv-term { font-size: 10.5px; }
}

/* ------------------------------------------------------------
   Bento reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .hv-b-visual *,
    .hv-ha-svg *,
    .hv-ha-caps span,
    .hv-live-svg *,
    .hv-live-caps span,
    .hv-pipe-step,
    .hv-lic-key,
    .hv-lic-chip,
    .hv-chat-b,
    .hv-chat-typing,
    .hv-tl,
    .hv-term-cmd,
    .hv-term-out,
    .hv-term-out2 {
        animation: none !important;
    }

    .hv-tl,
    .hv-term-cmd { width: var(--ch, auto) !important; }

    .hv-tl5 { opacity: 1 !important; }

    .hv-chat-b { opacity: 1 !important; transform: none !important; }

    .hv-chat-typing { display: none; }

    .hv-term-out,
    .hv-term-out2 { opacity: 1 !important; }

    .hv-ha-cap1,
    .hv-live-cap1 { opacity: 1 !important; }

    .hv-lv-dot { display: none; }

    .hv-v-githead { display: none; }

    .hv-v-cdot { opacity: 1 !important; transform: none !important; }

    .hv-v-pen1,
    .hv-v-pen2 { stroke-dashoffset: 0 !important; opacity: 1 !important; }

    .hv-v-gitbranch { stroke-dashoffset: 0 !important; }

    .hv-v-diffbadge { opacity: 1 !important; }

    .hv-v-oe-dot,
    .hv-v-savechip,
    .hv-v-savetext,
    .hv-v-ping { opacity: 0 !important; }
}

/* ------------------------------------------------------------
   Multi monitor section
   ------------------------------------------------------------ */

.hv-mm-card {
    background: #ffffff;
    border: 1px solid var(--hv-card-border);
    border-radius: 22px;
    padding: 1.6rem;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.hv-mm-svg {
    display: block;
    width: 100%;
    height: auto;
}

.hv-mm-bezel { fill: #0f172a; }
.hv-mm-screen { fill: #f8fafc; stroke: #dbe4f0; stroke-width: 1; }
.hv-mm-chiprect { fill: #eff6ff; stroke: #bfdbfe; stroke-width: 1; }
.hv-mm-chiptext { fill: #1d4ed8; font: 700 9px 'Inter', sans-serif; letter-spacing: 0.1em; }

.hv-mm-line { stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; }
.hv-mm-box { fill: none; stroke: #94a3b8; stroke-width: 1.6; }
.hv-mm-tank { fill: none; stroke: #64748b; stroke-width: 1.6; }
.hv-mm-pump { fill: #2563eb; animation: hv-vblink 2.2s ease-in-out infinite; }
.hv-mm-kpi { fill: #ffffff; stroke: #dbe4f0; stroke-width: 1; }
.hv-mm-kpiline { stroke: #93c5fd; stroke-width: 3; stroke-linecap: round; }

.hv-mm-rowline { stroke: #cbd5e1; stroke-width: 3.5; stroke-linecap: round; }
.hv-mm-rowline2 { stroke: #e2e8f0; stroke-width: 3.5; stroke-linecap: round; }
.hv-mm-sev-crit { fill: #ef4444; animation: hv-vblink 1.1s ease-in-out infinite; }
.hv-mm-sev-high { fill: #f59e0b; }
.hv-mm-sev-info { fill: #38bdf8; }
.hv-mm-sev-ok { fill: #94a3b8; }

.hv-mm-alarmnew {
    transform-box: fill-box;
    animation: hv-mm-alarmnew 7s linear infinite;
}

@keyframes hv-mm-alarmnew {
    0%, 6% { opacity: 0; transform: translateX(-10px); }
    10%, 100% { opacity: 1; transform: none; }
}

.hv-mm-road { fill: none; stroke: #e2ecf9; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.hv-mm-maplink { stroke: #93c5fd; stroke-width: 1.4; stroke-dasharray: 3 4; }
.hv-mm-station { fill: #2563eb; }

.hv-mm-ping {
    stroke: #2563eb;
    animation-delay: calc(var(--i) * 0.8s);
}

.hv-mm-desk { stroke: #cbd5e1; stroke-width: 2; stroke-linecap: round; }
.hv-mm-kb { fill: #e2e8f0; stroke: #cbd5e1; stroke-width: 1; }
.hv-mm-mouse { fill: #cbd5e1; }

.hv-mm-note {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--hv-slate);
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .hv-mm-svg * {
        animation: none !important;
    }

    .hv-mm-alarmnew { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------
   Theme flips: AI assistant on light, multi monitor on dark
   ------------------------------------------------------------ */

.hv-ai.hv-light {
    background:
        radial-gradient(820px 420px at 85% 0%, rgba(99, 102, 241, 0.08), transparent 60%),
        radial-gradient(700px 420px at 8% 90%, rgba(37, 99, 235, 0.08), transparent 60%),
        var(--hv-light);
}

.hv-light .hv-gradient-text {
    background: linear-gradient(92deg, #2563eb 0%, #0891b2 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hv-light .hv-tabs {
    border-color: #dbe4f0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hv-light .hv-tab { color: #64748b; }

.hv-light .hv-tab:hover { color: var(--hv-ink); }

.hv-light .hv-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.hv-light .hv-tab-copy h3 { color: var(--hv-ink); }

.hv-light .hv-tab-copy > p { color: var(--hv-slate); }

.hv-light .hv-prompt {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
}

.hv-light .hv-prompt svg { color: var(--hv-blue); }

.hv-light .hv-prompt p { color: #1e40af; }

.hv-dark .hv-mm-card {
    background: linear-gradient(160deg, rgba(19, 31, 66, 0.85), rgba(11, 18, 40, 0.95));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.5);
}

.hv-dark .hv-mm-bezel {
    fill: #1e293b;
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1;
}

.hv-dark .hv-mm-desk { stroke: rgba(148, 163, 184, 0.4); }

.hv-dark .hv-mm-kb {
    fill: rgba(148, 163, 184, 0.25);
    stroke: rgba(148, 163, 184, 0.4);
}

.hv-dark .hv-mm-mouse { fill: rgba(148, 163, 184, 0.4); }

.hv-dark .hv-mm-note { color: #8fa3c0; }

/* ------------------------------------------------------------
   Control room scene (multi monitor)
   ------------------------------------------------------------ */

.hv-mm-wallglow { fill: rgba(56, 189, 248, 0.07); }

.hv-mm-desktop { fill: rgba(148, 163, 184, 0.28); }
.hv-mm-deskfront { fill: rgba(148, 163, 184, 0.1); }

.hv-mm-stand { stroke: rgba(148, 163, 184, 0.5); stroke-width: 3; stroke-linecap: round; }

.hv-mm-op {
    fill: #131c39;
    stroke: rgba(56, 189, 248, 0.35);
    stroke-width: 1.5;
}

.hv-mm-chair {
    fill: #10193a;
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1.3;
}

.hv-mm-chairleg { stroke: rgba(148, 163, 184, 0.4); stroke-width: 2.5; stroke-linecap: round; }

.hv-mm-floor { stroke: rgba(148, 163, 184, 0.15); stroke-width: 2; stroke-linecap: round; }

.hv-mm-shadow { fill: rgba(2, 8, 23, 0.45); }

.hv-mm-btn-go { fill: rgba(52, 211, 153, 0.25); stroke: #34d399; stroke-width: 1; }
.hv-mm-btn-stop { fill: rgba(248, 113, 113, 0.2); stroke: #f87171; stroke-width: 1; }

/* Python code window inside the platform tour */

.hv-tour-code .hv-code {
    font-size: 15px;
    padding: 1.2rem 1.4rem 1.5rem;
}

/* ------------------------------------------------------------
   Screenshot carousel (Report Builder)
   ------------------------------------------------------------ */

.hv-carousel-slides {
    display: grid;
    touch-action: pan-y;
    cursor: grab;
}

.hv-carousel-slides:active {
    cursor: grabbing;
}

.hv-carousel-slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    transition: opacity 0.45s var(--hv-ease), transform 0.3s var(--hv-ease);
    pointer-events: none;
}

.hv-carousel-slide img {
    -webkit-user-drag: none;
    user-select: none;
}

.hv-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hv-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.1rem;
}

.hv-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #c3d4ee;
    background: #ffffff;
    color: var(--hv-blue-deep);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--hv-ease);
}

.hv-carousel-arrow:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-1px);
}

.hv-carousel-arrow svg {
    width: 17px;
    height: 17px;
}

.hv-carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.hv-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s var(--hv-ease);
}

.hv-carousel-dot.is-active {
    background: var(--hv-blue);
    transform: scale(1.3);
}

@media (prefers-reduced-motion: reduce) {
    .hv-carousel-slide {
        transition: none;
    }
}

/* Carousel on dark sections */

.hv-dark .hv-carousel-arrow {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
}

.hv-dark .hv-carousel-arrow:hover {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.14);
}

.hv-dark .hv-carousel-dot {
    background: rgba(148, 163, 184, 0.4);
}

.hv-dark .hv-carousel-dot.is-active {
    background: var(--hv-sky);
}

/* Team LinkedIn buttons */

.hv-team-li,
.hv-team-li:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--hv-card-border);
    background: #f4f8fe;
    color: #64748b !important;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--hv-ease);
}

.hv-team-li:hover,
.hv-team-li:focus {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.hv-team-li svg {
    width: 17px;
    height: 17px;
}

/* ------------------------------------------------------------
   Clickable diagrams (zoom into the lightbox)
   ------------------------------------------------------------ */

.hv-diagram-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: inherit;
    cursor: zoom-in;
}

.hv-mcp-grid .hv-live-card {
    padding: 1.5rem 1.5rem 1.3rem;
}

.hv-lightbox-diagram {
    width: min(1300px, 92vw);
    padding: 2rem 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(160deg, rgba(19, 31, 66, 0.95), rgba(11, 18, 40, 0.98));
}

.hv-lightbox-diagram svg {
    width: 100%;
    height: auto;
}

.hv-lightbox-diagram .hv-ha-caps span,
.hv-lightbox-diagram .hv-live-caps span {
    font-size: 1rem;
}

/* ------------------------------------------------------------
   Connectivity hub + deploy cards
   ------------------------------------------------------------ */

.hv-cn-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.8rem 1.8rem 1.4rem;
}

.hv-cn-svg {
    display: block;
    width: 100%;
    height: auto;
}

.hv-cn-chip {
    fill: #ffffff;
    stroke: #c9d8ee;
    stroke-width: 1.4;
    animation: hv-cn-chip 10s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.8s);
}

@keyframes hv-cn-chip {
    0%, 100% { stroke: #c9d8ee; fill: #ffffff; }
    3% { stroke: #2563eb; fill: #eff6ff; }
    8% { stroke: #c9d8ee; fill: #ffffff; }
}

.hv-cn-chiptext { fill: #334155; font: 700 11px 'Inter', sans-serif; }

.hv-cn-wire {
    fill: none;
    stroke: #bfd7f8;
    stroke-width: 1.6;
    stroke-dasharray: 5 6;
    animation: hv-wire-flow 1.4s linear infinite;
}

.hv-cn-node { fill: rgba(37, 99, 235, 0.08); stroke: #2563eb; stroke-width: 1.6; }
.hv-cn-nodetext { fill: #0f172a; font: 700 15px 'Inter', sans-serif; letter-spacing: 0.08em; }
.hv-cn-nodesub { fill: #64748b; font: 600 8.5px 'Inter', sans-serif; letter-spacing: 0.12em; }

.hv-cn-dot {
    fill: #2563eb;
    filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.7));
}

.hv-dp-cpu { fill: #dbeafe; stroke: #93c5fd; stroke-width: 1.4; }

.hv-dp-block {
    fill: #60a5fa;
    opacity: 0.35;
    animation: hv-dp-block 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.6s);
}

@keyframes hv-dp-block {
    0%, 100% { opacity: 0.35; }
    12% { opacity: 1; }
    30% { opacity: 0.35; }
}

.hv-dp-pill-a { fill: rgba(16, 185, 129, 0.15); stroke: #34d399; stroke-width: 1.1; }
.hv-dp-pill-s { fill: rgba(148, 163, 184, 0.15); stroke: #94a3b8; stroke-width: 1.1; }
.hv-dp-pilltext { fill: #475569; font: 700 7.5px 'Inter', sans-serif; letter-spacing: 0.1em; }

@media (prefers-reduced-motion: reduce) {
    .hv-cn-svg * { animation: none !important; }
    .hv-cn-dot { display: none; }
}

/* Light-theme diagram host in the lightbox */

.hv-lightbox-diagram.hv-light-diagram {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fd 100%);
    border-color: #dbe4f0;
}

.hv-mcp-grid .hv-cn-card {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 1.4rem 1.4rem 1.2rem;
}

#connectivity .hv-mcp-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(380px, 1.3fr);
}

@media (max-width: 1080px) {
    #connectivity .hv-mcp-grid {
        grid-template-columns: 1fr;
    }
}

.hv-cn-chiptext-sm { font-size: 9.5px; }

/* Photo visuals in deploy cards */

.hv-b-visual-photo img {
    max-height: 200px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* Full-bleed photo visuals */

.hv-b-visual-photo {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    min-height: 0;
}

.hv-b-visual-photo img,
.hv-b-visual-photo svg {
    display: block;
    width: 100%;
    height: 220px;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}
