/* ============================================================
   Landing Page — tampilan publik
   Warna --primary & --accent diatur dari panel (Pengaturan Umum).
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --accent: #e11d48;
  --primary: #4f46e5;
  --hero-overlay: .65;

  --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --primary-ring: color-mix(in srgb, var(--primary) 30%, transparent);
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;
  --line: #e6e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --night: #0b1020;

  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow: 0 18px 40px -22px rgba(15, 23, 42, .28);
  --shadow-lg: 0 40px 80px -32px rgba(2, 6, 23, .55);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.icon { flex: none; }

/* Atribut hidden harus menang atas display: flex/grid (dipakai pencarian aplikasi). */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--primary-ring);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

[id] { scroll-margin-top: 88px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; gap: 7px; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--primary) 85%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn--primary:hover { box-shadow: 0 18px 34px -12px color-mix(in srgb, var(--primary) 95%, transparent); }

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }

.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
}

.btn--glass:hover { background: rgba(255, 255, 255, .18); }

.btn--soft { background: var(--primary-soft); color: var(--primary); }

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(15, 23, 42, .25);
  color: var(--ink);
}

.nav.is-scrolled .btn--glass {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 90%, transparent);
}

.brand__mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }

.brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 6px; }

.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s ease, background .2s ease;
}

.nav__link:hover { opacity: 1; background: rgba(148, 163, 184, .16); }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--night);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(2, 6, 23, calc(var(--hero-overlay) + .2)) 0%,
    rgba(2, 6, 23, var(--hero-overlay)) 50%,
    rgba(2, 6, 23, calc(var(--hero-overlay) * .45)) 100%
  );
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.blob--1 {
  width: 560px;
  height: 560px;
  top: -220px;
  left: -140px;
  background: var(--primary);
  opacity: .6;
  animation: drift 22s ease-in-out infinite alternate;
}

.blob--2 {
  width: 440px;
  height: 440px;
  bottom: -260px;
  left: 38%;
  background: var(--accent);
  opacity: .32;
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

.blob--3 {
  width: 420px;
  height: 420px;
  top: 8%;
  right: -140px;
  background: color-mix(in srgb, var(--primary) 45%, #06b6d4);
  opacity: .45;
  animation: drift 30s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 56px;
  min-height: 640px;
  padding-block: 128px 150px;
}

.hero__inner--solo { grid-template-columns: minmax(0, 1fr); }
.hero__inner--solo .hero__copy { max-width: 760px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #34d399;
  opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  background: linear-gradient(115deg, #fff 35%, color-mix(in srgb, var(--primary) 30%, #c7d2fe) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  max-width: 48ch;
  margin-top: 20px;
  font-size: 16.5px;
  color: rgba(226, 232, 240, .82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: 13px; color: rgba(226, 232, 240, .65); }
.hero__stats dd { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

/* showcase (ilustrasi kanan hero) */

.hero__visual { position: relative; }

.showcase {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-9deg) rotateX(5deg);
  animation: rise .9s var(--ease) both;
}

.showcase__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 14px;
}

.showcase__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.showcase__bar i:first-child { background: #f87171; }
.showcase__bar i:nth-child(2) { background: #fbbf24; }
.showcase__bar i:nth-child(3) { background: #34d399; }

.showcase__bar span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.showcase__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 10px 24px -16px rgba(2, 6, 23, .5);
  animation: rise .7s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms + 250ms);
}

.showcase__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--c-soft);
  color: var(--c);
}

.showcase__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.3;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(2, 6, 23, .6);
  animation: float 6s ease-in-out infinite;
}

.float-chip strong { display: block; font-size: 13px; line-height: 1.25; }
.float-chip small { display: block; font-size: 11.5px; color: var(--ink-mute); line-height: 1.3; }
.float-chip--a { left: -40px; bottom: -58px; }
.float-chip--b { right: -18px; top: -34px; animation-delay: -3s; }

.float-chip__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}

.float-chip__icon--ok { background: #ecfdf5; color: #059669; }

/* --------------------------------------------------------------- features */

.features { position: relative; z-index: 2; margin-top: -64px; }

.features__card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  transition: background .2s ease;
}

.feature:hover { background: #f8fafc; }

.feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent);
}

.feature__title { font-size: 14.5px; font-weight: 700; }
.feature__sub { margin-top: 1px; font-size: 13px; color: var(--ink-mute); }

/* ------------------------------------------------------------------- main */

.main { padding-block: 84px 96px; }

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label::before,
.section-label::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .45;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-sub { margin-top: 12px; font-size: 16px; color: var(--ink-soft); text-wrap: pretty; }

/* toolbar: pencarian + filter grup */

.toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  height: 56px;
  padding: 0 10px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm), 0 12px 30px -24px rgba(15, 23, 42, .35);
  color: var(--ink-mute);
  cursor: text;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search:focus-within {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: 0 0 0 4px var(--primary-ring), var(--shadow-sm);
  color: var(--primary);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
}

.search input::placeholder { color: var(--ink-mute); }

.search__key {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 9px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mute);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}

.chip:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); color: var(--ink); }

.chip__count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.chip.is-active .chip__count { background: rgba(255, 255, 255, .16); color: #fff; }

.toolbar__count { min-height: 1em; font-size: 13px; color: var(--ink-mute); }
.toolbar__count:empty { display: none; }

/* ------------------------------------------------------------------ group */

.group + .group { margin-top: 64px; }

.group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.group__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.group__logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }

