:root{
  /* ==== GANTI DI SINI ==== */
  --bg-url: url('./asset/link tree.webp');

  --card-bg: rgba(20,18,16,0.55);
  --pill-bg: #ffffff;
  --pill-text: #17140f;
  --accent: #f2c14e;
  --text-light: #f6f3ee;
  --text-muted: #d8d2c8;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body{ height:100%; }

/* ===========================
   BACKGROUND SLIDER
=========================== */

.background-slider{
    position:fixed;
    inset:0;
    overflow:hidden;
    z-index:-999;
}

.track{
    display:flex;
    width:max-content;
    height:100%;

    animation: scrollBackground 120s linear infinite;
}

.slide{
    width:100vw;
    height:100vh;

    flex-shrink:0;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    position:relative;
}

.slide::after{

    content:"";

    position:absolute;
    inset:0;

    background:linear-gradient(
        rgba(0,0,0,.35),
        rgba(0,0,0,.20),
        rgba(0,0,0,.55)
    );

}

@keyframes scrollBackground{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-400vw);
    }

}

h1, h2, h3, h4, h5, h6, p, span, a, li {
    opacity: 0;
    transform: translateY(20px) scale(.95);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*  */

body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Segoe UI', system-ui, -apple-system, sans-serif;
  padding: clamp(12px, 5vw, 24px) clamp(8px, 3vw, 12px);
  padding-top: max(clamp(12px, 5vw, 24px), env(safe-area-inset-top));
  padding-bottom: max(clamp(12px, 5vw, 24px), env(safe-area-inset-bottom));

  /* background gambar mengisi seluruh layar, otomatis menyesuaikan
     dari HP (potret) sampai desktop (lanskap) */
  background-image:
    linear-gradient(180deg, rgba(10,9,8,0.35) 0%, rgba(8,7,6,0.25) 40%, rgba(6,5,4,0.6) 100%),
    var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* di layar lebar (desktop/tablet landscape) geser fokus foto sedikit
   supaya bagian penting tetap terlihat, tidak ke-crop */
@media (min-width: 900px){
  body{ background-position: center 35%; }
}
@media (max-width: 480px){
  body{ background-attachment: scroll; } /* fixed kurang stabil di sebagian browser mobile */
}

.phone{
  width: min(94vw, 400px);
  border-radius: clamp(18px, 6vw, 28px);
  overflow: hidden;
  position: relative;
  background: rgba(15,13,11,0.35);
  backdrop-filter: blur(1.5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.content{
  position:relative;
  padding: clamp(20px, 7vw, 32px) clamp(14px, 5vw, 22px) clamp(18px, 6vw, 26px);
  backdrop-filter: blur(2px);
}

.logo-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom: 18px;
}

.logo-badge{
  width: clamp(64px, 20vw, 86px);
  height: clamp(64px, 20vw, 86px);
  border-radius: clamp(12px, 4vw, 18px);
  overflow: hidden;
  position: relative;

  /* efek kaca buram / frosted glass, transparan tapi "miss focus" */
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.logo-badge img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* logo ikut sedikit blur mengikuti kotak kacanya */
  filter: blur(0.4px);
  opacity: 0.95;
}

h1.title{
  color: var(--text-light);
  text-align:center;
  font-size: clamp(17px, 5.2vw, 21px);
  font-weight: 800;
  margin-top: 14px;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1.25;
}

.tagline{
  text-align:center;
  color: var(--text-muted);
  font-size: clamp(11px, 3.2vw, 12.5px);
  margin-top: 4px;
  font-weight:500;
}

.hashtag{
  text-align:center;
  color: var(--accent);
  font-size: clamp(10px, 2.8vw, 11px);
  margin-top: 2px;
  font-weight:600;
  letter-spacing: 0.3px;
}

.section-title{
  color: var(--text-light);
  text-align:center;
  font-size: clamp(12.5px, 3.6vw, 14px);
  font-weight: 700;
  margin: clamp(16px, 5vw, 22px) 0 clamp(10px, 3vw, 12px);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.pill-list{ display:flex; flex-direction:column; gap: clamp(8px, 2.5vw, 10px); }

.pill{
  display:flex;
  align-items:center;
  gap: clamp(8px, 3vw, 12px);
  background: var(--pill-bg);
  color: var(--pill-text);
  border: none;
  border-radius: 28px;
  padding: clamp(10px, 3vw, 12px) clamp(10px, 3.5vw, 14px);
  font-size: clamp(11.5px, 3.4vw, 13px);
  font-weight: 600;
  cursor:pointer;
  text-decoration:none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width:100%;
  text-align:left;
}
.pill:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.pill:active{ transform: translateY(0); }

.icon-circle{
  width: clamp(28px, 8vw, 34px);
  height: clamp(28px, 8vw, 34px);
  border-radius: 50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.icon-circle svg{ width: 55%; height: 55%; fill:#fff; }

.pill-text-wrap{
  flex:1;
  text-align:center;
  padding-right: clamp(0px, 6vw, 34px);
  word-break: break-word;
}

.store-icon{
  width: clamp(28px, 8vw, 34px);
  height: clamp(28px, 8vw, 34px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink:0;
  border: 2px solid #eee;
}

.find-us{
  text-align:center;
  margin-top: clamp(18px, 6vw, 26px);
}
.find-us h3{
  color: var(--text-light);
  font-size: clamp(12.5px, 3.6vw, 14px);
  font-weight:700;
  margin-bottom: clamp(8px, 3vw, 12px);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.socials{
  display:flex;
  justify-content:center;
  gap: clamp(10px, 4vw, 14px);
}
.social-btn{
  width: clamp(38px, 11vw, 42px);
  height: clamp(38px, 11vw, 42px);
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-btn:hover{ background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.social-btn svg{ width: 48%; height: 48%; fill:#fff; }

/* class dipasang lewat JS saat halaman siap dan saat pill ditekan */
body.is-ready .phone{
  animation: fadeInUp 0.6s ease both;
}
@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform: translateY(0); }
}
.pill.is-pressed{ transform: scale(0.97); }