/* Halaman depan JAGA (publik) */
:root {
  --green-900: #0f3322; --green-800: #17513a; --green-600: #2f7d4e; --green-500: #43a066; --green-100: #e4efe7; --green-50: #f1f6f2;
  --cream: #f3f5f2; --bg: #f3f5f2; --ink: #14231b; --muted: #5b695f; --line: #e4e9e4; --lime: #d5f27c;
  --red: #c8372d; --red-bg: #fdecea; --orange: #e2700d; --orange-bg: #fff0df; --yellow: #d9a406; --yellow-bg: #fff6d1;
  --font-head: "Manrope", "DM Sans", system-ui, sans-serif; --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(20, 40, 28, .06), 0 10px 30px rgba(20, 40, 28, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1320px, 100% - clamp(64px, 8vw, 128px)); margin: 0 auto; }
:focus-visible { outline: 3px solid rgba(47, 125, 62, .4); outline-offset: 3px; }

/* ------------------------------------------------------------------ Bar atas */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(243, 245, 242, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--green-800); }
.brand img { height: 42px; width: auto; display: block; }
.brand b { display: block; font: 800 21px var(--font-head); letter-spacing: .07em; line-height: 1; }
.brand small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); font-weight: 500; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { padding: 8px 14px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.links a:hover { background: var(--green-50); color: var(--green-800); }

/* ------------------------------------------------------------------- Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; border: 1px solid transparent; font: 700 14px var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn.lg { padding: 15px 26px; font-size: 15px; border-radius: 15px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--green-800); color: #fff; box-shadow: 0 8px 20px rgba(23, 81, 58, .25); }
.btn.primary:hover { background: var(--green-900); transform: translateY(-1px); }
.btn.outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.outline:hover { background: var(--green-50); border-color: #cfe0d3; }
.btn.light { background: #fff; color: var(--green-800); }
.btn.light:hover { background: var(--green-50); }

.eyebrow { display: inline-block; font: 800 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }

/* --------------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background: radial-gradient(900px 420px at 85% -10%, #e3f0e5 0%, rgba(227, 240, 229, 0) 70%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { margin-top: 16px; font-size: clamp(30px, 3.8vw, 50px); font-weight: 800; }
.hero h1 span { color: var(--green-600); }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.lead.sm { font-size: 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--green-800); }
.ticks li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--green-600); vertical-align: 1px; }

.mock { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; transform: rotate(1.2deg); }
.mock-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; }
.mock-head small { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font: 700 12px var(--font-head); }
.chip.live { background: var(--red-bg); color: var(--red); }
.chip.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 55, 45, .5); } 70% { box-shadow: 0 0 0 9px rgba(200, 55, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 55, 45, 0); } }
.mock-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-left-width: 6px; border-radius: 12px; background: #fff; }
.mock-item b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font: 800 13px var(--font-head); }
.mock-item strong { display: block; font: 700 14px var(--font-head); }
.mock-item small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.mock-item span { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.mock-item.red { border-left-color: var(--red); } .mock-item.red b { background: var(--red); } .mock-item.red span { background: var(--red-bg); color: var(--red); }
.mock-item.orange { border-left-color: var(--orange); } .mock-item.orange b { background: var(--orange); } .mock-item.orange span { background: var(--orange-bg); color: #b95a06; }
.mock-item.yellow { border-left-color: #e0b300; } .mock-item.yellow b { background: #d1a600; } .mock-item.yellow span { background: var(--yellow-bg); color: #8a6700; }
.mock-item.green { border-left-color: var(--green-600); } .mock-item.green b { background: var(--green-600); } .mock-item.green span { background: var(--green-100); color: var(--green-800); }

/* ------------------------------------------------------------------ Bagian */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2, .two-col h2 { margin-top: 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.role-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.role-card h3 { font-size: 22px; font-weight: 800; margin-top: 6px; }
.who { color: var(--green-600); font-weight: 700; font-size: 13px; }
.role-card ul { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; flex: 1; }
.role-card li { position: relative; padding-left: 20px; }
.role-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.role-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--green-100); color: var(--green-800); }
.role-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.role-icon.alt { background: #fff; border: 1px solid var(--line); flex: none; }
.household { display: flex; gap: 18px; align-items: flex-start; margin-top: 22px; padding: 22px 26px; border: 1px dashed #bcd6c1; border-radius: 18px; background: var(--green-50); }
.household h3 { font-size: 18px; font-weight: 800; }
.household p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green-600); color: #fff; font: 800 17px var(--font-head); }
.steps h3 { margin-top: 16px; font-size: 18px; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.legend { display: grid; gap: 12px; }
.lg { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left-width: 8px; border-radius: 14px; }
.lg i { display: none; }
.lg b { display: block; font: 800 16px var(--font-head); }
.lg small { color: var(--muted); }
.lg.red { border-left-color: var(--red); background: linear-gradient(90deg, var(--red-bg), #fff 55%); }
.lg.orange { border-left-color: var(--orange); background: linear-gradient(90deg, var(--orange-bg), #fff 55%); }
.lg.yellow { border-left-color: #e0b300; background: linear-gradient(90deg, var(--yellow-bg), #fff 55%); }
.lg.green { border-left-color: var(--green-600); background: linear-gradient(90deg, var(--green-100), #fff 55%); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pill { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.pill h3 { font-size: 18px; font-weight: 800; }
.pill p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.demo-note { margin-top: 28px; padding: 16px 20px; border-radius: 14px; background: #fff3cd; border: 1px solid #f1dc8f; color: #6b4e00; font-size: 14px; }

.final { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff; padding: 56px 0; }
.final-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.final h2 { font-size: 30px; font-weight: 800; }
.final p { margin-top: 8px; opacity: .9; }

.footer { padding: 32px 0 40px; background: var(--cream); border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { color: var(--muted); font-size: 13px; max-width: 52ch; }

/* ------------------------------------------------------------------ Responsif */
@media (max-width: 1000px) {
  .hero-grid, .two-col { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mock { transform: none; }
  .roles, .trio { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .links { display: none; }
  .bar { gap: 12px; justify-content: space-between; }
  .hero { padding: 40px 0 52px; }
  .section { padding: 56px 0; }
  .lead { font-size: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .household { flex-direction: column; }
  .final-inner .btn { width: 100%; }
  .cta-row .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chip.live i { animation: none; } .btn { transition: none; } }

/* LUNERA-STYLE EXPLODED 3D NECKLACE */
.lunera-3d-wrapper {
  width: 100%;
  height: 350px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #eaf4f4 0%, #faf8f1 70%);
  border-radius: 20px;
  margin-bottom: 24px;
  cursor: grab;
  overflow: visible;
}
.lunera-3d-wrapper:active { cursor: grabbing; }

.lunera-3d-scene {
  width: 120px;
  height: 180px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-40deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lunera-3d-wrapper:hover .lunera-3d-scene {
  transform: rotateX(45deg) rotateZ(-25deg);
}

.n-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a4f38, #0a2116);
  border-radius: 60px;
  box-shadow: 
    -2px 2px 0 #05140d,
    -4px 4px 0 #05140d,
    -6px 6px 0 #05140d,
    -10px 10px 20px rgba(0,0,0,0.5);
  border: 2px solid #274433;
  transform: translateZ(0);
  transition: all 0.5s ease;
}

.n-comp {
  position: absolute;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  outline: none;
}

.n-comp::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 0;
  background: rgba(39, 68, 51, 0.6);
  transform: translate(-50%, -50%) translateZ(-10px) rotateX(90deg);
  transform-origin: top center;
  transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s;
  opacity: 0;
}
.lunera-3d-wrapper:hover .n-comp::before {
  height: 60px;
  opacity: 1;
}

.n-strap {
  top: -40px; left: 30px;
  width: 60px; height: 60px;
  border: 8px solid #333;
  border-radius: 50% 50% 0 0;
  border-bottom: none;
  transform: translateZ(10px);
}
.lunera-3d-wrapper:hover .n-strap { transform: translateZ(60px) translateY(-10px); }

.n-led {
  top: 20px; left: 50px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px #fff, inset 0 0 5px #ccc;
  transform: translateZ(15px);
}
.lunera-3d-wrapper:hover .n-led { transform: translateZ(80px); box-shadow: 0 0 30px #00ffcc, inset 0 0 10px #fff; background: #e0ffff; }

.n-sos {
  top: 60px; left: 25px;
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #f44336, #c62828);
  border-radius: 50%;
  color: white; font-weight: bold; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -1px 1px 0 #8e0000, -2px 2px 0 #8e0000, 0 0 15px rgba(244,67,54,0.4);
  transform: translateZ(20px);
}
.lunera-3d-wrapper:hover .n-sos { transform: translateZ(110px); box-shadow: -2px 2px 0 #8e0000, -4px 4px 0 #8e0000, 0 20px 40px rgba(244,67,54,0.6); }
.n-sos:active { transform: translateZ(90px) !important; }

.n-speaker {
  bottom: 30px; left: 40px;
  width: 40px; height: 12px;
  background: #111;
  border-radius: 10px;
  display: flex; gap: 4px; justify-content: center; align-items: center;
  transform: translateZ(12px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}
.n-speaker::after { content:'|||'; color:#555; font-size: 8px; letter-spacing: 2px; }
.lunera-3d-wrapper:hover .n-speaker { transform: translateZ(70px) translateY(10px); }

.n-tooltip {
  position: absolute;
  left: 120%; top: 50%;
  transform: translateY(-50%) rotateZ(25deg) rotateX(-45deg);
  background: rgba(255,255,255,0.95);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #123a29;
  font-family: inherit;
  width: 170px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  z-index: 100;
}
.n-comp:hover .n-tooltip, .n-comp:focus .n-tooltip {
  opacity: 1;
  left: 150%;
}
@media (max-width: 680px) {
  .n-tooltip { left: 50%; top: 150%; transform: translateX(-50%) rotateZ(25deg) rotateX(-45deg); }
  .n-comp:hover .n-tooltip, .n-comp:focus .n-tooltip { top: 180%; left: 50%; }
}
