/* ═══════════════════════════════════════════════════════════════════════════
   home-v4.css — components for the v4 marketing homepage.

   Depends on revideo.css for tokens (--rv-*) and keyframes (rv-*). Load order:
       revideo.css  →  main.css  →  home-v4.css

   Everything here is prefixed .hv- and lives under .rv-scope, so it cannot
   collide with main.css. The prototype expressed all of this as ~1,000 inline
   style attributes; they are consolidated into classes here.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════ NAV (floating pill) ═══════════════════════ */

.hv-navwrap {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 16px 24px 0;
    pointer-events: none;
}

.hv-nav {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 6px 8px;
    max-width: 100%;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--rv-surface) 82%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--rv-border-ink);
    border-radius: 32px;
    padding: 8px 12px;
    box-shadow: var(--rv-shadow);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .hv-nav { background: var(--rv-surface); }
}

.hv-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-right: 16px;
    flex-shrink: 0;
}
.hv-brand img {
    width: 30px; height: 30px;
    object-fit: contain;
    transition: transform var(--rv-t-slow) var(--rv-ease);
}
.hv-brand:hover img { transform: rotate(-12deg) scale(1.1); }
.hv-brand__word {
    font-size: var(--rv-fs-xl);
    font-weight: 800;
    letter-spacing: var(--rv-tracking-tight);
    color: var(--rv-ink);
    white-space: nowrap;
}
.hv-brand__word em { color: var(--rv-primary); font-style: normal; }

.hv-navlinks { display: flex; align-items: center; gap: 2px; }

.hv-navlink {
    color: var(--rv-body);
    font-size: var(--rv-fs-md);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--rv-r-pill);
    white-space: nowrap;
    transition: color var(--rv-t) var(--rv-ease), background var(--rv-t) var(--rv-ease);
}
.hv-navlink:hover,
.hv-navlink[aria-expanded="true"] {
    color: var(--rv-ink);
    background: var(--rv-surface-4);
}
.hv-navlink__caret { font-size: 9px; opacity: .5; margin-left: 5px; }

.hv-navcta {
    color: var(--rv-ink);
    font-size: var(--rv-fs-md);
    font-weight: 700;
    padding: 9px 16px;
    border-radius: var(--rv-r-pill);
    white-space: nowrap;
    margin-left: 8px;
    border: 1px solid var(--rv-border);
    transition: all var(--rv-t-fast) var(--rv-ease);
}
.hv-navcta:hover {
    border-color: var(--rv-primary);
    color: var(--rv-primary);
    background: var(--rv-surface-3);
}
.hv-navcta:active { transform: scale(.97); }

.hv-navcta--solid {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--rv-ink);
    color: var(--rv-surface);
    padding: 9px 8px 9px 20px;
    border: 1px solid var(--rv-ink);
    font-weight: 600;
    margin-left: 4px;
}
.hv-navcta--solid:hover {
    background: var(--rv-ink);
    color: var(--rv-surface);
    border-color: var(--rv-ink);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px -8px rgba(22, 22, 29, .5);
}
.hv-navcta__arrow {
    width: 26px; height: 26px;
    border-radius: var(--rv-r-pill);
    background: color-mix(in srgb, var(--rv-surface) 16%, transparent);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ── Mega menu ── */
.hv-menu { position: relative; }
.hv-menu__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
    z-index: 60;
}
.hv-menu__inner {
    background: color-mix(in srgb, var(--rv-surface) 96%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-2xl);
    padding: 10px;
    box-shadow: var(--rv-shadow-lg);
    transform-origin: top center;
    animation: rv-menuin .22s var(--rv-ease);
}
.hv-menu__inner--wide { width: min(540px, calc(100vw - 48px)); }
.hv-menu__inner--narrow { width: min(400px, calc(100vw - 48px)); }

