/* ==========================================================================
   AMPX PRO — Minimalist Engineering Landing Page
   Warna Normal / Bersih / Anti-AI Slop
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-subtle: #64748b;
  
  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;
  
  /* Warna Normal (Standar Desain Bersih, Bukan Gradien AI) */
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
  --color-navy: #0f172a;
  --color-navy-hover: #1e293b;
  --color-red: #dc2626;
  --color-red-hover: #b91c1c;
  --color-green: #15803d;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

/* Page Container */
.page-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

/* Header */
.header {
  width: 100%;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

/* Visual Produk 3D */
.product-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.product-image {
  width: 100%;
  max-width: 410px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
}

/* Intro Text */
.intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Action Buttons */
.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.985);
}

/* Transmitter: Biru Normal Standar */
.btn-transmitter {
  background-color: var(--color-blue);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-transmitter:hover {
  background-color: var(--color-blue-hover);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Receiver: Hitam / Navy Normal */
.btn-receiver {
  background-color: var(--color-navy);
  color: #ffffff;
  border-color: #020617;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-receiver:hover {
  background-color: var(--color-navy-hover);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

/* TikTok: Putih dengan Border Merah Normal */
.btn-tiktok {
  background-color: #ffffff;
  color: var(--color-red);
  border: 1.5px solid #f87171;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.btn-tiktok:hover {
  background-color: #fef2f2;
  border-color: var(--color-red);
}

/* Keterangan Keamanan */
.security-note {
  font-size: 0.8rem;
  color: var(--color-green);
  font-weight: 700;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* Footer */
.footer {
  font-size: 0.76rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Petunjuk Panah Pojok Kanan Atas (TikTok Guide)
   Bergerak Naik Turun Mengarah ke Titik Tiga
   ========================================================================== */
.tiktok-arrow-guide {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
  animation: fadeIn 0.25s ease;
}

.tiktok-arrow-guide.hidden {
  display: none !important;
}

.arrow-bounce {
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5);
  animation: bounceUpDown 0.85s ease-in-out infinite alternate;
}

.arrow-svg {
  width: 26px;
  height: 26px;
}

@keyframes bounceUpDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-14px);
  }
}

.arrow-tooltip {
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.step-row.highlight {
  border-color: #93c5fd;
  background: #eff6ff;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-blue);
  padding-top: 0.05rem;
}

.step-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.step-detail strong {
  font-size: 0.86rem;
  color: var(--text-primary);
}

.step-detail span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.modal-note {
  font-size: 0.78rem;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  line-height: 1.45;
}

.modal-btn-confirm {
  width: 100%;
  background: var(--color-navy);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.modal-btn-confirm:hover {
  background: var(--color-navy-hover);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
