/* ============================================================
   HOME — "Tampil Estetik di Lebih Banyak Mata" (#visibility)
   Bento layout: analytics dashboard mock, social orbit, and a
   dark custom-domain upsell card. All classes are hp-vx-* so the
   old .hp-visibility-section overrides in home.min.css never apply.
   ============================================================ */

.hp-vx-section {
    --vx-ink: #0f172a;
    --vx-muted: #64748b;
    --vx-line: #e9edf3;
    --vx-yellow: #ffeb00;
    --vx-amber: #f59e0b;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.hp-vx-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hp-vx-bg::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    width: 720px;
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 235, 0, 0.22), transparent);
    filter: blur(20px);
}

.hp-vx-section .hp-section-header h2 { color: var(--vx-ink); }
.hp-vx-section .hp-section-header p { color: var(--vx-muted); }

.hp-vx-section .hp-highlight-word[data-rotate-text] {
    min-height: 0;
}

.hp-vx-section .hp-highlight-word[data-rotate-text]::after {
    content: "\200b";
}

.hp-vx-section .hp-badge-premium {
    background: #fef9c3;
    color: #854d0e;
    border-color: #fde68a;
}

/* ---------- Bento grid ---------- */
.hp-vx-bento {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
    max-width: 1080px;
    margin: 0 auto;
}

.hp-vx-dash { grid-row: 1 / span 2; }

.hp-vx-dash,
.hp-vx-orbit-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--vx-line);
    border-radius: 28px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -24px rgba(15, 23, 42, 0.14);
}

/* ---------- Analytics dashboard ---------- */
.hp-vx-dash {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hp-vx-tag {
    position: absolute;
    top: -11px;
    left: 1.75rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--vx-ink);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-vx-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hp-vx-dash-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hp-vx-dash-title strong {
    display: block;
    color: var(--vx-ink);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

.hp-vx-dash-title small {
    color: var(--vx-muted);
    font-size: 0.78rem;
}

.hp-vx-dash-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--vx-ink);
    color: var(--vx-yellow);
    font-size: 1.1rem;
}

.hp-vx-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
}

.hp-vx-live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

.hp-vx-live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #10b981;
    animation: vx-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* KPI tiles */
.hp-vx-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.hp-vx-kpi {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.hp-vx-kpi span {
    display: block;
    color: var(--vx-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.hp-vx-kpi strong {
    display: block;
    margin: 0.15rem 0 0.3rem;
    color: var(--vx-ink);
    font-family: var(--font-family-heading);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.hp-vx-kpi em {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
}

.hp-vx-kpi.is-accent {
    background: var(--vx-ink);
    border-color: var(--vx-ink);
}

.hp-vx-kpi.is-accent span { color: #94a3b8; }
.hp-vx-kpi.is-accent strong { color: var(--vx-yellow); }
.hp-vx-kpi.is-accent em { background: rgba(255, 235, 0, 0.14); color: var(--vx-yellow); }

/* Area chart */
.hp-vx-chart {
    position: relative;
    flex: 1;
    min-height: 190px;
    padding-bottom: 1.6rem;
}

.hp-vx-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 165px;
    overflow: visible;
}

.hp-vx-grid line {
    stroke: #eef2f6;
    stroke-width: 1;
    stroke-dasharray: 4 6;
    vector-effect: non-scaling-stroke;
}

.hp-vx-area {
    fill: url(#hpVxArea);
    opacity: 0;
    transition: opacity 1s ease 0.9s;
}

.hp-vx-line {
    fill: none;
    stroke: var(--vx-ink);
    stroke-width: 3;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.hp-vx-dash.is-visible .hp-vx-area { opacity: 1; }
.hp-vx-dash.is-visible .hp-vx-line { stroke-dashoffset: 0; }

/* End point: line ends at (600,16) in a 600x200 viewBox */
.hp-vx-chart-point {
    position: absolute;
    right: -7px;
    top: calc((100% - 1.6rem) * 0.08 - 7px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--vx-yellow);
    border: 3px solid var(--vx-ink);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.3s ease 1.9s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s;
}

.hp-vx-chart-point::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(250, 204, 21, 0.7);
    animation: vx-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hp-vx-chart-tip {
    position: absolute;
    right: 18px;
    top: calc((100% - 1.6rem) * 0.08 + 14px);
    padding: 7px 12px;
    border-radius: 12px;
    background: var(--vx-ink);
    color: #fff;
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.45);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease 2.1s, transform 0.4s ease 2.1s;
}

.hp-vx-chart-tip small {
    display: block;
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 600;
}

.hp-vx-chart-tip strong {
    color: var(--vx-yellow);
    font-size: 0.9rem;
    font-weight: 800;
}

.hp-vx-dash.is-visible .hp-vx-chart-point { opacity: 1; transform: scale(1); }
.hp-vx-dash.is-visible .hp-vx-chart-tip { opacity: 1; transform: translateY(0); }

.hp-vx-chart-days {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
}

.hp-vx-chart-days span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
}

.hp-vx-chart-days span:last-child {
    color: var(--vx-ink);
    font-weight: 800;
}

/* Live activity feed (vertical marquee) */
.hp-vx-feed {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.hp-vx-feed-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--vx-yellow);
    color: var(--vx-ink);
    font-size: 0.95rem;
}

.hp-vx-feed-window {
    flex: 1;
    min-width: 0;
    height: 1.4rem;
    overflow: hidden;
}

.hp-vx-feed-track {
    animation: vx-feed 12s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

.hp-vx-feed-track p {
    height: 1.4rem;
    margin: 0;
    overflow: hidden;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.4rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hp-vx-feed-track b { color: var(--vx-ink); }

.hp-vx-feed-track i {
    margin-left: 4px;
    color: #a16207;
    font-size: 0.72rem;
    font-style: normal;
}

/* ---------- Social orbit ---------- */
.hp-vx-orbit-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    overflow: hidden;
}

.hp-vx-orbit {
    --r1: 64px;
    --r2: 98px;
    position: relative;
    flex-shrink: 0;
    width: 232px;
    height: 232px;
}

.hp-vx-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed #d6dde6;
    transform: translate(-50%, -50%);
}

.hp-vx-ring-1 { width: calc(var(--r1) * 2); height: calc(var(--r1) * 2); }
.hp-vx-ring-2 { width: calc(var(--r2) * 2); height: calc(var(--r2) * 2); }

.hp-vx-core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: var(--vx-yellow);
    color: var(--vx-ink);
    font-size: 1.7rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px rgba(255, 235, 0, 0.18), 0 10px 24px -6px rgba(202, 138, 4, 0.55);
}

.hp-vx-spin {
    --r: var(--r1);
    position: absolute;
    inset: 0;
    animation: vx-spin 24s linear infinite;
}

.hp-vx-spin.is-outer {
    --r: var(--r2);
    animation-duration: 36s;
    animation-direction: reverse;
}

.hp-vx-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}

.hp-vx-planet i {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.18);
    color: #000;
    font-size: 1rem;
    animation: vx-spin 24s linear infinite reverse;
}

