/* MochiTs Docs — tema lavender gelap, tanpa build step. */
:root {
  --bg: #120f19;
  --bg-2: #171221;
  --panel: #1e1729;
  --panel-2: #241b33;
  --line: #332745;
  --line-soft: #2a2039;
  --text: #f4effa;
  --muted: #b8accb;
  --muted-2: #8f82a6;
  --lav: #b39ddb;
  --lav-2: #d1c4e9;
  --lav-3: #ede7f6;
  --violet: #7e57c2;
  --pink: #e1bee7;
  --code-bg: #0d0a13;
  --ok: #86e0a1;
  --warn: #ffd479;
  --err: #ff9b9b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(126, 87, 194, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(225, 190, 231, .12), transparent 55%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lav-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
::selection { background: rgba(179, 157, 219, .35); color: #fff; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 15, 25, .82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--lav), var(--violet));
  box-shadow: 0 0 24px rgba(179, 157, 219, .45);
}
.brand-word { font-family: var(--font-display); font-size: 27px; letter-spacing: .06em; line-height: 1; }
.brand-word span { color: var(--lav); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.cta {
  color: #17111f; background: var(--lav-2); font-weight: 700;
  margin-left: 8px; padding: 9px 14px;
}
.nav a.cta:hover { background: #fff; color: #17111f; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 8px 11px; font-size: 18px;
}
.mobile-nav { display: none; border-top: 1px solid var(--line-soft); padding: 8px 0 14px; }
.mobile-nav a { display: block; padding: 9px 4px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 68px; }
.hero::after {
  content: ""; position: absolute; inset: auto -20% -60% 40%;
  height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(126, 87, 194, .35), transparent);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lav-2); background: rgba(179, 157, 219, .09);
  border: 1px solid rgba(179, 157, 219, .22);
  padding: 7px 12px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7vw, 88px); line-height: .95; letter-spacing: .015em;
  margin: 20px 0 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lav-3), var(--lav), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lav-2); color: #191221; }
