:root{
  --blue-900:#050c1a;
  --blue-800:#081226;
  --blue-700:#0d1c38;
  --blue-600:#122952;
  --blue-500:#1a3a6e;
  --ink:#0f172a;
  --muted:#5b6472;
  --line:#e4e8ef;
  --bg:#f6f8fb;
  --card:#ffffff;
  --green:#25d366;
  --radius:14px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.5;
}
a{color:inherit;}
.wrap{max-width:960px;margin:0 auto;padding:0 20px;}

/* Navbar */
.navbar{
  background:var(--blue-900);
  padding:14px 0;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.navbar .wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;}
.navbar .brand{
  color:#fff;
  font-weight:800;
  font-size:15px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:9px;
}
.brand-logo{
  width:28px;
  height:28px;
  border-radius:50%;
  display:block;
}
.navbar nav{display:flex;gap:18px;flex-wrap:wrap;}
.navbar nav a{
  color:rgba(255,255,255,.8);
  text-decoration:none;
  font-size:13.5px;
  font-weight:600;
  padding:6px 2px;
  border-bottom:2px solid transparent;
}
.navbar nav a:hover,
.navbar nav a.active{
  color:#fff;
  border-bottom-color:var(--green);
}

header.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--blue-900) 0%,var(--blue-700) 55%,var(--blue-600) 100%);
  color:#fff;
  padding:56px 0 64px;
}
/* Background gambar transparan + animasi bergerak pelan (Ken Burns effect) */
header.hero::before{
  content:"";
  position:absolute;
  inset:-6%;
  background-image:url("hero-bg.jpg");
  background-size:cover;
  background-position:center;
  opacity:.28;
  mix-blend-mode:screen;
  animation:heroBgFloat 26s ease-in-out infinite alternate;
  z-index:0;
  pointer-events:none;
}
/* Overlay gelap tipis di atas gambar supaya teks tetap terbaca */
header.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(5,12,26,.78) 0%,rgba(13,28,56,.55) 55%,rgba(18,41,82,.6) 100%);
  z-index:1;
  pointer-events:none;
}
header.hero .wrap{
  position:relative;
  z-index:2;
}
@keyframes heroBgFloat{
  0%{transform:scale(1.06) translate(0,0);}
  50%{transform:scale(1.16) translate(-1.4%,-1.6%);}
  100%{transform:scale(1.06) translate(0,0);}
}
/* Artikel/partikel kecil yang melayang di background hero */
.hero-particles{
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
  pointer-events:none;
}
.hero-particles span{
  position:absolute;
  bottom:-40px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  box-shadow:0 0 8px 2px rgba(120,180,255,.55);
  animation:heroDotFloat linear infinite;
}
.hero-particles span:nth-child(1){left:6%;  width:5px;height:5px; animation-duration:14s; animation-delay:0s;}
.hero-particles span:nth-child(2){left:16%; width:9px;height:9px; animation-duration:19s; animation-delay:2s;}
.hero-particles span:nth-child(3){left:28%; width:6px;height:6px; animation-duration:16s; animation-delay:4s;}
.hero-particles span:nth-child(4){left:42%; width:8px;height:8px; animation-duration:22s; animation-delay:1s;}
.hero-particles span:nth-child(5){left:58%; width:5px;height:5px; animation-duration:15s; animation-delay:6s;}
.hero-particles span:nth-child(6){left:72%; width:10px;height:10px;animation-duration:24s; animation-delay:3s;}
.hero-particles span:nth-child(7){left:85%; width:6px;height:6px; animation-duration:17s; animation-delay:5s;}
.hero-particles span:nth-child(8){left:94%; width:8px;height:8px; animation-duration:20s; animation-delay:8s;}
@keyframes heroDotFloat{
  0%{transform:translateY(0) translateX(0); opacity:0;}
  10%{opacity:.9;}
  90%{opacity:.5;}
  100%{transform:translateY(-420px) translateX(14px); opacity:0;}
}
@media (prefers-reduced-motion: reduce){
  header.hero::before{animation:none;}
  .hero-particles span{animation:none; display:none;}
}
header.hero .eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  background:rgba(255,255,255,.14);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}
header.hero h1{
  font-size:clamp(26px,4vw,38px);
  margin:0 0 12px;
  font-weight:800;
  letter-spacing:-0.01em;
}
header.hero p{
  margin:0 0 26px;
  color:rgba(255,255,255,.85);
  font-size:16px;
  max-width:560px;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 22px;
  border-radius:10px;
  font-weight:700;
  font-size:14.5px;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn svg{width:18px;height:18px;flex-shrink:0;}
.btn-primary{background:var(--green);color:#04220f;}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(37,211,102,.35);}
.btn-ghost{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.35);}
.btn-ghost:hover{background:rgba(255,255,255,.2);}
.btn-order{
  background:var(--blue-600);
  color:#fff;
  width:100%;
  padding:10px 16px;
  font-size:13.5px;
  margin-top:14px;
}
.btn-order:hover{background:var(--blue-700);}

section{padding:52px 0;}

/* Warna tiap bagian (slide) dibuat selang-seling: Biru Dongker gelap <-> Putih */
#produk{background:#fff;}
#pembayaran{background:#fff;}
footer{background:#fff;}

#cara-berlangganan,
.order-section{
  background:linear-gradient(160deg,var(--blue-900) 0%,var(--blue-800) 100%);
  border-top:none;
  border-bottom:none;
}
#cara-berlangganan .section-head .tag,
.order-section .section-head .tag{color:var(--green);}
#cara-berlangganan .section-head h2,
.order-section .section-head h2{color:#fff;}
#cara-berlangganan .section-head p,
.order-section .section-head p{color:rgba(255,255,255,.72);}
#cara-berlangganan .step-list li{color:rgba(255,255,255,.92);}
#cara-berlangganan .step-list li::before{background:var(--green);color:#04220f;}
.order-section form.order{
  background:#fbfcfe;
  box-shadow:0 20px 45px rgba(0,0,0,.35);
}
.section-head{margin-bottom:28px;}
.section-head .tag{
  color:var(--blue-600);
  font-weight:700;
  font-size:12.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.section-head h2{
  margin:6px 0 8px;
  font-size:24px;
  font-weight:800;
}
.section-head p{color:var(--muted);margin:0;font-size:15px;}

.section-head.center{
  text-align:center;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

.center-block{
  max-width:640px;
  margin:0 auto;
}

.grid{display:grid;gap:16px;}

.grad-zoom-a{background:linear-gradient(135deg,var(--blue-500),var(--blue-800));}
.grad-office-a{background:linear-gradient(135deg,#8b5cf6,#5b21b6);}
.grad-netflix{background:linear-gradient(135deg,#f43f5e,#7f1d2b);}
.grad-canva{background:linear-gradient(135deg,#ec4899,#7c3aed);}
.grad-soon{background:linear-gradient(135deg,#94a3b8,#475569);}

.step-list{list-style:none;margin:0;padding:0;counter-reset:step;display:grid;gap:16px;}
.step-list li{
  position:relative;
  padding-left:40px;
  font-size:14.5px;
  color:var(--ink);
  line-height:1.6;
}
.step-list li::before{
  counter-increment:step;
  content:counter(step);
  position:absolute;
  left:0;
  top:0;
  width:27px;
  height:27px;
  border-radius:50%;
  background:var(--blue-600);
  color:#fff;
  font-size:13px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Katalog produk (homepage) */
.grid-products{
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
}
.product-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  display:flex;
  flex-direction:column;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.product-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.product-icon{
  position:relative;
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-icon svg{width:22px;height:22px;}
.product-logo-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-head h3{margin:0;font-size:16px;font-weight:800;}

.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.price-row-left{display:flex;flex-direction:column;gap:2px;}
.variant-name{font-size:12.5px;color:var(--muted);font-weight:600;}
.price-value{font-size:18px;font-weight:800;color:var(--blue-700);}
.price-value small{font-size:12px;font-weight:600;color:var(--muted);}
.duration-badge{
  background:#eef2f9;
  color:var(--blue-700);
  font-size:11px;
  font-weight:700;
  padding:5px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.price-note{
  font-size:11.5px;
  color:var(--muted);
  margin:10px 0 14px;
  font-style:italic;
}
.product-card .btn-order{margin-top:auto;}
.btn-order:disabled{
  background:#cbd5e1;
  color:#64748b;
  cursor:not-allowed;
}
.btn-order:disabled:hover{background:#cbd5e1;}

.product-card-soon{
  border-style:dashed;
  background:transparent;
  justify-content:center;
}
.product-card-soon .desc{color:var(--muted);font-size:13.5px;margin:0;}

/* Panel Detail Produk (muncul saat klik "Pesan") */
.detail-section{
  padding-top:0;
  background:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.detail-panel{
  position:relative;
  max-width:640px;
  margin:0 auto;
  padding:32px 0;
}
.detail-close{
  position:absolute;
  top:24px;
  right:0;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:18px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.detail-close:hover{background:var(--bg);color:var(--ink);}
.detail-head{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
  padding-right:36px;
}
.detail-banner{
  position:relative;
  width:84px;
  height:84px;
  min-width:84px;
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.detail-banner img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.detail-banner-icon{
  display:none;
  align-items:center;
  justify-content:center;
}
.detail-banner-icon svg{width:34px;height:34px;}
.detail-head-text h3{margin:6px 0 6px;font-size:19px;font-weight:800;}
.detail-price{margin:0;font-size:14.5px;font-weight:700;color:var(--blue-700);}
.detail-stock{margin:4px 0 0;font-size:12.5px;font-weight:700;color:var(--muted);}
.detail-stock.low{color:#b45309;}
.detail-stock.out{color:#b91c1c;}
.detail-tabs{
  display:flex;
  gap:6px;
  border-bottom:1px solid var(--line);
  margin-bottom:18px;
  flex-wrap:wrap;
}
.detail-tab{
  background:none;
  border:none;
  border-bottom:2px solid transparent;
  padding:10px 4px;
  margin-right:14px;
  font-size:13.5px;
  font-weight:700;
  color:var(--muted);
  cursor:pointer;
}
.detail-tab:hover{color:var(--ink);}
.detail-tab.active{color:var(--blue-700);border-bottom-color:var(--blue-700);}
.detail-pane{
  font-size:14px;
  color:var(--ink);
  line-height:1.65;
  margin-bottom:22px;
}
.detail-pane.hidden{display:none;}
.detail-pane p{margin:0 0 10px;}
.detail-pane p:last-child{margin-bottom:0;}
.detail-pane ul{margin:0 0 10px;padding-left:20px;}
.detail-pane ul:last-child{margin-bottom:0;}
.detail-pane li{margin-bottom:4px;}
.detail-cta{width:100%;justify-content:center;}
.detail-cta:disabled{
  background:#cbd5e1;
  color:#64748b;
  cursor:not-allowed;
}
.detail-cta:disabled:hover{background:#cbd5e1;}

/* Metode Pembayaran */
.payment-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
@media (max-width:720px){.payment-grid{grid-template-columns:1fr;}}
.payment-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  text-align:center;
}
.payment-icon{
  width:48px;
  height:48px;
  margin:0 auto 12px;
  border-radius:12px;
  background:var(--bg);
  color:var(--blue-600);
  display:flex;
  align-items:center;
  justify-content:center;
}
.payment-icon svg{width:24px;height:24px;}
.payment-card h4{margin:0 0 4px;font-size:15px;font-weight:800;}
.payment-card p{margin:0 0 8px;color:var(--muted);font-size:13px;}
.payment-note{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:var(--blue-700);
  background:#eef2f9;
  padding:4px 10px;
  border-radius:999px;
}

/* Order form */
form.order{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  max-width:560px;
  margin:0 auto;
}
.field{margin-bottom:16px;}
.field-group{margin-bottom:0;}
.hidden{display:none !important;}
.field label{
  display:block;
  font-size:13.5px;
  font-weight:700;
  margin-bottom:6px;
  color:var(--ink);
}
.field label .opt{font-weight:500;color:var(--muted);}
.field input,
.field select,
.field textarea{
  width:100%;
  padding:11px 13px;
  border-radius:9px;
  border:1px solid #cbd5e1;
  font-size:14.5px;
  font-family:inherit;
  background:#fff;
  color:var(--ink);
  transition:box-shadow .3s ease, border-color .3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--blue-500);
  box-shadow:0 0 0 3px rgba(59,130,246,.15);
}
.field select.flash{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(37,211,102,.25);
}
.field textarea{resize:vertical;min-height:80px;}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media (max-width:600px){.row-2{grid-template-columns:1fr;}}

.submit-btn{
  width:100%;
  justify-content:center;
  padding:14px 20px;
  font-size:15.5px;
  margin-top:6px;
}
.submit-btn svg{width:18px;height:18px;}
.hint{font-size:12.5px;color:var(--muted);margin-top:10px;text-align:center;}

footer{
  text-align:center;
  padding:28px 0 40px;
  color:var(--muted);
  font-size:13px;
}
footer strong{color:var(--ink);}
footer a{color:var(--blue-600);text-decoration:none;font-weight:600;}

.back-to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  background:var(--blue-600);
  color:#fff;
  width:50px;
  height:50px;
  border-radius:50%;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(5,12,26,.4);
  cursor:pointer;
  z-index:40;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .2s ease, transform .2s ease, background .15s ease, visibility .2s ease;
}
.back-to-top.visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.back-to-top:hover{background:var(--blue-500);}
.back-to-top svg{width:22px;height:22px;}

/* Nota Pemesanan otomatis */
.nota-overlay{
  position:fixed;
  inset:0;
  background:rgba(5,12,26,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:200;
}
.nota-card{
  position:relative;
  background:#fff;
  width:100%;
  max-width:440px;
  max-height:90vh;
  overflow-y:auto;
  border-radius:var(--radius);
  padding:26px 24px;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.nota-close{
  position:absolute;
  top:16px;
  right:16px;
  width:30px;
  height:30px;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:17px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.nota-close:hover{background:var(--bg);color:var(--ink);}
.nota-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding-right:30px;
  margin-bottom:16px;
}
.nota-logo{width:34px;height:34px;border-radius:50%;}
.nota-header h3{margin:0;font-size:15.5px;font-weight:800;}
.nota-header p{margin:0;font-size:12.5px;color:var(--muted);}
.nota-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 14px;
  margin-bottom:14px;
}
.nota-meta div{display:flex;flex-direction:column;gap:2px;}
.nota-meta span{font-size:11px;color:var(--muted);font-weight:600;}
.nota-meta strong{font-size:13px;color:var(--ink);}
.nota-meta div:last-child{align-items:flex-end;}
.nota-table{width:100%;border-collapse:collapse;margin-bottom:14px;}
.nota-table td{
  padding:8px 0;
  border-bottom:1px solid var(--line);
  font-size:13.5px;
  vertical-align:top;
}
.nota-table td:first-child{color:var(--muted);width:38%;}
.nota-table td:last-child{color:var(--ink);font-weight:600;text-align:right;}
.nota-total-row td{border-bottom:none;padding-top:10px;font-size:14.5px;}
.nota-total-row td:first-child{color:var(--ink);font-weight:700;}
.nota-total-row td:last-child{color:var(--blue-700);font-weight:800;}
.nota-note{font-size:11px;color:var(--muted);font-style:italic;margin:0 0 18px;line-height:1.5;}
.nota-actions{display:flex;flex-direction:column;gap:10px;}

@media print{
  body *{visibility:hidden;}
  .nota-card, .nota-card *{visibility:visible;}
  .nota-card{
    position:absolute;
    inset:0;
    max-width:none;
    max-height:none;
    box-shadow:none;
    border-radius:0;
    margin:0;
  }
  .nota-close, .nota-actions{display:none !important;}
}
