/* Cek PHP · Musimpanen Lab. Musimpanen Intelligence tokens (Inter only, black, electric blue, 6 px buttons, 12 px cards, #26262A lines)
   over a security-console backdrop: faint grid, a radar around Padi. Status colours are functional. Mobile first. */
:root {
  --bg: #000; --card: #121214; --line: #26262A; --line-2: #3A3A40;
  --text: #fff; --text-2: #A6A6AE; --text-3: #75757D;
  --ai: #3D7BFF; --cta: #0A5CFF; --cta-hover: #2E74FF; --on-cta: #fff; --cyan: #2EC5FF;
  --bad: #FF5A4F; --good: #00D68F; --warn: #FFB13D; --none: #8A8A92;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px; --radius-sm: 6px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; position: relative; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); font-variant-numeric: tabular-nums; overflow-x: hidden; }
body > :not(.bg) { position: relative; z-index: 1; }
a { color: var(--text); }
a:hover { color: var(--ai); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }

/* backdrop: glow, grid, one slow scan line */
.bg { position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(900px 460px at 78% -8%, rgba(10, 92, 255, .30), transparent 65%), radial-gradient(620px 320px at 4% 6%, rgba(46, 197, 255, .10), transparent 62%); }
.bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(61, 123, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 123, 255, .08) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 20%, transparent 78%); }
.bg::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(46, 197, 255, .05) 70%, rgba(46, 197, 255, .16) 99%, transparent); animation: scan 9s linear infinite; }
@keyframes scan { 0% { transform: translateY(-140px); } 100% { transform: translateY(1100px); } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; letter-spacing: -.02em; }
.brand b { font-weight: 700; }
.brand svg { width: 24px; height: 24px; }
.top__r { display: flex; align-items: center; gap: 10px; }
.acct:empty { display: none; }
.free { font-size: 13px; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: rgba(0, 0, 0, .5); }

/* buttons: exactly the Musimpanen site (6 px radius, 46 px, Inter 500, flat blue, outline for the second choice, small chevron) */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; cursor: pointer; background: transparent; color: var(--text); transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn .chev { width: 10px; height: 10px; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) { .btn:hover .chev { transform: translateX(2px); } }
.btn--solid { background: var(--cta); color: var(--on-cta); }
.btn--solid:hover { background: var(--cta-hover); color: var(--on-cta); }
.btn--outline { color: var(--ai); background: transparent; border-color: var(--line); }
.btn--outline:hover { border-color: var(--ai); color: var(--ai); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
button:disabled { opacity: .65; cursor: progress; }

/* hero */
.hero { padding-block: 8px 24px; display: grid; gap: 16px; align-items: center; }
.hero__viz { display: grid; place-items: center; order: -1; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 36px 30px; } .hero__viz { order: 0; } }
.alert { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.alert__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 79, .6); } 100% { box-shadow: 0 0 0 11px rgba(255, 90, 79, 0); } }
h1 { margin: 12px 0 0; font-size: clamp(32px, 8.2vw, 54px); line-height: 1.06; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.hl { color: var(--cyan); background: linear-gradient(90deg, #2EC5FF, #6B9BFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { margin: 14px 0 0; max-width: 46ch; font-size: 18px; color: var(--text-2); }

.radar { --rc: var(--cyan); --sp: 6s; position: relative; width: 150px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 14%, transparent), transparent 68%); }
@media (min-width: 900px) { .radar { width: 300px; } .radar mi-padi { --padi-size: 120px !important; } }
.radar__ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--rc) 38%, transparent); }
.radar__ring.r1 { inset: 0; box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 16%, transparent), inset 0 0 40px color-mix(in srgb, var(--rc) 9%, transparent); }
.radar__ring.r2 { inset: 17%; border-style: dashed; border-color: color-mix(in srgb, var(--rc) 28%, transparent); }
.radar__ring.r3 { inset: 34%; }
.radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 68%, color-mix(in srgb, var(--rc) 10%, transparent) 84%, color-mix(in srgb, var(--rc) 55%, transparent) 100%); animation: spin var(--sp) linear infinite;
  -webkit-mask-image: radial-gradient(circle, transparent 0 22%, #000 24%); mask-image: radial-gradient(circle, transparent 0 22%, #000 24%); }
@keyframes spin { to { transform: rotate(360deg); } }
.radar__tick { position: absolute; background: color-mix(in srgb, var(--rc) 40%, transparent); }
.radar__tick.t1 { left: 50%; top: -5%; width: 1px; height: 10%; }
.radar__tick.t2 { left: 50%; bottom: -5%; width: 1px; height: 10%; }
.radar__tick.t3 { top: 50%; left: -5%; height: 1px; width: 10%; }
.radar[data-s="scanning"] { --sp: 1.5s; }
.radar[data-s="vulnerable"] { --rc: var(--bad); --sp: 14s; }
.radar[data-s="ok"] { --rc: var(--good); --sp: 14s; }
.radar[data-s="unsure"] { --rc: var(--warn); --sp: 14s; }
.radar[data-s="nophp"], .radar[data-s="unreachable"] { --rc: var(--none); --sp: 18s; }

/* form */
.form { margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .field { flex-direction: row; } .field input { flex: 1; } }
input[type="text"] { min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(0, 0, 0, .7); font-size: 17px; letter-spacing: -.01em; transition: border-color .2s; }
input[type="text"]::placeholder { color: var(--text-3); }
input[type="text"]:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(61, 123, 255, .25); }
input[aria-invalid="true"] { border-color: var(--bad); }
.hint { margin: 10px 0 0; font-size: 14px; color: var(--text-3); }
.err { margin: 10px 0 0; font-size: 14.5px; color: var(--bad); }