.btn-primary:hover { background: #fff; color: #191221; }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); color: #fff; }
.hero-note { margin-top: 18px; color: var(--muted-2); font-size: 13px; }

.hero-art { position: relative; min-height: 380px; }
.phone {
  width: min(270px, 100%); margin-left: auto;
  border-radius: 30px; padding: 10px;
  background: linear-gradient(160deg, #34284a, #1a1324);
  border: 1px solid #41315a; box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.phone-screen {
  border-radius: 22px; overflow: hidden; background: #f7f4fc; color: #241a33;
  padding: 16px; min-height: 340px;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #6c5b85; }
.phone-title { font-family: var(--font-display); font-size: 26px; letter-spacing: .05em; color: #5b3f95; margin: 8px 0 12px; }
.mock-folders { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.mock-chip { font-size: 10px; padding: 4px 8px; border-radius: 999px; background: #e9e1f8; color: #4a3670; font-weight: 600; }
.mock-chip.active { background: #7e57c2; color: #fff; }
.mock-card {
  border-radius: 12px; height: 92px; margin-bottom: 8px;
  background: linear-gradient(135deg, #d9c9f3, #b9a2e6);
  position: relative; overflow: hidden;
}
.mock-card::after {
  content: ""; position: absolute; inset: 12px 14px auto 14px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.72); box-shadow: 0 16px 0 rgba(255,255,255,.45);
}
.mock-card.alt { background: linear-gradient(135deg, #f0d9f0, #d3aed8); height: 68px; }
.mock-caption { font-size: 10px; color: #6c5b85; margin: 10px 0 0; }
.float-card {
  position: absolute; left: 0; bottom: 28px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; width: 190px;
  box-shadow: var(--shadow); font-size: 12px; color: var(--muted);
}
.float-card strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 3px; }
.float-badge { color: var(--ok); font-size: 11px; font-weight: 700; }

/* ---------- Sections / cards ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 400; letter-spacing: .02em; margin: 0; }
.section-head p { color: var(--muted); margin: 0; max-width: 520px; }
.eyebrow { color: var(--lav); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(165deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 { margin: 12px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(179, 157, 219, .13); border: 1px solid rgba(179, 157, 219, .2);
  color: var(--lav-2); font-family: var(--font-mono); font-size: 15px; font-weight: 700;
}
.card a.more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick a {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 15px;
  background: var(--bg-2); color: var(--text); font-weight: 600; font-size: 14px;
}
.quick a span { display: block; color: var(--muted-2); font-weight: 400; font-size: 12px; margin-top: 2px; }
.quick a:hover { border-color: rgba(179,157,219,.45); }

/* ---------- Docs layout ---------- */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 46px; padding: 40px 0 72px; }
.sidebar { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.sidebar .side-title {
  color: var(--muted-2); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin: 18px 0 8px;
}
.sidebar a {
  display: block; color: var(--muted); padding: 7px 10px; border-radius: 8px;
  border-left: 2px solid transparent; line-height: 1.4;
}
.sidebar a:hover { color: var(--text); background: var(--panel); }
.sidebar a.active { color: var(--lav-3); background: rgba(179,157,219,.1); border-left-color: var(--lav); }
.docs-main { min-width: 0; }
.doc-head { margin-bottom: 26px; }
.doc-head h1 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 10px 0 12px; }
.doc-head p { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0; }
.breadcrumb { color: var(--muted-2); font-size: 12px; letter-spacing: .04em; }
.breadcrumb a { color: var(--muted-2); }
.breadcrumb a:hover { color: var(--text); }

.docs-main h2 {
  font-size: 25px; letter-spacing: -.01em; margin: 44px 0 12px;
  padding-top: 8px; border-top: 1px solid var(--line-soft);
}
.docs-main h3 { font-size: 18px; margin: 26px 0 8px; }
.docs-main p, .docs-main li { color: #d4cadf; }
.docs-main ul, .docs-main ol { padding-left: 22px; }
.docs-main li { margin: 5px 0; }
.docs-main strong { color: #fff; }
.docs-main code {
  font-family: var(--font-mono); font-size: .86em;
  background: rgba(179, 157, 219, .12); color: var(--lav-3);
  border: 1px solid rgba(179, 157, 219, .12);
  padding: 1px 6px; border-radius: 6px;
}
.docs-main pre {
  position: relative; background: var(--code-bg); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 16px 18px; overflow: auto; line-height: 1.55;
}
.docs-main pre code { background: none; border: 0; padding: 0; color: #e7dff3; font-size: 13px; }
.copy-btn {
  position: absolute; top: 9px; right: 9px; font-family: var(--font-body);
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 7px; font-size: 11px; padding: 4px 8px; cursor: pointer;
}
.copy-btn:hover { color: #fff; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: table; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--lav-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
td code { white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }

.callout {
  border: 1px solid rgba(179, 157, 219, .24);
  background: rgba(179, 157, 219, .07);
  border-radius: 12px; padding: 14px 16px; margin: 18px 0;
  color: #e7def3; font-size: 14px;
}
.callout.warn { border-color: rgba(255, 212, 121, .3); background: rgba(255, 212, 121, .06); }
.callout.warn strong { color: var(--warn); }
.callout.ok { border-color: rgba(134, 224, 161, .3); background: rgba(134, 224, 161, .06); }
.callout.ok strong { color: var(--ok); }
.callout strong:first-child { color: var(--lav-2); }

.steps { counter-reset: step; display: grid; gap: 12px; margin: 18px 0; }
.step {
  counter-increment: step; position: relative; padding: 15px 16px 15px 54px;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px;
}
.step::before {
  content: counter(step); position: absolute; left: 15px; top: 14px;
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(179, 157, 219, .16); color: var(--lav-2);
  font-size: 12px; font-weight: 700;
}
.step strong { display: block; margin-bottom: 2px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.next-prev { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.next-prev a {
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: var(--muted); background: var(--bg-2);
}
.next-prev a:hover { border-color: var(--lav); color: #fff; }
.next-prev .lbl { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Tester ---------- */
.tester { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 20px 0; }
.panel { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; min-width: 0; }
.panel h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
input[type="text"], textarea, select {
  width: 100%; font-family: var(--font-mono); font-size: 13px; color: var(--text);
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; outline: none; resize: vertical;
}
input[type="text"]:focus, textarea:focus, select:focus { border-color: var(--lav); box-shadow: 0 0 0 3px rgba(179,157,219,.12); }
textarea { min-height: 190px; line-height: 1.55; }
.hint { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.tester-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stat {
  background: rgba(179,157,219,.09); border: 1px solid rgba(179,157,219,.18);
  border-radius: 9px; padding: 6px 10px; font-size: 12px; color: var(--muted);
}
.stat b { color: var(--lav-3); }
.result { max-height: 430px; overflow: auto; padding-right: 4px; }
.result-page { margin-bottom: 14px; }
.result-page .page-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--lav);
  border-bottom: 1px dashed var(--line); padding-bottom: 4px; margin-bottom: 8px;
}
.entry { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid rgba(51,39,69,.45); }
.entry:last-child { border-bottom: 0; }
.entry .sym {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; white-space: nowrap;
  background: rgba(179,157,219,.15); color: var(--lav-3);
  border-radius: 6px; padding: 2px 6px; margin-top: 1px;
}
.entry .sym.linked { background: rgba(126,87,194,.28); color: var(--pink); }
.entry .body { font-size: 13px; color: #ddd4e9; white-space: pre-wrap; word-break: break-word; }
.entry .parent { display: block; font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.warnings { margin-top: 10px; font-size: 12px; }
.warnings div { padding: 7px 10px; border-radius: 8px; margin-bottom: 6px; background: rgba(255,155,155,.07); color: var(--err); border: 1px solid rgba(255,155,155,.18); }
.warnings div.warn { background: rgba(255,212,121,.06); color: var(--warn); border-color: rgba(255,212,121,.2); }
.empty-note { color: var(--muted-2); font-size: 13px; }
mark { background: rgba(255,212,121,.35); color: #fff; border-radius: 3px; padding: 0 2px; }
.match-list { font-family: var(--font-mono); font-size: 12px; color: var(--muted); max-height: 180px; overflow: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 34px 0 44px; color: var(--muted-2); font-size: 13px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 0; }
  .phone { margin: 0 auto; transform: none; }
  .float-card { left: 50%; transform: translateX(-50%); bottom: -14px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; display: none; }
  .tester { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .mobile-nav.open { display: block; }
  .hero { padding: 56px 0 46px; }
  .features { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
  .doc-head h1 { font-size: 40px; }
  .docs { padding-top: 26px; }
  table { font-size: 13px; }
  th, td { padding: 8px; }
}
