.rv {
    --rv-ink: #edf2ff;
    --rv-mist: #a3b4d6;
    --rv-signal: #5a91f5;
    --rv-signal-hot: #8ab4ff;
    --rv-spark: #e0479e;
    --rv-violet: #8b5cf6;
    --rv-deep: #08102a;
    --rv-edge: rgba(122, 162, 255, 0.3);
    --rv-wire: rgba(122, 162, 255, 0.2);
    --rv-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    margin-top: 48px;
    color: var(--rv-ink);
}

.rv-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
}

.rv-stage {
    position: relative;
    width: 100%;
}

.rv-node {
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rv-node:focus-visible {
    outline: 2px solid var(--rv-signal-hot);
    outline-offset: 4px;
}

.rv-panels {
    display: grid;
}

.rv-panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s var(--rv-ease), transform 0.5s var(--rv-ease), visibility 0s linear 0.4s;
}

.rv-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s var(--rv-ease) 0.12s, transform 0.55s var(--rv-ease) 0.12s, visibility 0s;
}

.rv-eyebrow {
    display: block;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rv-signal-hot);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

.rv-panel h3,
.rv-panel h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--rv-ink);
    margin: 0 0 16px;
    text-wrap: balance;
}

.rv-panel p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--rv-mist);
    margin: 0;
    max-width: 58ch;
}

.rv-panel .pillar-link {
    display: inline-block;
    margin-top: 18px;
}

.rv-track .rv-panels {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.rv-track .rv-panel p {
    margin: 0 auto;
}

.rv-orbit .rv-stage {
    aspect-ratio: 1.22;
}

.rv-wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.rv-ring {
    fill: none;
    stroke: var(--rv-wire);
    stroke-width: 1;
    stroke-dasharray: 2 7;
}

.rv-spoke {
    fill: none;
    stroke: var(--rv-wire);
    stroke-width: 1.25;
    transition: stroke 0.3s;
}

.rv-pulse {
    fill: none;
    stroke: var(--rv-signal-hot);
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(90, 145, 245, 0.9));
}

.rv-pulse.is-run {
    transition: stroke-dashoffset 0.55s var(--rv-ease);
}

.rv-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(92px, 21%, 136px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
    background: radial-gradient(circle at 50% 38%, #18306b 0%, var(--rv-deep) 72%);
    box-shadow: 0 0 0 1px var(--rv-edge), 0 0 0 10px rgba(90, 145, 245, 0.06), 0 0 60px rgba(90, 145, 245, 0.28);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(12px, 1.25vw, 15px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--rv-ink);
    animation: rv-breathe 5.5s ease-in-out infinite;
}

.rv-hub img {
    width: 54%;
    height: auto;
    display: block;
}

@keyframes rv-breathe {
    0%, 100% { box-shadow: 0 0 0 1px var(--rv-edge), 0 0 0 10px rgba(90, 145, 245, 0.06), 0 0 50px rgba(90, 145, 245, 0.22); }
    50% { box-shadow: 0 0 0 1px var(--rv-edge), 0 0 0 16px rgba(90, 145, 245, 0.04), 0 0 80px rgba(90, 145, 245, 0.38); }
}

.rv-orbit .rv-node {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(var(--rv-s, 1));
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--rv-edge);
    background: rgba(8, 16, 42, 0.88);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--rv-mist);
    transition: transform 0.5s var(--rv-ease), color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.35s, opacity 0.5s var(--rv-ease);
}

.rv-orbit .rv-node:hover {
    color: var(--rv-ink);
    border-color: rgba(138, 180, 255, 0.6);
}

.rv-orbit .rv-node.is-active {
    --rv-s: 1.06;
    color: #fff;
    border-color: var(--rv-signal-hot);
    background: linear-gradient(135deg, #2b5fd6, #16307a);
    box-shadow: 0 0 0 4px rgba(90, 145, 245, 0.18), 0 10px 34px rgba(53, 117, 242, 0.45);
}

.rv-track .rv-rig,
.rv-scale .rv-rig {
    position: relative;
}

.rv-rail {
    position: absolute;
    height: 2px;
    background: var(--rv-wire);
    border-radius: 2px;
    pointer-events: none;
}

.rv-rail-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rv-signal), var(--rv-spark));
    box-shadow: 0 0 12px rgba(90, 145, 245, 0.7);
    transition: width 0.7s var(--rv-ease);
}

.rv-stops {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.rv-stops .rv-node {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
}

.rv-dot {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--rv-mist);
    background: var(--rv-deep);
    box-shadow: 0 0 0 1px var(--rv-edge);
    transform: scale(var(--rv-s, 1));
    transition: transform 0.45s var(--rv-ease), color 0.3s, background 0.3s, box-shadow 0.35s;
}

.rv-label {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--rv-mist);
    transition: color 0.25s;
    text-wrap: balance;
}

.rv-stops .rv-node:hover .rv-label,
.rv-stops .rv-node:hover .rv-dot {
    color: var(--rv-ink);
}

.rv-stops .rv-node.is-past .rv-dot {
    color: var(--rv-ink);
    background: #10235a;
    box-shadow: 0 0 0 1px rgba(138, 180, 255, 0.55);
}

