:root {
  --bg: #f4f3ea;
  --surface: #fff;
  --ink: #10231a;
  --muted: #5a6b61;
  --line: #dcdfce;
  --mint: #dff1da;
  --green: #1f6b46;
  --gold: #c9a24a;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #07130c;
    --surface: #102118;
    --ink: #eef2e6;
    --muted: #9fb1a4;
    --line: #22362a;
    --mint: #173023;
    --green: #8fd19a;
    --gold: #d9b45a
  }
}

:root[data-theme="dark"] {
  --bg: #07130c;
  --surface: #102118;
  --ink: #eef2e6;
  --muted: #9fb1a4;
  --line: #22362a;
  --mint: #173023;
  --green: #8fd19a;
  --gold: #d9b45a
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px)
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Figtree, system-ui, sans-serif;
  overflow-x: hidden
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", Georgia, sans-serif;
  margin: 0;
  line-height: 1.04;
  letter-spacing: -.03em
}

a {
  color: inherit
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px)
}

nav {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 20;
  padding: 0 calc(clamp(12px, 3vw, 40px) + 62px) 0 clamp(12px, 3vw, 40px)
}

.bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent)
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 19px "Bricolage Grotesque", sans-serif
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f6f5ec;
  padding: 2px
}

.links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px
}

.links a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: .2s
}

.links a:not(.btn):hover {
  background: var(--mint);
  color: var(--ink)
}

/* 2. TOMBOL TEMA: position:fixed di pojok kanan atas layar */
.tgl {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform .3s
}

.tgl:hover {
  transform: rotate(25deg) scale(1.08)
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font: 700 16px Figtree, sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(201, 162, 74, .7)
}

.btn.gold {
  background: var(--gold);
  color: #10231a
}

/* ANIMASI 4 - KILAU PADA TOMBOL EMAS */
.btn.gold:after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: sh 3.6s ease-in-out infinite
}

.btn.glass {
  border-color: rgba(246, 245, 236, .4);
  color: #f6f5ec;
  background: rgba(246, 245, 236, .08)
}

.btn.sm {
  padding: 10px 22px;
  background: var(--gold);
  color: #10231a
}

@keyframes sh {

  0%,
  55% {
    left: -70%
  }

  100% {
    left: 130%
  }
}

.dark {
  background: #06150d;
  color: #f6f5ec;
  position: relative;
  overflow: hidden
}

/* ANIMASI 1 - AURORA (latar hero dan blok CTA) */
.aur {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.aur i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: dr 16s ease-in-out infinite alternate
}

.aur i:nth-child(1) {
  width: 480px;
  height: 480px;
  right: 6%;
  top: -120px;
  background: #c9a24a;
  opacity: .5
}

.aur i:nth-child(2) {
  width: 600px;
  height: 600px;
  left: -160px;
  bottom: -200px;
  background: #2e7d32;
  opacity: .6;
  animation-delay: -6s
}

.aur i:nth-child(3) {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: -40px;
  background: #4cc16f;
  opacity: .28;
  animation-delay: -11s
}

@keyframes dr {
  to {
    transform: translate(-70px, 60px) scale(1.25)
  }
}

.hero {
  padding: 150px 0 110px
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 30px;
  align-items: center
}

h1 {
  font-size: clamp(44px, 6.6vw, 90px);
  font-weight: 800
}

/* ANIMASI 2 - JUDUL MUNCUL PER KATA*/
h1 .w {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  animation: wd 1s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i)*80ms + 250ms)
}

@keyframes wd {
  to {
    opacity: 1;
    filter: none;
    transform: none
  }
}

.sub {
  font-size: 20px;
  max-width: 600px;
  margin: 26px 0 34px;
  opacity: 0;
  animation: wd 1s .9s forwards;
  color: rgba(246, 245, 236, .82)
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: wd 1s 1.1s forwards
}

/* ANIMASI 3 - PONSEL MELAYANG + MIRING 3D */
.stage {
  perspective: 1100px;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 560px
}