/* three facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 6px; }
.fact { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 18, 20, .8); }
.fact__k { font-size: 13px; color: var(--text-3); }
.fact b { font-size: clamp(16px, 4.4vw, 22px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.fact b.bad { color: var(--bad); }

/* sign-in panel */
.gate { text-align: left; }
.gate h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; font-weight: 600; }
.gate p { margin: 8px 0 0; color: var(--text-2); }
.gate .btn { margin-top: 18px; }
.gate .gate__alt { margin-top: 12px; font-size: 13.5px; color: var(--text-3); }

/* scan + result */
.stage { padding-top: 10px; }
.panel { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 18, 20, .92); padding: 20px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; color: var(--text-3); }
.steps li { position: relative; padding-left: 30px; }
.steps li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.steps li.is-on { color: var(--text); }
.steps li.is-on::before { border-color: var(--cyan); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps li.is-done { color: var(--text-2); }
.steps li.is-done::before { content: "✓"; border: 0; width: auto; height: auto; top: 0; left: 1px; font-size: 15px; font-weight: 700; color: var(--good); line-height: 1.55; }

.result { --c: var(--none); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 56px color-mix(in srgb, var(--c) 13%, transparent); padding: 22px 20px 20px; }
.result[data-s="vulnerable"] { --c: var(--bad); }
.result[data-s="ok"] { --c: var(--good); }
.result[data-s="unsure"] { --c: var(--warn); }
.result:focus { outline: none; }
@media (min-width: 640px) { .result { padding: 26px 28px 24px; } }
.result__top { display: flex; align-items: center; gap: 16px; }
.result__icon { flex: none; width: 56px; height: 56px; color: var(--c); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 50%, transparent)); }
.host { display: block; font-size: 14px; color: var(--text-3); overflow-wrap: anywhere; }
.result__title { margin: 2px 0 0; font-size: clamp(26px, 6.4vw, 36px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; color: var(--c); }
.result__summary { margin: 14px 0 0; font-size: 17px; color: var(--text-2); max-width: 52ch; }
.evidence { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.evidence div { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); font-size: 13.5px; max-width: 100%; }
.evidence dt { color: var(--text-3); }
.evidence dd { margin: 0; overflow-wrap: anywhere; }
.box { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.box h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.msg { margin: 10px 0 0; padding: 14px; border-radius: var(--radius-sm); background: #000; border: 1px solid var(--line); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; color: #D6D6DC; }
.btns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.result__next { margin: 18px 0 0; font-size: 17px; font-weight: 600; }
.more { margin-top: 16px; border-top: 1px solid var(--line); }
.more summary { padding: 14px 0; cursor: pointer; font-weight: 500; color: var(--text-2); }
.more ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.again { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

/* below the fold: short */
.info { padding-block: 32px; border-top: 1px solid var(--line); }
.info h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.03em; font-weight: 600; }
.info h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; font-weight: 600; }
.info p { margin: 0; color: var(--text-2); }
.cols { display: grid; gap: 12px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 18, 20, .8); }
.src { margin-top: 16px !important; font-size: 13px; color: var(--text-3) !important; }
.src a { color: var(--text-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; cursor: pointer; font-weight: 500; }
.faq summary:hover { color: var(--ai); }
.faq details p { padding: 0 0 16px; }
.foot { padding-block: 24px 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); display: grid; gap: 6px; }
.foot p { margin: 0; }
.foot a { color: var(--text-2); }

/* privacy / terms pages */
.doc { padding-block: 24px 40px; }
.doc h1 { font-size: clamp(28px, 7vw, 40px); }
.doc h2 { margin: 28px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc .upd { color: var(--text-3); font-size: 13.5px; }
.doc code { font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg::after { display: none; }
  .radar__sweep, .alert__dot, .steps li.is-on::before { animation: none; }
  .btn .chev { transition: none; }
}
