/* =========================================================
   IMG Maju Bersama — tema hitam + pink, efek 3D ringan
   (hanya CSS transform, tanpa library → tetap cepat)
   ========================================================= */
:root {
  --grad: linear-gradient(to bottom, #ea1ba1 20%, #fd23e0 50%, #f000d0 95%);
  --grad-x: linear-gradient(100deg, #ea1ba1 0%, #fd23e0 50%, #f000d0 100%);
  --pink: #fd23e0;
  --pink-2: #ea1ba1;
  --pink-soft: #ff9cf2;
  --bg: #07040a;
  --bg-2: #0f0914;
  --card: rgba(22, 12, 28, .72);
  --line: rgba(253, 35, 224, .18);
  --text: #f7eef8;
  --muted: #b9a6bf;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(240, 0, 208, .45);
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.65; overflow-x: hidden; min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-soft); text-decoration: none; }
a:hover { color: #fff; }
code, pre { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Latar 3D: orb + lantai grid perspektif ---------- */
.bg3d { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 600px at 70% -10%, rgba(240,0,208,.20), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(234,27,161,.14), transparent 60%), var(--bg); }
.bg3d .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; background: var(--grad); animation: float 18s ease-in-out infinite; will-change: transform; }
.bg3d .orb.o1 { width: 340px; height: 340px; top: 8%; right: -80px; }
.bg3d .orb.o2 { width: 260px; height: 260px; bottom: 10%; left: -90px; animation-delay: -6s; opacity: .3; }
.bg3d .floor {
  position: absolute; left: -50%; right: -50%; bottom: -30%; height: 70%;
  background-image: linear-gradient(rgba(253,35,224,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(253,35,224,.35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  animation: floor 3.5s linear infinite; opacity: .5;
}
@keyframes float { 0%,100% { transform: translate3d(0,0,0) } 50% { transform: translate3d(-30px,40px,0) } }
@keyframes floor { to { background-position: 0 60px, 0 0; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7,4,10,.72); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .3px; }
.brand .cube { width: 38px; height: 38px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 6px 14px rgba(253,35,224,.55)); }
.brand small { display: block; font-size: 10px; letter-spacing: 2.5px; color: var(--pink-soft); font-weight: 500; opacity: .8; line-height: 1; }
.brand b { font-size: 18px; line-height: 1.15; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-3px) rotate(-4deg) } }
.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: .2s; }
.menu a:hover, .menu a.on { color: #fff; background: rgba(253,35,224,.12); }
.menu a.nav-login { color: #fff; padding: 8px 20px; margin-left: 6px; border-radius: 999px; }
@media (max-width: 760px) { .menu a.nav-login { margin: 8px 0 0; } }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: #fff; margin: auto; position: relative; transition: .25s; content: ''; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .burger { display: grid; place-items: center; }
  .menu { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px; background: rgba(7,4,10,.97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; }
  .nav-open .menu { transform: none; }
  .menu a { padding: 12px 14px; }
}

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font: 600 15px var(--font); border: 0; cursor: pointer; color: #fff; transition: transform .15s, box-shadow .2s, filter .2s; text-decoration: none; }
.btn-primary { background: var(--grad) !important; box-shadow: 0 10px 24px -8px rgba(240,0,208,.7), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 4px 12px -6px rgba(240,0,208,.7), inset 0 2px 4px rgba(0,0,0,.3); }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(253,35,224,.12); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-danger { background: #2a0b16; border: 1px solid #6b1330; color: #ff9bb4; }

/* ---------- Kartu 3D (tilt) ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.tilt > * { transform: translateZ(20px); }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(253,35,224,.6), transparent 40%, transparent 60%, rgba(234,27,161,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -1px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(253,35,224,.1); border: 1px solid var(--line); color: var(--pink-soft); font-size: 13px; margin-bottom: 18px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3 } }

/* Kubus 3D berputar */
.scene { perspective: 900px; display: grid; place-items: center; min-height: 340px; }
.cube3d { position: relative; width: 190px; height: 190px; transform-style: preserve-3d; animation: spin 16s linear infinite; }
.cube3d .f { position: absolute; inset: 0; border-radius: 22px; background: var(--grad); border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 0 40px rgba(0,0,0,.35); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 26px; letter-spacing: 1px; backface-visibility: visible; }
.cube3d .f:nth-child(1) { transform: translateZ(95px); }
.cube3d .f:nth-child(2) { transform: rotateY(180deg) translateZ(95px); }
.cube3d .f:nth-child(3) { transform: rotateY(90deg) translateZ(95px); filter: brightness(.75); }
.cube3d .f:nth-child(4) { transform: rotateY(-90deg) translateZ(95px); filter: brightness(.75); }
.cube3d .f:nth-child(5) { transform: rotateX(90deg) translateZ(95px); filter: brightness(1.15); }
.cube3d .f:nth-child(6) { transform: rotateX(-90deg) translateZ(95px); background: #140a18; }
.cube3d .f svg { width: 70px; height: 70px; }
.scene .ring { position: absolute; width: 330px; height: 330px; border-radius: 50%; border: 2px solid rgba(253,35,224,.35); transform: rotateX(72deg); animation: ring 8s linear infinite; }
.scene .ring.r2 { width: 260px; height: 260px; animation-duration: 6s; animation-direction: reverse; border-style: dashed; }
.scene .shadow { position: absolute; bottom: 10px; width: 200px; height: 30px; border-radius: 50%; background: radial-gradient(rgba(240,0,208,.55), transparent 70%); filter: blur(6px); }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0) } to { transform: rotateX(-18deg) rotateY(360deg) } }
@keyframes ring { from { transform: rotateX(72deg) rotateZ(0) } to { transform: rotateX(72deg) rotateZ(360deg) } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .scene { min-height: 260px; order: -1; }
  .cube3d { width: 130px; height: 130px; }
  .cube3d .f { font-size: 18px; }
  .cube3d .f:nth-child(1) { transform: translateZ(65px); }
  .cube3d .f:nth-child(2) { transform: rotateY(180deg) translateZ(65px); }
  .cube3d .f:nth-child(3) { transform: rotateY(90deg) translateZ(65px); }
  .cube3d .f:nth-child(4) { transform: rotateY(-90deg) translateZ(65px); }
  .cube3d .f:nth-child(5) { transform: rotateX(90deg) translateZ(65px); }
  .cube3d .f:nth-child(6) { transform: rotateX(-90deg) translateZ(65px); }
  .scene .ring { width: 230px; height: 230px; } .scene .ring.r2 { width: 180px; height: 180px; }
}

/* ---------- Seksi & grid ---------- */
section { padding: 40px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0; line-height: 1.2; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g3, .g4 { grid-template-columns: 1fr; } }

.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); margin-bottom: 14px; box-shadow: 0 10px 20px -8px rgba(240,0,208,.8); transform: translateZ(40px) rotateX(12deg) rotateY(-12deg); }
.feature .ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.stats div b { display: block; font-size: 26px; }
.stats div span { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .stats { justify-content: center; } }

