/* =================================================================
   KONVEKSI21 — Landing Page Stylesheet
   File khusus untuk halaman index.php / landing page.
   TIDAK mengubah style.css, navbar.css, atau file lain.
   ================================================================= */

/* =================================================================
   1. CSS VARIABLES (landing-specific overrides)
   ================================================================= */
:root {
  --lp-section-py:      80px;
  --lp-container-max:   1400px;
  --lp-gap:             28px;
  --lp-card-radius:     18px;
  --lp-card-shadow:     0 4px 24px rgba(0,0,0,.35);
  --lp-card-shadow-hover: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(212,175,55,.18);
  --lp-transition:      .28s cubic-bezier(.4,0,.2,1);
  --lp-gold:            #d4af37;
  --lp-gold-dark:       #c9a227;
  --lp-gold-glow:       rgba(212,175,55,.22);
  --lp-text-heading:    var(--color-white, #ffffff);
  --lp-text-body:       var(--color-gray-400, #bbbbbb);
  --lp-text-muted:      var(--color-gray-600, #777777);
  --lp-bg-card:         var(--color-dark-card, #161616);
  --lp-bg-deep:         var(--color-black-deep, #0a0a0a);
  --lp-border:          var(--color-dark-border, #2a2a2a);
}

/* Light mode overrides */
html[data-theme="light"] {
  --lp-card-shadow:     0 4px 18px rgba(0,0,0,.1);
  --lp-card-shadow-hover: 0 12px 36px rgba(0,0,0,.18), 0 0 0 1px rgba(201,162,39,.25);
  --lp-gold:            #c9a227;
  --lp-gold-dark:       #a8841a;
  --lp-gold-glow:       rgba(201,162,39,.15);
  --lp-text-heading:    #1c2333;
  --lp-text-body:       #5a6480;
  --lp-text-muted:      #778090;
  --lp-bg-card:         #ffffff;
  --lp-bg-deep:         #f0f4f8;
  --lp-border:          #dde1e9;
}

/* ── Utility: Gold text ── */
.lp-gold { color: var(--lp-gold); }

/* =================================================================
   2. GLOBAL TRANSITION for landing sections
   ================================================================= */
.lp-section,
.lp-hero,
.lp-feature-card,
.lp-step-card,
.lp-testi-card,
.lp-cat-card,
.lp-cta-inner {
  transition: background-color var(--lp-transition), border-color var(--lp-transition), color var(--lp-transition);
}

/* =================================================================
   3. SECTION BASE
   ================================================================= */
.lp-section {
  padding: var(--lp-section-py) 0;
  position: relative;
  overflow: hidden;
}

/* Section header */
.lp-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.lp-subtitle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lp-gold);
  background: var(--lp-gold-glow);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1rem;
}

.lp-section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--lp-text-heading);
  margin-bottom: .875rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.lp-section-header > p {
  font-size: 1rem;
  color: var(--lp-text-body);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =================================================================
   4. HERO SECTION
   ================================================================= */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(212,175,55,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(212,175,55,.04) 0%, transparent 50%),
    var(--lp-bg-deep);
  padding: calc(var(--navbar-height, 64px) + 60px) 0 80px;
  overflow: hidden;
}

html[data-theme="light"] .lp-hero {
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(201,162,39,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(201,162,39,.05) 0%, transparent 50%),
    #eef1f4;
}

.lp-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(212,175,55,.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Hero badge */
.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--lp-gold-glow);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 999px;
  padding: .35rem .95rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-gold);
  margin-bottom: 1.5rem;
  animation: lp-fadeup .6s ease both;
}

.lp-pulse {
  width: 7px;
  height: 7px;
  background: var(--lp-gold);
  border-radius: 50%;
  animation: lp-pulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.4); }
}

/* Hero title */
.lp-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--lp-text-heading);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  animation: lp-fadeup .65s ease .1s both;
}

.lp-hero-title .lp-gold {
  background: linear-gradient(135deg, var(--lp-gold-dark), #f0c040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero subtitle */
.lp-hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--lp-text-body);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2rem;
  animation: lp-fadeup .7s ease .2s both;
}

/* Hero CTA */
.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: lp-fadeup .7s ease .3s both;
}

/* Hero stats row */
.lp-hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--lp-border);
  animation: lp-fadeup .7s ease .4s both;
}

.lp-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
}

