:root {
  --bg: #070b18;
  --bg-2: #0b1124;
  --bg-3: #111a33;
  --card: #0f1730;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eaf0ff;
  --muted: #94a3c4;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(7, 11, 24, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  padding: 10px 0;
}
.nav-inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 19px;
}
.brand-text { font-size: 20px; letter-spacing: -0.02em; }
.brand-logo { height: 40px; width: auto; display: block; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 14px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 100px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(500px 380px at 15% 30%, rgba(34, 211, 238, 0.14), transparent 60%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 18px;
}
.pill.muted { background: rgba(255,255,255,0.06); color: var(--muted); border-color: var(--border); }
.pill.accent { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.3); }

.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 900; margin-bottom: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; }
.stat strong { display: block; font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; height: 440px; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.5; }
.orb-1 { width: 220px; height: 220px; background: #22d3ee; top: 0; left: 40%; }
.orb-2 { width: 260px; height: 260px; background: #8b5cf6; bottom: 0; right: 5%; }
.orb-3 { width: 180px; height: 180px; background: #3b82f6; top: 40%; left: 0; }

.card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.hub {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 240px;
  z-index: 3;
  padding: 26px 20px;
}
.hub-icon { font-size: 40px; margin-bottom: 8px; }
.hub-title { font-weight: 800; font-size: 17px; }
.hub-sub { font-size: 12.5px; color: var(--muted); }

.node { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; z-index: 2; }
.node span { font-size: 22px; }
.node-kasir { top: 8%; left: 4%; }
.node-gudang { top: 8%; right: 4%; }
.node-owner { bottom: 6%; left: 50%; transform: translateX(-50%); }

.link { position: absolute; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: 0.5; transform-origin: left; z-index: 1; }
.l1 { top: 18%; left: 24%; width: 24%; transform: rotate(-18deg); }
.l2 { top: 18%; right: 24%; width: 24%; transform: rotate(18deg); transform-origin: right; }
.l3 { top: 55%; left: 40%; width: 20%; transform: rotate(78deg); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

.grid { display: grid; gap: 22px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tile:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); box-shadow: var(--shadow); }
.tile-icon { font-size: 34px; margin-bottom: 16px; }
.tile h3 { font-size: 18px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 14.5px; }

/* ---------- Flow ---------- */
.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.flow-node {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.flow-node.highlight {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.16));
  border-color: rgba(139, 92, 246, 0.4);
}
.flow-icon { font-size: 34px; margin-bottom: 12px; }
.flow-node h4 { font-size: 17px; margin-bottom: 8px; }
.flow-node p { color: var(--muted); font-size: 13.5px; }
.flow-arrow {
  align-self: center;
  font-size: 30px;
  color: var(--cyan);
  opacity: 0.7;
}

/* ---------- WhatsApp ---------- */
.wa-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s, border-color 0.25s;
}
.wa-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); }
.wa-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--cyan); margin-bottom: 6px; }
.wa-icon { font-size: 22px; }
.wa-card h3 { font-size: 21px; margin-bottom: 16px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--muted); font-size: 14.5px; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}
.checklist strong { color: var(--text); }

/* ---------- CTA ---------- */
.cta {
  padding: 90px 0;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-inner p { color: var(--muted); font-size: 16px; margin-bottom: 30px; }
.cta-meta { margin-top: 28px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { padding: 50px 0; border-top: 1px solid var(--border); }
.footer-inner { text-align: center; }
.footer-brand { justify-content: center; margin-bottom: 14px; }
.footer-note { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.copyright { color: rgba(148, 163, 196, 0.55); font-size: 12.5px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { height: 380px; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 70px; }
  .hero-stats { gap: 22px; }
  .flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-node { max-width: 100%; width: 100%; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .grid-5 { grid-template-columns: 1fr; }
  .hero-visual {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .hero-visual .card { position: static; transform: none; width: 100%; }
  .hero-visual .hub { text-align: center; }
  .hero-visual .node { justify-content: center; }
  .hero-visual .link, .hero-visual .orb { display: none; }
}

/* Mobile menu open state */
.nav.menu-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(7, 11, 24, 0.97);
  padding: 20px 8%;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

/* Scroll-to-top button */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 200;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan);
}
