/* RISKOM — Landing page (dark portfolio style) */
#rk-landing { background: var(--rk-ink); color: #e9e9f7; overflow-x: hidden; }
body.rk-landing-body { background: var(--rk-ink) !important; padding-top: 0 !important; }
#rk-landing h1, #rk-landing h2, #rk-landing h3, #rk-landing h4, #rk-landing h5 { color: #fff; }
#rk-landing .muted { color: rgba(233,233,247,.62); }
.grad-text { background: var(--rk-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sec { padding: 110px 0; position: relative; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 50px; font-size: .78rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--rk-violet-2);
    background: rgba(124,108,255,.1); border: 1px solid rgba(124,108,255,.25);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3df5a3; box-shadow: 0 0 0 0 rgba(61,245,163,.7); animation: rk-dot 2s infinite; }
@keyframes rk-dot { 70% { box-shadow: 0 0 0 9px rgba(61,245,163,0); } 100% { box-shadow: 0 0 0 0 rgba(61,245,163,0); } }
.sec-title { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; line-height: 1.1; margin: 18px 0 14px; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; position: relative; overflow: hidden; }
.hero .grid-bg {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 520px; height: 520px; background: #6a4dff; top: -140px; left: -120px; animation: rk-float 14s ease-in-out infinite; }
.blob.b2 { width: 460px; height: 460px; background: #ff4fc3; bottom: -160px; right: -100px; animation: rk-float 17s ease-in-out infinite reverse; }
.blob.b3 { width: 300px; height: 300px; background: #1cc8ff; top: 40%; left: 48%; opacity: .28; animation: rk-float 20s ease-in-out infinite; }
@keyframes rk-float { 0%,100% { translate: 0 0; } 33% { translate: 50px -40px; } 66% { translate: -40px 40px; } }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 5.2rem); font-weight: 700; line-height: 1.02; margin: 24px 0 22px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rk-line 1.1s var(--rk-ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rk-line { to { transform: none; } }
.typed-wrap { color: var(--rk-violet-2); }
.typed-wrap::after { content: '|'; margin-left: 2px; animation: rk-blink 1s steps(1) infinite; color: var(--rk-pink); }
@keyframes rk-blink { 50% { opacity: 0; } }
.hero-sub { font-size: 1.15rem; max-width: 560px; }
.btn-hero { padding: 15px 34px; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); transform: translateY(-3px); }

.hero-visual { position: relative; height: 520px; perspective: 1000px; }
.glass {
    background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.14); border-radius: 24px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.code-card { position: absolute; top: 40px; left: 0; right: 40px; padding: 0; overflow: hidden; animation: rk-bob 7s ease-in-out infinite; }
.code-card .bar { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card .bar i:nth-child(1) { background: #ff5f57; } .code-card .bar i:nth-child(2) { background: #febc2e; } .code-card .bar i:nth-child(3) { background: #28c840; }
.code-card pre { margin: 0; padding: 20px 24px; font: 500 .88rem/1.8 'Space Grotesk', ui-monospace, monospace; color: #cfcff0; white-space: pre-wrap; }
.code-card .k { color: #ff6bd6; } .code-card .s { color: #4fe3ff; } .code-card .f { color: #9f8bff; } .code-card .c { color: #6b6f9a; }
.float-chip { position: absolute; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem; color: #fff; }
.float-chip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--rk-grad); }
.float-chip small { display: block; font-weight: 400; color: rgba(255,255,255,.6); font-size: .75rem; }
.chip-a { right: 0; top: 0; animation: rk-bob 6s ease-in-out infinite .5s; }
.chip-b { left: -20px; bottom: 90px; animation: rk-bob 8s ease-in-out infinite 1s; }
.chip-c { right: 10px; bottom: 10px; animation: rk-bob 7s ease-in-out infinite 1.6s; }
@keyframes rk-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px; }
.scroll-hint::after { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: rk-wheel 1.8s infinite; }
@keyframes rk-wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: rk-marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; font: 600 1.35rem 'Space Grotesk', sans-serif; color: rgba(255,255,255,.5); white-space: nowrap; }
.marquee-track span i { color: var(--rk-violet-2); font-size: 1rem; }
@keyframes rk-marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stat-box { text-align: center; padding: 34px 18px; }
.stat-box .num { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 'Space Grotesk', sans-serif; }
.stat-box .lbl { margin-top: 10px; color: rgba(233,233,247,.6); font-weight: 500; }

/* ---------- Services (bento) ---------- */
.svc {
    --mx: 50%; --my: 50%; position: relative; height: 100%; padding: 34px 30px; border-radius: 26px; overflow: hidden;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
    transition: transform .25s ease-out, border-color .4s, background .4s; transform-style: preserve-3d;
}
.svc::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124,108,255,.28), transparent 45%);
}
.svc:hover { border-color: rgba(159,139,255,.5); }
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; }
.svc .ico {
    width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: var(--rk-grad); box-shadow: 0 14px 34px -10px rgba(176,92,255,.8); margin-bottom: 22px; transition: transform .6s var(--rk-ease);
}
.svc:hover .ico { transform: rotate(-8deg) scale(1.1); }
.svc h4 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.svc p { color: rgba(233,233,247,.62); font-size: .95rem; min-height: 72px; }
.svc .price { font: 700 1.25rem 'Space Grotesk', sans-serif; margin: 12px 0 20px; }
.svc .price small { font: 500 .8rem 'Plus Jakarta Sans', sans-serif; color: rgba(255,255,255,.5); display: block; }
.svc .go { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.svc .go i { transition: transform .4s var(--rk-ease); }
.svc:hover .go i { transform: translateX(6px); }

/* ---------- Process ---------- */
.steps { position: relative; }
.steps::before { content: ''; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--rk-violet), var(--rk-pink), transparent); }
.step { display: flex; gap: 26px; padding-bottom: 38px; position: relative; }
.step .n {
    flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 1.2rem 'Space Grotesk', sans-serif;
    background: var(--rk-ink-2); border: 2px solid var(--rk-violet); color: #fff; box-shadow: 0 0 0 8px var(--rk-ink), 0 0 30px rgba(124,108,255,.5);
}
.step h5 { font-weight: 600; margin: 8px 0 6px; }

