/* ═══════════════════════════════════════════
   SALABLE.ID — Company Profile
   Mobile-first · Clean · Animated
   ═══════════════════════════════════════════ */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ink: #131722;
  --ink-soft: #5a6172;
  --line: #e6e9f2;

  --brand-1: #6c5ce7;   /* violet — salable core */
  --brand-2: #00b8d9;   /* aqua   — cleaner */
  --brand-3: #f5578e;   /* pink   — branding */
  --brand-4: #3d7bfd;   /* blue   — web */

  --grad: linear-gradient(120deg, var(--brand-2), var(--brand-1) 50%, var(--brand-3));
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(19, 23, 34, .05);
  --shadow-lg: 0 20px 50px -18px rgba(19, 23, 34, .18);
  --nav-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

/* ───────── Gradient text ───────── */
/* Gradien statis — animasi background-position memicu repaint tiap frame. */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--light {
  background: linear-gradient(120deg, #7ee8fa, #b3a3ff 50%, #ffa3c7);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(108, 92, 231, .55);
}
.btn--primary:hover { box-shadow: 0 16px 32px -8px rgba(108, 92, 231, .65); }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn i { margin-right: .4rem; }
.btn--light { background: #fff; color: #1b1440; }
.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }

/* ═══════════ NAVBAR ═══════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}
/* Tanpa backdrop-filter: blur di elemen fixed dihitung ulang tiap frame scroll. */
.nav.is-scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.15rem;
}
.nav__logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px -4px rgba(108, 92, 231, .5);
}
.nav__logo-text em { font-style: normal; color: var(--brand-1); }

.nav__links {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  transform: translateY(-115%);
  transition: transform .45s var(--ease);
}
.nav__links.is-open { transform: translateY(0); }
.nav__links a {
  padding: .7rem .9rem;
  border-radius: 12px;
  font-weight: 600;
  transition: background .25s, color .25s;
}
.nav__links a:hover { background: var(--bg); color: var(--brand-1); }
.nav__cta {
  background: var(--ink);
  color: #fff !important;
  text-align: center;
  margin-top: .35rem;
}
.nav__cta:hover { background: var(--brand-1) !important; }

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ ORBS (floating background) ═══════════ */
/* Lembut lewat radial-gradient, bukan filter:blur() — blur besar yang
   dianimasikan memaksa GPU menghitung ulang tiap frame (sumber jank). */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
  background: radial-gradient(circle, var(--orb-c) 0%, rgba(255, 255, 255, 0) 65%);
  animation: orbFloat 14s ease-in-out infinite;
  will-change: transform;
}
.orb--1 { --orb-c: var(--brand-2); width: 460px; height: 460px; top: -150px; left: -170px; }
.orb--2 { --orb-c: var(--brand-3); width: 540px; height: 540px; bottom: -200px; right: -200px; animation-delay: -5s; }
.orb--3 { --orb-c: var(--brand-1); width: 380px; height: 380px; top: 30%; right: -120px; animation-delay: -9s; }
.orb--4 { --orb-c: var(--brand-1); width: 560px; height: 560px; opacity: .12; top: 8%; left: -230px; }
.orb--cta1 { --orb-c: var(--brand-2); width: 380px; height: 380px; opacity: .35; top: -160px; left: -140px; }
.orb--cta2 { --orb-c: var(--brand-3); width: 440px; height: 440px; opacity: .3; bottom: -210px; right: -160px; animation-delay: -6s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(.95); }
}

/* ═══════════ FLOATING helpers ═══════════ */
.float-a { animation: floatY 5s ease-in-out infinite; }
.float-b { animation: floatY 6.5s ease-in-out infinite; animation-delay: -2s; }
.float-c { animation: floatY 5.8s ease-in-out infinite; animation-delay: -3.5s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* Dipasang via JS saat area animasi keluar dari viewport. */
.is-paused,
.is-paused * { animation-play-state: paused !important; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  opacity: .6;
}
.hero__content { position: relative; text-align: center; }
.hero__eyebrow {
  display: inline-block;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__eyebrow i { color: var(--brand-1); margin-right: .3rem; }
.hero__title {
  margin-top: 1.4rem;
  font-size: clamp(2.05rem, 8.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero__sub {
  margin: 1.3rem auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
}

/* floating brand chips */
.hero__chips {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem 1.1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .88rem;
  font-weight: 700;
  transition: transform .3s var(--ease), box-shadow .3s;
  pointer-events: auto;
}
.chip:hover { box-shadow: var(--shadow-lg); animation-play-state: paused; transform: translateY(-4px) scale(1.04); }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; }
.chip--cleaner .chip__dot { background: var(--brand-2); box-shadow: 0 0 0 4px rgba(0, 184, 217, .15); }
.chip--branding .chip__dot { background: var(--brand-3); box-shadow: 0 0 0 4px rgba(245, 87, 142, .15); }
.chip--web .chip__dot { background: var(--brand-4); box-shadow: 0 0 0 4px rgba(61, 123, 253, .15); }

/* scroll indicator */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--ink-soft);
  border-radius: 999px;
  opacity: .55;
}
.hero__scroll-dot {
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--ink-soft);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: .95rem 0;
  transform: rotate(-1deg) scale(1.02);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--brand-3); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ═══════════ SECTIONS (shared) ═══════════ */