.hv-menu__col { display: flex; flex-direction: column; gap: 1px; padding: 4px; }
.hv-menu__label {
    font-size: var(--rv-fs-xs);
    font-weight: 800;
    letter-spacing: var(--rv-tracking-caps);
    text-transform: uppercase;
    color: var(--rv-muted);
    padding: 6px 12px 8px;
}
.hv-menu__row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 12px;
    border-radius: var(--rv-r-lg);
    transition: background var(--rv-t-fast);
}
.hv-menu__row:hover { background: var(--rv-surface-3); }
.hv-menu__icon {
    width: 52px; height: 38px;
    border-radius: var(--rv-r-md);
    background: var(--rv-surface-2);
    border: 1px solid var(--rv-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.hv-menu__icon img { height: 17px; width: auto; }
.hv-menu__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv-menu__title { font-size: var(--rv-fs-base); font-weight: 700; color: var(--rv-ink); letter-spacing: var(--rv-tracking-snug); }
.hv-menu__sub {
    font-size: var(--rv-fs-sm);
    color: var(--rv-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Dark-mode toggle. Icon swap is driven by main.css's existing
   .theme-toggle .icon-sun/.icon-moon rules keyed on [data-theme]. */
.hv-themetoggle {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: var(--rv-r-pill);
    border: 1px solid var(--rv-border);
    background: var(--rv-surface);
    color: var(--rv-body);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 6px;
    transition: all var(--rv-t-fast) var(--rv-ease);
}
.hv-themetoggle:hover { border-color: var(--rv-primary); color: var(--rv-primary); }
.hv-themetoggle svg { width: 16px; height: 16px; }
.hv-themetoggle .icon-sun  { display: none; }
.hv-themetoggle .icon-moon { display: block; }
[data-theme="dark"] .hv-themetoggle .icon-sun  { display: block; }
[data-theme="dark"] .hv-themetoggle .icon-moon { display: none; }

/* Mobile nav toggle — hidden on desktop, replaces the link row below 1080px */
.hv-burger {
    display: none;
    width: 40px; height: 40px;
    border-radius: var(--rv-r-pill);
    border: 1px solid var(--rv-border);
    background: var(--rv-surface);
    cursor: pointer;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    margin-left: auto;
}
.hv-burger span {
    display: block;
    width: 16px; height: 2px;
    border-radius: 2px;
    background: var(--rv-ink);
    transition: transform var(--rv-t) var(--rv-ease), opacity var(--rv-t);
}
.hv-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hv-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hv-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hv-mobilemenu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-2xl);
    box-shadow: var(--rv-shadow-lg);
    padding: 12px;
    flex-direction: column;
    gap: 2px;
    animation: rv-menuin .2s var(--rv-ease);
    max-height: min(70vh, 560px);
    overflow-y: auto;
}
.hv-mobilemenu.is-open { display: flex; }
.hv-mobilemenu a {
    padding: 12px 14px;
    border-radius: var(--rv-r-lg);
    font-size: var(--rv-fs-lg);
    font-weight: 600;
    color: var(--rv-ink);
}
.hv-mobilemenu a:hover { background: var(--rv-surface-3); color: var(--rv-ink); }
.hv-mobilemenu hr { border: 0; border-top: 1px solid var(--rv-border); margin: 8px 4px; }

@media (max-width: 1080px) {
    .hv-navlinks, .hv-navcta { display: none; }
    .hv-nav { width: 100%; }
    .hv-burger { display: flex; }
    .hv-navcta--solid { display: flex; margin-left: auto; }
}
@media (max-width: 560px) {
    .hv-navcta--solid { display: none; }
    .hv-navwrap { padding: 10px 12px 0; }
}

/* ═══════════════════════ HERO ═══════════════════════ */

.hv-hero { position: relative; z-index: 1; }

.hv-hero__grid {
    position: relative;
    max-width: var(--rv-container);
    margin: 0 auto;
    padding: 64px 32px 96px;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 60px;
    align-items: center;
}
.hv-hero__copy { display: flex; flex-direction: column; gap: 24px; }

.hv-hero__title {
    margin: 0;
    letter-spacing: -.03em;
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    text-wrap: pretty;
    color: var(--rv-ink);
    animation: rv-up .6s var(--rv-ease) .08s both;
}
.hv-hero__title em { color: var(--rv-primary); font-style: normal; }

.hv-hero__sub {
    margin: 0;
    font-size: 18.5px;
    line-height: 1.6;
    color: var(--rv-body);
    max-width: 470px;
    text-wrap: pretty;
    animation: rv-up .6s var(--rv-ease) .16s both;
}

/* Sonar rings behind the widget */
.hv-hero__decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hv-sonar { position: absolute; top: 50%; right: 6%; transform: translateY(-50%); width: 820px; height: 820px; }
.hv-sonar span {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(109, 92, 230, .22);
    animation: rv-sonar 5s var(--rv-ease) infinite;
}
.hv-sonar span:nth-child(2) { animation-delay: 1.25s; }
.hv-sonar span:nth-child(3) { animation-delay: 2.5s; }
.hv-sonar span:nth-child(4) { animation-delay: 3.75s; }

/* ── Proof row ── */
.hv-proof {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    animation: rv-up .6s var(--rv-ease) .24s both;
}
.hv-faces { display: flex; }
.hv-faces img {
    width: 38px; height: 38px;
    border-radius: var(--rv-r-pill);
    border: 2.5px solid var(--rv-page);
    object-fit: cover;
}
.hv-faces img + img { margin-left: -10px; }

.hv-stars { display: flex; gap: 2px; }
.hv-stars span {
    width: 16px; height: 16px;
    border-radius: 2px;
    background: var(--rv-success);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: var(--rv-fs-2xs);
}
.hv-stars span.is-half {
    background: linear-gradient(90deg, var(--rv-success) 78%, var(--rv-border) 78%);
}
.hv-proof__badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hv-proof__badge {
    display: inline-flex; align-items: center; gap: 5px;
    opacity: .9;
    transition: opacity var(--rv-t), transform var(--rv-t) var(--rv-ease);
    font-size: var(--rv-fs-base);
    font-weight: 800;
    letter-spacing: var(--rv-tracking-tight);
    color: var(--rv-ink);
}
.hv-proof__badge:hover { opacity: 1; transform: translateY(-2px); }
.hv-proof__badge img { width: 15px; height: 15px; }

/* ── Upload widget (double bezel + tilt) ── */
.hv-widget { perspective: 1100px; position: relative; animation: rv-up .7s var(--rv-ease) .2s both; }

.hv-widget__float {
    position: absolute;
    border-radius: var(--rv-r-pill);
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    box-shadow: 0 10px 26px -8px rgba(22, 22, 29, .18);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    pointer-events: none;
}
.hv-widget__float--a { top: -26px; left: -30px; width: 52px; height: 52px; animation: rv-float-a 4.2s ease-in-out infinite; }
.hv-widget__float--b { top: 34%; right: -26px; width: 46px; height: 46px; animation: rv-float-b 3.6s ease-in-out .6s infinite; }
.hv-widget__float--c { bottom: -20px; left: -22px; width: 46px; height: 46px; animation: rv-float-c 4.8s ease-in-out 1.1s infinite; }

.hv-widget__bezel {
    background: rgba(22, 22, 29, .04);
    border: 1px solid rgba(22, 22, 29, .06);
    border-radius: 32px;
    padding: 10px;
    transition: transform .18s ease-out;
    will-change: transform;
}
[data-theme="dark"] .hv-widget__bezel {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .07);
}

.hv-widget__card {
    background: var(--rv-surface);
    border: 1px solid rgba(22, 22, 29, .06);
    border-radius: 24px;
    padding: 26px;
    display: flex; flex-direction: column; gap: 15px;
    box-shadow: 0 30px 80px -30px rgba(80, 63, 205, .25), inset 0 1px 0 rgba(255, 255, 255, .8);
}
[data-theme="dark"] .hv-widget__card {
    border-color: var(--rv-border);
    box-shadow: var(--rv-shadow-lg);
}
.hv-widget__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hv-widget__title { font-size: 17px; font-weight: 600; letter-spacing: var(--rv-tracking-tight); color: var(--rv-ink); }
.hv-widget__quota {
    font-size: 12px; font-weight: 600;
    color: var(--rv-primary);
    background: var(--rv-surface-4);
    border-radius: var(--rv-r-pill);
    padding: 4px 12px;
    white-space: nowrap;
}

.hv-drop {
    border: 1.5px dashed var(--rv-primary-pale);
    border-radius: var(--rv-r-xl);
    padding: 36px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    cursor: pointer;
    background: var(--rv-surface-2);
    text-align: center;
    transition: all .22s var(--rv-ease);
}
.hv-drop:hover, .hv-drop.is-over {
    border-color: var(--rv-primary);
    background: var(--rv-surface-3);
    transform: scale(1.01);
}
.hv-drop img { width: 46px; height: 46px; object-fit: contain; animation: rv-float 3.5s ease-in-out infinite; }
.hv-drop__label { font-size: 16px; font-weight: 700; color: var(--rv-ink); }
.hv-drop__hint  { font-size: 13px; color: var(--rv-muted); }

.hv-input {
    background: var(--rv-surface-2);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-lg);
    padding: 14px 16px;
    color: var(--rv-ink);
    font-size: var(--rv-fs-md);
    font-family: var(--rv-font);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .3s, box-shadow .3s;
}
.hv-input::placeholder { color: var(--rv-muted); }
.hv-input:focus {
    border-color: var(--rv-primary);
    box-shadow: 0 0 0 4px rgba(109, 92, 230, .12);
}

