/* =============================================
   TRACER STUDY — BERANDA (CLEAN, WOW & RESPONSIVE)
   ============================================= */

/* ===== SCROLL REVEAL & KEYFRAMES ===== */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered transition delays */
.stat-grid .stat-card:nth-child(1) { transition-delay: 0.05s; }
.stat-grid .stat-card:nth-child(2) { transition-delay: 0.12s; }
.stat-grid .stat-card:nth-child(3) { transition-delay: 0.19s; }
.stat-grid .stat-card:nth-child(4) { transition-delay: 0.26s; }

.steps-grid .step-card:nth-child(1) { transition-delay: 0.05s; }
.steps-grid .step-card:nth-child(2) { transition-delay: 0.12s; }
.steps-grid .step-card:nth-child(3) { transition-delay: 0.19s; }

.layanan-grid .layanan-card:nth-child(1) { transition-delay: 0.05s; }
.layanan-grid .layanan-card:nth-child(2) { transition-delay: 0.12s; }
.layanan-grid .layanan-card:nth-child(3) { transition-delay: 0.19s; }
.layanan-grid .layanan-card:nth-child(4) { transition-delay: 0.26s; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) 24px clamp(60px, 9vh, 100px);
  text-align: center;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #064E3B 0%, #043E2F 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-slides {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ECFDF5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-tag svg {
  width: 15px;
  height: 15px;
  fill: #34D399;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 850;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

