/* Plus Jakarta Sans — SIL Open Font License 1.1, di-host sendiri (CSP tidak mengizinkan font eksternal). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1f4fd8;
  --brand-2: #3b6bff;
  --brand-dark: #00174b;
  --accent: #2e9e5b;
  --accent-soft: #7fe0a6;
  --bg: #ffffff;
  --bg-soft: #f6f8fd;
  --surface: #ffffff;
  --text: #0f1629;
  --muted: #5a6275;
  --border: #e3e8f3;
  --link: #1f4fd8;
  --shadow-sm: 0 1px 2px rgba(15, 22, 41, .06), 0 2px 8px rgba(15, 22, 41, .04);
  --shadow-lg: 0 24px 60px -20px rgba(0, 23, 75, .35);
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d1a;
    --bg-soft: #0d1426;
    --surface: #111a30;
    --text: #e9edf7;
    --muted: #a0a9bf;
    --border: #222d4a;
    --link: #93b2ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { letter-spacing: -.02em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; z-index: 20; }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  padding: 12px 12px; border-radius: 10px; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav .nav-cta {
  color: #fff; background: var(--brand); margin-left: 4px; padding: 10px 16px;
}
.nav .nav-cta:hover { color: #fff; background: var(--brand-2); }
.nav .lang-switch {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border: 1px solid var(--border); font-size: .85rem; font-weight: 700; letter-spacing: .04em;
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 .95rem/1.2 var(--font); text-decoration: none;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(31, 79, 216, .7);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(31, 79, 216, .8); }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(46, 158, 91, .12); color: var(--accent);
  font-size: .8rem; font-weight: 600;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
.hero .badge, .app-hero .badge { background: rgba(255, 255, 255, .14); color: #fff; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--link); } }

/* ---------- Hero (beranda) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, #2a5cf0 0%, transparent 60%),
              linear-gradient(140deg, #1a46c9 0%, #0a2a86 45%, var(--brand-dark) 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 85%);
}
.orb {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: #3b6bff; top: -120px; right: -80px; }
.orb-2 { width: 300px; height: 300px; background: #2e9e5b; bottom: -140px; left: 20%; opacity: .35; animation-duration: 22s; }

.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.06; font-weight: 800;
  margin: 18px 0 18px;
}
.hero h1 .gradient-text {
  background: linear-gradient(90deg, #ffffff, #b9ccff 40%, var(--accent-soft) 80%, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
.hero .lead { font-size: 1.15rem; max-width: 560px; margin: 0; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { position: relative; height: 520px; }
.shot-card {
  position: absolute; width: 250px; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12);
}
.shot-card.back { left: 6%; top: 48px; transform: rotate(-8deg); animation: float-back 7s ease-in-out infinite; opacity: .92; }
.shot-card.front { right: 6%; top: 0; transform: rotate(5deg); animation: float-front 6s ease-in-out infinite; }
.floating-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .95); color: #0f1629;
  padding: 10px 14px; border-radius: 14px; font-size: .85rem; font-weight: 600;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
  animation: float-front 5s ease-in-out infinite;
}
.floating-chip .dot-ok {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(46, 158, 91, .15); color: var(--accent); font-weight: 800;
}
.chip-1 { left: -4px; bottom: 70px; animation-delay: -1.5s; }
.chip-2 { right: -8px; bottom: 150px; animation-delay: -3s; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.values { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.value-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59, 107, 255, .16), rgba(46, 158, 91, .16));
  color: var(--brand); margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) { .value-icon { color: var(--link); } }
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Featured app */
.featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.featured-body { padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.featured-title { display: flex; align-items: center; gap: 16px; }
.featured-title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.featured-title h3 { margin: 0 0 6px; font-size: 1.5rem; }
.featured-body > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  background: rgba(46, 158, 91, .14); color: var(--accent);
}
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.featured-visual {
  position: relative; min-height: 420px; overflow: hidden;
  background: linear-gradient(150deg, #1a46c9, var(--brand-dark));
}
.featured-visual .marquee {
  position: absolute; inset: 0; display: flex; gap: 16px; padding: 32px 0;
  width: max-content; padding-right: 16px; animation: marquee 40s linear infinite;
}
.featured-visual .marquee img { width: 190px; height: auto; border-radius: 18px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); align-self: center; }
.featured-visual:hover .marquee { animation-play-state: paused; }

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--text);
  transition: transform .25s var(--ease), border-color .25s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--brand); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 56px 48px; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 45%, var(--brand-dark));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; border-radius: 50%;
  right: -100px; top: -160px; background: rgba(127, 224, 166, .35); filter: blur(50px);
  animation: drift 14s ease-in-out infinite alternate;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- App detail page ---------- */
.app-hero-wrap {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, #1a46c9 0%, #0a2a86 50%, var(--brand-dark) 100%);
  color: #fff; padding: 72px 0;
}
.app-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.app-hero img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); }
.app-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 10px; font-weight: 800; }
.app-hero p { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.app-hero .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px; -webkit-overflow-scrolling: touch;
}
.shots img {
  width: 210px; flex: 0 0 auto; border-radius: 18px;
  border: 1px solid var(--border); scroll-snap-align: start; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.shots img:hover { transform: translateY(-4px); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.feature-list li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s;
}
.feature-list li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.feature-list strong { display: block; margin-bottom: 4px; }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Policy ---------- */
.policy { padding-bottom: 32px; }
.policy h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; margin: 48px 0 8px; font-weight: 800; }
.policy h2 { margin-top: 2.2rem; font-size: 1.25rem; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.note {
  background: var(--bg-soft); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 14px 18px; color: var(--muted); font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.site-footer .footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.site-footer a:hover { color: var(--text); }

/* ---------- Animations ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes float-front { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes float-back { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.reveal { animation: fade-up .9s var(--ease) both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; }
.d4 { animation-delay: .38s; }

/* Muncul saat di-scroll, hanya di browser yang mendukung scroll-driven animation. */
@supports (animation-timeline: view()) {
  .on-scroll {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; max-width: 460px; margin: 0 auto; width: 100%; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-visual { min-height: 360px; order: -1; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-visual { height: 380px; }
  .shot-card { width: 190px; border-radius: 20px; }
  .values { grid-template-columns: 1fr; }
  .featured-body { padding: 28px 22px; }
  .feature-list { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .nav a:not(.nav-cta):not(.lang-switch) { display: none; }
  .chip-2 { right: 0; }
  .chip-1 { left: 0; }
}
