/* Situs perkenalan Team Mind Challenge — gaya stiker yang sama dengan game. */
@font-face { font-family: 'Baloo 2'; font-weight: 600 800; font-display: swap; src: url('fonts/baloo2.woff') format('woff'); }
@font-face { font-family: 'Nunito'; font-weight: 500 800; font-display: swap; src: url('fonts/nunito.woff') format('woff'); }
:root {
  --bg: #dcebff;
  --dots: #c7dbfb;
  --paper: #ffffff;
  --paper2: #f3f7ff;
  --ink: #24305e;
  --muted: #56628d;
  --edge: #24305e;
  --blue: #4c8dff;
  --blue-soft: #e4eeff;
  --yellow: #ffc53d;
  --yellow-soft: #fff3d1;
  --pink: #ff6f8b;
  --mint: #2fd09f;
  --btn: #2f6fe4;
  --good: #0f8a62;
  --bad: #c9334f;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181c3f;
    --dots: #232858;
    --paper: #22275a;
    --paper2: #2a3068;
    --ink: #eef1ff;
    --muted: #b3bbe6;
    --edge: #0b0e2a;
    --blue-soft: #263a7a;
    --yellow-soft: #4a3c17;
    --btn: #4c8dff;
    --good: #45e0b1;
    --bad: #ff8aa1;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font: 500 17px/1.6 var(--body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-text-size-adjust: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--btn); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* tombol stiker */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  font: 800 18px/1 var(--display);
  color: #24305e; background: var(--yellow);
  border: 2px solid var(--edge); border-radius: 999px; box-shadow: 0 4px 0 var(--edge);
  text-decoration: none; cursor: pointer; transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 16px; box-shadow: 0 3px 0 var(--edge); }

/* bilah atas */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px max(16px, calc((100% - 1160px) / 2));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 800 19px/1 var(--display); }
.brand small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.brand-mascot { width: 54px; height: auto; }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.bar nav a:not(.btn):hover { text-decoration: underline; }
.bar nav .lang { color: var(--muted); }
@media (max-width: 760px) { .bar nav a:not(.btn):not(.lang) { display: none; } .bar nav { gap: 12px; } }

main > section { max-width: 1160px; margin: 0 auto; padding: 72px 16px; }
main > section > h2 + .lead, main > section > h2 + p { margin-top: 12px; }

/* ---------- hero + demo ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center; padding-top: 56px !important; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; line-height: 1.02; max-width: 15ch; }
.hero .lead { margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }

.demo {
  position: relative;
  background: var(--paper); border: 2px solid var(--edge); border-radius: 28px; box-shadow: 0 6px 0 var(--edge);
  padding: 22px 22px 18px;
}
.demo h2 { font-size: 22px; }
.clues { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.clue { margin: 0; padding: 14px; border-radius: 18px; border: 2px solid; min-height: 118px; }
.clue figcaption { font: 800 15px/1 var(--display); margin-bottom: 8px; }
.clue p { font-weight: 700; font-size: 16px; line-height: 1.4; }
.clue.blue { background: var(--blue-soft); border-color: var(--blue); }
.clue.yellow { background: var(--yellow-soft); border-color: var(--yellow); }
.ask { margin-top: 16px; font: 800 17px/1 var(--display); }
.keypad { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-width: 470px; }
.keypad button {
  aspect-ratio: 1; min-height: 40px; border-radius: 12px; border: 2px solid var(--edge); background: var(--paper2); color: var(--ink);
  font: 800 20px/1 var(--display); cursor: pointer; box-shadow: 0 3px 0 var(--edge); transition: transform 0.08s;
}
.keypad button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.keypad button.no { background: color-mix(in srgb, var(--pink) 25%, var(--paper)); animation: shake 0.3s; }
.keypad button.yes { background: var(--mint); }
.verdict { min-height: 48px; margin-top: 12px; font-weight: 700; padding-right: 104px; }
.verdict.good { color: var(--good); }
.verdict.bad { color: var(--bad); }
.demo-mascot { position: absolute; right: 14px; bottom: 12px; width: 96px; }
.demo-mascot .m-cheer { display: none; }
.demo.solved .demo-mascot .m-think { display: none; }
.demo.solved .demo-mascot .m-cheer { display: block; animation: pop 0.45s cubic-bezier(.3, 1.6, .5, 1); }
.demo.solved { animation: glow 1.2s ease-out; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes pop { from { transform: scale(0.6); } to { transform: scale(1); } }
@keyframes glow { from { box-shadow: 0 6px 0 var(--edge), 0 0 0 10px color-mix(in srgb, var(--mint) 60%, transparent); } to { box-shadow: 0 6px 0 var(--edge), 0 0 0 0 transparent; } }

/* ---------- serunya ---------- */
.fun-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 32px; }
.fun-item { padding-top: 14px; border-top: 6px solid var(--blue); max-width: 52ch; }
.fun-item.s1 { border-color: var(--pink); }
.fun-item.s2 { border-color: var(--yellow); }
.fun-item.s3 { border-color: var(--mint); }
.fun-item p { margin-top: 8px; color: var(--muted); }