.btn-primary .btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(5px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 13px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: #FFFFFF;
  color: #064E3B;
  border-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ===== SECTIONS COMMON ===== */
.section {
  padding: clamp(64px, 8vw, 96px) 24px;
  position: relative;
}

.section-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

/* Badges */
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-emerald {
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}

.badge-dark {
  color: #064E3B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}

.badge-glow {
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

/* ===== STATISTIK SECTION ===== */
.statistik {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
}

.statistik::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.stat-header {
  text-align: center;
  margin-bottom: 44px;
}

.stat-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-header p {
  font-size: 0.98rem;
  color: #64748B;
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

/* Accent border bar on hover */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #059669);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #A7F3D0;
  box-shadow: 0 16px 36px -8px rgba(6, 78, 59, 0.1);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #ECFDF5;
  color: #059669;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  background: #064E3B;
  color: #FFFFFF;
  transform: scale(1.08) rotate(4deg);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.stat-number-wrap {
  margin-bottom: 4px;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 2.6rem);
  font-weight: 850;
  color: #0F172A;
  line-height: 1.1;
  letter-spacing: -1px;
}

.stat-card:hover .stat-number {
  color: #059669;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
}

/* ===== CHART SECTION ===== */
.chart-section {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
}

.chart-header {
  text-align: center;
  margin-bottom: 36px;
}

.chart-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.chart-header p {
  font-size: 0.95rem;
  color: #64748B;
  max-width: 600px;
  margin: 0 auto;
}

.chart-metrics-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px 28px;
  max-width: 780px;
  margin: 0 auto 36px;
}

.metric-item {
  text-align: center;
  flex: 1;
}

.metric-val {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 800;
  color: #064E3B;
  margin-bottom: 2px;
}

.metric-lbl {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 600;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: #CBD5E1;
  flex-shrink: 0;
}

.chart-container-wrap {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.chart-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  height: clamp(280px, 45vh, 380px);
  position: relative;
  transition: all 0.3s ease;
}

.chart-card:hover {
  box-shadow: 0 12px 32px rgba(6, 78, 59, 0.06);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.how-header {
  text-align: center;
  margin-bottom: 48px;
}

.how-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.how-header p {
  font-size: 0.95rem;
  color: #64748B;
  max-width: 580px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid rgba(180, 229, 201, 0.45);
  border-radius: 24px;
  padding: 36px 28px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(35, 122, 71, 0.05), 0 1px 3px rgba(0, 0, 0, 0.01);
  position: relative;
  overflow: hidden;
}

/* Premium Top line indicator */
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #237A47 0%, #34D399 50%, #1B6339 100%);
  opacity: 0.8;
  transition: height 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(35, 122, 71, 0.25);
  box-shadow: 0 20px 40px -15px rgba(35, 122, 71, 0.15), 0 0 0 1px rgba(35, 122, 71, 0.2);
}

.step-card:hover::before {
  height: 6px;
}

.step-number-circle {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #237A47;
  background: #EBF6EF;
  border: 1px solid #B4E5C9;
  box-shadow: 0 2px 6px rgba(35, 122, 71, 0.04);
  transition: all 0.3s ease;
  margin: 0;
}

.step-card:hover .step-number-circle {
  background: linear-gradient(135deg, #237A47 0%, #1B6339 100%);
  color: #FFFFFF;
  border-color: #237A47;
  box-shadow: 0 4px 10px rgba(35, 122, 71, 0.15);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, #EBF6EF 0%, #ffffff 100%);
  color: #237A47;
  border: 1.5px solid rgba(35, 122, 71, 0.15);
  box-shadow: 0 4px 10px rgba(35, 122, 71, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover .step-icon {
  background: linear-gradient(135deg, #237A47 0%, #1B6339 100%);
  color: #FFFFFF;
  border-color: #237A47;
  box-shadow: 0 8px 20px rgba(35, 122, 71, 0.25);
  transform: scale(1.08) rotate(4deg);
}

.step-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
  transition: color 0.3s ease;
}

.step-card:hover h3 {
  color: #237A47;
}

.step-card p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.65;
  margin: 0;
}
/* ===== LAYANAN SECTION ===== */
.layanan {
  background: #FFFFFF;
}

.layanan-header {
  text-align: center;
  margin-bottom: 48px;
}

.layanan-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.layanan-header p {
  font-size: 0.95rem;
  color: #64748B;
  max-width: 580px;
  margin: 0 auto;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.layanan-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid rgba(180, 229, 201, 0.45);
  border-radius: 24px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(35, 122, 71, 0.05), 0 1px 3px rgba(0, 0, 0, 0.01);
  position: relative;
  overflow: hidden;
}

/* Premium Top Gradient line */
.layanan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #237A47 0%, #34D399 50%, #1B6339 100%);
  opacity: 0.8;
  transition: height 0.3s ease;
}

.layanan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(35, 122, 71, 0.25);
  box-shadow: 0 20px 40px -15px rgba(35, 122, 71, 0.15), 0 0 0 1px rgba(35, 122, 71, 0.2);
}

.layanan-card:hover::before {
  height: 6px;
}

.layanan-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #EBF6EF 0%, #ffffff 100%);
  color: #237A47;
  border: 1.5px solid rgba(35, 122, 71, 0.15);
  box-shadow: 0 4px 10px rgba(35, 122, 71, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.layanan-card:hover .layanan-icon {
  background: linear-gradient(135deg, #237A47 0%, #1B6339 100%);
  color: #FFFFFF;
  border-color: #237A47;
  box-shadow: 0 8px 20px rgba(35, 122, 71, 0.25);
  transform: scale(1.08) rotate(4deg);
}

.layanan-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.layanan-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
  transition: color 0.3s ease;
}

.layanan-card:hover h3 {
  color: #237A47;
}

.layanan-card p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Premium Pill Link Button */
.layanan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #237A47;
  background: #EBF6EF;
  border: 1px solid #B4E5C9;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  box-shadow: 0 2px 6px rgba(35, 122, 71, 0.04);
}

.layanan-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.layanan-card:hover .layanan-link {
  background: linear-gradient(135deg, #237A47 0%, #1B6339 100%);
  color: #FFFFFF;
  border-color: #237A47;
  box-shadow: 0 6px 16px rgba(35, 122, 71, 0.2);
}

.layanan-card:hover .layanan-link svg {
  transform: translateX(4px);
}

/* ===== CTA BANNER SECTION ===== */
.cta-section {
  padding: 60px 24px 80px;
  background: #FFFFFF;
}

.cta-banner {
  background: linear-gradient(135deg, var(--green-hover) 0%, var(--green-dark) 100%);
  border-radius: 24px;
  padding: 32px 40px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(35, 122, 71, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -5%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  text-align: left;
}

.cta-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.35;
}

.cta-content p {
  font-size: clamp(0.85rem, 1.8vw, 0.94rem);
  color: rgba(229, 231, 235, 0.9);
  line-height: 1.6;
  margin-bottom: 0;
}

.cta-action-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  background: var(--green-light);
}

.btn-cta-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (min-width: 992px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .layanan-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .layanan-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .chart-metrics-row { flex-direction: column; gap: 16px; padding: 20px; }
  .metric-divider { width: 100%; height: 1px; }
  .hero { min-height: 480px; }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    gap: 20px;
    padding: 32px 24px;
    border-radius: 20px;
  }
  .cta-content {
    max-width: 100%;
    text-align: center;
  }
  .cta-content p {
    margin-bottom: 8px;
  }
  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .stat-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .layanan-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps-grid   { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; margin: 0 auto; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .stat-grid    { grid-template-columns: 1fr; gap: 10px; }
  .layanan-grid { grid-template-columns: 1fr; gap: 10px; }
  .steps-grid   { grid-template-columns: 1fr !important; gap: 10px !important; }
  .hero { min-height: 400px; padding: 60px 16px 40px; }
  .section { padding: 40px 16px; }
  .section-container { padding: 0; }
  .chart-metrics-row { padding: 16px; }
  .cta-banner { padding: 24px 16px; border-radius: 16px; }
}