:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --muted: #6b7280;
  --accent: #f97316;
  --accent-light: #fde68a;
  --card: #fcf5ed;
  --cardindex:#ffffff;
  --shadow: rgba(249, 115, 22, 0.15);
  
}

/* ==== HOME & PORTFOLIO SLIDER ==== */

.hero h1 span {
  color: var(--accent);
}

/* ========== FEATURES SECTION ========== */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.feature-item {
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 240px;
  background: var(--cardindex);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.20);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-weight: 700;
  color: var(--fg);
  margin-top: 6px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
  line-height: 1.4;
}

/* efek hover biar terasa interaktif */
.feature-item:hover {
  box-shadow: 0 4px 12px rgba(255, 72, 0, 0.856);
  transform: translateY(-5px);
}

/* Responsive tweak */
@media (max-width: 600px) {
  .feature-item {
    max-width: 100%;
  }
}

/* Slider Section */
.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.mockup-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  scroll-snap-type: x mandatory;
}

.mockup-scroll::-webkit-scrollbar {
  height: 8px;
}

.mockup-scroll::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.mockup-container {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  max-width: 85vw;
  aspect-ratio: 9 / 19.5;
  scroll-snap-align: start;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mockup-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  z-index: 5;
}
.nav-btn:active {
  transform: translateY(-50%) scale(0.9);
  background: rgba(255, 255, 255, 0.7);
}

.nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.nav-left {
  left: -20px;
}

.nav-right {
  right: -20px;
}

@media (max-width: 600px) {
  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .nav-left {
    left: 0;
  }
  .nav-right {
    right: 0;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px;
}

/* --- NAVIGATION (DESKTOP) --- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--shadow);
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.3px;
  color: var(--fg);
}
.brand span {
  color: var(--accent);
}
.brand img.logo {
  height: 60px;       /* sesuaikan tinggi sesuai kebutuhan */
  width: auto;        /* biar proporsional */
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none; /* buang garis bawah bawaan link */
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(249, 115, 22, 0.05);
}

.nav-links a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px var(--shadow);
}

/* --- SIDEBAR (MOBILE) --- */
/* --- SIDEBAR (MOBILE) --- */
.menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--accent);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background: var(--card);
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.15);
  transition: left 0.3s ease;
  z-index: 100;
  padding-top: 70px;
}

.sidebar.show {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar a {
  display: block;
  padding: 14px 20px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--accent);
  color: white;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 90;
}

.overlay.show {
  display: block;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}


/* --- PANEL --- */
.panel {
  margin-top: 18px;
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

}


@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 14px;
  color: var(--muted);
}
input[type="number"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 16px;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--shadow);
  text-decoration: none;
}
.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.hero a {
  text-decoration: none;
}

.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.survey-btn {
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), #fb923c);
  color: white;
  box-shadow: 0 8px 30px var(--shadow);
  animation: float 2.6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.whatsapp {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}
.chip.active {
  background: var(--accent);
  color: #fff;
  border: none;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none; /* penting supaya link ga biru */
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card .meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card .title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  white-space: nowrap;        /* satu baris saja */
  overflow: hidden;           /* buang teks kelebihan */
  text-overflow: ellipsis;    /* tampilkan “...” */
}

.kats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.kat {
  background: var(--accent-light);
  color: #92400e;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100px;
  text-overflow: ellipsis;
  overflow: hidden;
}

footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

/* #CALC */
.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.calc-table th,
.calc-table td {
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px;
  text-align: center;
}

.calc-table th {
  background: var(--card);
  color: var(--fg);
}

.calc-table td label {
  cursor: pointer;
}

.total-box {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .calc-table th,
  .calc-table td {
    font-size: 0.9rem;
    padding: 6px;
  }
}
/* Efek CTA animasi */
.cta-animated {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

/* Saat hover: sedikit membesar dan naik */
.cta-animated:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 20px rgba(255, 89, 0, 0.3);
}

/* Efek "pulse" perlahan agar menarik perhatian */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 89, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 89, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 89, 0, 0);
  }
}

.cta-animated {
  animation: pulse 2s infinite;
}







/* 🌟 HERO AFFILIATE TANPA KOTAK */
.affiliate-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  background: none; /* 🧼 tidak pakai background warna kotak */
  color: var(--fg); /* pakai warna teks utama situsmu */
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.affiliate-left {
  flex: 1 1 400px;
  max-width: 600px;
}

.affiliate-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--accent);
}

.affiliate-title span {
  color: var(--accent);
}

.affiliate-subtitle {
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 480px;
  color: var(--muted);
}

.affiliate-cta .btn {
  margin-right: 12px;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.affiliate-right {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.affiliate-right img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* 📱 Responsif */
@media (max-width: 768px) {
  .affiliate-hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .affiliate-left, .affiliate-right {
    max-width: 100%;
  }

  .affiliate-title {
    font-size: 2rem;
  }
}



/* 🌟 POPUP PROMO */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.promo-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.promo-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.promo-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1.2);
}

.promo-popup h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #333;
}

.promo-popup ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  text-align: left;
}

.promo-popup ul li {
  padding: 8px 0;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}


/* Responsif */
@media (max-width: 500px) {
  .promo-popup {
    width: 70%;
    padding: 18px;
    border-radius: 12px;
  }

  .promo-popup h2 {
    font-size: 1.3rem;
  }

  .promo-popup ul li {
    font-size: 0.8rem;
  }

  #usePromo {
    font-size: 0.8rem;
    padding: 10px;
  }

  .promo-timer {
    font-size: 1.1rem;
    padding: 6px 12px;
  }
}



/* promo timer */
.promo-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.95rem;
  color: #444;
}

.timer-clock {
  font-weight: bold;
  font-family: monospace;
  font-size: 1.2rem;
  background: #f5f6ff;
  padding: 6px 12px;
  border-radius: 10px;
  color: #222;
  border: 1px solid #ddd;
}