/* ============================================================
   HOME — "Gampang Banget" (#gampang)
   3 step cards, each with an animated mini-UI illustration.
   Classes are hp-gx-* on purpose: hp-easy-* is still shared with
   /hosting-domain and /jasa, which must stay untouched.
   ============================================================ */

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

.hp-gx-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 55% at 50% 30%, #000 20%, transparent 75%);
}

.hp-gx-section .hp-section-header h2 { color: var(--gx-ink); }

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

/* ---------- Grid + connector ---------- */
.hp-gx-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
}

/* ---------- Card ---------- */
.hp-gx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--gx-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -28px rgba(15, 23, 42, 0.18);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hp-gx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 36px 60px -28px rgba(15, 23, 42, 0.28);
}

.hp-gx-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 200px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 120%, rgba(255, 235, 0, 0.28), transparent 60%),
        #f8fafc;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.hp-gx-body {
    padding: 1.4rem 0.9rem 0.9rem;
}

.hp-gx-step {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gx-ink);
    color: var(--gx-yellow);
    font-family: var(--font-family-heading);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.hp-gx-body h3 {
    margin: 0 0 0.6rem;
    color: var(--gx-ink);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
}

.hp-gx-body h3 span {
    color: #b45309;
}

.hp-gx-body p {
    margin: 0;
    color: var(--gx-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Dark accent card */
.hp-gx-card.is-dark {
    background: radial-gradient(120% 80% at 100% 0%, rgba(255, 235, 0, 0.14), transparent 55%), #0b0f19;
    border-color: #0b0f19;
}

.hp-gx-card.is-dark .hp-gx-visual {
    background:
        radial-gradient(circle at 50% 120%, rgba(255, 235, 0, 0.22), transparent 60%),
        rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.hp-gx-card.is-dark .hp-gx-step { background: var(--gx-yellow); color: var(--gx-ink); }
.hp-gx-card.is-dark h3 { color: #fff; }
.hp-gx-card.is-dark h3 span { color: var(--gx-yellow); }
.hp-gx-card.is-dark p { color: rgba(255, 255, 255, 0.65); }

/* ---------- 01: catalog ---------- */
.hp-gx-catalog {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(260px, 86%);
}

.hp-gx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #edf1f5;
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.15);
}

.hp-gx-item.is-picked {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25), 0 10px 20px -10px rgba(202, 138, 4, 0.5);
    transform: scale(1.04);
    animation: gx-pick 5s ease-in-out infinite;
}

.hp-gx-thumb {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.85rem;
}

.hp-gx-thumb.is-blue { background: #dbeafe; color: #1d4ed8; }
.hp-gx-thumb.is-yellow { background: var(--gx-yellow); color: var(--gx-ink); }
.hp-gx-thumb.is-pink { background: #fce7f3; color: #be185d; }

.hp-gx-item-name {
    flex: 1;
    min-width: 0;
    line-height: 1.15;
}

.hp-gx-item-name b {
    display: block;
    color: var(--gx-ink);
    font-size: 0.78rem;
}

.hp-gx-item-name small {
    color: #94a3b8;
    font-size: 0.66rem;
}

.hp-gx-add {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.hp-gx-add.is-done {
    background: #dcfce7;
    color: #15803d;
}

.hp-gx-cursor {
    position: absolute;
    right: 18px;
    top: 50%;
    color: var(--gx-ink);
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
    animation: gx-cursor 5s ease-in-out infinite;
}

/* ---------- 02: reach ---------- */
.hp-gx-reach {
    position: relative;
    width: 100%;
    height: 100%;
}

.hp-gx-mega {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gx-ink);
    color: var(--gx-yellow);
    font-size: 1.45rem;
    transform: translate(-50%, -50%) rotate(-12deg);
    box-shadow: 0 12px 26px -8px rgba(15, 23, 42, 0.55);
}

.hp-gx-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    border: 2px solid rgba(234, 179, 8, 0.7);
    animation: gx-wave 3s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.hp-gx-wave:nth-child(2) { animation-delay: 1s; }
.hp-gx-wave:nth-child(3) { animation-delay: 2s; }

.hp-gx-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.25);
    color: var(--gx-ink);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    animation: gx-bob 4s ease-in-out infinite;
}

.hp-gx-chip i { color: #ca8a04; }
.hp-gx-chip.is-a { top: 16%; left: 7%; }
.hp-gx-chip.is-b { top: 24%; right: 8%; animation-delay: -1.3s; }
.hp-gx-chip.is-c { bottom: 14%; left: 50%; margin-left: -46px; animation-delay: -2.6s; }

/* ---------- 03: launch ---------- */
.hp-gx-launch {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(250px, 86%);
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hp-gx-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-gx-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: var(--gx-ink);
}

.hp-gx-handle {
    color: var(--gx-yellow);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.hp-gx-handle b {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.hp-gx-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hp-gx-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #facc15, var(--gx-yellow));
    animation: gx-fill 5s ease-in-out infinite;
}

.hp-gx-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-gx-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-gx-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: gx-dot 5s steps(1) infinite;
}

.hp-gx-status em { font-style: normal; }
.hp-gx-status .is-off { animation: gx-off 5s steps(1) infinite; }
.hp-gx-status .is-on { position: absolute; left: 13px; color: #4ade80; animation: gx-on 5s steps(1) infinite; }

.hp-gx-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    animation: gx-toggle-bg 5s ease infinite;
}

.hp-gx-toggle span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: gx-toggle-knob 5s ease infinite;
}

/* ---------- CTA ---------- */
.hp-gx-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.hp-gx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 0.55rem 0.55rem 1.8rem;
    border-radius: 999px;
    background: var(--gx-ink);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-gx-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 24px 44px -14px rgba(15, 23, 42, 0.7);
}

