/* =====================================================================
   OJSHub – Beranda v2 (memakai variabel dari theme-ojshub.css)
   ===================================================================== */
.oh-home { overflow: hidden; }
.oh-home + .site-footer.oh-footer, .oh-home ~ .site-footer.oh-footer { margin-top: 90px; }

/* ---------------- hero ---------------- */
.oh-hero { position: relative; padding: 72px 0 0; background: var(--oh-hero); color: #fff; }
.oh-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.oh-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, var(--oh-bg)); pointer-events: none; }
.oh-hero > * { position: relative; z-index: 1; }
.oh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-bottom: 40px; }
.oh-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #e8f5f2; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.oh-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oh-yellow); box-shadow: 0 0 0 4px rgba(246,184,25,.25); animation: ohPulse 2s ease-in-out infinite; }
@keyframes ohPulse { 50% { box-shadow: 0 0 0 8px rgba(246,184,25,0); } }
.oh-hero h1 { margin: 20px 0 18px; color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.07; font-weight: 800; letter-spacing: -.035em; }
.oh-hero h1 mark { background: none; color: var(--oh-yellow); position: relative; white-space: nowrap; }
.oh-hero h1 mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; border-radius: 4px; background: rgba(246,184,25,.35); z-index: -1; }
.oh-hero-copy > p { max-width: 600px; margin: 0; color: #c6e0dc; font-size: 17px; line-height: 1.75; }
.oh-hero-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 28px 0 0; padding: 7px 7px 7px 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 44px -18px rgba(0,0,0,.6); color: var(--oh-muted); }
.oh-hero-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--oh-ink); }
.oh-hero-search input::placeholder { color: #9aaba8; }
.oh-hero-search .oh-btn { min-height: 44px; }
.oh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.oh-hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: #b6d3ce; font-size: 13px; font-weight: 600; }
.oh-hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.oh-hero-trust li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--oh-yellow); color: #1d1600; font-size: 11px; font-weight: 900; }

.oh-hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.oh-blob { position: absolute; width: 440px; height: 440px; max-width: 100%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: radial-gradient(circle at 30% 30%, rgba(246,184,25,.55), rgba(246,184,25,.12) 55%, transparent 70%); filter: blur(2px); animation: ohMorph 12s ease-in-out infinite; }
@keyframes ohMorph { 50% { border-radius: 55% 45% 42% 58% / 40% 58% 42% 60%; transform: rotate(8deg) scale(1.03); } }
.oh-mascot-card { position: relative; width: min(400px, 88%); padding: 22px 26px; border-radius: 32px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); transform: rotate(-2deg); animation: ohFloat 6s ease-in-out infinite; }
.oh-mascot-card img { width: 100%; height: auto; display: block; }
@keyframes ohFloat { 50% { transform: rotate(-2deg) translateY(-10px); } }
.oh-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.96); color: var(--oh-ink); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); animation: ohFloat2 5s ease-in-out infinite; }
.oh-float small { display: block; font-size: 11px; color: var(--oh-muted); font-weight: 700; }
.oh-float b { display: block; font-size: 13.5px; font-weight: 800; }
.oh-float-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--oh-mint); color: var(--oh-green); }
.oh-float-ic.oh-y, .oh-card-ic.oh-y { background: var(--oh-yellow-soft); color: #9a6a00; }
.oh-float-1 { left: -6px; top: 34px; }
.oh-float-2 { right: -10px; top: 46%; animation-delay: -1.6s; }
.oh-float-3 { left: 6%; bottom: 18px; animation-delay: -3.2s; }
@keyframes ohFloat2 { 50% { transform: translateY(-8px); } }

.oh-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: -6px; border-radius: 20px; background: #fff; border: 1px solid var(--oh-line); box-shadow: var(--oh-shadow-lg); }
.oh-stats > div { padding: 22px 24px; display: grid; gap: 3px; }
.oh-stats > div + div { border-left: 1px solid var(--oh-line); }
.oh-stats b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--oh-green); }
.oh-stats span { font-size: 13px; color: var(--oh-muted); font-weight: 600; }