.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.formats span { padding: 10px 18px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-weight: 700; letter-spacing: 1px; transition: .25s; }
.formats span:hover { background: var(--grad); transform: translateY(-3px) rotateX(10deg); }

.demo-link { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #0b0610; border: 1px dashed var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; color: var(--pink-soft); }
.demo-link em { color: #fff; font-style: normal; }

/* ---------- Artikel ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); height: 100%; }
.post-card:hover { color: var(--text); }
.post-card .date { font-size: 13px; color: var(--pink-soft); }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.post-card .more { font-weight: 600; color: var(--pink-soft); }

.page-head { padding: 46px 0 16px; }
.page-head h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; margin: 0 0 10px; }
.page-head p { color: var(--muted); margin: 0; max-width: 700px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: #fff; }

.prose { font-size: 17px; max-width: 760px; }
.prose h2 { font-size: 24px; margin: 32px 0 10px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p, .prose li { color: #e3d6e6; }
.prose code { background: #1a0e20; padding: 2px 6px; border-radius: 6px; font-size: .9em; color: var(--pink-soft); }
.prose pre { background: #0b0610; border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 14px; margin: 18px 0; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article-wrap aside { position: sticky; top: 90px; display: grid; gap: 16px; }
@media (max-width: 960px) { .article-wrap { grid-template-columns: 1fr; } .article-wrap aside { position: static; } }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pager a, .pager span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.pager span { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; transition: background .2s; }
.faq details[open] { background: rgba(40,14,44,.8); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--pink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Komentar ---------- */
.comments { display: grid; gap: 14px; }
.comment { display: flex; gap: 14px; }
.avatar { flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; transform: perspective(200px) rotateY(-14deg); box-shadow: 4px 6px 14px -6px rgba(240,0,208,.8); }
.comment .who { font-weight: 700; } .comment .who small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.comment p { margin: 4px 0 0; color: #e3d6e6; white-space: pre-line; overflow-wrap: anywhere; }
.comment .on-post { font-size: 13px; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.input, .form input[type=text], .form input[type=password], .form input[type=url], .form input[type=number], .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8,4,11,.8); color: #fff; font: 15px var(--font); transition: border .2s, box-shadow .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.input:focus, .form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(253,35,224,.15); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 12px; background: rgba(253,35,224,.1); border: 1px solid var(--line); color: var(--pink-soft); }
.notice.err { background: rgba(255,60,100,.08); border-color: rgba(255,60,100,.35); color: #ff9bb4; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 36px 0 28px; background: rgba(7,4,10,.8); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { color: var(--muted); max-width: 360px; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul a { color: var(--muted); font-size: 14px; } .foot ul a:hover { color: #fff; }
.foot h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--pink-soft); }
.copy { text-align: center; color: #7d6b83; font-size: 13px; margin-top: 26px; }

/* ---------- Animasi masuk (ringan) ---------- */
.reveal { opacity: 0; transform: translateY(24px) rotateX(8deg); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