.section { padding: 5rem 0; position: relative; }
.section__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: .8rem;
}
.section__eyebrow--center { display: block; text-align: center; }
.section__title {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.015em;
  margin-bottom: 1.2rem;
}
.section__title--center { text-align: center; }
.section__sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 2.6rem;
}

/* ═══════════ ABOUT ═══════════ */
.about__text { color: var(--ink-soft); }
.about__text .section__title { color: var(--ink); }

.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2.5rem;
}
.about__poster {
  width: min(78%, 340px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(30, 20, 70, .45);
  transform: rotate(-3deg);
  transition: transform .5s var(--ease);
}
.about__poster:hover { transform: rotate(0deg) scale(1.03); }
.about__poster img { width: 100%; height: auto; }

.about__badge {
  position: absolute;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
  font-weight: 800;
}
.about__badge i { margin-right: .3rem; }
.about__badge--1 { top: 8%; left: 2%; transform: rotate(-8deg); }
.about__badge--1 i { color: var(--brand-2); }
.about__badge--2 { top: 42%; right: 0; transform: rotate(6deg); }
.about__badge--2 i { color: var(--brand-3); }
.about__badge--3 { bottom: 6%; left: 8%; transform: rotate(4deg); }
.about__badge--3 i { color: var(--brand-4); }

.about__stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem .8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat__num {
  display: block;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ═══════════ UNITS ═══════════ */
.units { overflow: hidden; }
.units__bg { position: absolute; inset: 0; pointer-events: none; }
.units__grid {
  display: grid;
  gap: 1.4rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
  will-change: transform;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card__poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card__poster img { transform: scale(1.05); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
  position: relative;
}
.card__glow {
  position: absolute;
  top: -110px; right: -110px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-c) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: .16;
  transition: opacity .4s, transform .5s var(--ease);
}
.card:hover .card__glow { opacity: .34; transform: scale(1.35); }

.card--cleaner .card__glow { --glow-c: var(--brand-2); }
.card--branding .card__glow { --glow-c: var(--brand-3); }
.card--web .card__glow { --glow-c: var(--brand-4); }

.card__tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card--cleaner:hover { border-color: rgba(0, 184, 217, .5); }
.card--branding:hover { border-color: rgba(245, 87, 142, .5); }
.card--web:hover { border-color: rgba(61, 123, 253, .5); }

.card__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: .35rem 0 .6rem;
}
.card__desc { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.card__link {
  margin-top: auto;
  font-weight: 800;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.card__link i {
  font-style: normal;
  transition: transform .3s var(--ease);
}
.card:hover .card__link i { transform: translateX(6px); }
.card--cleaner .card__link { color: #0092ad; }
.card--branding .card__link { color: #e0316f; }
.card--web .card__link { color: #2563eb; }

/* ═══════════ WHY ═══════════ */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why__grid {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.1rem;
}
.why__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why__icon {
  font-size: 1.7rem;
  margin-bottom: .7rem;
  display: inline-block;
  animation: floatY 5s ease-in-out infinite;
}
.why__item:nth-child(1) .why__icon { color: var(--brand-1); }
.why__item:nth-child(2) .why__icon { animation-delay: -1.5s; color: var(--brand-3); }
.why__item:nth-child(3) .why__icon { animation-delay: -3s; color: var(--brand-2); }
.why__item:nth-child(4) .why__icon { animation-delay: -4s; color: #27ae60; }
.why__item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; }
.why__item p { font-size: .92rem; color: var(--ink-soft); }

/* ═══════════ CTA ═══════════ */
.cta__box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #191233 0%, #241a4d 55%, #341a4a 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 10px);
  padding: 3.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 30px 60px -25px rgba(30, 20, 70, .55);
}
.cta__orbs { position: absolute; inset: 0; pointer-events: none; }
.cta__box h2 {
  position: relative;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
}
.cta__box p {
  position: relative;
  margin: 1rem auto 0;
  max-width: 440px;
  color: rgba(255, 255, 255, .75);
}
.cta__actions {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
}

/* ═══════════ FOOTER ═══════════ */
.footer { padding: 3.5rem 0 0; }
.footer__inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand p { margin-top: 1rem; color: var(--ink-soft); font-size: .92rem; }
.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__col h4 {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.footer__col a {
  font-size: .93rem;
  font-weight: 600;
  width: fit-content;
  transition: color .25s, transform .25s var(--ease);
}
.footer__col a:hover { color: var(--brand-1); transform: translateX(4px); }
.footer__bottom {
  padding: 1.4rem 0;
  text-align: center;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ═══════════ SCROLL REVEAL ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════ DESKTOP (≥ 720px) ═══════════ */
@media (min-width: 720px) {
  :root { --nav-h: 72px; }

  .nav__burger { display: none; }
  .nav__links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: .3rem;
    padding: 0;
    background: none;
    border: none;
    transform: none;
  }
  .nav__links a { padding: .5rem .9rem; font-size: .93rem; }
  .nav__cta {
    margin: 0 0 0 .6rem;
    padding: .55rem 1.3rem !important;
    border-radius: 999px;
  }

  .section { padding: 6.5rem 0; }

  .about__layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: center;
  }
  .about__visual { padding: 1rem 0; }
  .about__poster { width: min(85%, 380px); }
  .stat { padding: 1.4rem 1rem; }

  .units__grid { grid-template-columns: repeat(3, 1fr); }

  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }

  .cta__box { padding: 4.5rem 3rem; }

  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .why__grid { grid-template-columns: repeat(4, 1fr); }
  .hero__title { line-height: 1.08; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
