/* =====================================================================
   SmartKop — Material Design (putih bersih, modern, banyak animasi)
   PT Indo Smart Media
   Palet diambil dari logo Koperasi Indonesia: hijau, emas, merah.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */
:root {
  /* Brand */
  --green-50:  #e8f6ee;
  --green-100: #c7e9d6;
  --green-200: #97d9b5;
  --green-400: #34ae6c;
  --green-500: #17924f;
  --green-600: #0f7d42;
  --green-700: #0a6334;
  --gold-300:  #ffdc6b;
  --gold-400:  #f8cb3c;
  --gold-500:  #eeb400;
  --red-400:   #ef4a48;
  --red-500:   #e02b28;

  /* Netral */
  --white: #ffffff;
  --surface: #ffffff;
  --surface-1: #fbfcfb;
  --surface-2: #f5f8f6;
  --surface-3: #eef3f0;
  --outline: #e2e9e5;
  --outline-strong: #cfdad4;
  --ink-900: #0e1a14;
  --ink-700: #2b3a32;
  --ink-500: #59685f;
  --ink-400: #7b8a81;

  /* Semantic */
  --primary: var(--green-500);
  --primary-hover: var(--green-600);
  --on-primary: #ffffff;
  --accent: var(--gold-400);
  --danger: var(--red-500);

  /* Elevation (Material) */
  --e1: 0 1px 2px rgba(14, 26, 20, .06), 0 1px 3px rgba(14, 26, 20, .07);
  --e2: 0 2px 6px rgba(14, 26, 20, .06), 0 4px 12px rgba(14, 26, 20, .07);
  --e3: 0 6px 16px rgba(14, 26, 20, .08), 0 12px 28px rgba(14, 26, 20, .08);
  --e4: 0 12px 28px rgba(14, 26, 20, .10), 0 24px 48px rgba(14, 26, 20, .10);
  --glow: 0 10px 30px rgba(23, 146, 79, .28);

  /* Bentuk & gerak */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;
  --ease-emphasized: cubic-bezier(.2, 0, 0, 1);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: .18s;
  --dur-2: .32s;
  --dur-3: .56s;
  --dur-4: .9s;

  --container: 1180px;
  --nav-h: 72px;
}

