/* Omnic landing — prototype (OM20). Token = D10, sama dengan prototypes/app/assets/app.css */
:root {
  --bg: #f0f2f4;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --ink: #0e0e0e;
  --ink-2: #2b2d31;
  --muted: #696d72;
  --faint: #a3a7ab;
  --line: #e3e6e9;
  --line-2: #eceef1;
  --accent: #612bd3;
  --accent-ink: #3900b2;
  --accent-soft: #ebe8ff;
  --ai: #d82d7e;
  --ai-soft: #fde8f2;
  --ok: #138a4b;  --ok-soft: #e6f6ed;
  --warn: #a75f00; --warn-soft: #fff4de;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px rgba(57, 0, 178, .14), 0 4px 12px rgba(38, 32, 64, .08);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
img, svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm); background: var(--line-2); color: var(--ink-2); font: 600 14px/1 var(--font);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.btn:hover { background: var(--line); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.outline { background: var(--surface); border-color: var(--line); }
.btn.outline:hover { background: var(--surface-2); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
/* Di posisi paling atas header transparan, menyatu dengan hero. Setelah scroll (class .scrolled dari landing.js)
   berubah jadi kaca: putih tembus pandang + blur + garis tipis. */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent;
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-head.scrolled {
  background: rgba(255, 255, 255, .68); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: rgba(14, 14, 14, .06); box-shadow: 0 6px 24px rgba(38, 32, 64, .06);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); font-weight: 550; font-size: 14px; padding: 8px 12px; border-radius: var(--radius-sm); }
.nav a:hover { background: var(--line-2); }
.head-cta { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 0; text-align: center; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -260px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(97, 43, 211, .14), transparent 72%);
}
.hero .wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.pill b { background: var(--accent-soft); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; margin: 22px auto 0; max-width: 900px; text-wrap: balance; letter-spacing: -.035em; line-height: 1.08; }
.hero h1 .l1 { display: block; white-space: nowrap; }
/* Kata yang berganti (typing). min-height menjaga baris tidak "melompat" saat kata kosong sesaat. */
.typed { color: var(--accent); }
.typed .caret {
  display: inline-block; width: .06em; height: .9em; margin-left: .06em; vertical-align: -.08em; border-radius: 2px;
  background: var(--accent); animation: blink 1s steps(1) infinite;
}
.typed.typing .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* Reveal saat scroll — hanya aktif bila JS jalan (html.js) dan pengguna tidak meminta gerak dikurangi */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .grid .reveal:nth-child(4) { transition-delay: .24s; }
/* Mockup sedikit melayang */
.shot { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot, .typed .caret { animation: none; }
}
.hero .lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.hero .ctas { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ---------- Mockup produk ---------- */
.shot { margin: 56px auto 0; max-width: 1000px; padding: 10px; border-radius: 20px; background: linear-gradient(160deg, #c9b8ff, #612bd3 55%, #d82d7e); box-shadow: var(--shadow-lg); }
.frame { background: var(--bg); border-radius: 12px; overflow: hidden; text-align: left; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e6e9ec; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9cdd2; }
.frame-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--surface); padding: 3px 12px; border-radius: 6px; }
.app { display: grid; grid-template-columns: 180px 1fr; gap: 8px; padding: 8px; font-size: 13px; }
.m-side, .m-main { background: var(--surface); border-radius: 10px; }
.m-side { padding: 14px 10px; }
.m-side .logo { font-size: 15px; padding: 0 6px 12px; }
.m-brand { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-weight: 650; margin-bottom: 10px; }
.dot { width: 18px; height: 18px; border-radius: 5px; background: #e0457b; flex: 0 0 auto; }
.m-nav { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); font-weight: 550; }
.m-nav.on { background: var(--accent-soft); color: var(--accent-ink); }
.m-nav .c { background: var(--accent); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; }
.m-main { display: flex; flex-direction: column; }
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.m-head h4 { margin: 0; font-size: 17px; font-weight: 600; }
.m-tabs { display: flex; gap: 6px; }
.m-tabs span { padding: 4px 10px; border-radius: 999px; background: var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.m-tabs span.on { background: var(--ink); color: #fff; }
.m-body { display: grid; grid-template-columns: 1fr 230px; gap: 14px; padding: 16px 18px 18px; }
.m-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.m-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; }
.badge.review { background: var(--accent-soft); color: var(--accent-ink); }
.badge.ai { background: var(--ai-soft); color: var(--ai); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.m-title { font-weight: 700; font-size: 14px; margin: 10px 0 4px; }
.m-meta { color: var(--muted); font-size: 12px; }
.m-cap { margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; color: var(--ink-2); line-height: 1.55; }
.m-cap ins { text-decoration: none; background: #dff3e7; color: #0f6b3b; border-radius: 3px; padding: 0 2px; }
.m-cap del { color: var(--faint); }
.m-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--ok); font-weight: 600; }
.m-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.m-actions .btn { height: 32px; font-size: 12.5px; padding: 0 12px; }
.m-actions .btn.ok { background: var(--ok); color: #fff; }
.m-prev { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.m-prev .ph { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 650; font-size: 12px; }
.m-prev .img { aspect-ratio: 4 / 5; background: linear-gradient(150deg, #ffd6e4, #f6a5c0 45%, #b493f5); position: relative; }
.m-prev .img::after { content: "Promo akhir pekan #3"; position: absolute; left: 14px; right: 14px; bottom: 16px; color: #fff; font-weight: 800; font-size: 17px; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.m-prev .pc { padding: 8px 10px 10px; font-size: 11.5px; color: var(--ink-2); }
.m-prev .pc b { font-weight: 700; }

/* ---------- Section umum ---------- */
section { padding: 96px 0 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-top: 10px; letter-spacing: -.03em; text-wrap: balance; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; font-weight: 700; margin-top: 16px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }
.ico.ai { background: var(--ai-soft); color: var(--ai); }
.ico.gray { background: var(--line-2); color: var(--ink-2); }

/* Masalah */
.problem .card { border: 1px solid transparent; }
.problem .quote { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; margin-top: 16px; font-style: italic; }

/* Cara kerja */
.steps { counter-reset: s; position: relative; }
.step { position: relative; }
.step .num {
  counter-increment: s; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.step .num::before { content: counter(s); }
.step.ai .num { background: var(--ai); }
.step h3 { margin-top: 18px; }
.step .tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 650; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 41px; right: -14px; width: 12px; height: 12px; border-top: 2px solid var(--faint); border-right: 2px solid var(--faint); transform: rotate(45deg); z-index: 2;
}

/* Fitur */
.features .card { display: flex; gap: 16px; align-items: flex-start; }
.features .card h3 { margin-top: 0; }
.features .card p { margin-top: 6px; }
.features .ico { flex: 0 0 auto; }

/* Platform */
.platforms { background: var(--surface); border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.platforms h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.platforms p { color: var(--muted); margin-top: 12px; }
.plist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plat { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-weight: 650; font-size: 14px; }
.plat .pi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; }
.plat .pi svg { width: 18px; height: 18px; }
.plat small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.plat.soon { color: var(--muted); background: var(--surface-2); border-color: transparent; }
.plat.soon .pi { filter: grayscale(1); opacity: .55; }
.plat.soon small { color: var(--faint); }
.plat.wide { grid-column: 1 / -1; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 650; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 14.5px; }

/* CTA akhir */
.cta-band { margin-top: 96px; border-radius: 20px; padding: 56px 32px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 50% 0%, #7c4ae6, #3900b2 70%); }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 12px; font-size: 16px; }
.cta-band .ctas { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cta-band .btn { background: #fff; color: var(--accent-ink); }
.cta-band .btn:hover { background: #f1edff; }
.cta-band .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.2); }

/* Footer */
.site-foot { padding: 56px 0 40px; margin-top: 24px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-grid .tag { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 320px; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-links h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.foot-links a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.foot-links a:hover { color: var(--ink); }
.copy { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .g3 { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .m-body { grid-template-columns: 1fr; }
  .m-prev { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-head .wrap { height: 60px; gap: 12px; }
  .head-cta .btn.outline { display: none; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 31px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .shot { margin-top: 40px; padding: 6px; border-radius: 16px; }
  .app { grid-template-columns: 1fr; }
  .m-side { display: none; }
  .m-head { padding: 12px 14px; }
  .m-tabs span:not(.on) { display: none; }
  .m-body { padding: 12px; }
  .m-actions .btn:first-child { display: none; }
  section { padding-top: 72px; }
  .g4 { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 20px; }
  .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
  .step .num { grid-row: span 3; }
  .step h3 { margin-top: 6px; }
  .step .tag { justify-self: start; margin-top: 10px; }
  .problem .card, .features .card { padding: 18px; }
  .plist { grid-template-columns: 1fr 1fr; }
  .platforms { padding: 22px; border-radius: 16px; }
  .faq details { padding: 0 16px; }
  .cta-band { margin-top: 72px; padding: 40px 20px; border-radius: 16px; }
  .cta-band .ctas .btn { flex: 1 1 100%; }
  .foot-links { gap: 32px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 27px; }
}
