/* ============================================================
   Zalin Labs — zalinlabs.com (G399)
   Static landing page — Cloudflare Workers static assets ready
   Palette per approved design: dark navy + periwinkle accent
   G399: hero auto-slide 4 fokus (gaya NVIDIA) + kartu fokus 4
   ============================================================ */

:root {
  --bg-dark: #05060f;
  --bg-dark-2: #070a16;
  --bg-card-dark: #0d1322;
  --bg-light: #f6f7fb;
  --bg-card-light: #ffffff;
  --accent: #6b7cff;
  --accent-strong: #5a6af5;
  --accent-soft: rgba(107, 124, 255, 0.16);
  --text-dark: #0e1220;
  --text-muted-dark: #565e76;
  --text-light: #eef0fa;
  --text-muted-light: #9aa3bf;
  --line-light: rgba(255, 255, 255, 0.09);
  --line-dark: rgba(14, 18, 32, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 30px rgba(7, 10, 22, 0.10);
  --shadow-glow: 0 0 60px rgba(107, 124, 255, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hs-dur: 5000ms; /* durasi auto-slide hero 5 detik (permintaan Boss G417, RK-PPJGAI) — sinkron dengan script.js */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

section[id] { scroll-margin-top: 84px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

.accent { color: var(--accent); }

/* ---------- a11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- typography ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-sub {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--text-muted-dark);
  font-size: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(90, 106, 245, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(90, 106, 245, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-light);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px 30px; font-size: 0.98rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; min-height: 40px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(5, 6, 15, 0.92);
  border-bottom-color: var(--line-light);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px; white-space: nowrap; flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

/* Logo asli Zalin Labs (zalinlabs-icon.png, permintaan Boss G417) */
.brand-img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.foot-brand .brand-img { width: 40px; height: 40px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: inline-block;
  padding: 9px 10px; white-space: nowrap;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted-light);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: #fff; }

.nav-cta-item { display: none; margin-left: 10px; }

/* G472: CTA navbar ramping agar muat saat bahasa ID | G534: tombol nav lebih ramping (tinggi 34px) per arahan Boss RK-PILECB */
.nav-cta-only { padding: 6px 14px; min-height: 34px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--text-light);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================================================
   HERO SLIDER (G399) — auto-slide 4 fokus, gaya NVIDIA
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-track {
  display: flex;
  width: 400%;
  transition: transform 0.8s ease-out;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 25%;
  width: 25%;
  min-height: clamp(560px, calc(100vh - 72px), 720px);
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 44px 0 130px;
}

/* latar per-slide: aksen berbeda, satu keluarga palet */
.hero-slide.s1 {
  background:
    radial-gradient(1000px 480px at 78% 8%, rgba(107, 124, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 90%, rgba(107, 124, 255, 0.08), transparent 60%),
    var(--bg-dark);
}
.hero-slide.s2 {
  background:
    radial-gradient(980px 500px at 80% 10%, rgba(151, 71, 255, 0.15), transparent 62%),
    radial-gradient(680px 400px at 6% 88%, rgba(107, 124, 255, 0.07), transparent 60%),
    var(--bg-dark);
}
.hero-slide.s3 {
  background:
    radial-gradient(980px 500px at 80% 12%, rgba(27, 178, 138, 0.14), transparent 62%),
    radial-gradient(680px 420px at 6% 88%, rgba(107, 124, 255, 0.06), transparent 60%),
    var(--bg-dark);
}
.hero-slide.s4 {
  background:
    radial-gradient(980px 500px at 80% 10%, rgba(240, 130, 30, 0.12), transparent 62%),
    radial-gradient(680px 420px at 6% 88%, rgba(107, 124, 255, 0.07), transparent 60%),
    var(--bg-dark);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.lead {
  color: var(--text-muted-light);
  font-size: 1.02rem;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* animasi masuk konten slide aktif */
.hero-slide .hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > *:nth-child(1) { transition-delay: 0.10s; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { transition-delay: 0.18s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { transition-delay: 0.26s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { transition-delay: 0.34s; }

.hero-slide .hero-visual {
  opacity: 0.3;
  transform: scale(0.97);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.hero-slide.is-active .hero-visual { opacity: 1; transform: none; }

/* ---------- visual slide 1: mockup stage (G402, ala contoh Boss) ---------- */
.hero-visual {
  position: relative; align-self: center;
  min-height: 430px;
}

.stage {
  position: relative;
  height: 540px;
}

.stage-glow {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  width: 620px;
  max-width: 110%;
  height: 300px;
  background: radial-gradient(48% 52% at 50% 62%, rgba(43, 110, 255, 0.32), rgba(43, 110, 255, 0.1) 58%, transparent 78%);
  filter: blur(4px);
}

.stage-platform {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 92%);
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 108, 255, 0.4), rgba(47, 108, 255, 0.16) 58%, rgba(47, 108, 255, 0.05) 82%, transparent 100%);
  box-shadow: 0 0 54px 6px rgba(47, 108, 255, 0.26), inset 0 2px 18px rgba(140, 180, 255, 0.26);
}

.stage-orbit {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 600px;
  max-width: 118%;
  height: 240px;
  transform: translate(-50%, -50%) rotate(-9deg);
  border-radius: 50%;
  border: 1.5px solid rgba(122, 156, 255, 0.3);
  box-shadow: 0 0 26px rgba(88, 126, 255, 0.2), inset 0 0 30px rgba(88, 126, 255, 0.12);
}

.phone-a {
  position: absolute;
  width: 296px;
  left: 9%;
  bottom: 34px;
  z-index: 3;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.55));
  animation: hoverphone 7s ease-in-out infinite alternate;
}

.phone-b {
  position: absolute;
  width: 262px;
  right: 3%;
  bottom: 118px;
  z-index: 2;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.55));
  animation: hoverphone 8s 0.6s ease-in-out infinite alternate;
}

@keyframes hoverphone {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ikon aplikasi melayang gaya contoh (kotak rounded gradient) */
.ficon {
  position: absolute;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  z-index: 4;
  animation: floaty 6s ease-in-out infinite alternate;
}
.fi-bulb  { background: linear-gradient(145deg, #8b5cf6, #6d28d9); box-shadow: 0 10px 26px rgba(139, 92, 246, 0.45); color: #fff; }
.fi-cloud { background: linear-gradient(145deg, #38bdf8, #0369a1); box-shadow: 0 10px 26px rgba(56, 189, 248, 0.4); color: #fff; }
.fi-chart { background: linear-gradient(145deg, #60a5fa, #2563eb); box-shadow: 0 10px 26px rgba(96, 165, 250, 0.42); color: #fff; }
.fi-game  { background: linear-gradient(145deg, #a78bfa, #7c3aed); box-shadow: 0 10px 26px rgba(167, 139, 250, 0.42); color: #fff; }
.fi-robot { background: linear-gradient(145deg, #fb7185, #e11d48); box-shadow: 0 10px 26px rgba(251, 113, 133, 0.4); color: #fff; }
.fi-globe { background: linear-gradient(145deg, #34d399, #059669); box-shadow: 0 10px 26px rgba(52, 211, 153, 0.4); color: #fff; }
.fi-gear  { background: linear-gradient(145deg, #fbbf24, #d97706); box-shadow: 0 10px 26px rgba(251, 191, 36, 0.38); color: #fff; }

/* ---------- strip fitur hero (6 kemampuan, ala contoh Boss) ---------- */
.hero-feats {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.hero-feats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 72px;
}

.feat:first-child { border-left: none; padding-left: 0; }

.feat-ic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  border: 1px solid rgba(150, 170, 255, 0.24);
  background: linear-gradient(145deg, rgba(107, 124, 255, 0.16), rgba(107, 124, 255, 0.04));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aeb8ff;
}

.feat-txt { display: block; min-width: 0; }

.feat-t {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-s {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted-light);
  line-height: 1.35;
  margin-top: 2px;
}

/* ---------- floating chips (semua slide) ---------- */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 13px;
  background: rgba(13, 19, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  animation: floaty 6s ease-in-out infinite alternate;
  max-width: 250px;
  z-index: 2;
}

.chip-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.ic-chart { background: rgba(107, 124, 255, 0.2); color: #97a3ff; }
.ic-pin   { background: rgba(56, 224, 175, 0.18); color: #4fe3b1; }
.ic-search{ background: rgba(167, 108, 255, 0.2); color: #c396ff; }
.ic-doc   { background: rgba(64, 140, 255, 0.2); color: #7fb0ff; }
.ic-code  { background: rgba(255, 176, 86, 0.18); color: #ffc37e; }
.ic-gear  { background: rgba(255, 120, 148, 0.16); color: #ff92aa; }
.ic-violet{ background: rgba(151, 71, 255, 0.2); color: #c396ff; }

.chip-v2a { top: 6%; left: 3%; animation-delay: 0s; }
.chip-v2b { top: 40%; right: 0%; animation-delay: 1.2s; }
.chip-v2c { bottom: 8%; left: 8%; animation-delay: 2.4s; }

.chip-v3a { top: 5%; right: 2%; animation-delay: 0.4s; }
.chip-v3b { top: 42%; left: 0%; animation-delay: 1.6s; }
.chip-v3c { bottom: 7%; right: 6%; animation-delay: 2.8s; }

.chip-v4a { top: 8%; left: 2%; animation-delay: 0.2s; }
.chip-v4b { top: 44%; right: 0%; animation-delay: 1.4s; }
.chip-v4c { bottom: 9%; left: 8%; animation-delay: 2.6s; }

@keyframes floaty {
  from { transform: translateY(-5px); }
  to { transform: translateY(6px); }
}

/* ---------- visual slide 2: kubus 3D berputar ---------- */
.cube-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  perspective: 900px;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cuberotate 16s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(195, 150, 255, 0.5);
  background: linear-gradient(135deg, rgba(151, 71, 255, 0.14), rgba(107, 124, 255, 0.08));
  box-shadow: inset 0 0 34px rgba(151, 71, 255, 0.22);
  border-radius: 6px;
}

.cf-front  { transform: translateZ(100px); }
.cf-back   { transform: rotateY(180deg) translateZ(100px); }
.cf-right  { transform: rotateY(90deg) translateZ(100px); }
.cf-left   { transform: rotateY(-90deg) translateZ(100px); }
.cf-top    { transform: rotateX(90deg) translateZ(100px); }
.cf-bottom { transform: rotateX(-90deg) translateZ(100px); }

.cube-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  background: radial-gradient(circle, rgba(195, 150, 255, 0.85), rgba(151, 71, 255, 0.1) 72%);
  border-radius: 14px;
  filter: blur(1.5px);
}

@keyframes cuberotate {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to   { transform: rotateX(-24deg) rotateY(360deg); }
}

/* ---------- visual slide 3: radar satelit ---------- */
.radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  border: 1px solid rgba(79, 227, 177, 0.3);
  background: radial-gradient(circle, rgba(27, 178, 138, 0.10) 0%, transparent 68%);
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(79, 227, 177, 0.25);
}

.radar::after {
  content: "";
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  border: 1px solid rgba(79, 227, 177, 0.2);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(79, 227, 177, 0.4), transparent 72deg);
  animation: radarturn 4.5s linear infinite;
}

@keyframes radarturn { to { transform: rotate(360deg); } }

.radar-pin {
  position: absolute;
  top: 26%;
  left: 55%;
  color: #4fe3b1;
  filter: drop-shadow(0 0 8px rgba(79, 227, 177, 0.8));
  animation: floaty 5s ease-in-out infinite alternate;
}

.radar-dot {
  position: absolute;
  top: 64%;
  left: 30%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4fe3b1;
  box-shadow: 0 0 10px rgba(79, 227, 177, 0.9);
}

/* ---------- visual slide 4: jaringan neural ---------- */
.net-svg { position: absolute; top: 50%; left: 50%; margin: -151px 0 0 -170px; }

.net-node {
  animation: netpulse 2.8s ease-in-out infinite alternate;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes netpulse {
  from { opacity: 0.5; transform: scale(0.85); }
  to   { opacity: 1;   transform: scale(1.14); }
}

/* ---------- panah slider ---------- */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 19, 34, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.hs-prev { left: 18px; }
.hs-next { right: 18px; }
.hero-slider:hover .hs-arrow,
.hs-arrow:focus-visible { opacity: 1; }
.hs-arrow:hover { background: rgba(90, 106, 245, 0.55); border-color: rgba(154, 163, 255, 0.6); }

/* ---------- tab indikator (gaya NVIDIA: garis progres + label) ---------- */
.hs-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.hs-tab {
  appearance: none;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 14px 8px;
  cursor: pointer;
  color: var(--text-muted-light);
  font-family: var(--font);
  min-height: 44px;
  transition: color 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.hs-progress {
  display: block;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin-bottom: 10px;
}

.hs-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #97a3ff);
  border-radius: 99px;
}

.hs-tab.active .hs-bar {
  animation: hsfill var(--hs-dur, 5000ms) linear forwards;
}

@keyframes hsfill {
  from { width: 0%; }
  to   { width: 100%; }
}

.hs-cat {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-mini {
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-tab:hover { color: #dfe3ff; }
.hs-tab.active { color: #fff; }
.hs-tab.active .hs-mini { opacity: 0.95; }

/* ---------- services / focus areas (light) ---------- */
.services {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 92px 0 96px;
}

.services .eyebrow { color: var(--accent-strong); }
.services .section-sub { color: var(--text-muted-dark); }

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
}

.card {
  padding: 26px 22px 30px;
  border-left: 1px solid var(--line-dark);
  transition: transform 0.2s ease;
}
.card:first-child { border-left: none; }

.card:hover { transform: translateY(-4px); }

.card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin-bottom: 18px;
}

.ci-indigo { background: rgba(107, 124, 255, 0.14); color: var(--accent-strong); }
.ci-teal   { background: rgba(27, 178, 138, 0.14); color: #149068; }
.ci-violet { background: rgba(151, 71, 255, 0.13); color: #7d2ee0; }
.ci-blue   { background: rgba(35, 112, 245, 0.13); color: #1d5fd6; }
.ci-amber  { background: rgba(240, 130, 30, 0.14); color: #c8640e; }

.card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted-dark);
}

/* ---------- hub (dark) ---------- */
.hub {
  position: relative;
  background:
    radial-gradient(760px 420px at 16% 30%, rgba(107, 124, 255, 0.13), transparent 62%),
    var(--bg-dark-2);
  padding: 96px 0;
  overflow: hidden;
}

.hub-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 320px at 84% 76%, rgba(56, 224, 175, 0.07), transparent 70%);
  pointer-events: none;
}

.hub-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.hub-lead {
  color: var(--text-muted-light);
  margin-top: 16px;
  max-width: 560px;
}

.hub-feats {
  margin: 24px 0 30px;
  display: grid;
  gap: 12px;
}

.hub-feats li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-light);
}

.hub-feats svg {
  color: #4fe3b1;
  flex: 0 0 auto;
  margin-top: 3px;
}

/* phone mockup - gambar ponsel asli transparan (permintaan Boss G417, RK-PPJGAI) */
.phone-mock { display: flex; justify-content: center; }

.hub-phone {
  width: min(430px, 86vw);
  height: auto;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.55));
  animation: floaty 7s ease-in-out infinite alternate;
}

/* download box */
.dl-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
  max-width: 560px;
}

.dl-btn { width: 100%; }

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted-light);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #aab4ff;
  background: rgba(107, 124, 255, 0.16);
  border: 1px solid rgba(107, 124, 255, 0.32);
  padding: 4px 12px;
  border-radius: 99px;
}

.dl-dot { color: rgba(255, 255, 255, 0.3); }

.dl-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted-light);
  line-height: 1.55;
}

.hub-apps-label {
  margin-top: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

.hub-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hub-apps li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted-light);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px 13px;
  border-radius: 99px;
}

/* ---------- mission (dark) ---------- */
.mission {
  background: var(--bg-dark);
  padding: 96px 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.mission-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

.mission-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.mission-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 30px 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 6, 12, 0.88) 78%);
}

.mission-photo h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mission-lead {
  color: var(--text-muted-light);
  margin-bottom: 34px;
}

.values {
  display: grid;
  gap: 26px;
}

.values li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.val-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(107, 124, 255, 0.3);
  color: #97a3ff;
  flex: 0 0 auto;
}

.values h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.values p {
  font-size: 0.88rem;
  color: var(--text-muted-light);
}

/* ---------- cta (light) ---------- */
.cta {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 92px 0 96px;
}

.cta .eyebrow { color: var(--accent-strong); }

.cta .btn { margin-top: 10px; }

.cta-mail { margin-top: 16px; font-size: 0.9rem; color: var(--text-muted-dark); }
.cta-mail a { color: var(--accent-strong); font-weight: 600; }
.cta-mail a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  flex-shrink: 0;
  background: var(--bg-dark-2);
  border-top: 1px solid var(--line-light);
  padding-top: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 32px;
  align-items: start;
}

.foot-tag {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  padding-top: 8px;
}

.foot-nav a {
  font-size: 0.88rem;
  color: var(--text-muted-light);
  transition: color 0.18s ease;
}
.foot-nav a:hover { color: #fff; }

.foot-social { display: flex; gap: 10px; padding-top: 4px; }

.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  color: var(--text-muted-light);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.soc:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.foot-bottom {
  margin-top: 34px;
  border-top: 1px solid var(--line-light);
  padding-top: 18px;
  padding-bottom: 20px;
}

.foot-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  text-align: center;
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.cards-4 .card:nth-child(2) { transition-delay: 0.07s; }
.cards-4 .card:nth-child(3) { transition-delay: 0.14s; }
.cards-4 .card:nth-child(4) { transition-delay: 0.21s; }

.values li:nth-child(2) { transition-delay: 0.08s; }
.values li:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .hub-phone, .phone-a, .phone-b, .ficon, .cube, .radar-sweep, .net-node { animation: none; }
  .btn, .card, .soc { transition: none; }
  .hero-track { transition: none; }
  .hero-slide .hero-copy > *, .hero-slide .hero-visual { opacity: 1; transform: none; transition: none; }
  .hs-tab.active .hs-bar { animation: none; width: 100%; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-slide { padding: 56px 0 150px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-visual {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding-top: 18px;
  }
  .stage {
    height: 440px;
    width: min(480px, 94%);
    margin: 0 auto;
  }
  .phone-a { width: 240px; left: 6%; bottom: 28px; }
  .phone-b { width: 212px; right: 0; bottom: 96px; }
  .ficon { width: 40px; height: 40px; border-radius: 12px; }
  .chip { position: static; animation: none; }
  .chip-v2a, .chip-v2b, .chip-v2c,
  .chip-v3a, .chip-v3b, .chip-v3c,
  .chip-v4a, .chip-v4b, .chip-v4c { top: auto; left: auto; right: auto; bottom: auto; }

  .cube-scene, .radar {
    position: relative;
    top: auto;
    left: auto;
    margin: 26px auto 18px;
  }
  .cube-scene { width: 180px; height: 180px; }
  .cf-front { transform: translateZ(90px); }
  .cf-back  { transform: rotateY(180deg) translateZ(90px); }
  .cf-right { transform: rotateY(90deg) translateZ(90px); }
  .cf-left  { transform: rotateY(-90deg) translateZ(90px); }
  .cf-top   { transform: rotateX(90deg) translateZ(90px); }
  .cf-bottom{ transform: rotateX(-90deg) translateZ(90px); }
  .radar { width: 240px; height: 240px; }
  .net-svg { position: static; margin: 10px auto; display: block; max-width: 100%; height: auto; }

  .cards-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin-top: 40px; }

  .hero-feats-row { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .feat { padding: 16px 14px; }
  .feat:nth-child(3n+1) { border-left: none; padding-left: 0; }
  .feat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .card { border-left: none; border-top: 1px solid var(--line-dark); padding: 24px 10px; }
  .card:first-child { border-top: none; }

  .hub-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone-mock { order: 2; }
  .hub-copy { order: 1; }

  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-photo img { height: 380px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 1150px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta-only { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(6, 8, 18, 0.98);
    border-bottom: 1px solid var(--line-light);
    padding: 14px 24px 20px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-menu.open { display: flex; }
  .nav-link { display: block; padding: 12px 14px; font-size: 1rem; }
  .nav-cta-item { display: block; margin: 10px 0 0; }
  .nav-cta-item .btn { width: 100%; padding: 6px 14px; min-height: 34px; }

}

@media (max-width: 860px) {
  .hs-arrow { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-slide { padding: 44px 0 128px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lead { font-size: 0.97rem; }
  .stage { height: 350px; }
  .phone-a { width: 196px; left: 3%; bottom: 22px; }
  .phone-b { width: 172px; right: 1%; bottom: 74px; }
  .ficon { width: 36px; height: 36px; border-radius: 11px; }
  .stage-orbit { height: 170px; }
  .stage-platform { height: 70px; }
  .hero-feats-row { grid-template-columns: repeat(2, 1fr); }
  .feat { padding: 14px 12px; }
  .feat:nth-child(3n+1) { border-left: 1px solid rgba(255, 255, 255, 0.07); padding-left: 12px; }
  .feat:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .feat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .feat-t { font-size: 0.84rem; }
  .feat-s { font-size: 0.72rem; }
  .hub-phone { width: min(300px, 80vw); }
  .services, .cta { padding: 68px 0 72px; }
  .hub, .mission { padding: 72px 0; }
  .dl-btn { font-size: 0.95rem; }
  .mission-photo img { height: 320px; }
  .section-title { font-size: 1.42rem; }

  .hs-tabs { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 10px 12px; }
  .hs-tab { padding: 8px 8px 6px; }
  .hs-progress { margin-bottom: 7px; }
  .hs-mini { display: none; }
  .hs-cat { font-size: 0.62rem; letter-spacing: 0.03em; }
  .cube-scene { width: 150px; height: 150px; margin: 20px auto 14px; }
  .cf-front { transform: translateZ(75px); }
  .cf-back  { transform: rotateY(180deg) translateZ(75px); }
  .cf-right { transform: rotateY(90deg) translateZ(75px); }
  .cf-left  { transform: rotateY(-90deg) translateZ(75px); }
  .cf-top   { transform: rotateX(90deg) translateZ(75px); }
  .cf-bottom{ transform: rotateX(-90deg) translateZ(75px); }
  .radar { width: 200px; height: 200px; margin: 18px auto 14px; }
}