.hp-gx-btn-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gx-yellow);
    color: var(--gx-ink);
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.hp-gx-btn:hover .hp-gx-btn-arrow { transform: rotate(-45deg); }

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

.hp-gx-cta small {
    color: var(--gx-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.hp-gx-cta small i { color: #16a34a; }

/* ---------- Keyframes ---------- */
@keyframes gx-cursor {
    0%, 100% { transform: translate(30px, 50px); opacity: 0; }
    15% { opacity: 1; }
    40%, 70% { transform: translate(0, -2px); opacity: 1; }
    45% { transform: translate(0, -2px) scale(0.85); }
    85% { transform: translate(30px, 50px); opacity: 0; }
}

@keyframes gx-pick {
    0%, 42% { transform: scale(1); box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.15); border-color: #edf1f5; }
    48%, 100% { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25), 0 10px 20px -10px rgba(202, 138, 4, 0.5); border-color: #facc15; }
}

@keyframes gx-wave {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(4.2); opacity: 0; }
}

@keyframes gx-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes gx-fill {
    0% { width: 0; }
    45%, 100% { width: 100%; }
}

@keyframes gx-toggle-bg {
    0%, 45% { background: rgba(255, 255, 255, 0.18); }
    52%, 95% { background: #22c55e; }
    100% { background: rgba(255, 255, 255, 0.18); }
}

@keyframes gx-toggle-knob {
    0%, 45% { transform: translateX(0); }
    52%, 95% { transform: translateX(18px); }
    100% { transform: translateX(0); }
}

@keyframes gx-dot {
    0% { background: #facc15; }
    50% { background: #4ade80; }
}

@keyframes gx-off {
    0% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes gx-on {
    0% { opacity: 0; }
    50% { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hp-gx-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}

/* Mobile: cards become a swipeable scroll-snap slider */
.hp-gx-dots { display: none; }

@media (max-width: 767.98px) {
    .hp-gx-grid {
        display: flex;
        gap: 12px;
        max-width: none;
        margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
        margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
        padding: 4px calc(var(--bs-gutter-x, 1.5rem) * 0.5) 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .hp-gx-grid::-webkit-scrollbar { display: none; }

    .hp-gx-card {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    .hp-gx-card:hover { transform: none; }

    /* Off-screen slides never intersect the reveal observer, so show them */
    .hp-gx-grid .reveal-up {
        opacity: 1;
        transform: none;
    }

    .hp-gx-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 6px;
    }

    .hp-gx-dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #d1d5db;
        transition: width 0.3s ease, background 0.3s ease;
    }

    .hp-gx-dots button.is-active {
        width: 22px;
        background: var(--gx-ink);
    }
}

@media (max-width: 575.98px) {
    .hp-gx-card { border-radius: 22px; }
    .hp-gx-visual { height: 180px; border-radius: 16px; }
    .hp-gx-body { padding: 1.1rem 0.6rem 0.6rem; }
    .hp-gx-cta { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-gx-cursor,
    .hp-gx-wave,
    .hp-gx-chip { animation: none; }
    .hp-gx-cursor { display: none; }
    .hp-gx-item.is-picked,
    .hp-gx-progress span,
    .hp-gx-toggle,
    .hp-gx-toggle span,
    .hp-gx-status i,
    .hp-gx-status em { animation-play-state: paused; animation-delay: -4s; }
    .hp-gx-card { transition: none; }
}