.tilt {
  position: relative;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .2s;
  transform-style: preserve-3d;
  animation: fl 6s ease-in-out infinite
}

@keyframes fl {
  50% {
    translate: 0 -14px
  }
}

.phone {
  width: min(290px, 70vw);
  aspect-ratio: 752/1598;
  border: 10px solid #030a06;
  border-radius: 46px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 50px 90px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 80px rgba(201, 162, 74, .22);
  position: relative
}

.phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pill {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  font: 700 14px Figtree, sans-serif;
  background: rgba(246, 245, 236, .14);
  border: 1px solid rgba(246, 245, 236, .3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f6f5ec;
  white-space: nowrap;
  animation: fl 5s ease-in-out infinite;
  transform: translateZ(60px)
}

.pill b {
  color: var(--gold)
}

.pl1 {
  left: -70px;
  top: 120px
}

.pl2 {
  right: -170px;
  top: 200px;
  animation-delay: -2.5s
}

.pl3 {
  left: -79px;
  bottom: 120px;
  animation-delay: -3.5s
}

/* ANIMASI 5 - MARQUEE PRODUK */
.mq {
  background: var(--gold);
  color: #10231a;
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.2deg);
  margin: -26px -20px 0;
  position: relative;
  z-index: 2
}

.mq div {
  display: flex;
  width: max-content;
  animation: mq 26s linear infinite
}

.mq span {
  font: 800 34px "Bricolage Grotesque", sans-serif;
  padding: 0 26px;
  white-space: nowrap
}

.mq span:after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10231a;
  margin-left: 52px;
  vertical-align: middle
}

@keyframes mq {
  to {
    transform: translateX(-50%)
  }
}

section {
  padding: 110px 0
}

h2 {
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 800
}

.stmt {
  font: 600 clamp(19px, 2vw, 26px)/1.55 "Bricolage Grotesque", sans-serif;
  letter-spacing: -.01em;
  max-width: 820px
}

/* ANIMASI 6 - KATA MENYALA SAAT SCROLL (paragraf deskripsi)*/
.stmt .w {
  color: var(--muted);
  opacity: .32;
  transition: opacity .4s, color .4s
}

.stmt .w.on {
  color: var(--ink);
  opacity: 1
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px
}

.tags span {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
  font-size: 15px
}

.tags span:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 9px
}

/* ANIMASI 7 - LANGKAH DENGAN PONSEL STICKY */
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 30px
}

.stick {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  height: calc(100vh - 110px);
  display: grid;
  place-items: center
}

.stick .phone {
  width: min(300px, calc((100vh - 190px)/2.125));
  box-shadow: 0 40px 80px -24px rgba(16, 35, 26, .55), 0 0 0 1px var(--line)
}

.stick .phone img {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .6s, transform .8s
}

.stick .phone img.on {
  opacity: 1;
  transform: none
}

.ch {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .28;
  transition: opacity .5s
}

.ch.on {
  opacity: 1
}

.ch .n {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #10231a;
  font: 800 22px "Bricolage Grotesque", sans-serif;
  margin-bottom: 20px;
  transition: transform .5s
}

.ch.on .n {
  transform: scale(1.12) rotate(-6deg)
}

.ch h3 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 12px
}

.ch p {
  color: var(--muted);
  max-width: 430px;
  margin: 0;
  font-size: 18px
}

.ch .m {
  display: none
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px
}

/* ANIMASI 9 - SOROTAN KARTU MENGIKUTI KURSOR */
.fc {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s
}

.fc:hover {
  transform: translateY(-6px);
  border-color: var(--gold)
}

.fc:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, -60%), rgba(201, 162, 74, .3), transparent 70%);
  opacity: 0;
  transition: opacity .3s
}

.fc:hover:before {
  opacity: 1
}

.fc>* {
  position: relative
}

.fc .i {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px
}

.fc h3 {
  font-size: 24px;
  margin-bottom: 8px
}

