/* ChatKuy: halaman utama & halaman masuk */
:root {
  --paper: #f5f3ee;
  --paper-2: #ece8df;
  --card: #fffdf9;
  --ink: #111312;
  --ink-2: #3d4240;
  --muted: #6b706d;
  --line: #dcd7cc;
  --teal: #0f766e;
  --teal-d: #0b5a54;
  --teal-l: #d7ebe7;
  --sun: #f2b544;
  --r: 14px;
  --head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
code { font: 0.9em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ------------------------------------------------ tombol */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2e2c; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #e9a72c; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245,243,238,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 23px/1 var(--head); letter-spacing: -0.04em; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--teal); }
.brand-sm { font-size: 19px; } .brand-sm .mark { width: 24px; height: 24px; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.top-act { display: flex; align-items: center; gap: 18px; }
.link-strong { font-weight: 600; font-size: 15px; text-decoration: none; }
.link-strong:hover { text-decoration: underline; text-underline-offset: 4px; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 10px 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------ hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--sun); }
h1 { font-size: clamp(40px, 4.8vw, 62px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.lead { margin-top: 24px; font-size: 18.5px; color: var(--ink-2); max-width: 30em; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 26em; }
.hero-visual { position: relative; margin-right: -120px; }
.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 30px 60px -30px rgba(17,19,18,.35); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #faf8f3; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); }
.frame img { width: 100%; height: auto; }
.frame-hero { transform: rotate(-0.6deg); }
.hero-widget { position: absolute; width: 30%; max-width: 230px; left: -48px; bottom: -72px; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(17,19,18,.45); }
.peek { position: absolute; right: 150px; top: -22px; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 11px 16px 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.35; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.peek b { display: block; color: var(--sun); font-weight: 600; font-size: 12px; }
.peek-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ------------------------------------------------ fakta */
.facts { border-block: 1px solid var(--line); background: var(--card); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in > div { padding: 30px 26px; border-left: 1px solid var(--line); }
.facts-in > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 800 22px/1.2 var(--head); letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------ fitur */
.features { padding: 120px 0 40px; }
.sec-head { max-width: 640px; margin-bottom: 72px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.row.flip .row-copy { order: 2; }
.num { display: inline-block; font: 600 13px/1 ui-monospace, Menlo, monospace; color: var(--teal); border: 1px solid currentColor; border-radius: 999px; padding: 6px 10px; margin-bottom: 20px; }
.row h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; }
.row-copy > p { margin-top: 16px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--teal-l); }
.ticks li::after { content: ''; position: absolute; left: 5.5px; top: 8px; width: 6px; height: 4px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.frame-crop { border-radius: var(--r); }
.phones { display: flex; justify-content: center; gap: 28px; padding: 36px 24px; background: var(--teal); border-radius: 22px; }
.phones img { width: min(250px, 44%); border-radius: 16px; box-shadow: 0 24px 40px -20px rgba(0,0,0,.55); }
.phones img:last-child { margin-top: 48px; }

.grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cell h4 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.cell p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------ cara pasang */
.install { padding: 120px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 16px/1 var(--head); margin-bottom: 20px; }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.code { margin-top: 56px; background: #151917; border-radius: var(--r); overflow: hidden; color: #e7e5df; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 20px; border-bottom: 1px solid #2a302d; font-size: 13px; color: #9aa19d; }
.code-bar button { background: #2a302d; color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font: 600 13px var(--body); cursor: pointer; }
.code-bar button:hover { background: #38403c; }
.code pre { margin: 0; padding: 26px 22px; overflow-x: auto; font: 15px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.code code { background: none; padding: 0; font: inherit; }
.c-tag { color: #7dd3c0; } .c-attr { color: #f2b544; } .c-str { color: #f3d9a4; }

/* ------------------------------------------------ keamanan */
.secure { background: var(--ink); color: #fff; padding: 120px 0; }
.secure-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.secure-copy p:last-child { margin-top: 20px; color: #b9bfbb; font-size: 17px; }
.secure-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #2c312f; }
.secure-list div { padding: 26px 24px 28px 0; border-bottom: 1px solid #2c312f; }
.secure-list div:nth-child(odd) { padding-right: 32px; border-right: 1px solid #2c312f; }
.secure-list div:nth-child(even) { padding-left: 32px; }
.secure-list dt { font: 700 17px/1.3 var(--head); }
.secure-list dd { margin: 8px 0 0; color: #a9b0ab; font-size: 15px; }

/* ------------------------------------------------ FAQ */
.faq { padding: 120px 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.faq .sec-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font: 600 18px/1.4 var(--head); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding: 0 44px 26px 0; color: var(--ink-2); }
details a { color: var(--teal); font-weight: 600; }

/* ------------------------------------------------ CTA & footer */
.cta { padding: 0 0 120px; }
.cta-in { background: var(--teal); color: #fff; border-radius: 26px; padding: 72px 64px; position: relative; overflow: hidden; }
.cta-in::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 360px; height: 360px; border-radius: 50% 50% 50% 8px; border: 2px solid rgba(255,255,255,.18); }
.cta h2 { font-size: clamp(32px, 4vw, 50px); }
.cta p { margin-top: 14px; font-size: 18px; color: #d4ebe6; max-width: 32em; }
.cta-act { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; margin-right: auto; }
.foot-nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); }
.foot p { font-size: 14px; }

/* ------------------------------------------------ responsif */
@media (max-width: 1100px) {
  .hero-visual { margin-right: 0; }
  .peek { right: 40px; }
}
@media (max-width: 920px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; }
  .top-in { justify-content: space-between; }
  .hero { padding: 40px 0 88px; }
  .hero-in, .row, .row.flip, .secure-in, .faq-in { grid-template-columns: 1fr; gap: 40px; }
  .row.flip .row-copy { order: 0; }
  .hero-visual { margin-top: 12px; }
  .hero-widget { left: auto; right: -8px; width: 34%; bottom: -56px; }
  .peek { right: auto; left: 12px; top: -20px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts-in > div { padding: 22px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .facts-in > div:nth-child(-n+2) { border-top: 0; }
  .facts-in > div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts-in > div:first-child { padding-left: 18px; }
  .features, .install, .secure, .faq { padding: 80px 0; }
  .features { padding-bottom: 20px; }
  .sec-head { margin-bottom: 40px; }
  .row { padding: 44px 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding-bottom: 80px; }
  .cta-in { padding: 48px 28px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top-act .btn { display: none; }
  .lead { font-size: 17px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .facts b { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
  .secure-list { grid-template-columns: 1fr; }
  .secure-list div, .secure-list div:nth-child(odd), .secure-list div:nth-child(even) { padding: 22px 0; border-right: 0; }
  .phones { gap: 14px; padding: 24px 14px; }
  .phones img:last-child { margin-top: 28px; }
  .code pre { font-size: 13px; }
  summary { font-size: 16.5px; }
  .cta-act .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* ================================================ halaman masuk */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-form { display: flex; flex-direction: column; padding: 32px 48px; }
.auth-form .brand { align-self: flex-start; }
.auth-box { width: 100%; max-width: 400px; margin: auto; padding: 48px 0; }
.auth-box h1 { font-size: 38px; letter-spacing: -0.03em; }
.auth-box > p { margin-top: 12px; color: var(--ink-2); }
.form { margin-top: 34px; display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input { width: 100%; height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 16px; font: 16px var(--body); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,.14); }
.field small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 8px; top: 8px; height: 36px; padding: 0 12px; border: 0; background: none; color: var(--teal); font: 600 13px var(--body); cursor: pointer; border-radius: 8px; }
.pw button:hover { background: var(--teal-l); }
.form .btn { width: 100%; justify-content: center; height: 54px; margin-top: 6px; }
.form .btn[disabled] { opacity: .65; cursor: wait; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; background: #fbe9e6; color: #8f2a1c; border: 1px solid #f1c9c1; }
.alert.info { background: var(--teal-l); color: var(--teal-d); border-color: #b8dbd4; }
.auth-help { margin-top: 26px; font-size: 14px; color: var(--muted); }
.auth-help a { color: var(--ink); font-weight: 600; }
.auth-foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--muted); }
.auth-side { background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { font-size: clamp(26px, 2.6vw, 36px); max-width: 15em; }
.auth-side p { margin-top: 14px; color: #b3b9b5; max-width: 30em; }
.auth-side .frame { margin-top: 44px; margin-right: -140px; border-color: #2a2f2d; transform: rotate(-1deg); }
.auth-side .frame-bar { background: #1b1f1d; border-color: #2a2f2d; }
.auth-side .frame-bar i { background: #3a403d; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form { padding: 24px 16px; }
}
