/* Pola grid ala kertas gambar teknik (blueprint) untuk latar hero & footer */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(237, 233, 225, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 233, 225, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.blueprint-grid-fine {
  background-image:
    linear-gradient(rgba(237, 233, 225, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 233, 225, 0.04) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* Sudut siku ala anotasi gambar teknik, dipakai di panel/kartu terpilih */
.corner-tick {
  position: relative;
}
.corner-tick::before,
.corner-tick::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: currentColor;
  opacity: 0.5;
}
.corner-tick::before {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}
.corner-tick::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

/* Garis putus-putus yang "digambar" saat hero dimuat */
.draw-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.6s ease-out forwards;
}
.draw-line.d1 { animation-delay: 0.1s; }
.draw-line.d2 { animation-delay: 0.25s; }
.draw-line.d3 { animation-delay: 0.4s; }
.draw-line.d4 { animation-delay: 0.55s; }
.draw-line.d5 { animation-delay: 0.7s; }
.draw-line.d6 { animation-delay: 0.85s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .draw-line {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.node-pop {
  opacity: 0;
  transform: scale(0.6);
  animation: pop 0.4s ease-out forwards;
}
.node-pop.d1 { animation-delay: 0.5s; }
.node-pop.d2 { animation-delay: 0.65s; }
.node-pop.d3 { animation-delay: 0.8s; }
.node-pop.d4 { animation-delay: 0.95s; }
.node-pop.d5 { animation-delay: 1.1s; }
.node-pop.d6 { animation-delay: 1.25s; }

@keyframes pop {
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .node-pop { animation: none; opacity: 1; transform: none; }
}

html { scroll-behavior: smooth; }

::selection {
  background: #F2A71B;
  color: #10202A;
}

/* ── Floating Buttons (WhatsApp + Scroll-to-Top) ───────────── */
.floating-buttons {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* WhatsApp */
.floating-btn--wa {
  background: #25D366;
  color: #fff;
  position: relative;
}

.floating-btn--wa svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* Label tooltip WhatsApp */
.floating-btn__label {
  position: absolute;
  right: calc(100% + 0.6rem);
  background: #25D366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: 'IBM Plex Sans', sans-serif;
}

.floating-btn__label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #25D366;
  border-right: 0;
}

.floating-btn--wa:hover .floating-btn__label,
.floating-btn--wa:focus .floating-btn__label {
  opacity: 1;
  transform: translateX(0);
}

/* Scroll-to-Top */
.floating-btn--top {
  background: #F2A71B;
  color: #10202A;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
}

.floating-btn--top svg {
  width: 1.25rem;
  height: 1.25rem;
}

.floating-btn--top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-btn--top:hover {
  transform: translateY(-3px) scale(1.08);
}

/* ── Visitor Counter (footer) ──────────────────────────────── */
.visitor-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(237,233,225,0.7);
}

.visitor-stat__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #F2A71B;
  flex-shrink: 0;
}

.visitor-stat__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #F7F5F1;
  line-height: 1.1;
}

.visitor-stat__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(237,233,225,0.5);
}

.visitor-stat__divider {
  width: 1px;
  height: 2rem;
  background: rgba(62,92,105,0.6);
}

@media (max-width: 480px) {
  .floating-buttons {
    bottom: 1.25rem;
    right: 1rem;
  }
  .floating-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
  .floating-btn__label {
    display: none;
  }
}
