/* ==========================================================================
   LeadCon scene — panggung gelap "Preview LeadCon" setelah section sistem.
   Satu gambar utuh tanpa latar (laptop + ponsel) berdiri langsung di panggung, bukan di kartu.
   Gambar tidak pernah diputar atau diperbesar oleh animasi (supaya layarnya tetap tajam):
   leadcon-scene.js hanya menggesernya dari kiri ke tengah mengikuti scroll, lalu teksnya muncul.
   Tanpa JS atau saat "kurangi gerakan": semuanya langsung tampil di posisi akhir.
   Variabel dari JS: --run (jarak scroll, menggerakkan lantai dan partikel latar), --shot (kehadiran gambar, 0..1).
   ========================================================================== */

/* Panggung menumpang 3px di atas section sebelum dan sesudahnya (z-index 2): menutup celah dan garis tipis
   yang muncul di tepi sub-piksel pada layar berskala 125%/175%.
   Latarnya satu gradient buram: lanjutan peralihan krem -> gelap dari section sistem (lihat di bawah).
   6px pertama ditahan rata (3px di antaranya menumpang di atas section sistem). Nilainya dihitung dari kurva yang sama
   dengan sisi section sistem: krem -> cokelat hangat -> gelap, sepanjang 360px (120px di sana, 240px di sini).
   Sengaja tanpa background-color: warna dasar di bawah gradient ikut merembes di tepi sub-piksel. */
.performance-site #leadcon.leadcon-scene {
  position: relative; z-index: 2; margin: -3px 0; padding: 0; color: #f5f5ef;
  background: linear-gradient(180deg, rgb(176, 160, 140) 0, rgb(176, 160, 140) 6px, rgb(154, 137, 116) 26px, rgb(130, 114, 94) 46px, rgb(107, 92, 74) 66px, rgb(84, 72, 57) 86px, rgb(64, 55, 43) 106px, rgb(46, 40, 31) 126px, rgb(33, 29, 23) 146px, rgb(22, 21, 17) 166px, rgb(16, 16, 13) 186px, rgb(12, 13, 11) 206px, rgb(11, 12, 10) 226px, #0b0c0a 246px, #0b0c0a 100%);
}
.leadcon-inner {
  position: relative; overflow: hidden; padding: clamp(150px,11.5vw,180px) 24px clamp(40px,4vw,56px);
  background-image: var(--grain-white), radial-gradient(58% 36% at 50% 50%, rgba(37, 99, 235, .24), transparent 72%), radial-gradient(34% 26% at 8% 30%, rgba(237, 106, 22, .14), transparent 72%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 220px 220px, 100% 100%, 100% 100%;
}

/* Latar panggung (bukan gradient polos): kabut di cakrawala, lantai grid berperspektif, alur prospek yang mengalir
   dari kiri dan kanan ke balik perangkat, dan partikel cahaya. Semuanya memudar di tepi dan di belakang teks bawah. */
.leadcon-bg { position: absolute; inset: 0; pointer-events: none; }
.leadcon-bg > * { position: absolute; }
.leadcon-haze { left: 0; right: 0; top: 38%; height: 20%; background: radial-gradient(46% 100% at 50% 100%, rgba(70, 122, 255, .28), transparent 72%); }
.leadcon-haze::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(150, 186, 255, .5) 30%, rgba(255, 170, 110, .55) 50%, rgba(150, 186, 255, .5) 70%, transparent); }
.leadcon-floor {
  left: -30%; right: -30%; top: 58%; bottom: 0;
  background-image: linear-gradient(rgba(140, 176, 255, .24) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 176, 255, .24) 1px, transparent 1px);
  background-size: 64px 64px; background-position: 50% calc(var(--run, 0) * 72px);
  transform: perspective(900px) rotateX(60deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 34%, transparent 66%), linear-gradient(90deg, transparent 10%, #000 38%, #000 62%, transparent 90%);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 34%, transparent 66%), linear-gradient(90deg, transparent 10%, #000 38%, #000 62%, transparent 90%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.leadcon-flow {
  inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.leadcon-flow path { vector-effect: non-scaling-stroke; }
.leadcon-flow-base path { stroke: rgba(255, 255, 255, .13); stroke-width: 1; }
.leadcon-flow-pulse path { stroke: #ff852e; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 64 936; stroke-dashoffset: 1000; opacity: 0; }
.leadcon-flow-node circle { fill: #0b0c0a; stroke: rgba(255, 133, 46, .8); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.leadcon-dust {
  inset: 0;
  background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .6) 0 1px, transparent 1.7px), radial-gradient(circle at 64% 42%, rgba(255, 180, 130, .65) 0 1.2px, transparent 1.9px), radial-gradient(circle at 36% 74%, rgba(160, 192, 255, .6) 0 1px, transparent 1.7px), radial-gradient(circle at 86% 88%, rgba(255, 255, 255, .4) 0 1px, transparent 1.7px);
  background-size: 310px 290px, 370px 330px, 270px 250px, 430px 390px;
  background-position: 0 calc(var(--run, 0) * -34px), 0 calc(var(--run, 0) * -58px), 0 calc(var(--run, 0) * -22px), 0 calc(var(--run, 0) * -46px);
  -webkit-mask-image: radial-gradient(64% 52% at 50% 50%, #000 30%, transparent); mask-image: radial-gradient(64% 52% at 50% 50%, #000 30%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .leadcon-flow-pulse path { opacity: .9; animation: leadcon-flow 5.2s linear infinite; }
  .leadcon-flow-pulse path:nth-child(2) { animation-delay: -1.9s; animation-duration: 4.4s; }
  .leadcon-flow-pulse path:nth-child(3) { animation-delay: -3.3s; }
  .leadcon-flow-pulse path:nth-child(4) { animation-delay: -2.6s; }
  .leadcon-flow-pulse path:nth-child(5) { animation-delay: -.8s; animation-duration: 4.4s; }
  .leadcon-flow-pulse path:nth-child(6) { animation-delay: -4.1s; }
}
@keyframes leadcon-flow { to { stroke-dashoffset: 0; } }
@keyframes leadcon-pulse { from { opacity: .45; transform: scale(.95); } to { opacity: 1; transform: scale(1.06); } }
@keyframes leadcon-flicker { 0%, 100% { opacity: .14; } 8% { opacity: .42; } 13% { opacity: .2; } 22% { opacity: .52; } 36% { opacity: .24; } 49% { opacity: .56; } 57% { opacity: .28; } 71% { opacity: .5; } 84% { opacity: .18; } }
@keyframes leadcon-spin { to { transform: rotate(360deg); } }
@keyframes leadcon-drop { from { background-position: 0 -42px, 0 0; } to { background-position: 0 50px, 0 0; } }
@keyframes leadcon-nod { 0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: .5; } 55% { transform: translateY(2px) rotate(45deg); opacity: 1; } }
@keyframes leadcon-ring { 0% { box-shadow: 0 0 0 0 rgba(237, 106, 22, .6); } 70%, 100% { box-shadow: 0 0 0 20px rgba(237, 106, 22, 0); } }
@keyframes leadcon-shine { 0%, 62% { left: -40%; } 100% { left: 130%; } }
@keyframes leadcon-arrow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -3px); } }
@keyframes leadcon-twinkle { 0%, 100% { opacity: .08; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.3); } }