.hv-submit {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--rv-gradient);
    color: #fff;
    border: none;
    border-radius: var(--rv-r-pill);
    padding: 15px 20px;
    font-size: 16px; font-weight: 700;
    font-family: var(--rv-font);
    cursor: pointer;
    transition: transform .22s var(--rv-ease), box-shadow .22s var(--rv-ease);
}
.hv-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(88, 80, 236, .55); }
.hv-submit:active { transform: scale(.98); }
.hv-submit__arrow {
    width: 28px; height: 28px;
    border-radius: var(--rv-r-pill);
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.hv-widget__foot { text-align: center; font-size: var(--rv-fs-sm); color: var(--rv-muted); }

@media (max-width: 980px) {
    .hv-hero__grid { grid-template-columns: 1fr; gap: 44px; padding: 40px 20px 64px; }
    .hv-sonar { display: none; }
    .hv-widget__float { display: none; }
}

/* ═══════════════════════ MARQUEES ═══════════════════════ */

.hv-marquee {
    width: 100%;
    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: inline-flex;
    gap: 14px;
    padding-right: 14px;
    animation: rv-marquee 46s linear infinite;
    will-change: transform;
}
.hv-marquee__track--rev { animation-name: rv-marquee-r; }
.hv-marquee__track--fast { animation-duration: 32s; }
.hv-marquee:hover .hv-marquee__track { animation-play-state: paused; }

.hv-platcard {
    width: 196px;
    flex-shrink: 0;
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-xl);
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 11px;
    box-shadow: 0 4px 14px -6px rgba(22, 22, 29, .08);
    transition: transform .22s var(--rv-ease), box-shadow .22s var(--rv-ease), border-color .22s;
}
.hv-platcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -10px rgba(80, 63, 205, .22);
    border-color: var(--rv-primary-pale);
}
.hv-platcard__head { display: flex; align-items: center; gap: 9px; }
.hv-platcard__head img { width: 20px; height: 20px; flex-shrink: 0; }
.hv-platcard__name { font-size: var(--rv-fs-md); font-weight: 700; color: var(--rv-ink); }
.hv-platcard__body { height: 34px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.hv-platcard__idle { font-size: 12px; color: var(--rv-muted-2); }
.hv-platcard__live { display: none; }
.hv-platcard:hover .hv-platcard__idle { display: none; }
.hv-platcard:hover .hv-platcard__live { display: block; }
.hv-platcard__bar { height: 4px; border-radius: 99px; background: var(--rv-border); overflow: hidden; }
.hv-platcard__bar i { display: block; height: 100%; border-radius: 99px; background: var(--rv-gradient); width: 0; animation: rv-draw .7s var(--rv-ease) forwards; }
.hv-platcard__result { display: block; font-size: 12px; font-weight: 700; margin-top: 6px; opacity: 0; animation: rv-fadein .25s var(--rv-ease) .68s forwards; }
.hv-platcard__result--hit  { color: var(--rv-primary); }
.hv-platcard__result--miss { color: var(--rv-muted); }

.hv-painchip {
    flex-shrink: 0;
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-pill);
    padding: 10px 18px;
    font-size: var(--rv-fs-base);
    font-weight: 600;
    color: var(--rv-body);
    white-space: nowrap;
}

