/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ELECTRIC BLUE ACCENTS (Dark Mode) ===== */
:root {
  --gold: #0080ff;
  --gold-light: #4da6ff;
  --gold-dark: #0060cc;
  --gold-glow: rgba(0, 128, 255, 0.15);
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #777777;
  --border: #2a2a2a;
  --accent: #0080ff;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transform: scale(1);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: scale(1.08);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Theme toggle slide animation */
.theme-toggle .theme-icon {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .theme-icon {
  line-height: 1;
}

/* ===== LIGHT MODE THEME ===== */
[data-theme="light"] {
  --gold: #4cbb17;
  --gold-light: #7dd45a;
  --gold-dark: #3a9a10;
  --gold-glow: rgba(76, 187, 23, 0.1);
  --bg-dark: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #eeeeee;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border: #dddddd;
  --accent: #4cbb17;
}

[data-theme="light"] body {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

[data-theme="light"] .hero {
  background-color: var(--bg-dark);
}

[data-theme="light"] .trust-strip {
  background: #ffffff;
}

[data-theme="light"] .footer {
  background: #f0f0f0;
}

[data-theme="light"] .sticky-cta {
  background: rgba(245, 245, 245, 0.95);
}

[data-theme="light"] .divider {
  background: #dddddd;
}

[data-theme="light"] .dealer-auth {
  box-shadow: 0 2px 12px rgba(76, 187, 23, 0.1);
}

[data-theme="light"] .benefit-card,
[data-theme="light"] .komposisi-card,
[data-theme="light"] .testimonial-card {
  border-color: #e0e0e0;
}

[data-theme="light"] .highlight-list li {
  border-bottom-color: #e0e0e0;
}

[data-theme="light"] .faq-item {
  border-bottom-color: #e0e0e0;
}

[data-theme="light"] .price-save {
  background: rgba(76, 187, 23, 0.12);
  border-color: rgba(76, 187, 23, 0.3);
}

/* ===== ROUNDED CORNERS - UNIFIED 25PX ===== */
.hero-badge,
.hero-image,
.cta-btn,
.btn,
.benefit-card,
.testimonial-card,
.faq-item,
.faq-question,
.contact-row,
input[type="text"],
input[type="tel"],
input[type="email"],
select,
button[type="submit"],
.img-cover,
.trust-item,
.highlight-list li,
.sticky-cta .btn,
.footer a,
.section-title::before,
.price-save,
.komposisi-card,
.ingredient-icon {
  border-radius: 25px;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in,
.slide-up,
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible,
.slide-up.visible,
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.fade-in:nth-child(1),
.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.fade-in:nth-child(2),
.scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.fade-in:nth-child(3),
.scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.fade-in:nth-child(4),
.scroll-reveal:nth-child(4) { transition-delay: 300ms; }
.fade-in:nth-child(5),
.scroll-reveal:nth-child(5) { transition-delay: 400ms; }
.fade-in:nth-child(6),
.scroll-reveal:nth-child(6) { transition-delay: 500ms; }
.fade-in:nth-child(7),
.scroll-reveal:nth-child(7) { transition-delay: 600ms; }
.fade-in:nth-child(8),
.scroll-reveal:nth-child(8) { transition-delay: 700ms; }

/* ===== CONTAINER ===== */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 40px 0 32px;
  text-align: center;
  background-color: var(--bg-dark);
}

.hero-badge {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid var(--gold-glow);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-image {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 24px;
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid var(--gold-glow);
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== PRICE ===== */
.price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
}

.price-current span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.price-save {
  background: var(--gold-glow);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 25px;
  border: 1px solid var(--gold-glow);
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d0d0d;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--gold-glow);
  border-radius: 25px;
  touch-action: manipulation;
}

.cta-btn:hover,
.cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--gold-glow);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.cta-btn svg {
  width: 20px;
  height: 20px;
  fill: #0d0d0d;
}

.cta-secondary {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
  margin-top: 10px;
}

.cta-secondary:hover,
.cta-secondary:active {
  background: var(--gold-glow);
  box-shadow: none;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #111;
}

.trust-item {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.trust-item .icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
  display: block;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 28px 0;
}

.section-title {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 50px;
  background: var(--gold-glow);
  color: var(--gold);
  margin-bottom: 16px;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 14px;
  border-radius: 25px;
  text-align: center;
  transition: border-color 0.3s;
}

.benefit-card:hover {
  border-color: var(--gold);
}

.benefit-card .icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.benefit-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.benefit-card p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== KOMPOSISI / INGREDIENTS ===== */
.komposisi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.komposisi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 14px;
  border-radius: 25px;
  text-align: center;
  transition: border-color 0.3s;
}

.komposisi-card:hover {
  border-color: var(--gold);
}

.ingredient-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.komposisi-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.komposisi-card p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== HIGHLIGHTS ===== */
.highlight-list {
  list-style: none;
  padding: 0;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight-list li:last-child {
  border-bottom: none;
}

.highlight-list li .check {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 20px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}

.testimonial-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
}

.testimonial-location {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  gap: 8px;
}

.faq-question .arrow {
  font-size: 0.7rem;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-top: 10px;
}

/* ===== DEALER AUTH IMAGE ===== */
.dealer-auth {
  margin-bottom: 16px;
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 12px var(--gold-glow);
}

.dealer-auth img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== CONTACT ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.contact-row .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
}

.footer p {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer a {
  color: var(--gold);
}

/* ===== STICKY BOTTOM CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 100;
  display: flex;
  gap: 10px;
}

.sticky-cta .btn {
  flex: 1;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
}

.sticky-cta .btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0d0d0d;
}

.sticky-cta .btn-whatsapp {
  background: var(--gold);
  color: #0d0d0d;
}

/* Light mode: WhatsApp button matches green accent */
[data-theme="light"] .sticky-cta .btn-whatsapp {
  color: #ffffff;
}

/* ===== SECTION DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .price-current {
    font-size: 1.9rem;
  }

  .benefits-grid,
  .komposisi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .container {
    padding: 0 14px;
  }

  .sticky-cta {
    padding: 10px 12px;
    gap: 8px;
  }

  .sticky-cta .btn {
    padding: 13px 12px;
    font-size: 0.82rem;
    border-radius: 25px;
  }
}

@media (min-width: 481px) {
  .container {
    padding: 0 24px;
  }
}

/* ===== META AD SPECIFIC ===== */
.meta-cta-primary {
  /* Facebook Meta Conversions API target */
}

/* Safety: ensure tap targets are at least 44px */
.cta-btn,
.sticky-cta .btn {
  min-height: 48px;
}

/* ===== LIGHT MODE OVERrides for fixed backgrounds ===== */
[data-theme="light"] .section-title {
  background: rgba(76, 187, 23, 0.1);
  color: #4cbb17;
}

[data-theme="light"] .trust-strip {
  background: #ffffff;
}

[data-theme="light"] .footer {
  background: #f0f0f0;
}

[data-theme="light"] .sticky-cta {
  background: rgba(245, 245, 245, 0.95);
}

[data-theme="light"] .hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%), url('https://images.unsplash.com/photo-1496317344761-0dcc7703c0fb?auto=format&fit=crop&w=500&q=80') center/cover no-repeat;
}