/* ---------- rak tantangan ---------- */
.shelf .muted { margin-top: 10px; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px 36px; margin-top: 28px; }
.shelf-row h3 { font-size: 17px; }
.shelf-row ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shelf-row li { padding: 5px 13px; border-radius: 999px; background: var(--paper); border: 2px solid var(--edge); font-weight: 700; font-size: 15px; }
.shelf-row li.party::after { content: ' 🎉'; }

/* ---------- cara main ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.steps li { counter-increment: step; }
.steps img { width: 100%; max-width: 280px; height: auto; border-radius: 30px; border: 3px solid var(--edge); box-shadow: 0 6px 0 var(--edge); background: var(--paper); }
.steps h3 { margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.steps h3::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); color: #24305e; border: 2px solid var(--edge); font-size: 19px;
}
.steps p { margin-top: 8px; color: var(--muted); max-width: 34ch; }

/* ---------- beda ---------- */
.diff ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; max-width: 72ch; }
.diff li { padding-left: 30px; position: relative; }
.diff li::before { content: '✓'; position: absolute; left: 0; top: 0; font: 800 20px/1.3 var(--display); color: var(--good); }
.diff b { font-weight: 800; }

/* ---------- keamanan ---------- */
.sec { position: relative; }
.sec dl {
  margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px;
  background: var(--paper); border: 2px solid var(--edge); border-radius: 28px; padding: 10px 30px; box-shadow: 0 6px 0 var(--edge);
}
.sec dl > div { padding: 18px 0; border-bottom: 2px dashed color-mix(in srgb, var(--edge) 22%, transparent); }
.sec dl > div:nth-last-child(-n + 2) { border-bottom: 0; }
.sec dt { font: 800 18px/1.2 var(--display); }
.sec dt::before { content: '🔒 '; }
.sec dd { margin: 6px 0 0; color: var(--muted); }
.sec .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-weight: 700; }

/* ---------- performa ---------- */
.table-wrap { overflow-x: auto; margin-top: 26px; border: 2px solid var(--edge); border-radius: 22px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 18px; text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { font: 800 15px/1.2 var(--display); background: var(--paper2); }
tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--edge) 15%, transparent); }
td:first-child { font-weight: 800; }
.perf .small { margin-top: 12px; max-width: 80ch; }

/* ---------- tanya jawab ---------- */
.faq h2 { margin-bottom: 22px; }
.faq details { max-width: 820px; background: var(--paper); border: 2px solid var(--edge); border-radius: 18px; margin-top: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font: 800 18px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }

/* ---------- penutup ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 14px; padding-bottom: 96px !important; }
.final-mascot { width: 220px; }
.final p { color: var(--muted); max-width: 52ch; font-size: 19px; }
.final .btn { margin-top: 8px; }

.foot {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center;
  padding: 26px 16px 34px; border-top: 2px solid var(--edge); background: var(--paper); font-size: 15px;
}
.foot a { color: var(--ink); font-weight: 700; }
.foot span { color: var(--muted); }

/* ---------- layar kecil ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps li { display: grid; grid-template-columns: 150px 1fr; gap: 0 20px; align-items: start; }
  .steps img { grid-row: span 2; border-radius: 20px; }
  .steps h3 { margin-top: 0; }
  .sec dl { grid-template-columns: 1fr; padding: 6px 20px; }
  .sec dl > div:nth-last-child(2) { border-bottom: 2px dashed color-mix(in srgb, var(--edge) 22%, transparent); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  main > section { padding: 52px 16px; }
  .fun-grid { grid-template-columns: 1fr; gap: 26px; }
  .shelf-grid { grid-template-columns: 1fr; }
  .clues { grid-template-columns: 1fr; }
  .clue { min-height: 0; }
  .keypad { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 110px 1fr; }
  .verdict { padding-right: 84px; }
  .demo-mascot { width: 76px; }
  .actions .btn { flex: 1 1 100%; }
}
