:root {
  /* token kodekecil.tech (disalin dari styles.css situs utama) */
  --forest-950: #052d22;
  --forest-900: #073b2a;
  --forest-800: #0a4a35;
  --forest-700: #116044;
  --leaf-500: #35cf48;
  --leaf-400: #58e663;
  --lime-300: #c8f64b;
  --mint-200: #b9fbc5;
  --mint-100: #e6ffe6;
  --paper: #f7faf6;
  --white: #ffffff;
  --ink: #092d23;
  --muted: #587067;
  --line: rgba(7, 59, 42, 0.14);
  --shadow: 0 26px 70px rgba(7, 59, 42, 0.12);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

main section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest-800); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .eyebrow, .amount, .steps span, .demo-req .label { font-family: var(--mono); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest-950); color: var(--mint-100); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; z-index: 20; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* header */
.top {
  display: flex; align-items: center; gap: 18px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--forest-950); line-height: 1.1; }
.brand:hover { text-decoration: none; }
.mark { display: block; height: 30px; width: auto; align-self: center; }
.brand-text { font-weight: 800; letter-spacing: -0.01em; }
.brand-text b { color: var(--forest-700); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--forest-950); text-decoration: none; }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--lime-300); color: var(--forest-950);
  font-weight: 800; font-size: 15px;
  border: 1px solid var(--lime-300);
  transition: transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 10px 26px rgba(5, 45, 34, 0.10);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(5, 45, 34, 0.16); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: var(--white); color: var(--forest-900); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--forest-800); }

/* layout */
main { display: block; }
.hero, .section {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) clamp(18px, 4vw, 48px);
}
.hero { padding-bottom: clamp(28px, 4vw, 56px); }

.eyebrow {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest-700); margin: 0 0 18px; font-weight: 700;
}

h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 22px; font-weight: 800; color: var(--forest-950);
}
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 800; color: var(--forest-950); }
h3 { font-size: 19px; margin: 0 0 10px; letter-spacing: -0.01em; color: var(--forest-950); }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 26px; }
.lead.small, .small { font-size: 15.5px; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { color: var(--muted); font-size: 15px; padding-left: 22px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--forest-700); font-weight: 700; }

.section + .section { border-top: 1px solid var(--line); }

/* kartu */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); margin-top: 8px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: 0 12px 30px rgba(7, 59, 42, 0.05);
}
.card p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: auto 0 0; }
.tags li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  background: var(--mint-100); color: var(--forest-800);
  padding: 4px 9px; border-radius: 999px;
}

/* harga */
.price .amount { font-size: 22px; color: var(--forest-950); margin: 0 0 6px; letter-spacing: -0.01em; font-weight: 700; }
.price .tier { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.price .featured { background: var(--mint-100); border-color: rgba(17, 96, 68, 0.28); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { font-size: 14.5px; color: var(--muted); padding-left: 20px; position: relative; }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--forest-700); }

/* langkah */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps span { color: var(--forest-700); font-size: 13px; letter-spacing: .1em; padding-top: 4px; font-weight: 700; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* panel gelap (demo) — sama seperti section gelap kodekecil.tech */
.demo-panel, .chat {
  margin-top: 26px; background: var(--forest-950); border: 1px solid var(--forest-800);
  border-radius: var(--radius); padding: 18px; color: var(--mint-100);
  box-shadow: var(--shadow);
}
.demo-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-buttons button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: rgba(230, 255, 230, 0.08); color: var(--mint-100);
  border: 1px solid rgba(185, 251, 197, 0.28); border-radius: 999px; padding: 8px 15px;
  transition: border-color .15s ease, background .15s ease;
}
.demo-buttons button:hover { border-color: var(--lime-300); color: var(--lime-300); }
.demo-buttons button[aria-pressed="true"] { background: var(--lime-300); border-color: var(--lime-300); color: var(--forest-950); }

.demo-req { font-size: 13px; color: rgba(230, 255, 230, 0.7); margin: 0 0 10px; word-break: break-all; }
.demo-req .label { color: var(--lime-300); margin-right: 6px; }
.demo-req code { color: var(--mint-100); }