/* Toast that floats over the platform marquee */
.hv-toast {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: rv-toast 9s var(--rv-ease) 1.4s infinite;
}
.hv-toast__box {
    display: flex; align-items: center; gap: 12px;
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: 16px;
    padding: 13px 16px;
    box-shadow: 0 22px 50px -16px rgba(22, 22, 29, .28);
    width: 296px;
    max-width: calc(100vw - 40px);
}
.hv-toast__bell {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--rv-gradient);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    animation: rv-bellring 9s ease 1.4s infinite;
}

/* ═══════════════════════ TICKER ═══════════════════════ */

.hv-ticker__row {
    display: inline-flex; align-items: center; gap: 10px;
    flex-shrink: 0;
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-pill);
    padding: 9px 14px;
    white-space: nowrap;
}
.hv-ticker__row img { width: 16px; height: 16px; flex-shrink: 0; opacity: .85; }
.hv-ticker__text { font-size: var(--rv-fs-base); color: var(--rv-body); font-weight: 500; }
.hv-tag {
    font-size: var(--rv-fs-2xs);
    font-weight: 800;
    letter-spacing: .06em;
    border-radius: var(--rv-r-pill);
    padding: 3px 9px;
    white-space: nowrap;
}
.hv-tag--ok    { background: color-mix(in srgb, var(--rv-success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rv-success) 32%, transparent); color: var(--rv-success-deep); }
.hv-tag--warn  { background: var(--rv-warning-wash); border: 1px solid var(--rv-warning-soft); color: var(--rv-warning); }
.hv-tag--bad   { background: var(--rv-danger-wash);  border: 1px solid var(--rv-danger-pale);  color: var(--rv-danger); }
.hv-tag--brand { background: var(--rv-surface-4);    border: 1px solid var(--rv-primary-pale); color: var(--rv-primary); }