.rv-stops .rv-node.is-active .rv-dot {
    --rv-s: 1.14;
    color: #fff;
    background: linear-gradient(135deg, var(--rv-signal), #2447b8);
    box-shadow: 0 0 0 5px rgba(90, 145, 245, 0.2), 0 0 28px rgba(90, 145, 245, 0.6);
}

.rv-stops .rv-node.is-active .rv-label {
    color: #fff;
}

.rv-venn .rv-stage {
    aspect-ratio: 1;
    max-width: 520px;
    margin: 0 auto;
}

.rv-venn-2 .rv-stage {
    aspect-ratio: 1.62;
    max-width: 620px;
}

.rv-circle {
    position: absolute;
    width: 56%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid var(--rv-c);
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--rv-c) 34%, transparent) 0%, color-mix(in srgb, var(--rv-c) 16%, transparent) 70%);
    mix-blend-mode: screen;
    display: flex;
    padding: 13%;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(15px, 1.7vw, 20px);
    font-weight: 600;
    color: var(--rv-ink);
    opacity: 0.82;
    transform: scale(var(--rv-s, 1));
    transition: opacity 0.35s, transform 0.55s var(--rv-ease), box-shadow 0.4s, background 0.4s;
}

.rv-circle:hover {
    opacity: 1;
}

.rv-venn.has-active .rv-circle:not(.is-active) {
    opacity: 0.42;
}

.rv-circle.is-active {
    --rv-s: 1.035;
    opacity: 1;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--rv-c) 58%, transparent) 0%, color-mix(in srgb, var(--rv-c) 26%, transparent) 72%);
    box-shadow: 0 0 60px color-mix(in srgb, var(--rv-c) 55%, transparent);
}

.rv-c1 { --rv-c: #3f7cf4; }
.rv-c2 { --rv-c: var(--rv-violet); }
.rv-c3 { --rv-c: var(--rv-spark); }

.rv-venn-3 .rv-c1 { left: 22%; top: 1%; justify-content: center; align-items: flex-start; }
.rv-venn-3 .rv-c2 { left: 3%; top: 36%; justify-content: flex-start; align-items: flex-end; }
.rv-venn-3 .rv-c3 { left: 41%; top: 36%; justify-content: flex-end; align-items: flex-end; }

.rv-venn-2 .rv-circle { width: auto; height: 94%; top: 3%; padding: 0 9%; align-items: center; }
.rv-venn-2 .rv-c1 { left: 5%; justify-content: flex-start; }
.rv-venn-2 .rv-c2 { right: 5%; justify-content: flex-end; }

.rv-core {
    position: absolute;
    left: 50%;
    top: 53%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.5;
    max-width: 24%;
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 3;
}

.rv-venn-2 .rv-core { top: 50%; }

.rv-scale .rv-field {
    position: relative;
    aspect-ratio: 1.7;
    margin-bottom: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%, rgba(53, 117, 242, 0.16) 0%, transparent 66%);
}

.rv-db {
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 30px;
    margin: -15px 0 0 -13px;
    opacity: 0;
    transform: translate(var(--rv-x, 0), var(--rv-y, 0)) scale(var(--rv-k, 0.2));
    transition: transform 0.85s var(--rv-ease), opacity 0.5s var(--rv-ease);
    transition-delay: var(--rv-d, 0s);
}

.rv-db.is-on {
    opacity: 1;
}

.rv-db svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.rv-db .rv-db-body {
    fill: rgba(90, 145, 245, 0.2);
    stroke: #8ab4ff;
    stroke-width: 1.4;
}

.rv-db .rv-db-band {
    fill: none;
    stroke: rgba(138, 180, 255, 0.55);
    stroke-width: 1.1;
}

.rv-db.is-origin .rv-db-body {
    fill: rgba(224, 71, 158, 0.28);
    stroke: #f08ac6;
}

.rv-db.is-origin {
    filter: drop-shadow(0 0 10px rgba(224, 71, 158, 0.55));
}

.rv-scale .rv-stops .rv-label {
    font-size: 14px;
}

.rv-in-pending .rv-node,
.rv-in-pending .rv-hub,
.rv-in-pending .rv-wires {
    opacity: 0 !important;
}

.rv-hub,
.rv-wires {
    transition: opacity 0.7s var(--rv-ease);
}

.rv-in-pending.rv-orbit .rv-node {
    --rv-s: 0.4;
}

.rv-in-pending .rv-dot {
    --rv-s: 0.3;
}

.rv-in-pending .rv-circle {
    --rv-s: 0.7;
}

.rv-stops .rv-node {
    transition: opacity 0.5s var(--rv-ease);
}

.rv:not(.rv-ready) .rv-panels {
    display: block;
}

.rv:not(.rv-ready) .rv-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .rv {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .rv-panel h3,
    .rv-panel h4 {
        font-size: 24px;
    }
    .rv-orbit .rv-stage {
        aspect-ratio: 1.08;
        max-width: 560px;
        margin: 0 auto;
    }
    .rv-scale .rv-visual,
    .rv:not(.rv-track) .rv-panels {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .rv {
        margin-top: 32px;
    }
    .rv-orbit .rv-stage {
        aspect-ratio: 0.92;
    }
    .rv-orbit .rv-node {
        font-size: 12px;
        padding: 7px 11px;
    }
    .rv-stops .rv-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .rv-dot {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
    .rv-scale .rv-stops .rv-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 12px;
    }
    .rv-scale .rv-field {
        aspect-ratio: 1.25;
    }
    .rv-panel p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv * {
        transition: none !important;
        animation: none !important;
    }
}