.demo-out {
  margin: 0; padding: 16px; border-radius: 12px; background: #04241c;
  border: 1px solid var(--forest-800); color: #cdeed8;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.6;
  max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}

/* demo chat */
.chatsec .chat-intro { max-width: 58ch; }

.chat-card {
  max-width: 720px;
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(7, 59, 42, 0.10), 0 2px 6px rgba(7, 59, 42, 0.04);
  overflow: hidden;
}

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--mint-100), var(--white));
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; flex: 0 0 auto;
}
.chat-avatar img { display: block; height: 26px; width: auto; }
.chat-id { display: flex; flex-direction: column; line-height: 1.25; }
.chat-id strong { font-size: 15.5px; color: var(--forest-950); }
.chat-status { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--leaf-500); box-shadow: 0 0 0 3px rgba(53, 207, 72, 0.18);
}
.chat-reset {
  margin-left: auto; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--forest-800); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.chat-reset:hover { border-color: var(--forest-800); }

.chat-log {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; 
  background: #fbfdf9;
  min-height: 168px; max-height: 288px; overflow-y: auto;
  scroll-behavior: smooth;
}
.chat-log::-webkit-scrollbar { width: 8px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(7, 59, 42, 0.16); border-radius: 8px; }

.msg { max-width: 84%; }
.msg p { margin: 0; font-size: 15.4px; line-height: 1.62; }
.msg.bot {
  align-self: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  padding: 12px 15px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(7, 59, 42, 0.04);
}
.msg.me {
  align-self: flex-end; margin-left: auto;
  background: var(--forest-900); color: var(--mint-100);
  border-radius: 16px 16px 6px 16px;
  padding: 12px 15px;
}
.msg.err {
  align-self: flex-start; background: transparent;
  border: 1px dashed rgba(17, 96, 68, 0.35); color: var(--forest-700);
  border-radius: 14px; padding: 10px 14px; font-size: 14.5px;
}

.msg.typing { display: flex; gap: 5px; padding: 15px; }
.msg.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--forest-700);
  opacity: .45; animation: blink 1.1s infinite ease-in-out;
}
.msg.typing span:nth-child(2) { animation-delay: .16s; }
.msg.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 10px; background: #fbfdf9; }
.chat-chips button {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--forest-800); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  transition: background .15s ease, border-color .15s ease;
}
.chat-chips button:hover { background: var(--mint-100); border-color: rgba(17, 96, 68, 0.3); }

.chat-form {
  display: flex; align-items: center; gap: 8px;
  margin: 0 18px 14px; padding: 6px 6px 6px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.chat-form:focus-within { border-color: rgba(17, 96, 68, 0.42); box-shadow: 0 0 0 4px rgba(53, 207, 72, 0.10); }
.chat-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 15.5px; color: var(--ink);
  background: transparent; border: 0; padding: 10px 0;
}
.chat-form input::placeholder { color: rgba(88, 112, 103, 0.72); }
.chat-form input:focus { outline: none; }
.chat-form button {
  flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
  cursor: pointer; border-radius: 50%;
  background: var(--lime-300); color: var(--forest-950);
  border: 1px solid var(--lime-300);
  box-shadow: 0 4px 12px rgba(200, 246, 75, 0.5);
  transition: transform .15s ease, filter .15s ease;
}
.chat-form button:hover { transform: translateY(-1px); filter: brightness(0.97); }
.chat-form button:disabled { opacity: .45; cursor: progress; transform: none; filter: none; }

.chat-foot {
  display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between;
  margin: 0; padding: 10px 20px 12px;
  border-top: 1px solid var(--line); background: var(--white);
  font-size: 11.5px; letter-spacing: .01em; color: rgba(88, 112, 103, 0.9);
  font-family: var(--mono);
}

/* penutup + footer */
.closing .lead { margin-bottom: 24px; }
.foot {
  background: var(--forest-950); color: rgba(230, 255, 230, 0.72);
  padding: 26px clamp(18px, 4vw, 48px); font-size: 14px;
}
.foot p { margin: 0; max-width: 1080px; margin-inline: auto; }
.foot a { color: var(--lime-300); }

@media (max-width: 720px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .steps li { grid-template-columns: 40px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