.about-card { padding: 40px; position: relative; overflow: hidden; }
.about-card::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,214,.4), transparent 65%); }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; }
.check-list .ck { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(61,245,163,.12); color: #3df5a3; }
.check-list h6 { color: #fff; margin: 0 0 2px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq .accordion-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09) !important; border-radius: 18px !important; margin-bottom: 14px; overflow: hidden; }
.faq .accordion-button { background: transparent; color: #fff; font-weight: 600; box-shadow: none; padding: 22px 26px; }
.faq .accordion-button:not(.collapsed) { background: rgba(124,108,255,.12); color: #fff; }
.faq .accordion-button::after { filter: invert(1); }
.faq .accordion-body { color: rgba(233,233,247,.68); padding: 6px 26px 24px; }

/* ---------- CTA ---------- */
.cta { margin: 0 auto; padding: 70px 30px; text-align: center; border-radius: 36px; position: relative; overflow: hidden; background: var(--rk-grad); }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 45%), radial-gradient(circle at 85% 90%, rgba(0,0,0,.3), transparent 50%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.btn-white { background: #fff; color: var(--rk-ink); }
.btn-white:hover { background: var(--rk-ink); color: #fff; transform: translateY(-3px); }

/* ---------- Contact ---------- */
.contact-card { padding: 30px 26px; text-align: center; height: 100%; transition: transform .5s var(--rk-ease), border-color .4s; }
.contact-card:hover { transform: translateY(-8px); border-color: rgba(159,139,255,.5); }
.contact-card .ci { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; font-size: 1.3rem; background: var(--rk-grad); color: #fff; }
.socials a { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 1.15rem; transition: all .4s var(--rk-ease); text-decoration: none; }
.socials a:hover { background: var(--rk-grad); transform: translateY(-6px) rotate(8deg); border-color: transparent; }

/* ---------- Footer landing ---------- */
.rk-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 40px 0 30px; color: rgba(233,233,247,.55); }
.rk-footer a { color: inherit; text-decoration: none; } .rk-footer a:hover { color: #fff; }

/* ---------- WhatsApp popup (landing) ---------- */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 9999; }
.whatsapp-button { width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: #fff; font-size: 2rem; display: grid; place-items: center; text-decoration: none; animation: pulse-wa 2.2s infinite; box-shadow: 0 8px 30px rgba(37,211,102,.45); }
.whatsapp-button:hover { color: #fff; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.whatsapp-popup { position: absolute; bottom: 80px; right: 0; width: 300px; padding: 20px; border-radius: 20px; background: #fff; color: #1c1c33; box-shadow: 0 20px 60px rgba(0,0,0,.35); opacity: 0; transform: translateY(20px) scale(.95); pointer-events: none; transition: all .5s var(--rk-ease); }
.whatsapp-popup.active { opacity: 1; transform: none; pointer-events: auto; }
.whatsapp-popup .ph { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.whatsapp-popup .wa-icon { width: 44px; height: 44px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.4rem; }
.whatsapp-popup h6 { margin: 0; font-weight: 700; color: #1c1c33; } .whatsapp-popup small { color: #6b6f8a; }
.whatsapp-popup p { font-size: .92rem; color: #4a5568; margin-bottom: 14px; }
.whatsapp-popup .row-b { display: flex; gap: 8px; }
.btn-wa-chat { flex: 1; text-align: center; background: #25D366; color: #fff; padding: 9px; border-radius: 50px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.btn-wa-chat:hover { background: #128C7E; color: #fff; }
.btn-close-popup { border: 0; background: #f1f1f8; color: #6b6f8a; border-radius: 50px; padding: 0 16px; }

@media (max-width: 991px) {
    .sec { padding: 80px 0; } .hero-visual { display: none; } .hero { min-height: auto; padding-top: 120px; }
}
@media (max-width: 576px) { .scroll-hint { display: none; } .whatsapp-popup { width: 260px; } #rk-top { left: 14px; } }

/* ---------- Portofolio ---------- */
.pf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.pf-filter button {
    border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(233,233,247,.75);
    padding: 9px 22px; border-radius: 50px; font-weight: 600; font-size: .9rem; transition: all .35s var(--rk-ease); cursor: pointer;
}
.pf-filter button:hover { color: #fff; border-color: rgba(159,139,255,.6); transform: translateY(-2px); }
.pf-filter button.active { background: var(--rk-grad); border-color: transparent; color: #fff; box-shadow: 0 10px 28px -8px rgba(176,92,255,.7); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); grid-auto-flow: dense; gap: 22px; }
.pf-item {
    position: relative; margin: 0; border-radius: 24px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
    background: var(--rk-ink-3); border: 1px solid rgba(255,255,255,.08); outline: none;
}
.pf-item.featured { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--rk-ease), filter .6s; }
.pf-item:hover img, .pf-item:focus-visible img { transform: scale(1.1); filter: brightness(.55); }
.pf-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; color: #fff;
    background: linear-gradient(to top, rgba(11,11,26,.92), rgba(11,11,26,0));
    transform: translateY(14px); transition: transform .6s var(--rk-ease);
}
.pf-item:hover figcaption, .pf-item:focus-visible figcaption { transform: none; }
.pf-item figcaption h5 { margin: 6px 0 4px; font-weight: 600; font-size: 1.15rem; }
.pf-cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rk-violet-2); }
.pf-more { font-size: .85rem; opacity: 0; display: inline-block; transform: translateY(8px); transition: all .5s var(--rk-ease) .05s; }
.pf-item:hover .pf-more, .pf-item:focus-visible .pf-more { opacity: .9; transform: none; }
.pf-item.is-hidden { display: none; }
@media (max-width: 640px) { .pf-item.featured { grid-column: auto; aspect-ratio: 4/3; } .pf-item figcaption { transform: none; } .pf-more { opacity: .9; transform: none; } }

.pf-lightbox {
    position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center; padding: 24px;
    background: rgba(6,6,16,.92); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.pf-lightbox.open { opacity: 1; visibility: visible; }
.lb-body { max-width: 1000px; width: 100%; max-height: 92vh; overflow: auto; transform: scale(.94) translateY(20px); transition: transform .6s var(--rk-ease); text-align: center; }
.pf-lightbox.open .lb-body { transform: none; }
.lb-body img { max-width: 100%; max-height: 68vh; border-radius: 20px; box-shadow: 0 30px 80px -10px rgba(0,0,0,.8); }
.lb-info { margin-top: 20px; color: #e9e9f7; }
.lb-info h4 { color: #fff; margin: 6px 0 8px; }
.lb-info p { max-width: 640px; margin: 0 auto 16px; white-space: pre-line; }
.lb-close, .lb-nav { position: absolute; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; transition: all .3s; z-index: 2; }
.lb-close:hover, .lb-nav:hover { background: var(--rk-grad); border-color: transparent; }
.lb-close { top: 20px; right: 20px; } .lb-nav { top: 50%; margin-top: -24px; } .lb-nav.prev { left: 20px; } .lb-nav.next { right: 20px; }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 20px; margin: 0; } .lb-nav.prev { left: calc(50% - 60px); } .lb-nav.next { right: calc(50% - 60px); } }