/* ---------------------------------------------------------------
   2. Reset & dasar
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--dur-1) var(--ease-standard); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--surface-1), var(--surface-2)); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------
   3. Preloader
   --------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: opacity .5s var(--ease-standard), visibility .5s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo {
  width: 92px; height: 92px;
  animation: logoPulse 1.5s var(--ease-standard) infinite;
}
.preloader__ring {
  width: 148px; height: 148px;
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--green-100);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: spin 1.05s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.88); opacity: .72; }
}

/* ---------------------------------------------------------------
   4. Progress bar & App bar
   --------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--gold-400), var(--red-400));
  z-index: 90;
  transition: width .1s linear;
}

.appbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 80;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur-2) var(--ease-standard),
              box-shadow var(--dur-2) var(--ease-standard),
              background var(--dur-2) var(--ease-standard),
              border-color var(--dur-2) var(--ease-standard);
}
.appbar.is-scrolled {
  height: 62px;
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--e2);
  border-bottom-color: var(--outline);
}
.appbar__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand__logo {
  width: 40px; height: 40px; object-fit: contain;
  transition: transform var(--dur-3) var(--ease-spring);
}
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.12); }
.brand__name {
  font-weight: 800; font-size: 1.22rem; color: var(--ink-900); letter-spacing: -.03em;
}
.brand__name span { color: var(--primary); }
.brand__sub {
  display: block; font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-top: -4px;
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative;
  padding: .55rem .85rem;
  border-radius: var(--r-full);
  color: var(--ink-700);
  font-weight: 600; font-size: .92rem;
  transition: color var(--dur-1) var(--ease-standard), background var(--dur-1) var(--ease-standard);
}
.nav__link::after {
  content: "";
  position: absolute; left: 50%; bottom: 6px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width var(--dur-2) var(--ease-emphasized);
}
.nav__link:hover { background: var(--green-50); color: var(--green-700); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 22px; }
.nav__link.is-active { color: var(--green-700); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: var(--r-full);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-900);
  transition: transform var(--dur-2) var(--ease-emphasized), opacity var(--dur-1);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------------
   5. Tombol (Material + ripple)
   --------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border: 0; border-radius: var(--r-full);
  font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease-spring),
              box-shadow var(--dur-2) var(--ease-standard),
              background var(--dur-2) var(--ease-standard);
  will-change: transform;
}
.btn:active { transform: scale(.965); }
.btn--filled { background: var(--primary); color: var(--on-primary); box-shadow: var(--glow); }
.btn--filled:hover { background: var(--primary-hover); box-shadow: 0 14px 34px rgba(23, 146, 79, .36); color: #fff; transform: translateY(-2px); }
.btn--tonal { background: var(--green-50); color: var(--green-700); }
.btn--tonal:hover { background: var(--green-100); color: var(--green-700); transform: translateY(-2px); }
.btn--outline { background: var(--white); color: var(--ink-900); box-shadow: inset 0 0 0 1.5px var(--outline-strong); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--gold { background: var(--gold-400); color: #4a3600; box-shadow: 0 10px 26px rgba(238, 180, 0, .32); }
.btn--gold:hover { background: var(--gold-300); color: #4a3600; transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.1rem; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  animation: rippleOut .6s var(--ease-standard);
  pointer-events: none;
}
.btn--tonal .ripple, .btn--outline .ripple, .btn--gold .ripple { background: rgba(14, 26, 20, .12); }
@keyframes rippleOut { to { transform: scale(2.6); opacity: 0; } }

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, var(--green-50), transparent 62%),
    radial-gradient(900px 460px at 92% 6%, #fff8e2, transparent 60%),
    var(--white);
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 26, 20, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 26, 20, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 30%, transparent 78%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { to { background-position: 56px 56px; } }

.blob {
  position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5;
  pointer-events: none;
  animation: blobFloat 17s var(--ease-standard) infinite;
}
.blob--1 { width: 380px; height: 380px; background: #b9ecd0; top: -80px; left: -60px; }
.blob--2 { width: 320px; height: 320px; background: #ffe9a8; top: 90px; right: -70px; animation-delay: -5s; }
.blob--3 { width: 280px; height: 280px; background: #ffd3d2; bottom: -110px; left: 42%; animation-delay: -9s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(34px, -26px) scale(1.09); }
  66%      { transform: translate(-24px, 22px) scale(.94); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .95rem .42rem .5rem;
  border-radius: var(--r-full);
  background: var(--white);
  box-shadow: var(--e1), inset 0 0 0 1px var(--outline);
  font-size: .82rem; font-weight: 600; color: var(--ink-700);
  margin-bottom: 1.35rem;
}
.chip__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(23, 146, 79, .55);
  animation: pulseDot 2s var(--ease-standard) infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(23, 146, 79, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(23, 146, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 146, 79, 0); }
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--green-600) 0%, var(--green-400) 40%, var(--gold-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% auto;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

.hero__lead { font-size: 1.1rem; color: var(--ink-500); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--outline);
}
.hero__meta div strong { display: block; font-size: 1.45rem; color: var(--ink-900); letter-spacing: -.02em; }
.hero__meta div span { font-size: .82rem; color: var(--ink-400); }

/* Visual kanan: kartu mengambang */
.hero__visual { position: relative; height: 480px; }
.hero__logo-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.hero__logo-halo {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 146, 79, .16), transparent 68%);
  animation: haloBreathe 5.5s var(--ease-standard) infinite;
}
@keyframes haloBreathe {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.14); opacity: .5; }
}
.hero__logo-ring {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  border: 1.5px dashed var(--green-200);
  animation: spin 30s linear infinite;
}
.hero__logo-ring--2 {
  width: 372px; height: 372px; border-style: solid; border-color: var(--outline);
  animation: spin 46s linear infinite reverse;
}
.hero__logo {
  width: 216px; height: 216px; object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(14, 26, 20, .18));
  animation: floatY 6s var(--ease-standard) infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  box-shadow: var(--e3), inset 0 0 0 1px rgba(255, 255, 255, .8);
  animation: floatY 5s var(--ease-standard) infinite;
}
.float-card__icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--green-50); color: var(--green-600);
}
.float-card small { display: block; font-size: .7rem; color: var(--ink-400); }
.float-card strong { font-size: .95rem; color: var(--ink-900); }
.float-card--a { top: 34px; left: -14px; animation-delay: -1.2s; }
.float-card--b { bottom: 78px; right: -10px; animation-delay: -2.8s; }
.float-card--b .float-card__icon { background: #fff5d6; color: #a37a00; }
.float-card--c { bottom: 6px; left: 24px; animation-delay: -4s; }
.float-card--c .float-card__icon { background: #ffeceb; color: var(--red-500); }

/* ---------------------------------------------------------------
   7. Marquee stack
   --------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--outline);
  background: var(--surface-1);
  padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--ink-400); font-size: .95rem; white-space: nowrap;
  transition: color var(--dur-1);
}
.marquee__item:hover { color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------
   8. Judul seksi
   --------------------------------------------------------------- */
.section__head { max-width: 700px; margin: 0 auto 3.2rem; text-align: center; }
.section__eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
  padding: .35rem .9rem; border-radius: var(--r-full);
  background: var(--green-50);
  margin-bottom: 1rem;
}
.section__head p { color: var(--ink-500); font-size: 1.05rem; }

/* ---------------------------------------------------------------
   9. Kartu fitur
   --------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--e1), inset 0 0 0 1px var(--outline);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-emphasized),
              box-shadow var(--dur-2) var(--ease-standard);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(23, 146, 79, .09), transparent 62%);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-standard);
  pointer-events: none;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--e4), inset 0 0 0 1px var(--green-100); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(140deg, var(--green-50), #ffffff);
  box-shadow: inset 0 0 0 1px var(--green-100);
  margin-bottom: 1.1rem;
  transition: transform var(--dur-3) var(--ease-spring);
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.1); }
.card--gold .card__icon { background: linear-gradient(140deg, #fff6dc, #fff); box-shadow: inset 0 0 0 1px #ffe9a8; }
.card--red .card__icon  { background: linear-gradient(140deg, #ffefee, #fff); box-shadow: inset 0 0 0 1px #ffd6d4; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-500); font-size: .95rem; margin: 0; }
.card__list { margin-top: 1rem; display: grid; gap: .45rem; }
.card__list li {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: .88rem; color: var(--ink-500);
}
.card__list li::before {
  content: "✓";
  color: var(--primary); font-weight: 800; font-size: .8rem; line-height: 1.6;
}

/* ---------------------------------------------------------------
   10. Statistik
   --------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  background: linear-gradient(135deg, var(--green-700), var(--green-500) 55%, var(--green-400));
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  box-shadow: var(--e4);
  position: relative; overflow: hidden;
}
.stats::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px circle at 12% 0%, rgba(255, 220, 107, .28), transparent 55%),
    radial-gradient(420px circle at 88% 100%, rgba(255, 255, 255, .18), transparent 55%);
  animation: statsShimmer 9s var(--ease-standard) infinite alternate;
}
@keyframes statsShimmer { to { transform: translate3d(0, -12px, 0) scale(1.05); } }
.stat { position: relative; z-index: 1; text-align: center; }
.stat__num {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em;
  display: block; line-height: 1.1;
}
.stat__label { font-size: .85rem; opacity: .82; }

/* ---------------------------------------------------------------
   11. Modul (split section)
   --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev .split__media { order: -1; }

.module-list { display: grid; gap: .9rem; }
.module-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--outline);
  cursor: default;
  transition: transform var(--dur-2) var(--ease-emphasized),
              box-shadow var(--dur-2) var(--ease-standard),
              background var(--dur-2);
}
.module-item:hover {
  transform: translateX(8px);
  box-shadow: var(--e2), inset 0 0 0 1px var(--green-100);
  background: var(--surface-1);
}
.module-item__badge {
  flex: none;
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .82rem;
  background: var(--green-50); color: var(--green-600);
}
.module-item h4 { margin: 0 0 .15rem; font-size: 1rem; color: var(--ink-900); }
.module-item p { margin: 0; font-size: .88rem; color: var(--ink-500); }

/* Mock aplikasi */
.mock {
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--e4), inset 0 0 0 1px var(--outline);
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--outline);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--outline-strong); }
.mock__dot:nth-child(1) { background: #ff6058; }
.mock__dot:nth-child(2) { background: #ffbd2e; }
.mock__dot:nth-child(3) { background: #29c93f; }
.mock__title { margin-left: .6rem; font-size: .78rem; color: var(--ink-400); font-weight: 600; }
.mock__body { padding: 1.3rem; display: grid; gap: .85rem; }

.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; border-radius: var(--r-sm);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--outline);
  animation: rowIn .6s var(--ease-emphasized) backwards;
}
.mock-row:nth-child(1) { animation-delay: .05s; }
.mock-row:nth-child(2) { animation-delay: .15s; }
.mock-row:nth-child(3) { animation-delay: .25s; }
.mock-row:nth-child(4) { animation-delay: .35s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } }
.mock-row__label { font-size: .84rem; color: var(--ink-500); }
.mock-row__value { font-weight: 800; color: var(--ink-900); font-size: .95rem; }
.mock-row__value.is-green { color: var(--green-600); }
.mock-row__value.is-red { color: var(--red-500); }

