@font-face {
  font-family: "Jakarta";
  src: url("/assets/font/jakarta.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f5f7fc;
  --bg-alt: #edf1f9;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --ink: #0e1526;
  --muted: #56607a;
  --line: #e2e7f1;
  --brand: #0a84e8;
  --brand-2: #4f46e5;
  --brand-ink: #ffffff;
  --brand-soft: rgba(10, 132, 232, .1);
  --mint: #0f9d6e;
  --shadow: 0 1px 2px rgba(14, 21, 38, .05), 0 12px 40px rgba(14, 21, 38, .08);
  --phone: #0b1020;
  --radius: 22px;
  --sky: linear-gradient(135deg, #0a84e8 0%, #4f46e5 100%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #0f1529;
    --surface: #131a2e;
    --surface-2: #19213a;
    --ink: #e8edf8;
    --muted: #9aa5c0;
    --line: #232c47;
    --brand: #4cb0ff;
    --brand-2: #8b8cff;
    --brand-ink: #071226;
    --brand-soft: rgba(76, 176, 255, .14);
    --mint: #34d399;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px rgba(0, 0, 0, .35);
    --phone: #05070f;
    --sky: linear-gradient(135deg, #2b8fea 0%, #6366f1 100%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Ligatur "fi"/"fl" Plus Jakarta Sans kadang hilang pada ukuran kecil di Chrome. */
  font-variant-ligatures: no-common-ligatures;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; display: grid; gap: 18px; justify-items: center; }

/* Dua bahasa: hanya bahasa aktif yang terlihat. */
html[lang="id"] .l-en, html[lang="en"] .l-id { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.xs { width: 15px; height: 15px; stroke-width: 2.2; }
.ic.big { width: 120px; height: 120px; stroke-width: 1.2; }

/* Kepala */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.lang { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Tombol & lencana */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 14px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--sky); color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, .28); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.light { background: #fff; color: #172554; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.soon { background: color-mix(in srgb, var(--mint) 14%, transparent); color: var(--mint); border-color: color-mix(in srgb, var(--mint) 30%, transparent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chips li { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 4px 9px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--mint); margin-top: 4px; }

/* Bingkai ponsel */
.phone { background: var(--phone); border-radius: 38px; padding: 9px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset; width: 240px; aspect-ratio: 9 / 19.2; }
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Hero */
.hero { padding: 64px 0 40px; background:
  radial-gradient(800px 420px at 85% 0%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
  radial-gradient(700px 400px at 0% 20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40ch; }
.platforms { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-weight: 700; font-size: 14px; }
.platforms li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: middle; }
.hero-art { position: relative; height: 560px; }
.hero-art .glow { position: absolute; inset: 12% 8%; background: var(--sky); filter: blur(70px); opacity: .28; border-radius: 50%; }
.hero-art .phone { position: absolute; width: 250px; }
.hero-art .p1 { left: 6%; top: 0; transform: rotate(-5deg); z-index: 2; }
.hero-art .p2 { right: 4%; top: 64px; transform: rotate(6deg); }

/* Bagian */
.sec { padding: 84px 0; }
.sec.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 40px; }

.app-card { display: grid; grid-template-columns: 1fr .9fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); overflow: hidden; }
.app-card + .app-card { margin-top: 24px; }
.app-card-copy { display: grid; gap: 18px; }
.app-head { display: flex; gap: 16px; align-items: center; }
.app-head img { border-radius: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.app-head p { color: var(--brand); font-weight: 700; }
.app-card-art { position: relative; height: 430px; }
.app-card-art .phone { position: absolute; width: 205px; }
.app-card-art .phone:first-child { right: 34%; top: 6px; z-index: 2; }
.app-card-art .phone.back { right: 4%; top: 46px; opacity: .92; transform: rotate(4deg); }

.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.proj-crm { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.media { position: relative; background: var(--surface-2); min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px; overflow: hidden; }
.proj-crm .media { min-height: 420px; background: linear-gradient(160deg, #0a98f1, #3b82f6); }
.phones-media .phone { width: 170px; }
.proj-crm .phones-media .phone { width: 200px; }
.proj-crm .phones-media .phone:nth-child(2) { transform: translateY(26px); }
.proj-myjalabyte .media { background: linear-gradient(160deg, #0b3b6e, #0f6ab7); }
.proj-commedit .media { background: linear-gradient(160deg, #1e1b4b, #7c3aed); }
.proj-athapos .media { background: linear-gradient(160deg, #0f172a, #1d4ed8); justify-content: flex-start; }
.tablet-media .tab { width: 88%; border-radius: 14px; border: 6px solid #05070f; box-shadow: var(--shadow); }
.tablet-media .phone.mini { position: absolute; right: 18px; bottom: -40px; width: 120px; border-radius: 26px; padding: 6px; }
.tablet-media .phone.mini .screen { border-radius: 21px; }
.code-media { background: linear-gradient(160deg, #052e2b, #0f766e); color: rgba(255, 255, 255, .16); justify-content: space-between; }
.code-media .ic.big { position: absolute; right: -10px; bottom: -14px; width: 190px; height: 190px; }
.term { position: relative; z-index: 1; background: rgba(3, 7, 18, .78); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; width: 100%; max-width: 440px; }
.term-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.term pre { margin: 0; padding: 14px 16px; color: #d1fae5; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto; }
.term .c { color: #5eead4; }
.term .ok { color: #34d399; }
.proj-body { padding: 26px; display: grid; gap: 12px; align-content: start; }
.proj-crm .proj-body { align-content: center; padding: 40px; }
.kind { font-size: 13px; font-weight: 700; color: var(--brand); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 4px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.pr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; }
.pr > .ic { color: var(--brand); width: 30px; height: 30px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--sky); color: #fff; border-radius: 28px; padding: 40px; }
.contact h2 { max-width: 22ch; }
.contact p { opacity: .86; margin-top: 10px; }
.contact.small { margin-top: 44px; padding: 32px; }

/* Halaman aplikasi */
.app-hero { padding: 40px 0 10px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); margin-bottom: 26px; }
.app-hero-in { display: flex; gap: 28px; align-items: flex-start; }
.app-hero-in > div { display: grid; gap: 14px; }
.app-icon { border-radius: 28px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.app-hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.app-hero .lead { color: var(--brand); font-weight: 700; }
.gallery-sec { padding: 26px 0 10px; }
.gallery { --gut: max(20px, calc((100vw - 1120px) / 2)); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 10px var(--gut) 24px; scrollbar-width: thin; }
.shot { margin: 0; flex: none; width: 260px; scroll-snap-align: start; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.perm-box { margin-top: 44px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px; }
.perm-box > div { display: grid; gap: 14px; align-content: start; justify-items: start; }
.perm-box h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.perm-box h2 .ic { color: var(--brand); width: 26px; height: 26px; }
.perms { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perms li { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.perms li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Dokumen (kebijakan privasi) */
.doc { padding: 40px 0 80px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc .meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.doc .meta img { border-radius: 8px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 24px 22px; margin-top: 26px; }
.summary h2 { margin-top: 18px; }
.summary .ticks { padding: 0; }

/* Kaki */
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 10px; align-items: center; }
.foot-brand img { border-radius: 8px; }
.foot-brand div { display: grid; }
.foot-brand small, .copy { color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-left: auto; font-size: 14px; font-weight: 600; }
.foot-links a { color: var(--muted); }
.copy { width: 100%; }

@media (max-width: 980px) {
  .hero-in, .app-card, .proj-crm, .perm-box { grid-template-columns: 1fr; }
  .hero-art { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 210px; }
  .feat-grid, .principles { grid-template-columns: 1fr 1fr; }
  .proj-crm { grid-column: span 2; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 36px; }
  .hero-art { height: 400px; }
  .hero-art .phone { width: 176px; }
  .hero-art .p1 { left: 2%; }
  .hero-art .p2 { right: 2%; top: 48px; }
  .sec { padding: 60px 0; }
  .app-card { padding: 24px; }
  .app-card-art { height: 360px; }
  .app-card-art .phone { width: 170px; }
  .app-card-art .phone:first-child { right: auto; left: 2%; }
  .proj-grid, .feat-grid, .principles { grid-template-columns: 1fr; }
  .proj-crm { grid-column: auto; }
  .proj-crm .phones-media .phone { width: 150px; }
  .phones-media .phone { width: 140px; }
  .media { min-height: 260px; }
  .contact { padding: 28px; }
  .app-hero-in { flex-direction: column; gap: 18px; }
  .app-icon { width: 88px; height: 88px; border-radius: 22px; }
  .shot { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