/* ---------------- section head ---------------- */
.oh-head { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.oh-head h2 { margin: 12px 0 10px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; color: var(--oh-ink); line-height: 1.15; }
.oh-head p { margin: 0; color: var(--oh-muted); font-size: 15.5px; line-height: 1.7; }

/* ---------------- tools ---------------- */
.oh-tools { padding: 90px 0 30px; scroll-margin-top: 70px; }
.oh-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.oh-filter button { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border: 1px solid var(--oh-line); border-radius: 999px; background: #fff; color: var(--oh-ink-2); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s; }
.oh-filter button i { font-style: normal; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--oh-mint); color: var(--oh-green); font-size: 11.5px; font-weight: 800; }
.oh-filter button:hover { border-color: #b9dcd6; color: var(--oh-green); }
.oh-filter button.is-on { background: var(--oh-green); border-color: var(--oh-green); color: #fff; box-shadow: 0 10px 22px -12px rgba(14,107,99,.9); }
.oh-filter button.is-on i { background: var(--oh-yellow); color: #1d1600; }

.oh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.oh-card {
    position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 24px; border-radius: var(--oh-radius);
    background: #fff; border: 1px solid var(--oh-line); box-shadow: var(--oh-shadow); color: var(--oh-ink); text-decoration: none; overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.oh-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--oh-green), var(--oh-yellow)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.oh-card:hover { transform: translateY(-5px); border-color: #c8e4df; box-shadow: var(--oh-shadow-lg); color: var(--oh-ink); }
.oh-card:hover::before { transform: none; }
.oh-card[hidden] { display: none; }
.oh-card.is-pop { animation: ohPop .35s ease both; animation-delay: var(--d, 0ms); }
@keyframes ohPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.oh-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oh-card-ic { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 15px; background: var(--oh-mint); color: var(--oh-green); transition: background .2s, color .2s, transform .2s; }
.oh-card:hover .oh-card-ic { background: var(--oh-green); color: var(--oh-yellow); transform: rotate(-6deg); }
.oh-card-cat { padding: 5px 10px; border-radius: 999px; background: var(--oh-mint-2); border: 1px solid var(--oh-line); color: var(--oh-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.oh-card h3 { margin: 20px 0 8px; font-size: 18.5px; font-weight: 800; line-height: 1.3; color: var(--oh-ink); }
.oh-card p { margin: 0 0 18px; color: var(--oh-muted); font-size: 14px; line-height: 1.65; }
.oh-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--oh-green); font-size: 14px; font-weight: 800; transition: gap .2s; }
.oh-card:hover .oh-card-go { gap: 10px; }
.oh-empty { display: grid; justify-items: center; gap: 6px; padding: 40px; border: 1.5px dashed var(--oh-line); border-radius: var(--oh-radius); background: #fff; color: var(--oh-muted); text-align: center; }
.oh-empty[hidden] { display: none; }
.oh-empty b { color: var(--oh-ink); font-size: 17px; }

/* ---------------- steps ---------------- */
.oh-steps { padding: 80px 0 30px; }
.oh-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.oh-step-list li { position: relative; padding: 28px 26px; border-radius: var(--oh-radius); background: #fff; border: 1px solid var(--oh-line); box-shadow: var(--oh-shadow); }
.oh-step-list li > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--oh-yellow); color: #1d1600; font-size: 19px; font-weight: 900; box-shadow: 0 10px 20px -10px rgba(229,164,0,.9); }
.oh-step-list li:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -14px; width: 10px; height: 10px; border-top: 3px solid var(--oh-green); border-right: 3px solid var(--oh-green); transform: rotate(45deg); opacity: .35; }
.oh-step-list h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 800; }
.oh-step-list p { margin: 0; color: var(--oh-muted); font-size: 14.5px; line-height: 1.65; }

/* ---------------- why ---------------- */
.oh-why { padding: 80px 0; }
.oh-why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.oh-why-grid > div:first-child h2 { margin: 12px 0 12px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.oh-why-grid > div:first-child p { margin: 0 0 22px; color: var(--oh-muted); font-size: 15.5px; line-height: 1.75; }
.oh-why-list { display: grid; gap: 14px; }
.oh-why-list > div { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--oh-radius); background: #fff; border: 1px solid var(--oh-line); box-shadow: var(--oh-shadow); transition: transform .2s; }
.oh-why-list > div:hover { transform: translateX(6px); }
.oh-why-list h3 { margin: 2px 0 6px; font-size: 16.5px; font-weight: 800; }
.oh-why-list p { margin: 0; color: var(--oh-muted); font-size: 14px; line-height: 1.6; }

/* ---------------- CTA ---------------- */
.oh-cta-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 30px; padding: 34px 40px; border-radius: 26px; background: linear-gradient(120deg, #0a4a45, #0f6b62); color: #fff; box-shadow: var(--oh-shadow-lg); }
.oh-cta-card::before { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(246,184,25,.35), transparent 65%); }
.oh-cta-card > * { position: relative; }
.oh-cta-card img { width: 150px; height: auto; flex: none; padding: 10px; border-radius: 20px; background: #fff; transform: rotate(-4deg); }
.oh-cta-card h2 { margin: 8px 0 8px; color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.oh-cta-card p { margin: 0; color: #c6e0dc; font-size: 14.5px; line-height: 1.7; }
.oh-cta-card .oh-btn { flex: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
    .oh-hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .oh-hero-visual { min-height: 360px; max-width: 560px; margin: 0 auto; width: 100%; }
    .oh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oh-why-grid { grid-template-columns: 1fr; gap: 30px; }
    .oh-cta-card { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .oh-hero { padding-top: 44px; }
    .oh-hero-copy > p { font-size: 15.5px; }
    .oh-hero-actions .oh-btn { flex: 1 1 100%; }
    .oh-hero-visual { min-height: 300px; }
    .oh-float { transform: scale(.88); }
    .oh-float-1 { left: 0; top: 4px; }
    .oh-float-2 { right: 0; }
    .oh-float-3 { left: 2%; bottom: 0; }
    .oh-stats { grid-template-columns: 1fr 1fr; }
    .oh-stats > div:nth-child(3) { border-left: 0; }
    .oh-stats > div:nth-child(n+3) { border-top: 1px solid var(--oh-line); }
    .oh-stats b { font-size: 24px; }
    .oh-tools { padding-top: 64px; }
    .oh-filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -14px 22px; padding: 4px 14px 8px; scrollbar-width: none; }
    .oh-filter::-webkit-scrollbar { display: none; }
    .oh-filter button { flex: none; }
    .oh-grid, .oh-step-list { grid-template-columns: 1fr; }
    .oh-step-list li::after { display: none; }
    .oh-card { min-height: 0; }
    .oh-cta-card { padding: 26px 22px; }
    .oh-cta-card img { width: 110px; }
    .oh-cta-card .oh-btn { width: 100%; }
}
@media (max-width: 420px) {
    .oh-hero-search { padding-left: 12px; }
    .oh-hero-search .oh-btn { padding: 0 14px; }
    .oh-float-2 { display: none; }
}
