/* ================= TOKENS ================= */
:root {
  --green: #00c853;        /* brand green (Kreasiku) */
  --green-600: #00a344;    /* button */
  --green-700: #05803d;    /* hover / deep */
  --green-800: #036b34;
  --green-900: #05391f;    /* very dark */
  --green-bright: #49e670; /* accent */
  --emerald: #059669;
  --ink: #0f2417;
  --ink-2: #33513f;
  --muted: #607567;
  --line: #e2eee7;
  --bg: #ffffff;
  --bg-soft: #f5faf6;
  --bg-soft-2: #eaf5ee;
  --wa: #25d366;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(5, 57, 31, .06), 0 1px 3px rgba(5, 57, 31, .05);
  --shadow: 0 10px 30px -12px rgba(5, 57, 31, .18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 163, 68, .35);
  --grad: linear-gradient(120deg, #00c853 0%, #059669 100%);
  --maxw: 1160px;
}

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* pengaman: cegah geser horizontal di mobile */
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(120deg, #00a344 0%, #059669 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; font-family: inherit;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(0,163,68,.6); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0,163,68,.7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-700); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--green-700);
  background: rgba(0,200,83,.1); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.tag.light { color: #fff; background: rgba(255,255,255,.18); }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-name { font-size: 1.1rem; letter-spacing: -.01em; }
.brand-name strong { color: var(--green-700); }
.nav { display: flex; gap: 2rem; }
.nav a { font-weight: 500; color: var(--ink-2); font-size: .98rem; transition: color .15s; }
.nav a:hover { color: var(--green-700); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 25% 20%, rgba(0,200,83,.2), transparent 70%),
              radial-gradient(50% 50% at 85% 15%, rgba(73,230,112,.22), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem;
  align-items: center; padding: clamp(3rem, 7vw, 6rem) 24px;
}
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--green-700);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { margin-bottom: 1rem; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.hero-note { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--muted); margin: 0; }
.hero-note svg { color: var(--green); flex-shrink: 0; }

/* chat card */
.hero-visual { display: flex; justify-content: center; }
.chat-card {
  width: 100%; max-width: 390px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: var(--grad); color: #fff; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head small { opacity: .85; font-size: .8rem; }
.chat-dot { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.25); position: relative; flex-shrink: 0; }
.chat-dot::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; background: #4ade80; border: 2px solid #fff; border-radius: 50%; }
.chat-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; background: var(--bg-soft); }
.bubble { max-width: 82%; padding: .7rem .95rem; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.bubble.out { align-self: flex-end; background: var(--green-600); color: #fff; border-bottom-right-radius: 5px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: .7rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing span { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* ================= SECTION ================= */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ================= PROBLEMS ================= */
.problems { background: #fff; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.problem-item {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.problem-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.problem-item .q { display: block; font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: .6rem; }
.problem-item .a { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--green-700); background: rgba(0,200,83,.1); padding: .25rem .7rem; border-radius: 999px; }
.problem-item.cta-item { background: var(--grad); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: center; }
.problem-item.cta-item .q { color: #fff; }
.a-link { color: #fff; font-weight: 700; }
.a-link:hover { text-decoration: underline; }

/* ================= SERVICES ================= */
.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 1.2rem; }
.service-icon.i1 { background: linear-gradient(135deg, #00c853, #059669); }
.service-icon.i2 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.service-icon.i3 { background: linear-gradient(135deg, #84cc16, #22c55e); }
.service-icon.i4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.service-card p { margin-bottom: 1.2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.chips li { font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--bg-soft-2); padding: .3rem .75rem; border-radius: 999px; }

/* ================= DEMO ================= */
.demo { background: #fff; }
.demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.demo-copy h2 { margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; background: rgba(0,200,83,.14); color: var(--green-700);
  border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
}
.demo-video { display: flex; justify-content: center; }
.phone-frame {
  width: 300px; max-width: 100%; aspect-ratio: 9 / 19.5; background: #05391f;
  border-radius: 36px; padding: 10px; box-shadow: var(--shadow-lg); position: relative;
}
.phone-frame::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 6px; background: #0a4a2a; border-radius: 999px; z-index: 2;
}
.phone-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #0a4a2a; }

/* ================= PROCESS ================= */
.process { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; position: relative; transition: transform .15s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .92rem; margin: 0; }

/* ================= AUDIENCE ================= */
.audience { background: #fff; }
.audience-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.audience-head { position: sticky; top: 100px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.aud {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; transition: transform .15s, border-color .2s;
}
.aud:hover { transform: translateY(-3px); border-color: var(--green); }
.aud strong { display: block; margin-bottom: .3rem; color: var(--ink); }
.aud span { font-size: .9rem; color: var(--muted); }

/* ================= WHY ================= */
.why { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.why-card h3 { font-size: 1.08rem; margin-bottom: .6rem; }
.why-card p { font-size: .93rem; margin: 0; }

/* ================= FAQ ================= */
.faq { background: #fff; }
.faq-inner { max-width: 780px; }
.accordion { display: grid; gap: .8rem; }
.accordion details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.accordion details[open] { border-color: var(--green); box-shadow: var(--shadow-sm); background: #fff; }
.accordion summary {
  cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--green-700);
  transition: transform .2s; line-height: 1;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding: 0 1.4rem 1.3rem; margin: 0; }

/* ================= CONTACT ================= */
.contact { background: linear-gradient(135deg, #05391f 0%, #059669 55%, #00c853 100%); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-copy h2 { color: #fff; }
.contact-copy p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.contact-direct { margin-top: 1.8rem; }
.wa-direct {
  display: inline-flex; align-items: center; gap: .7rem; font-weight: 700;
  background: var(--wa); color: #fff; padding: .85rem 1.4rem; border-radius: 999px;
  box-shadow: 0 10px 25px -10px rgba(37,211,102,.7); transition: transform .15s;
}
.wa-direct:hover { transform: translateY(-2px); }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  font-family: inherit; font-size: .98rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,200,83,.15);
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }

/* ================= FOOTER ================= */
.site-footer { background: #05261a; color: #c3ddcc; padding: 3.5rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-logo { height: 46px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name strong { color: var(--green-bright); }
.footer-brand p { color: #9ec0aa; margin-top: 1rem; max-width: 42ch; font-size: .95rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-links h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-links a { display: block; color: #9ec0aa; font-size: .92rem; padding: .28rem 0; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; font-size: .85rem; color: #9ec0aa; flex-wrap: wrap; }

/* ================= WA FLOAT ================= */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; background: var(--wa); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .18s;
  animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.7), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,0); } }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 24px; gap: 1rem;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { text-align: center; }
  .lead { max-width: 100%; }
  .hero-actions, .hero-note { justify-content: center; }
  .service-grid { grid-template-columns: 1fr; }
  .demo-inner, .audience-inner, .contact-inner { grid-template-columns: 1fr; }
  .audience-head { position: static; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .problem-grid, .why-grid, .steps, .audience-grid, .contact-form .row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
