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

:root {
  --primary: #0058bc;
  --primary-dark: #0070eb;
  --primary-container: #d8e2ff;
  --secondary-container: #d2e0fe;
  --secondary-fixed-dim: #b9c7e4;
  --outline-variant: #c1c6d7;
  --blue: #1D9BF0;
  --blue-tint: rgba(29,155,240,0.1);
  --green: #00BA7C;
  --green-tint: rgba(0,186,124,0.12);
  --red: #F4212E;
  --amber: #FFD400;
  --text-primary: #0b1c30;
  --text-secondary: #515f78;
  --text-tertiary: #8B98A5;
  --bg-page: #f8f9ff;
  --border: #EFF3F4;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
}

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

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
.nav-logo img { height: 28px; display: block; }
.nav-links { display: flex; gap: 32px; font-size: 13px; color: rgba(255,255,255,0.8); }
.nav-links a { font-weight: 500; padding-bottom: 4px; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 700; border-bottom: 2px solid #fff; }
nav.scrolled .nav-links { color: var(--text-secondary); }
nav.scrolled .nav-links a:hover { color: var(--text-primary); }
nav.scrolled .nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-masuk { color: rgba(255,255,255,0.85); font-weight: 500; transition: color 0.15s; }
.nav-masuk:hover { color: #fff; }
nav.scrolled .nav-masuk { color: var(--text-secondary); }
nav.scrolled .nav-masuk:hover { color: var(--text-primary); }
.nav-blog { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; transition: color 0.15s; }
.nav-blog:hover { color: #fff; }
.nav-blog.active { font-weight: 700; color: #fff; }
nav.scrolled .nav-blog { color: var(--text-secondary); }
nav.scrolled .nav-blog:hover { color: var(--text-primary); }
nav.scrolled .nav-blog.active { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff;
  padding: 7px 20px; border-radius: 9999px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,88,188,0.25);
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,88,188,0.3); }

/* ─── HERO ─── */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: url('/static/img/landing-page.jpg');
  background-size: cover;
  background-position: center;
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(0, 10, 40, 0.97) 0%,
    rgba(0, 30, 80, 0.88) 40%,
    rgba(0, 88, 188, 0.30) 70%,
    rgba(0, 88, 188, 0.05) 100%
  );
  z-index: 1;
}
.hero-section > * { position: relative; z-index: 2; }
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 0 48px;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  padding: 6px 16px; border-radius: 9999px;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 em { font-style: italic; }
.hero h1 span { color: #fff; }

.typed-word { font-style: italic; }
.typed-word.negative { color: #ff8080; }
.typed-word.positive { color: #6ee7b7; }
.typed-word.neutral  { color: #93c5fd; }
.typed-cursor { background: #fff; }
.typed-cursor {
  display: inline-block;
  width: 2px; height: 0.85em;
  background: var(--primary);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ghost-vanish {
  0%   { opacity: 1; transform: translateY(0); }
  50%  { opacity: 1; transform: translateY(0); }
  75%  { opacity: 0.1; transform: translateY(-7px); }
  85%  { opacity: 0; transform: translateY(-9px); }
  95%  { opacity: 0; transform: translateY(-9px); }
  100% { opacity: 1; transform: translateY(0); }
}
.ghost-icon { animation: ghost-vanish 4s ease-in-out infinite; }
.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 560px; margin: 0 0 36px;
}
.hero-cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 9999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer; border: none;
  box-shadow: 0 4px 16px rgba(0,88,188,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,88,188,0.35); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 14px 32px; border-radius: 9999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.22); }

/* ─── CHAT DEMO ─── */
.chat-demo-messages {
  padding: 20px 16px;
  height: 220px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  background: #e8f2fb;
  border-radius: 20px;
  scroll-behavior: smooth;
}
.chat-demo-messages::-webkit-scrollbar { display: none; }
.cbw { display: flex; flex-direction: column; }
.cbw.user { align-items: flex-end; }
.cbw.bot  { align-items: flex-start; }
.cb {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.6;
  font-size: 13px;
}
.cb.user { background: #0284c7; color: #fff; border-bottom-right-radius: 4px; }
.cb.bot  { background: #f1f5f9; color: #475569; border-bottom-left-radius: 4px; }
.typing-ind {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.typing-ind span {
  width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
  animation: tdot 1.2s infinite;
}
.typing-ind span:nth-child(2) { animation-delay: 0.2s; }
.typing-ind span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot {
  0%,60%,100% { transform: translateY(0); opacity:0.6; }
  30% { transform: translateY(-5px); opacity:1; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION ─── */
section { padding: 80px 24px; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px; color: var(--text-secondary);
  max-width: 540px; margin-bottom: 48px;
}

/* ─── WHY ─── */
.why-section { background: #F7F9F9; }
.why-stat-big {
  font-size: clamp(64px, 10vw, 96px); font-weight: 900;
  color: var(--text-primary); line-height: 1;
  margin-bottom: 12px; letter-spacing: -0.04em;
}
.why-stat-big span { color: var(--red); }
.why-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.why-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px;
}
.why-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ─── HOW ─── */
.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-steps { display: flex; flex-direction: column; gap: 32px; }
.how-step { display: flex; gap: 20px; align-items: flex-start; }
.how-num {
  width: 44px; height: 44px; border-radius: 9999px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 88, 188, 0.3);
}
.how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.how-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 768px) {
  .how-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* QR illustration */
.qr-illus { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.qr-box {
  width: 120px; height: 120px;
  border: 2px solid var(--text-primary); border-radius: 12px;
  padding: 10px; position: relative;
}
.qr-inner { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; }
.qr-cell { border-radius: 2px; }
.qr-cell.b { background: var(--text-primary); }
.qr-cell.w { background: transparent; }
.qr-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-tertiary); font-size: 12px;
}

/* ─── FEATURES ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  border: 1.5px solid var(--border); border-radius: 16px; padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(29,155,240,0.08); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--blue);
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ─── PRICING ─── */
.pricing-section { background: linear-gradient(160deg, #edf2fb 0%, #f0eff8 50%, #e8eef6 100%); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 680px; }
.pricing-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 20px; padding: 28px; position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.popular {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 9999px;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.plan-price {
  font-size: 36px; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text-primary); line-height: 1;
}
.plan-price sup { font-size: 16px; font-weight: 700; vertical-align: top; margin-top: 6px; margin-right: 1px; }
.plan-price-unit { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.check { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.plan-cta {
  display: block; text-align: center;
  padding: 12px; border-radius: 9999px;
  font-size: 15px; font-weight: 700;
  transition: all 0.15s;
}
.plan-cta.outline {
  border: 1.5px solid var(--border); color: var(--text-primary);
}
.plan-cta.outline:hover { border-color: var(--blue); color: var(--blue); }
.plan-cta.filled { background: var(--blue); color: #fff; }
.plan-cta.filled:hover { background: #0046a0; color: #fff; }

/* ─── FINAL CTA ─── */
.final-cta {
  background: linear-gradient(to right, #0058bc 0%, #003d8a 50%, #001a4d 100%); color: #fff;
  text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
.final-cta-watermark {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px;
  object-fit: contain; opacity: 0.12;
  pointer-events: none; user-select: none;
}
.final-cta h2 {
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.final-cta p { font-size: 18px; opacity: 0.85; margin-bottom: 36px; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--blue);
  padding: 16px 32px; border-radius: 9999px;
  font-size: 17px; font-weight: 700;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-white:hover { opacity: 0.92; transform: translateY(-1px); }
.final-note { margin-top: 16px; font-size: 13px; opacity: 0.65; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-tertiary);
}
footer a { color: var(--text-tertiary); }
footer a:hover { color: var(--text-primary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  /* All inline 2-col grids → single column */
  #cara-kerja-2 .section-inner > div,
  #cara-kerja-3 .section-inner > div,
  #cara-kerja .section-inner > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Masalah section 2-col */
  #kenapa .section-inner > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Cara Kerja step rows */
  #cara-kerja > .section-inner > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Section inner padding */
  .section-inner { padding: 48px 20px; }

  /* Hero */
  .hero { padding: 0 24px; min-height: 90vh; }
  .hero-copy { max-width: 100%; }

  /* Chat demo full width */
  .chat-demo-messages { height: 280px; }

  /* How steps */
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .how-step::after { display: none; }
  .how-step { padding: 0; }
}

@media (max-width: 640px) {
  nav .nav-links { display: none; }
  .dash-sidebar { display: none; }
  .mockup-body { flex-direction: column; }
  .chat-phone { width: 100%; border-left: none; border-top: 1px solid var(--border); }
  footer { flex-direction: column; text-align: center; gap: 12px; }

  /* Pricing stack */
  .pricing-grid { grid-template-columns: 1fr !important; }

  /* Section title smaller */
  .section-title { font-size: clamp(22px, 6vw, 32px); }

  /* Cara kerja images shorter */
  #cara-kerja img[style*="height:220px"] { height: 180px !important; }

  /* Final CTA watermark smaller */
  .final-cta-watermark { width: 260px; height: 260px; right: -60px; }
}