.hp-vx-spin.is-outer .hp-vx-planet i {
    animation-duration: 36s;
    animation-direction: normal;
}

.hp-vx-planet.is-ig i { color: #e1306c; }
.hp-vx-planet.is-wa i { color: #25d366; }
.hp-vx-planet.is-fb i { color: #1877f2; }
.hp-vx-planet.is-yt i { color: #ff0000; }

.hp-vx-orbit-copy strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--vx-ink);
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.25;
}

.hp-vx-orbit-copy p {
    margin: 0;
    color: var(--vx-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---------- Custom domain card (dark) ---------- */
.hp-vx-domain {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.6rem;
    border-radius: 28px;
    background: radial-gradient(120% 90% at 100% 0%, rgba(255, 235, 0, 0.16), transparent 55%), #0b0f19;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.6);
}

.hp-vx-domain::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(255, 235, 0, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.06) 70%, rgba(255, 235, 0, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hp-vx-browser {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-vx-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }

.hp-vx-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
}

.hp-vx-dots i:nth-child(2) { background: #febc2e; }
.hp-vx-dots i:nth-child(3) { background: #28c840; }

.hp-vx-url {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
}

.hp-vx-url > .bi-lock-fill { color: #4ade80; font-size: 0.7rem; }

.hp-vx-url-old {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
    text-decoration-color: rgba(248, 113, 113, 0.8);
}

.hp-vx-url-arrow { color: rgba(255, 255, 255, 0.4); }

.hp-vx-url-new {
    color: var(--vx-yellow);
    font-weight: 700;
}

.hp-vx-caret {
    width: 2px;
    height: 1em;
    margin-left: -4px;
    background: var(--vx-yellow);
    /* blink removed */
}

.hp-vx-domain-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.55rem;
    color: var(--vx-yellow);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-vx-domain-copy strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #fff;
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.25;
}

.hp-vx-domain-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

.hp-vx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    align-self: flex-start;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    background: var(--vx-yellow);
    color: var(--vx-ink);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 28px -8px rgba(255, 235, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-vx-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    animation: vx-shine 3.2s ease-in-out infinite;
}

.hp-vx-btn:hover {
    color: var(--vx-ink);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(255, 235, 0, 0.7);
}

.hp-vx-btn-arrow { transition: transform 0.2s ease; }
.hp-vx-btn:hover .hp-vx-btn-arrow { transform: translateX(4px); }

.hp-vx-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ---------- Keyframes ---------- */
@keyframes vx-ping {
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes vx-spin {
    to { transform: rotate(360deg); }
}

/* @keyframes vx-blink removed */

@keyframes vx-shine {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

/* 4 unique rows + a duplicate of row 1 for a seamless loop */
@keyframes vx-feed {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-1.4rem); }
    50%, 70% { transform: translateY(-2.8rem); }
    75%, 95% { transform: translateY(-4.2rem); }
    100% { transform: translateY(-5.6rem); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hp-vx-bento { grid-template-columns: minmax(0, 1fr); }
    .hp-vx-dash { grid-row: auto; }
}

/* Orbit card is desktop/tablet-only decoration */
@media (max-width: 767.98px) {
    .hp-vx-orbit-card { display: none; }
}

@media (max-width: 575.98px) {
    .hp-vx-dash { padding: 1.25rem; border-radius: 22px; }
    .hp-vx-tag { left: 1.25rem; }
    .hp-vx-kpis { gap: 0.5rem; }
    .hp-vx-kpi { padding: 0.7rem 0.65rem; border-radius: 12px; }
    .hp-vx-kpi em { padding: 1px 5px; font-size: 0.64rem; }
    .hp-vx-chart { min-height: 160px; }
    .hp-vx-chart svg { min-height: 135px; }

    .hp-vx-domain { padding: 1.25rem; border-radius: 22px; }
    .hp-vx-url-old, .hp-vx-url-arrow { display: none; }
    .hp-vx-btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-vx-spin,
    .hp-vx-planet i,
    .hp-vx-feed-track,
    .hp-vx-btn::after,
    .hp-vx-live-dot::after,
    .hp-vx-chart-point::after,
    .hp-vx-caret { animation: none; }

    .hp-vx-line { transition: none; stroke-dashoffset: 0; }
    .hp-vx-area,
    .hp-vx-chart-point,
    .hp-vx-chart-tip { transition: none; opacity: 1; transform: none; }
}