/* Peralihan lembut, bukan garis kotak: krem section sistem melebur ke panggung gelap,
   dan panggung gelap melebur ke foto section berikutnya.
   Peralihannya satu kurva halus sepanjang 360px yang dibagi dua: 120px terakhir section sistem mulai menghangat
   dan menggelap (di sini), lalu 240px pertama panggung melanjutkannya (latar #leadcon di atas).
   Warna di sambungan sama persis, dan lewat cokelat hangat supaya tidak tampak abu-abu. */
.performance-site #framework.system-section { padding-bottom: 0; }
.performance-site #framework.system-section::after {
  content: ''; display: block; height: 124px; margin: 0 -24px;
  /* Satu gradient: di bagian atas masih tembus pandang (grid dan semburat section sistem memudar pelan),
     lalu buram supaya warna di sambungan sama persis dengan sisi panggung. 4px terakhir ditahan rata. */
  background-image: var(--grain-white), linear-gradient(180deg, rgba(247, 246, 240, 0) 0px, rgba(246, 245, 239, 0.2) 12px, rgba(244, 241, 234, 0.4) 24px, rgba(240, 236, 228, 0.6) 36px, rgba(235, 229, 219, 0.8) 48px, rgba(228, 220, 208, 1) 60px, rgba(220, 210, 196, 1) 72px, rgba(210, 199, 183, 1) 84px, rgba(200, 186, 169, 1) 96px, rgba(188, 173, 154, 1) 108px, rgba(176, 160, 140, 1) 120px, rgb(176, 160, 140) 124px);
  background-repeat: repeat, no-repeat; background-size: 220px 220px, 100% 100%;
}
.performance-site #leadcon + #gallery.proof-section {
  padding-top: clamp(56px,5.5vw,80px);
  --atm-shade: linear-gradient(180deg, #0b0c0a 0, rgba(11, 12, 10, .9) 90px, rgba(17, 18, 16, .68) 260px, rgba(17, 18, 16, .88) 460px, #111210 660px);
  --atm-glow: radial-gradient(55% 460px at 8% 340px, rgba(237, 106, 22, .2), transparent 72%);
}