.progress-track { height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--green-500), var(--gold-400));
  transition: width 1.4s var(--ease-emphasized);
}

/* ---------------------------------------------------------------
   12. Simulasi angsuran
   --------------------------------------------------------------- */
.simulator {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--e4), inset 0 0 0 1px var(--outline);
  background: var(--white);
}
.simulator__form { padding: clamp(1.6rem, 3vw, 2.6rem); }
.simulator__result {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: linear-gradient(160deg, var(--green-700), var(--green-500));
  color: #fff;
  position: relative; overflow: hidden;
}
.simulator__result::after {
  content: "";
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(255, 220, 107, .35), transparent 66%);
  animation: blobFloat 12s var(--ease-standard) infinite;
}
.field { margin-bottom: 1.3rem; }
.field__label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-700); margin-bottom: .45rem; }
.field__value { float: right; color: var(--primary); font-weight: 800; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: var(--r-full);
  background: var(--surface-3);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary);
  box-shadow: var(--e2);
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-spring), box-shadow var(--dur-1);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(23, 146, 79, .12); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); cursor: pointer;
}

.segmented {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--surface-2); border-radius: var(--r-full);
  box-shadow: inset 0 0 0 1px var(--outline);
}
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: var(--r-full);
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink-500);
  transition: background var(--dur-2) var(--ease-standard), color var(--dur-2), box-shadow var(--dur-2);
}
.segmented button.is-active { background: var(--white); color: var(--green-700); box-shadow: var(--e1); }