.lp-hero-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--lp-gold);
  line-height: 1;
  letter-spacing: -.02em;
}

.lp-hero-stat-lab {
  font-size: .7rem;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Hero two-column layout */
.lp-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero visual card (right column) */
.lp-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: lp-fadein .8s ease .3s both;
}

.lp-hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lp-hero-stat-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-card-radius);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--lp-transition), border-color var(--lp-transition);
}
.lp-hero-stat-card:hover {
  border-color: rgba(212,175,55,.35);
  transform: translateY(-3px);
}

.lp-hero-stat-card-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--lp-gold);
  line-height: 1;
  margin-bottom: .3rem;
}

.lp-hero-stat-card-label {
  font-size: .68rem;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.lp-hero-badge-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-card-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lp-hero-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lp-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--lp-gold);
  flex-shrink: 0;
}

.lp-hero-badge-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--lp-text-heading);
  margin-bottom: .15rem;
}

.lp-hero-badge-text span {
  font-size: .78rem;
  color: var(--lp-text-body);
}

/* =================================================================
   5. FEATURE CARDS (Keunggulan)
   ================================================================= */
.lp-feature-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-card-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  box-shadow: var(--lp-card-shadow);
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), border-color var(--lp-transition);
  cursor: default;
}

.lp-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lp-card-shadow-hover);
  border-color: rgba(212,175,55,.3);
}

.lp-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--lp-gold-glow);
  border: 1px solid rgba(212,175,55,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--lp-gold);
  flex-shrink: 0;
  transition: background var(--lp-transition), transform var(--lp-transition);
}
.lp-feature-card:hover .lp-feature-icon {
  background: rgba(212,175,55,.22);
  transform: scale(1.08);
}

.lp-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text-heading);
  margin: 0;
  line-height: 1.3;
}

.lp-feature-desc {
  font-size: .875rem;
  color: var(--lp-text-body);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* =================================================================
   6. STEP CARDS (Cara Pemesanan) — Horizontal Desktop
   ================================================================= */
.lp-steps-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
}

/* Connector line between steps */
.lp-steps-wrapper::before {
  content: '';
  position: absolute;
  top: 44px;               /* center of step number */
  left: calc(10% + 22px);  /* offset from first step center */
  right: calc(10% + 22px);
  height: 2px;
  background: linear-gradient(90deg, var(--lp-gold-dark), var(--lp-gold), var(--lp-gold-dark));
  opacity: .35;
  z-index: 0;
}

.lp-step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 .5rem;
}

.lp-step-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-card-radius);
  padding: 1.75rem 1.25rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
  box-shadow: var(--lp-card-shadow);
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), border-color var(--lp-transition);
}

.lp-step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lp-card-shadow-hover);
  border-color: rgba(212,175,55,.3);
}

.lp-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-gold-dark), #f0c040);
  color: #0a0a0a;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--lp-gold-glow);
  flex-shrink: 0;
  z-index: 2;
  /* Sits on top of connector line */
  position: relative;
}

.lp-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lp-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--lp-gold);
}

.lp-step-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--lp-text-heading);
  margin: 0;
  line-height: 1.3;
}

.lp-step-desc {
  font-size: .78rem;
  color: var(--lp-text-body);
  line-height: 1.6;
  margin: 0;
}

/* Arrow connector (used inline between steps) */
.lp-step-arrow {
  display: none; /* hidden — we use the ::before pseudo line instead */
}

/* =================================================================
   7. CATEGORY CARDS
   ================================================================= */
.lp-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1rem;
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-card-radius);
  text-decoration: none;
  box-shadow: var(--lp-card-shadow);
  position: relative;
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), border-color var(--lp-transition);
}

.lp-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lp-card-shadow-hover);
  border-color: rgba(212,175,55,.35);
}

.lp-cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--lp-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--lp-gold);
  transition: background var(--lp-transition), transform var(--lp-transition);
}
.lp-cat-card:hover .lp-cat-icon {
  background: rgba(212,175,55,.22);
  transform: scale(1.1);
}

.lp-cat-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--lp-text-heading);
  text-align: center;
  line-height: 1.3;
}

.lp-cat-lock {
  position: absolute;
  top: .625rem;
  right: .625rem;
  font-size: .65rem;
  color: var(--lp-text-muted);
  opacity: .6;
}

/* =================================================================
   8. TESTIMONIAL CARDS
   ================================================================= */
