/* ============================================================
   Cak Logik — Landing Page Style
   Tema: biru (logika) + kuning/oranye (energi muda), gelap navy.
   ============================================================ */

:root {
  --navy-deep: #060a1e;
  --navy: #0a1030;
  --navy-card: #121a3f;
  --blue: #2196f3;
  --blue-light: #4fc3f7;
  --blue-soft: #b3e5fc;
  --yellow: #ffc107;
  --orange: #ff9800;
  --orange-deep: #ff7043;
  --text-primary: #f4f7ff;
  --text-secondary: #aeb9e0;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--text-primary);
  font-family: "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .font-display { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; }

::selection { background: rgba(255, 193, 7, .35); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: #2a3560; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a4a85; }

/* Latar: blob neon bergerak */
.bg-blob {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(180deg, #060a1e, #0a1030 55%, #060a1e);
}
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: .22;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; top: -140px; left: -120px;
  background: radial-gradient(circle, var(--blue-light), transparent 70%); }
.blob-2 { width: 420px; height: 420px; top: 12%; right: -160px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  animation-delay: -6s; }
.blob-3 { width: 520px; height: 520px; bottom: -180px; left: 22%;
  background: radial-gradient(circle, var(--yellow), transparent 70%);
  animation-delay: -11s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -30px) scale(1.05); }
  66% { transform: translate(-18px, 22px) scale(.97); }
}

/* Titik latar */
.bg-dots {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(179,229,252,.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* Teks gradien brand */
.text-brand {
  background: linear-gradient(100deg, #4fc3f7, #ffc107 55%, #ff9800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Kartu kaca */
.glass {
  background: rgba(18, 26, 63, .55);
  border: 1px solid rgba(244, 247, 255, .07);
  backdrop-filter: blur(10px);
}
.glass-blue { border-color: rgba(79, 195, 247, .28); }
.glass-yellow { border-color: rgba(255, 193, 7, .28); }
.glass-orange { border-color: rgba(255, 152, 0, .28); }

/* Tombol gradien */
.btn-brand {
  background: linear-gradient(100deg, #4fc3f7, #ffc107 60%, #ff9800);
  color: #0a1030 !important;
  box-shadow: 0 10px 28px rgba(255, 152, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 152, 0, .5); }

/* Reveal saat scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* Node flowchart mini */
.mini-node {
  border: 1.5px solid;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.animate-float { animation: nodeFloat 5s ease-in-out infinite; }
.animate-float-2 { animation: nodeFloat 6s ease-in-out infinite; animation-delay: -2.5s; }
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}

/* Tab bahasa */
.lang-tab { transition: all .2s ease; }
.lang-tab.active {
  background: linear-gradient(100deg, #4fc3f7, #ffc107 60%, #ff9800);
  color: #0a1030;
}
.lang-tab:not(.active) { color: #aeb9e0; }
.lang-tab:not(.active):hover { background: rgba(79,195,247,.12); }

/* Blok kode */
.code-block { background: #0a1128; border: 1px solid rgba(244,247,255,.08); }
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(244,247,255,.06);
  background: rgba(244,247,255,.03);
}
.dot { width: 12px; height: 12px; border-radius: 9999px; }

/* Navbar */
.navbar { background: rgba(6,10,30,.72); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(244,247,255,.06); }

/* Link footer */
.footer-link { color: var(--blue-soft); transition: color .2s; }
.footer-link:hover { color: var(--yellow); }