.result-hero { margin-bottom: 1.6rem; position: relative; z-index: 1; }
.result-hero small { opacity: .82; font-size: .82rem; }
.result-hero strong { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.result-grid { position: relative; z-index: 1; display: grid; gap: .7rem; }
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
  font-size: .9rem;
}
.result-row b { font-weight: 800; }

/* ---------------------------------------------------------------
   13. API showcase
   --------------------------------------------------------------- */
.api-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.8rem; }
.api-tab {
  border: 0; cursor: pointer; font: inherit;
  padding: .55rem 1.15rem; border-radius: var(--r-full);
  background: var(--white); color: var(--ink-500);
  font-size: .85rem; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--outline);
  transition: all var(--dur-2) var(--ease-standard);
}
.api-tab:hover { color: var(--primary); box-shadow: inset 0 0 0 1px var(--green-200); transform: translateY(-2px); }
.api-tab.is-active { background: var(--primary); color: #fff; box-shadow: var(--glow); }

.terminal {
  border-radius: var(--r-lg);
  background: #0d1a13;
  box-shadow: var(--e4);
  overflow: hidden;
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
}
.terminal__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem 1rem; background: #0a140e; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.terminal__title { margin-left: .6rem; font-size: .76rem; color: #6f8f7d; }
.terminal__body {
  padding: 1.3rem 1.5rem;
  font-size: .85rem; line-height: 1.75;
  color: #cfe6d8;
  overflow-x: auto;
  min-height: 320px;
  white-space: pre;
  tab-size: 2;
}
.terminal__body .tok-method { color: var(--gold-300); font-weight: 700; }
.terminal__body .tok-url { color: #7fd8a5; }
.terminal__body .tok-key { color: #8fd0ff; }
.terminal__body .tok-str { color: #ffd98a; }
.terminal__body .tok-num { color: #ff9f9d; }
.terminal__body .tok-cmt { color: #5c7a68; font-style: italic; }
.terminal__caret {
  display: inline-block; width: 8px; height: 1em;
  background: var(--gold-400); vertical-align: text-bottom;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------
   14. Timeline alur
   --------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 1.6rem; }
.timeline::before {
  content: "";
  position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--green-200), var(--gold-300), transparent);
}
.timeline__item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  position: relative;
}
.timeline__num {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--green-600);
  font-weight: 800;
  box-shadow: var(--e2), inset 0 0 0 2px var(--green-100);
  z-index: 1;
  transition: transform var(--dur-3) var(--ease-spring), box-shadow var(--dur-2);
}
.timeline__item:hover .timeline__num {
  transform: scale(1.12);
  box-shadow: var(--e3), inset 0 0 0 2px var(--primary);
}
.timeline__body { padding-top: .35rem; }
.timeline__body h4 { margin: 0 0 .25rem; font-size: 1.02rem; color: var(--ink-900); }
.timeline__body p { margin: 0; font-size: .92rem; color: var(--ink-500); }

/* ---------------------------------------------------------------
   15. FAQ accordion
   --------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq__item {
  background: var(--white); border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--outline);
  overflow: hidden;
  transition: box-shadow var(--dur-2) var(--ease-standard);
}
.faq__item.is-open { box-shadow: var(--e2), inset 0 0 0 1px var(--green-100); }
.faq__q {
  width: 100%; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink-900);
  text-align: left;
  padding: 1.15rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-600); font-weight: 800;
  transition: transform var(--dur-2) var(--ease-emphasized), background var(--dur-2);
}
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--green-100); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-3) var(--ease-emphasized); }
.faq__a p { padding: 0 1.3rem 1.25rem; margin: 0; color: var(--ink-500); font-size: .93rem; }

/* ---------------------------------------------------------------
   16. CTA & Footer
   --------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  background: linear-gradient(140deg, #0a6334, #17924f 52%, #34ae6c);
  color: #fff;
  box-shadow: var(--e4);
}
.cta::before {
  content: "";
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 220, 107, .18), transparent 40%);
  animation: spin 14s linear infinite;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .84); max-width: 60ch; margin-inline: auto; }
.cta__actions { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

.footer { background: var(--surface-1); border-top: 1px solid var(--outline); padding: 4rem 0 2rem; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__about p { color: var(--ink-500); font-size: .92rem; max-width: 34ch; }
.footer h5 {
  margin: 0 0 1rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-900); font-weight: 800;
}
.footer__links { display: grid; gap: .55rem; }
.footer__links a { color: var(--ink-500); font-size: .92rem; }
.footer__links a:hover { color: var(--primary); padding-left: 4px; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--outline);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: var(--ink-400);
}

/* FAB back-to-top */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 52px; height: 52px; border-radius: 18px;
  border: 0; cursor: pointer;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.85);
  transition: all var(--dur-3) var(--ease-spring);
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab:hover { background: var(--primary-hover); transform: translateY(-4px) scale(1.06); }

/* ---------------------------------------------------------------
   17. Animasi scroll reveal
   --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-emphasized), transform .7s var(--ease-emphasized);
  transition-delay: var(--delay, 0s);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------
   18. Responsif
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 380px; order: -1; }
  .hero__logo { width: 168px; height: 168px; }
  .hero__logo-ring { width: 240px; height: 240px; }
  .hero__logo-ring--2 { width: 300px; height: 300px; }
  .split, .simulator { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto;
    flex-direction: column; align-items: stretch;
    gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    box-shadow: var(--e3);
    border-bottom: 1px solid var(--outline);
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: all var(--dur-2) var(--ease-emphasized);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .8rem 1rem; border-radius: var(--r-sm); }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: .5rem; }
}

@media (max-width: 620px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .float-card--a { left: -4px; top: 10px; }
  .float-card--b { right: -4px; }
  .hero__meta { gap: 1.2rem; }
}

/* ---------------------------------------------------------------
   19. Aksesibilitas gerak
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Cetak */
@media print {
  .appbar, .fab, .preloader, .scroll-progress, .marquee { display: none !important; }
  body { color: #000; }
}