/* ---------- Isi panggung ---------- */
.leadcon-stage { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1232px; margin-inline: auto; text-align: center; }

.leadcon-kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 clamp(14px,1.6vw,22px); font-size: clamp(11px,1vw,13px); font-weight: 700; line-height: 1.3; letter-spacing: .22em; text-transform: uppercase; color: #ff852e; }
.leadcon-kicker::before, .leadcon-kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
/* Nama produk dengan jarak huruf lebar; text-indent menyeimbangkan jarak di huruf terakhir supaya tetap di tengah. */
.performance-site #leadcon-title { margin: 0; font-size: clamp(40px,11.6vw,116px); line-height: 1; letter-spacing: .26em; text-indent: .26em; color: #f6f6f0; }
#leadcon-title span { color: #ff852e; }
.leadcon-lead { max-width: 700px; margin: clamp(18px,2vw,26px) auto 0; font-size: clamp(15px,1.2vw,17px); line-height: 1.75; color: #b9bab1; text-wrap: pretty; }
.leadcon-lead strong { display: block; margin-bottom: 6px; font-size: clamp(18px,1.6vw,22px); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; color: #f6f6f0; }

/* Gambar perangkat: besar, tanpa transform saat diam. Tepi transparan di sekeliling gambar dipangkas dengan margin negatif. */
.leadcon-devices { position: relative; width: min(100%, 1060px); margin: clamp(20px,3vw,40px) 0 0; }
.leadcon-shot { position: relative; display: block; width: 100%; max-width: none; height: auto; margin-block: -2.4%; filter: drop-shadow(0 30px 38px rgba(0, 0, 0, .5)); }
/* Cahaya di belakang perangkat: pendar yang berdenyut, berkas sinar yang berkedip pelan, dan beberapa kerlip.
   Ikut muncul bersama gambarnya (--shot). Saat "kurangi gerakan" cahayanya diam. */
.leadcon-aura { position: absolute; inset: -7% -5% 3% -5%; pointer-events: none; opacity: var(--shot, 1); }
.leadcon-aura::before {
  content: ''; position: absolute; inset: 0; filter: blur(26px);
  background: radial-gradient(42% 46% at 40% 46%, rgba(64, 128, 255, .62), rgba(64, 128, 255, .2) 48%, transparent 74%), radial-gradient(20% 34% at 85% 46%, rgba(255, 133, 46, .44), transparent 72%);
}
.leadcon-aura::after {
  content: ''; position: absolute; inset: -12%; opacity: .34; transform-origin: 42% 50%;
  background: repeating-conic-gradient(from 8deg at 42% 50%, rgba(160, 196, 255, .26) 0deg 2.2deg, transparent 2.2deg 11deg);
  -webkit-mask-image: radial-gradient(closest-side at 42% 50%, transparent 30%, #000 48%, transparent 80%);
  mask-image: radial-gradient(closest-side at 42% 50%, transparent 30%, #000 48%, transparent 80%);
}
.leadcon-aura i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(120, 170, 255, .9), 0 0 28px 9px rgba(70, 130, 255, .42); }
.leadcon-aura i:nth-child(1) { left: 4%; top: 14%; }
.leadcon-aura i:nth-child(2) { left: 29%; top: 1%; }
.leadcon-aura i:nth-child(3) { left: 63%; top: 4%; }
.leadcon-aura i:nth-child(4) { left: 97%; top: 24%; }
.leadcon-aura i:nth-child(5) { left: 1%; top: 63%; }
.leadcon-aura i:nth-child(6) { left: 73%; top: 93%; }
.leadcon-aura i:nth-child(7) { left: 99%; top: 71%; }
.leadcon-aura i:nth-child(3n + 1) { box-shadow: 0 0 12px 3px rgba(255, 160, 96, .9), 0 0 28px 9px rgba(237, 106, 22, .42); }
/* Kolam cahaya di bawah perangkat, pengganti meja. */
.leadcon-glow { position: absolute; inset: 72% 2% -8% 2%; background: radial-gradient(closest-side, rgba(56, 122, 255, .4), rgba(56, 122, 255, 0)); filter: blur(24px); pointer-events: none; }

.leadcon-copy { display: flex; flex-direction: column; align-items: center; gap: clamp(22px,2.4vw,32px); width: 100%; margin-top: clamp(28px,3.4vw,48px); }
.leadcon-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; width: min(100%, 1000px); list-style: none; margin: 0; padding: 20px 0; border-block: 1px solid rgba(255, 255, 255, .13); }
.leadcon-list li { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .03em; color: #ecece5; }
.leadcon-list li::before { content: ''; flex: none; width: 6px; height: 6px; background: #ff852e; transform: rotate(45deg); }
/* Ajakan: teks kecil, garis penunjuk dengan cahaya yang turun ke arah tombol, lalu tombolnya. */
.leadcon-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.leadcon-cue-text { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: #c9cac1; }
.leadcon-cue { position: relative; width: 16px; height: 50px; margin-bottom: 6px; }
.leadcon-cue::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 8px; width: 1px; margin-left: -.5px; background: rgba(255, 133, 46, .32); }
.leadcon-cue::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 9px; height: 9px; margin-left: -4.5px; border-right: 2px solid #ff852e; border-bottom: 2px solid #ff852e; transform: rotate(45deg); }
.performance-site a.leadcon-link { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 28px; padding: 19px 28px; background: #ed6a16; color: #111210; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.leadcon-link span { font-size: 20px; line-height: 1; }
.performance-site a.leadcon-link:focus-visible { outline: 2px solid #f6f6f0; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .leadcon-link span { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  .leadcon-link:hover span { transform: translate(3px,-3px); }
  /* Penunjuk ke tombol: cahaya turun di garis, panah mengangguk, tombol berdenyut dan sesekali berkilau. */
  .leadcon-cue::before { background: linear-gradient(180deg, rgba(255, 133, 46, 0), #ffb27a 50%, rgba(255, 133, 46, 0)) 0 -42px / 100% 42px no-repeat, rgba(255, 133, 46, .28); animation: leadcon-drop 1.5s cubic-bezier(.5,0,.6,1) infinite; }
  .leadcon-cue::after { animation: leadcon-nod 1.5s ease-in-out infinite; }
  .performance-site a.leadcon-link { animation: leadcon-ring 2.2s ease-out infinite; }
  .leadcon-link::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: leadcon-shine 4.4s ease-in-out infinite; pointer-events: none; }
  .leadcon-link span { animation: leadcon-arrow 1.5s ease-in-out infinite; }
  .leadcon-link:hover span { animation: none; }
  /* Teks naik perlahan saat masuk layar (kelas .is-live dan .is-in dipasang leadcon-scene.js). */
  .leadcon-scene.is-live .leadcon-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
  .leadcon-scene.is-live .leadcon-reveal.is-in { opacity: 1; transform: none; }
  .leadcon-scene.is-live .leadcon-shot.is-moving { will-change: transform, opacity; }
  .leadcon-aura::before { animation: leadcon-pulse 3.2s ease-in-out infinite alternate; }
  .leadcon-aura::after { animation: leadcon-flicker 4.6s linear infinite, leadcon-spin 90s linear infinite; }
  .leadcon-aura i { animation: leadcon-twinkle 2.6s ease-in-out infinite; }
  .leadcon-aura i:nth-child(2) { animation-delay: -.7s; animation-duration: 3.1s; }
  .leadcon-aura i:nth-child(3) { animation-delay: -1.5s; animation-duration: 2.2s; }
  .leadcon-aura i:nth-child(4) { animation-delay: -2.1s; }
  .leadcon-aura i:nth-child(5) { animation-delay: -.3s; animation-duration: 3.4s; }
  .leadcon-aura i:nth-child(6) { animation-delay: -1.9s; animation-duration: 2.9s; }
  .leadcon-aura i:nth-child(7) { animation-delay: -1.1s; animation-duration: 2.4s; }
}

@media (max-width: 767px) {
  .leadcon-inner { padding: 132px 20px 40px; }
  /* Di HP tagline jadi dua baris: garis sampingnya dilepas dan barisnya diseimbangkan. */
  .leadcon-kicker { display: block; max-width: 300px; letter-spacing: .18em; text-wrap: balance; }
  .leadcon-kicker::before, .leadcon-kicker::after { content: none; }
  /* Di ponsel gambar dilebarkan sedikit melewati tepi kolom supaya tampil lebih besar. */
  .leadcon-devices { width: calc(100% + 24px); margin-inline: -12px; }
  .leadcon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 4px; text-align: left; }
  .leadcon-actions { width: 100%; }
  .performance-site a.leadcon-link { width: 100%; max-width: 360px; justify-content: space-between; }
  .leadcon-flow { display: none; }
  .leadcon-floor { left: -70%; right: -70%; background-size: 48px 48px; }
}