/* ═══════════════════════ SECTION FURNITURE ═══════════════════════ */

.hv-sec {
    position: relative;
    z-index: 1;
    max-width: var(--rv-container);
    margin: 0 auto;
    padding: 0 32px 112px;
}
.hv-sec--narrow { max-width: 820px; }
.hv-sec__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.hv-sec__head--center { text-align: center; align-items: center; }
.hv-sec__title {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--rv-ink);
    text-wrap: pretty;
}
.hv-sec__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--rv-body); max-width: 620px; }
.hv-sec__head--center .hv-sec__lead { margin-inline: auto; }
.hv-kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--rv-muted-2);
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 768px) { .hv-sec { padding: 0 20px 72px; } }

/* ═══════════════════════ STEPS ═══════════════════════ */

.hv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hv-step {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-2xl);
    padding: 28px;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .22s var(--rv-ease), box-shadow .22s var(--rv-ease), border-color .22s;
}
.hv-step:hover { transform: translateY(-4px); box-shadow: var(--rv-shadow); border-color: var(--rv-primary-pale); }
.hv-step__n {
    width: 38px; height: 38px;
    border-radius: var(--rv-r-pill);
    background: var(--rv-gradient);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: var(--rv-fs-lg);
    flex-shrink: 0;
}
.hv-step__t { font-size: 17px; font-weight: 700; color: var(--rv-ink); letter-spacing: var(--rv-tracking-snug); }
.hv-step__b { font-size: var(--rv-fs-md); line-height: 1.6; color: var(--rv-body); margin: 0; }

@media (max-width: 900px) { .hv-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hv-steps { grid-template-columns: 1fr; } }

/* ═══════════════════════ AUDIENCE TABS ═══════════════════════ */

.hv-icp { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; }
.hv-icp__tabs { display: flex; flex-direction: column; gap: 10px; }
.hv-icp__tab {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--rv-r-xl);
    padding: 18px 22px;
    cursor: pointer;
    font-family: var(--rv-font);
    text-align: left;
    background: var(--rv-surface);
    color: var(--rv-ink);
    border: 1px solid var(--rv-border);
    transition: all .22s var(--rv-ease);
}
.hv-icp__tab:hover { border-color: var(--rv-primary-pale); }
.hv-icp__tab[aria-selected="true"] {
    background: var(--rv-ink);
    color: var(--rv-page);
    border-color: var(--rv-ink);
    box-shadow: 0 14px 30px -12px rgba(22, 22, 29, .4);
}
.hv-icp__tabtitle { font-size: 16px; font-weight: 700; letter-spacing: var(--rv-tracking-snug); }
.hv-icp__tabsub { font-size: 13px; font-weight: 500; color: var(--rv-muted); }
.hv-icp__tab[aria-selected="true"] .hv-icp__tabsub { color: rgba(255, 255, 255, .62); }
[data-theme="dark"] .hv-icp__tab[aria-selected="true"] .hv-icp__tabsub { color: rgba(0, 0, 0, .55); }
.hv-icp__arrow {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: var(--rv-r-pill);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    background: var(--rv-surface-4);
    color: var(--rv-primary);
    transition: all .22s var(--rv-ease);
}
.hv-icp__tab[aria-selected="true"] .hv-icp__arrow { background: var(--rv-gradient); color: #fff; }

.hv-icp__panel {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-3xl);
    padding: 40px;
    display: none;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--rv-shadow-sm);
}
.hv-icp__panel.is-active { display: flex; animation: rv-fadein .3s var(--rv-ease); }
.hv-icp__pain { margin: 0; font-size: clamp(21px, 2.2vw, 27px); font-weight: 800; letter-spacing: -.02em; color: var(--rv-ink); line-height: 1.2; }
.hv-icp__body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--rv-body); }
.hv-icp__fix {
    display: inline-flex; align-items: center; gap: 8px;
    align-self: flex-start;
    background: var(--rv-surface-4);
    color: var(--rv-primary);
    border-radius: var(--rv-r-pill);
    padding: 10px 18px;
    font-size: var(--rv-fs-md);
    font-weight: 700;
}

