/* Nesca AI · landing page. Satu file CSS, tanpa framework. */
:root {
  --brand: #4338ca;
  --brand-hover: #3730a3;
  --brand-deep: #312e81;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --chat-bg: #efeae2;
  --good: #047857;
  --good-soft: #d1fae5;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --highlight: #fde68a;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 12px 32px rgb(15 23 42 / 0.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.section { padding: 72px 0; scroll-margin-top: 64px; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* Tombol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.wordmark { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); line-height: 1; }
.wordmark span { margin-left: 0.18em; font-weight: 700; color: var(--brand); }
.nav { display: none; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
@media (min-width: 880px) { .nav { display: flex; } }
.header-cta { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.93rem; }

/* Hero */
.hero {
  padding: 48px 0 72px;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--brand-50), transparent 65%),
    radial-gradient(600px 300px at -10% 110%, #f1f5f9, transparent 70%);
}
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.hero .lead { font-size: 1.15rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.micro { font-size: 0.9rem; color: var(--muted); margin: 0; }
.micro strong { color: var(--text); }

/* Ilustrasi produk */
.visual { width: 100%; max-width: 520px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chat { max-width: 380px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-hover);
  font-size: 0.78rem;
  font-weight: 800;
}
.chat-head strong { display: block; color: var(--ink); font-size: 0.95rem; line-height: 1.25; }
.chat-head small { color: var(--muted); font-size: 0.78rem; }
.chat-body { background: var(--chat-bg); padding: 16px 14px 18px; }
.bubble {
  position: relative;
  max-width: 92%;
  margin: 0;
  padding: 9px 12px 20px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.06);
}
.bubble .time { position: absolute; right: 10px; bottom: 4px; font-size: 0.7rem; color: var(--muted); }
.flow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -6px auto -6px;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgb(67 56 202 / 0.35);
}
.so { max-width: 460px; margin-left: auto; padding: 16px 16px 14px; }
.so-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.so-head small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.so-head strong { color: var(--ink); font-size: 1rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-wait { background: var(--warn-soft); color: var(--warn); }
.so-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.so-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.so-lines .item { color: var(--ink); font-weight: 600; line-height: 1.35; }
.so-lines .item small { display: block; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.so-lines .qty { white-space: nowrap; }
.so-lines .amt { white-space: nowrap; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.so-total { display: flex; justify-content: space-between; padding: 10px 0 8px; color: var(--ink); font-weight: 800; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; padding: 0; }
.checks li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 0.76rem;
  font-weight: 700;
}
.so-actions { display: flex; gap: 8px; }
.fake-btn {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}
.fake-btn.approve { background: var(--good); border-color: var(--good); color: #fff; }
.caption { margin: 14px 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.so-head { flex-wrap: wrap; }

@media (max-width: 479px) {
  .hero .cta-row .btn { width: 100%; }
  .so-lines li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "item item" "qty amt"; }
  .so-lines .item { grid-area: item; }
  .so-lines .qty { grid-area: qty; color: var(--muted); }
  .so-lines .amt { grid-area: amt; }
}

/* Masalah */
.stat {
  margin: 0 0 36px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.stat-num { margin: 0 0 6px; font-size: clamp(1.45rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.stat-num mark { background: linear-gradient(transparent 55%, var(--highlight) 55%); color: inherit; padding: 0 0.1em; }
.stat-label { margin: 0; color: var(--text); }

.grid-2, .grid-3 { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature p { margin: 0; font-size: 0.98rem; }
.icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
}

/* Langkah */
.steps { list-style: none; display: grid; gap: 20px; margin: 0; padding: 0; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps p { margin: 0; font-size: 0.98rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

/* Bahasa toko */
.examples { display: grid; gap: 12px; }
@media (min-width: 640px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.example { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.said {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.read { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 0.95rem; }
.read .icon { margin-top: 3px; color: var(--good); }
.read b { color: var(--ink); }
.note { margin: 20px 0 0; font-size: 0.88rem; color: var(--muted); }

/* Pilot */
.offer { display: grid; gap: 20px; }
@media (min-width: 880px) { .offer { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer article { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.offer h3 { margin: 0; }
.offer .when { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.offer p { margin: 0; font-size: 0.98rem; }
.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 0.76rem;
  font-weight: 700;
}
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-deep);
}
.callout p { margin: 0; }
.callout .icon { margin-top: 2px; color: var(--brand); }

/* Peta jalan */
.roadmap { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
@media (min-width: 760px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roadmap li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px dashed #cbd5e1; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 600; }
.roadmap .icon { color: var(--muted); }

/* Tanya jawab */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.5rem; font-weight: 500; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

/* Tentang */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .about { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.about p { font-size: 1.05rem; }
.founder { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.founder img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.founder strong { display: block; color: var(--ink); font-size: 1.05rem; }
.founder .role { color: var(--brand); font-weight: 700; font-size: 0.9rem; }
.founder p { margin: 6px 0 0; font-size: 0.95rem; }

/* Penutup */
.cta-band { padding: 56px 24px; border-radius: 24px; background: var(--brand-deep); color: var(--brand-100); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36em; margin: 0 auto 1em; font-size: 1.08rem; }
.cta-band .cta-row { justify-content: center; margin-bottom: 0; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn-primary:hover { background: var(--brand-50); }
.cta-band .btn-ghost { background: transparent; border-color: rgb(255 255 255 / 0.35); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }
.cta-band .micro { margin-top: 16px; color: var(--brand-100); }

/* Footer */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 40px; }
.footer-grid .brand svg { width: 28px; height: 28px; }
.footer-grid .wordmark { font-size: 1.12rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.fine { width: 100%; margin: 4px 0 0; font-size: 0.8rem; }

/* Halaman privasi */
.prose { max-width: 760px; padding: 56px 0 80px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.updated { color: var(--muted); font-size: 0.95rem; }