.group__logo span {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.group__meta { flex: 1; min-width: 0; }
.group__name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.group__tagline { margin-top: 2px; font-size: 13.5px; color: var(--ink-mute); }

.group__count {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
}

.group__empty { font-size: 14px; color: var(--ink-mute); }

/* ------------------------------------------------------------------- apps */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 90% at 0% 0%, var(--c-soft) 0%, transparent 62%);
  opacity: 0;
  transition: opacity .3s ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 32%, var(--line));
  box-shadow: 0 26px 44px -26px color-mix(in srgb, var(--c) 60%, transparent);
  outline: none;
}

.app-card:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.app-card:hover::before,
.app-card:focus-visible::before { opacity: 1; }

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.app-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--c-soft);
  color: var(--c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent);
  transition: transform .35s var(--ease), background .3s ease, color .3s ease;
}

.app-card:hover .app-card__icon {
  transform: scale(1.06) rotate(-5deg);
  background: var(--c);
  color: #fff;
}

.app-card__ext { color: var(--ink-mute); opacity: .7; }

.app-card__name {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.app-card__desc { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.app-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
}

.app-card__cta .icon { transition: transform .3s var(--ease); }
.app-card:hover .app-card__cta .icon { transform: translateX(4px); }

/* ------------------------------------------------------- warna ikon aplikasi */

.tone-indigo { --c: #4f46e5; --c-soft: #eef2ff; }
.tone-violet { --c: #7c3aed; --c-soft: #f5f3ff; }
.tone-blue   { --c: #2563eb; --c-soft: #eff6ff; }
.tone-sky    { --c: #0284c7; --c-soft: #e0f2fe; }
.tone-teal   { --c: #0d9488; --c-soft: #f0fdfa; }
.tone-green  { --c: #059669; --c-soft: #ecfdf5; }
.tone-amber  { --c: #d97706; --c-soft: #fffbeb; }
.tone-orange { --c: #ea580c; --c-soft: #fff7ed; }
.tone-rose   { --c: #e11d48; --c-soft: #fff1f2; }
.tone-red    { --c: #dc2626; --c-soft: #fef2f2; }
.tone-pink   { --c: #db2777; --c-soft: #fdf2f8; }
.tone-slate  { --c: #475569; --c-soft: #f1f5f9; }

/* ------------------------------------------------------------------ empty */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.empty strong { color: var(--ink); }
.empty a { color: var(--primary); font-weight: 700; }

.empty__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ----------------------------------------------------------------- footer */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #94a3b8;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 70%, #fff), transparent);
  opacity: .5;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 44px;
}

.brand--light { color: #fff; }
.footer__about { max-width: 42ch; margin-top: 16px; font-size: 14px; line-height: 1.7; }

.footer__title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.footer__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer__list li { display: flex; align-items: flex-start; gap: 10px; }
.footer__list .icon { margin-top: 3px; color: #64748b; }
.footer__list a { text-decoration: none; transition: color .2s ease; }
.footer__list a:hover { color: #fff; }

.footer__bottom {
  padding-block: 22px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  font-size: 13px;
  color: #64748b;
}

/* ------------------------------------------------------------ back to top */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--primary) 90%, transparent);
  cursor: pointer;
  transition: transform .2s var(--ease);
}

.to-top:hover { transform: translateY(-3px); }

/* -------------------------------------------------------- animasi muncul */

/* Memakai `translate` (bukan transform) agar tidak bentrok dengan efek hover. */
.js [data-reveal] {
  --reveal-delay: calc(var(--d, 0) * 70ms);
  opacity: 0;
  translate: 0 18px;
  transition: opacity .6s var(--ease) var(--reveal-delay), translate .6s var(--ease) var(--reveal-delay);
}

.js [data-reveal].is-visible { opacity: 1; translate: none; }

.js .app-card[data-reveal] {
  transition: opacity .6s var(--ease) var(--reveal-delay), translate .6s var(--ease) var(--reveal-delay),
              transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}

.js .feature[data-reveal] {
  transition: opacity .6s var(--ease) var(--reveal-delay), translate .6s var(--ease) var(--reveal-delay),
              background .2s ease;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

@keyframes ping {
  0%   { transform: scale(.6); opacity: .8; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* --------------------------------------------------------------- responsif */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 120px 132px; }
  .hero__visual { display: none; }
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .nav__inner { height: 64px; }
  .nav__link { display: none; }
  .brand__name { font-size: 14px; }
  .hero__inner { padding-block: 104px 116px; }
  .hero__subtitle { font-size: 15px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats { gap: 12px 28px; }
  .hero__stats dd { font-size: 24px; }
  .features { margin-top: -56px; }
  .features__card { padding: 8px; gap: 0; }
  .main { padding-block: 64px 72px; }
  .group__logo { width: 48px; height: 48px; border-radius: 15px; }
  .group__name { font-size: 17px; }
  .group__count { display: none; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app-card { padding: 16px; }
  .app-card__icon { width: 44px; height: 44px; border-radius: 14px; }
  .app-card__top { margin-bottom: 14px; }
  .app-card__name { font-size: 13px; }
  .app-card__desc { font-size: 12.5px; }
  .app-card__cta { padding-top: 12px; font-size: 12px; }
  .search__key { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
}