@media (max-width: 900px) { .hv-icp { grid-template-columns: 1fr; } .hv-icp__panel { padding: 28px; } }

/* ═══════════════════════ CASE STUDIES ═══════════════════════ */

.hv-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hv-case {
    position: relative;
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-2xl);
    padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 6px 24px -14px rgba(22, 22, 29, .1);
    transition: transform .22s var(--rv-ease), box-shadow .22s var(--rv-ease);
}
.hv-case:hover { transform: translateY(-4px); box-shadow: var(--rv-shadow); }
.hv-case__title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--rv-ink); }
.hv-case__body { margin: 0; font-size: var(--rv-fs-md); line-height: 1.6; color: var(--rv-body); flex: 1; }
.hv-case__stats { display: flex; gap: 24px; padding-top: 6px; border-top: 1px solid var(--rv-border); }
.hv-case__stat { display: flex; flex-direction: column; gap: 2px; }
.hv-case__statv { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--rv-primary); }
.hv-case__statl { font-size: 12px; color: var(--rv-muted); }

@media (max-width: 900px) { .hv-cases { grid-template-columns: 1fr; } }

/* ═══════════════════════ TESTIMONIALS ═══════════════════════ */

.hv-quote {
    width: 340px;
    flex-shrink: 0;
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-2xl);
    padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
    box-shadow: 0 6px 24px -14px rgba(22, 22, 29, .1);
    white-space: normal;
}
.hv-quote__stars { display: flex; gap: 2px; }
.hv-quote__text { margin: 0; font-size: var(--rv-fs-lg); line-height: 1.6; color: var(--rv-ink); flex: 1; }
.hv-quote__foot { display: flex; align-items: center; gap: 12px; }
.hv-quote__av {
    width: 38px; height: 38px;
    border-radius: var(--rv-r-pill);
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    border: 2px solid var(--rv-surface);
    box-shadow: 0 3px 10px -4px rgba(22, 22, 29, .3);
}
.hv-quote__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hv-quote__name { font-size: var(--rv-fs-base); font-weight: 700; color: var(--rv-ink); }
.hv-quote__role { font-size: var(--rv-fs-sm); color: var(--rv-muted); }
.hv-quote__src { display: flex; align-items: center; gap: 5px; font-size: var(--rv-fs-xs); color: var(--rv-muted); margin-left: auto; flex-shrink: 0; }
.hv-quote__src img { width: 13px; height: 13px; }

/* ═══════════════════════ DARK PANELS (feed / bento) ═══════════════════════ */

.hv-dark {
    position: relative;
    overflow: hidden;
    background: var(--rv-ink);
    border-radius: var(--rv-r-3xl);
    padding: 40px;
    color: #fff;
}
[data-theme="dark"] .hv-dark { background: var(--rv-surface-2); border: 1px solid var(--rv-border); }
.hv-dark__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
[data-theme="dark"] .hv-dark__title { color: var(--rv-ink); }
.hv-dark__sub { margin: 0 0 24px; font-size: var(--rv-fs-md); color: rgba(255, 255, 255, .6); }
[data-theme="dark"] .hv-dark__sub { color: var(--rv-muted); }

.hv-feed { display: flex; flex-direction: column; gap: 8px; }
.hv-feed__row {
    display: flex; align-items: center; gap: 12px;
    min-width: 0;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--rv-r-lg);
    padding: 11px 13px;
}
.hv-feed__row:first-child {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .13);
    animation: rv-newrow .5s var(--rv-ease);
}
.hv-feed__tile {
    width: 32px; height: 32px;
    border-radius: var(--rv-r-md);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .09);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