.lp-testi-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-card-radius);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--lp-card-shadow);
  position: relative;
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), border-color var(--lp-transition);
}

.lp-testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-card-shadow-hover);
  border-color: rgba(212,175,55,.25);
}

/* Quote mark */
.lp-testi-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(212,175,55,.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

.lp-testi-stars {
  display: flex;
  gap: .2rem;
  color: var(--lp-gold);
  font-size: .85rem;
}

.lp-testi-text {
  font-size: .9rem;
  color: var(--lp-text-body);
  line-height: 1.75;
  font-style: italic;
  margin: 0;
  flex: 1;
}

.lp-testi-author {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lp-border);
}

.lp-testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-gold-dark), #f0c040);
  color: #0a0a0a;
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px var(--lp-gold-glow);
}

.lp-testi-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--lp-text-heading);
  line-height: 1.2;
}

.lp-testi-city {
  font-size: .75rem;
  color: var(--lp-text-muted);
  margin-top: .15rem;
}

/* =================================================================
   9. CTA SECTION
   ================================================================= */
.lp-cta {
  background:
    radial-gradient(ellipse at center, rgba(212,175,55,.07) 0%, transparent 65%),
    var(--lp-bg-deep);
}

html[data-theme="light"] .lp-cta {
  background:
    radial-gradient(ellipse at center, rgba(201,162,39,.08) 0%, transparent 65%),
    #eef1f4;
}

.lp-cta-inner {
  background: var(--lp-bg-card);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 24px;
  padding: 4rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(212,175,55,.08);
}

html[data-theme="light"] .lp-cta-inner {
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
}

/* =================================================================
   10. PRODUK UNGGULAN SECTION (for logged in users)
   ================================================================= */
#produk-unggulan .product-card {
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), border-color var(--lp-transition);
}
#produk-unggulan .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4), 0 0 0 1px rgba(212,175,55,.2);
}

/* =================================================================
   11. ANIMATIONS
   ================================================================= */
@keyframes lp-fadeup {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lp-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal (JS adds .lp-visible) */
.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.lp-reveal.lp-visible {
  opacity: 1;
  transform: translateY(0);
}
.lp-reveal-delay-1 { transition-delay: .1s; }
.lp-reveal-delay-2 { transition-delay: .2s; }
.lp-reveal-delay-3 { transition-delay: .3s; }
.lp-reveal-delay-4 { transition-delay: .4s; }
.lp-reveal-delay-5 { transition-delay: .5s; }

/* =================================================================
   12. RESPONSIVE
   ================================================================= */

/* Tablet ≤ 991px */
@media (max-width: 991.98px) {
  :root {
    --lp-section-py: 64px;
  }

  .lp-hero {
    padding: calc(var(--navbar-height, 64px) + 40px) 0 64px;
    min-height: auto;
  }

  .lp-hero-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lp-hero-visual { order: -1; }

  .lp-hero-title { font-size: clamp(2rem, 5vw, 3rem); }

  .lp-steps-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .lp-steps-wrapper::before { display: none; }

  .lp-section-header { margin-bottom: 44px; }
}

/* Mobile ≤ 767px */
@media (max-width: 767.98px) {
  :root {
    --lp-section-py: 48px;
  }

  .lp-hero {
    padding: calc(var(--navbar-height, 64px) + 32px) 0 48px;
  }

  .lp-hero-title { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .lp-hero-subtitle { font-size: .95rem; }
  .lp-hero-stats { gap: 1.25rem; }
  .lp-hero-stat-num { font-size: 1.35rem; }

  .lp-hero-actions { gap: .75rem; }
  .lp-hero-actions .btn { width: 100%; justify-content: center; }

  .lp-steps-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .lp-section-title { font-size: clamp(1.5rem, 6vw, 2rem); }

  .lp-feature-card { padding: 1.5rem; }
  .lp-testi-card   { padding: 1.5rem; }
  .lp-cta-inner    { padding: 2.5rem 1.25rem; }

  .lp-section-header { margin-bottom: 36px; }
  .lp-section-header > p { font-size: .9rem; }
}

/* Extra small ≤ 480px */
@media (max-width: 479.98px) {
  .lp-steps-wrapper { grid-template-columns: 1fr; }
  .lp-hero-stat-grid { grid-template-columns: 1fr 1fr; }
}
