:root {
  --bg: #0d0e12;
  --panel: #16181f;
  --line: #2a2d38;
  --text: #f3f3ee;
  --muted: #9a9dab;
  --lime: #c8f542;
  --violet: #7c5cff;
  --paper: #ffffff;
  --ink: #111318;
  --radius: 18px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 44px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: .8rem; color: var(--muted); }
.steps li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.steps li.on { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 600; }
.steps li.done { color: var(--text); border-color: #454959; }

main { flex: 1; width: min(1120px, 100% - 32px); margin: 0 auto; padding: clamp(20px, 5vh, 56px) 0 56px; outline: none; }
.center { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.h-xl { font-size: clamp(2.4rem, 7vw, 4.8rem); max-width: 14ch; }
.h-lg { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; margin: 18px 0 0; }
.lead b { color: var(--text); font-weight: 600; }

/* Home */
.ask { margin-top: 30px; max-width: 780px; }
.ask textarea { width: 100%; min-height: 150px; resize: vertical; font: inherit; font-size: 1.15rem; line-height: 1.5; color: var(--text); background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.ask textarea::placeholder { color: #6d7080; }
.ask textarea:focus { outline: none; border-color: var(--lime); }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.err { color: #ff8f8f; font-size: .95rem; margin: 10px 0 0; min-height: 1.4em; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; color: var(--muted); font-size: .9rem; }
.chip-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: .9rem; }
.chip-btn:hover { border-color: var(--lime); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--lime); color: var(--ink); border: 2px solid var(--lime); border-radius: 999px; padding: 14px 28px; font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); background: #d8ff66; }
.btn.ghost { background: none; color: var(--text); border-color: var(--line); font-weight: 600; }
.btn.ghost:hover { border-color: var(--text); background: none; }
.btn.small { padding: 10px 18px; font-size: .92rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.read { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.read span { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; margin: 4px 4px 0 0; color: var(--text); }

/* Names */
.grid { display: grid; gap: 16px; margin-top: 30px; }
.grid.names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.name-card { text-align: left; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.name-card:hover { transform: translateY(-4px); border-color: var(--lime); background: #1b1e27; }
.name-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); overflow-wrap: anywhere; }
.name-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #232633; color: #c9cbd6; }
.tag.ciptaan { background: rgba(200, 245, 66, .16); color: var(--lime); }
.tag.gabungan { background: rgba(124, 92, 255, .22); color: #b9a8ff; }
.tag.kiasan { background: rgba(255, 184, 77, .18); color: #ffc670; }
.pick { margin-top: auto; font-weight: 600; color: var(--lime); font-size: .92rem; }
.legend { margin-top: 22px; color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }
.legend b { color: var(--text); font-weight: 600; }

/* Choice */
.chosen { font-size: clamp(2.8rem, 9vw, 6rem); color: var(--lime); overflow-wrap: anywhere; }
.meaning { background: var(--panel); border-left: 4px solid var(--lime); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 22px 0 0; max-width: 760px; color: #d5d7e0; font-size: .98rem; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; max-width: 900px; }
.option { display: flex; flex-direction: column; gap: 10px; text-align: left; text-decoration: none; border-radius: var(--radius); padding: 26px; border: 1.5px solid var(--line); background: var(--panel); color: var(--text); transition: transform .18s ease, border-color .18s ease; }
.option:hover { transform: translateY(-4px); border-color: var(--lime); }
.option.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.option b { font-size: 1.5rem; line-height: 1.15; }
.option span { font-size: .95rem; opacity: .85; }
.option small { margin-top: auto; font-weight: 600; font-size: .9rem; }
.hint { margin-top: 20px; color: var(--muted); font-size: .92rem; max-width: 760px; }

/* Logos */
.grid.logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-card { background: var(--paper); border: 3px solid transparent; border-radius: var(--radius); padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.logo-card:hover { transform: translateY(-5px); border-color: var(--lime); box-shadow: 0 24px 50px -24px rgba(200, 245, 66, .5); }
.logo-card svg { display: block; width: 100%; height: auto; }
.logo-card span { display: block; padding: 10px 14px 12px; font-size: .82rem; font-weight: 600; color: #555a66; border-top: 1px solid #ececec; }

/* Final */
.final { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; margin-top: 26px; }
.stage { background: var(--paper); border-radius: 26px; padding: clamp(14px, 3vw, 36px); box-shadow: 0 40px 90px -40px rgba(124, 92, 255, .55); }
.stage svg { display: block; width: 100%; height: auto; }
.why h3 { font-size: 1.1rem; letter-spacing: 0; margin-bottom: 12px; color: var(--lime); }
.why ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.why li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .94rem; color: #d5d7e0; }
.next { background: var(--panel); border: 1.5px solid var(--lime); border-radius: var(--radius); padding: 24px; margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.next h3 { font-size: 1.45rem; }
.next p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; max-width: 56ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 22px clamp(16px, 4vw, 44px) 28px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.foot p { margin: 0 auto; max-width: 1120px; }
.foot strong { color: var(--text); font-weight: 600; }
.foot-small { margin-top: 8px !important; font-size: .8rem; }

/* Wipe transition */
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.wipe i, .wipe b { position: absolute; inset: 0; transform: translateX(-101%); }
.wipe i { background: var(--violet); }
.wipe b { background: var(--lime); }
.wipe.cover { pointer-events: all; }
.wipe.cover i { transform: translateX(0); transition: transform .42s cubic-bezier(.7, 0, .2, 1); }
.wipe.cover b { transform: translateX(0); transition: transform .42s cubic-bezier(.7, 0, .2, 1) .09s; }
.wipe.leave i { transform: translateX(101%); transition: transform .42s cubic-bezier(.7, 0, .2, 1) .09s; }
.wipe.leave b { transform: translateX(101%); transition: transform .42s cubic-bezier(.7, 0, .2, 1); }
.rise > * { animation: rise .5s ease both; }
.rise > *:nth-child(2) { animation-delay: .06s; } .rise > *:nth-child(3) { animation-delay: .12s; } .rise > *:nth-child(4) { animation-delay: .18s; } .rise > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .grid.names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps li { display: none; }
  .steps li.on { display: block; }
  .grid.names, .options { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .toolbar .btn { width: auto; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wipe i, .wipe b { transition: none !important; }
  .rise > * { animation: none; }
  .btn, .name-card, .logo-card, .option { transition: none; }
}