/* Brand icons are dark-on-transparent; force them white inside dark panels
   rather than shipping a second, inverted copy of every file. */
.hv-feed__tile img, .hv-icon-invert { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.hv-feed__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hv-feed__t { font-size: var(--rv-fs-base); font-weight: 700; color: #fff; }
.hv-feed__m { font-size: var(--rv-fs-sm); color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .hv-feed__t { color: var(--rv-ink); }
[data-theme="dark"] .hv-feed__m { color: var(--rv-muted); }
.hv-feed__badge { font-size: var(--rv-fs-2xs); font-weight: 800; letter-spacing: .06em; border-radius: var(--rv-r-pill); padding: 4px 10px; flex-shrink: 0; white-space: nowrap; }
.hv-feed__badge--ok    { color: #34d399; background: rgba(52, 211, 153, .12);  border: 1px solid rgba(52, 211, 153, .3); }
.hv-feed__badge--warn  { color: #fbbf24; background: rgba(251, 191, 36, .12);  border: 1px solid rgba(251, 191, 36, .3); }
.hv-feed__badge--bad   { color: #fb7185; background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .3); }
.hv-feed__badge--brand { color: #c4b5fd; background: rgba(139, 92, 246, .16);  border: 1px solid rgba(139, 92, 246, .34); }

/* ═══════════════════════ CALCULATOR ═══════════════════════ */

.hv-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hv-calc__out { display: flex; flex-direction: column; gap: 6px; }
.hv-calc__big { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--rv-danger); }
.hv-calc__note { font-size: 13px; color: var(--rv-muted); line-height: 1.55; margin: 0; }
.hv-calc__sub { display: flex; gap: 28px; margin-top: 12px; }
.hv-calc__subv { font-size: 21px; font-weight: 800; color: var(--rv-ink); }
.hv-calc__subl { font-size: 12px; color: var(--rv-muted); }

.hv-range { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.hv-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--rv-border); }
.hv-range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--rv-border); }
.hv-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 24px; height: 24px; margin-top: -8px;
    border-radius: var(--rv-r-pill);
    background: var(--rv-gradient);
    border: 3px solid var(--rv-surface);
    box-shadow: var(--rv-shadow-glow);
}
.hv-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: var(--rv-r-pill);
    background: var(--rv-primary);
    border: 3px solid var(--rv-surface);
}
.hv-range:focus-visible { outline: 2.5px solid var(--rv-primary); outline-offset: 4px; }

@media (max-width: 820px) { .hv-calc { grid-template-columns: 1fr; } }

/* ═══════════════════════ FAQ ═══════════════════════ */

.hv-faqs { display: flex; flex-direction: column; gap: 12px; }
.hv-faq {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-r-xl);
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.hv-faq:hover { border-color: var(--rv-primary-pale); box-shadow: 0 8px 24px -14px rgba(22, 22, 29, .12); }
.hv-faq__q {
    width: 100%;
    background: none;
    border: none;
    color: var(--rv-ink);
    font-family: var(--rv-font);
    font-size: 16.5px;
    font-weight: 700;
    text-align: left;
    padding: 21px 24px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    transition: transform var(--rv-t-fast) var(--rv-ease);
}
.hv-faq__q:active { transform: scale(.99); }
.hv-faq__icon {
    color: var(--rv-primary);
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
    transition: transform .22s var(--rv-ease);
}
.hv-faq__q[aria-expanded="true"] .hv-faq__icon { transform: rotate(45deg); }
/* grid-template-rows 0fr→1fr animates height without measuring it in JS */
.hv-faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--rv-ease); }
.hv-faq__body.is-open { grid-template-rows: 1fr; }
.hv-faq__inner { min-height: 0; overflow: hidden; }
.hv-faq__a { padding: 0 24px 21px; font-size: var(--rv-fs-lg); line-height: 1.65; color: var(--rv-body); margin: 0; }

/* ═══════════════════════ FINAL CTA ═══════════════════════ */