.fc p {
  margin: 0;
  color: var(--muted);
  font-size: 16px
}

.fc.w2 {
  grid-column: span 2
}

.fc.w3 {
  grid-column: span 3
}

.bars {
  display: grid;
  gap: 12px;
  margin-top: 22px
}

.br {
  display: grid;
  grid-template-columns: 104px 1fr 64px;
  gap: 12px;
  align-items: center;
  font-size: 14px
}

/* ANIMASI 10 - BAR LAPORAN TUMBUH */
.trk {
  height: 14px;
  border-radius: 99px;
  background: var(--mint);
  overflow: hidden
}

.trk i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 1.4s cubic-bezier(.2, .7, .2, 1)
}

.in .trk i {
  width: var(--w)
}

.br em {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 3px 0;
  border-radius: 99px;
  background: var(--mint);
  color: var(--green)
}

/* ANIMASI 8 - MUNCUL SAAT SCROLL (.rv) */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1)
}

.rv.in {
  opacity: 1;
  transform: none
}

.cta {
  margin: 0 clamp(12px, 3vw, 40px);
  border-radius: 48px;
  padding: 110px 24px;
  text-align: center
}

.cta .in2 {
  position: relative;
  z-index: 1
}

.cta h2 {
  max-width: 760px;
  margin: 0 auto 16px
}

.cta p {
  margin: 0 auto 34px;
  max-width: 480px;
  opacity: .85
}

footer {
  padding: 36px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: 14px
}

@media(max-width:900px) {
  .hero .wrap {
    grid-template-columns: 1fr
  }

  .stage {
    min-height: 520px
  }

  .pl1 {
    left: -20px
  }

  .pl2 {
    right: -20px
  }

  .how {
    grid-template-columns: 1fr;
    gap: 0
  }

  .stick {
    display: none
  }

  .ch {
    min-height: auto;
    opacity: 1;
    padding: 34px 0
  }

  .ch .m {
    display: block;
    width: 210px;
    margin-top: 24px;
    border: 8px solid #030a06;
    border-radius: 34px
  }

  .grid {
    grid-template-columns: 1fr 1fr
  }

  .fc.w2,
  .fc.w3 {
    grid-column: span 2
  }

  .links a:not(.btn) {
    display: none
  }

  .hero {
    padding-top: 120px
  }
}

@media(max-width:560px) {
  section {
    padding: 72px 0
  }

  .grid {
    grid-template-columns: 1fr
  }

  .fc.w2,
  .fc.w3 {
    grid-column: auto
  }

  .br {
    grid-template-columns: 92px 1fr 60px
  }

  .mq span {
    font-size: 26px
  }

  .pl1 {
    left: -6px
  }

  .pl2 {
    right: -6px
  }
}

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

  h1 .w,
  .sub,
  .cta-row,
  .rv {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important
  }

  .stmt .w {
    opacity: 1;
    color: var(--ink)
  }

  .trk i {
    width: var(--w)
  }
}

/* TOMBOL NONAKTIF (APK belum tersedia) */
.btn.off {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none
}

.btn.off:after {
  animation: none;
  display: none
}

.soon {
  margin: 12px 0 0;
  font-size: 14px;
  opacity: .75
}

.cta .soon {
  margin-top: 14px
}

.flink {
  display: inline-block;
  margin-top: 10px;
  color: inherit;
  text-decoration: underline
}

.flink[hidden],
.soon[hidden] {
  display: none
}

/* Tombol menu atas tidak boleh terpecah dua baris */
.btn.sm {
  white-space: nowrap
}

@media(max-width:480px) {
  .btn.sm {
    padding: 8px 14px;
    font-size: 14px
  }

  .brand {
    white-space: nowrap
  }
}

@media(max-width:400px) {
  .brand {
    font-size: 15px;
    gap: 6px
  }

  .brand img {
    width: 28px;
    height: 28px
  }

  .btn.sm {
    padding: 7px 12px;
    font-size: 13px
  }
}