.hv-final {
    position: relative;
    overflow: hidden;
    background: var(--rv-ink);
    border-radius: 36px;
    padding: 80px 48px;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
    text-align: center;
}
[data-theme="dark"] .hv-final { background: var(--rv-surface-2); border: 1px solid var(--rv-border); }
.hv-final__glow {
    position: absolute;
    top: -180px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 380px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, .35), transparent 70%);
    pointer-events: none;
}
.hv-final img { width: 56px; height: 56px; object-fit: contain; animation: rv-float 3.5s ease-in-out infinite; position: relative; }
.hv-final__title {
    margin: 0;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
    max-width: 720px;
    color: #fff;
    text-wrap: pretty;
    position: relative;
}
[data-theme="dark"] .hv-final__title { color: var(--rv-ink); }
.hv-final__sub { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .64); max-width: 500px; line-height: 1.6; position: relative; }
[data-theme="dark"] .hv-final__sub { color: var(--rv-body); }
.hv-final__cta {
    display: flex; align-items: center; gap: 12px;
    background: #fff;
    color: var(--rv-ink);
    padding: 15px 12px 15px 32px;
    border-radius: var(--rv-r-pill);
    font-size: 17px; font-weight: 700;
    margin-top: 8px;
    position: relative;
    transition: transform .22s var(--rv-ease), box-shadow .22s var(--rv-ease);
}
.hv-final__cta:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(139, 92, 246, .4); color: var(--rv-ink); }
.hv-final__cta span {
    width: 32px; height: 32px;
    border-radius: var(--rv-r-pill);
    background: var(--rv-gradient);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.hv-final__foot { font-size: 13px; color: rgba(255, 255, 255, .45); position: relative; }
[data-theme="dark"] .hv-final__foot { color: var(--rv-muted); }

@media (max-width: 640px) { .hv-final { padding: 52px 24px; border-radius: 28px; } }

/* ═══════════════════════ MASCOT WALKER ═══════════════════════ */

.hv-walk { position: relative; height: 92px; overflow: hidden; pointer-events: none; }
.hv-walk__actor {
    position: absolute;
    bottom: 0;
    width: 78px; height: 78px;
    animation: rv-walk 26s linear infinite;
}
.hv-walk__actor--rev { animation-name: rv-walk-rev; animation-duration: 32s; }
.hv-walk__actor img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.hv-walk__actor img:nth-child(1) { animation: rv-frameA .5s steps(1) infinite; }
.hv-walk__actor img:nth-child(2) { animation: rv-frameB .5s steps(1) infinite; }

/* ═══════════════════════ FOOTER ═══════════════════════ */

.hv-foot {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--rv-border);
    background: var(--rv-surface);
    overflow: hidden;
}
.hv-foot__grid {
    max-width: var(--rv-container);
    margin: 0 auto;
    padding: 64px 32px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 32px;
}
.hv-foot__brand { display: flex; flex-direction: column; gap: 16px; }
.hv-foot__tag { margin: 0; font-size: var(--rv-fs-md); line-height: 1.6; color: var(--rv-muted); max-width: 260px; }
.hv-foot__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.hv-foot__soc {
    width: 36px; height: 36px;
    border-radius: var(--rv-r-pill);
    border: 1px solid var(--rv-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--rv-ink);
    transition: all var(--rv-t-fast);
}
.hv-foot__soc:hover { border-color: var(--rv-primary); color: var(--rv-primary); }
.hv-foot__soc svg { width: 15px; height: 15px; fill: currentColor; }
.hv-foot__col { display: flex; flex-direction: column; gap: 12px; }
.hv-foot__h {
    font-size: var(--rv-fs-sm);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rv-ink);
}
.hv-foot__col a { color: var(--rv-muted); font-size: var(--rv-fs-base); transition: color var(--rv-t-fast); }
.hv-foot__col a:hover { color: var(--rv-ink); }
.hv-foot__bottom {
    max-width: var(--rv-container);
    margin: 0 auto;
    padding: 36px 32px 20px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    border-bottom: 1px solid var(--rv-border);
    font-size: 13px;
    color: var(--rv-muted);
}
.hv-foot__wordmark {
    max-width: var(--rv-container);
    margin: 0 auto;
    padding: 24px 32px 0;
    overflow: hidden;
}
.hv-foot__wordmark span {
    display: block;
    font-size: clamp(90px, 15.5vw, 218px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .78;
    text-align: center;
    background: linear-gradient(180deg, #e7e4fb 0%, #f6f5fd 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
    margin-bottom: -14px;
}
[data-theme="dark"] .hv-foot__wordmark span {
    background: linear-gradient(180deg, #2a2450 0%, #14141f 90%);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 768px) {
    .hv-foot__grid { padding: 44px 20px 0; }
    .hv-foot__bottom { padding: 28px 20px 16px; }
    .hv-foot__wordmark { padding: 16px 20px 0; }
}
