/* ============================================================
   Nyangkut — landing page
   Mobile-first, clean, friendly. Palette diambil dari mockup produk.
   ============================================================ */

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --lavender: #A5B4FC;
  --lavender-soft: #EEF2FF;
  --ink: #111827;
  --muted: #64748B;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --success: #16A34A;
  --success-soft: #DCFCE7;
  --warning: #F59E0B;
  --warning-soft: #FEF3C7;
  --danger: #EF4444;
  --danger-soft: #FEE2E2;
  --info: #3B82F6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(99, 102, 241, 0.10);
  --shadow-sm: 0 4px 16px rgba(99, 102, 241, 0.07);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: var(--card);
  color: var(--primary-dark);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--primary); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { height: 38px; width: auto; display: block; }

.nav-links { display: none; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--primary-dark); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(14, 92, 63, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--lavender-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 18px;
}
.hl {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 13.5px;
  color: var(--muted);
}

/* Hero visual — mini dashboard ala mockup */
.hero-visual { position: relative; padding: 26px 14px; }
.dash-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 0 auto;
}
.dash-label { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.dash-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.dash-total {
  background: var(--lavender-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}
.dash-total-label { font-size: 12.5px; color: var(--muted); }
.dash-total-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2px 0;
}
.dash-total-meta { font-size: 12.5px; color: var(--muted); }
.dash-list { list-style: none; display: flex; flex-direction: column; }
.dash-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lavender-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dash-item-text strong { font-size: 13.5px; }
.hero-visual .dash-item-text small { display: none; }
.dash-amount { font-weight: 700; font-size: 13px; white-space: nowrap; }

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }
.badge-soft { background: var(--lavender-soft); color: var(--primary-dark); }

.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite;
}
.float-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warning);
  flex-shrink: 0;
}
.chip-1 { top: 4px; left: 0; }
.chip-2 { bottom: 4px; right: 0; animation-delay: 2s; color: var(--primary); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 56ch;
  margin: 0 auto 40px;
}

/* ---------- Problem ---------- */
.problem { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chat-grid {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.chat-bubble {
  background: var(--lavender-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark);
}
.chat-bubble:nth-child(even) {
  background: #fff;
  justify-self: end;
  border-bottom-right-radius: 6px;
  text-align: right;
}
.chat-bubble:nth-child(odd) { border-bottom-left-radius: 6px; }
.problem-close {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
  font-size: 16px;
}
.problem-answer {
  text-align: center;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin-top: 14px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--lavender-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14.5px; color: var(--muted); }
.feature-wide { background: var(--lavender-soft); border-color: #C7D2FE; }
.feature-wide .feature-icon { background: #fff; }

/* ---------- Showcase ---------- */
.showcase { background: var(--lavender-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.stat-main { background: var(--lavender-soft); border-color: #C7D2FE; grid-column: 1 / -1; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.stat-value { font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.stat-alert { color: var(--danger); }
.stat-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.phone-row {
  display: grid;
  gap: 28px;
  justify-items: center;
}
.phone-wrap { text-align: center; max-width: 300px; }
.phone {
  border-radius: 38px;
  border: 10px solid #101613;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 933 / 1250;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-wrap figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.phone-wrap figcaption strong { font-size: 16px; }
.phone-wrap figcaption span { font-size: 13.5px; color: var(--muted); }

/* ---------- Use cases ---------- */
.usecase-grid { display: grid; gap: 16px; }
.usecase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.usecase-emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.usecase-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.usecase-card p { font-size: 14px; color: var(--muted); }
.usecase-support {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 22px;
}

/* ---------- How it works ---------- */
.how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: step;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-section { padding: 72px 0; }
.cta-panel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 28px;
  padding: 56px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.cta-panel h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  position: relative;
}
.cta-panel > p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; font-size: 17px; position: relative; }
.cta-panel .btn { position: relative; }
.cta-note { margin-top: 18px !important; margin-bottom: 0 !important; font-size: 13.5px !important; color: rgba(255, 255, 255, 0.7) !important; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 24px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 32ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.footer-links a:hover { color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet & desktop ---------- */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: 1 / -1; }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-row { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .phone { aspect-ratio: 933 / 1350; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-visual { justify-self: center; width: 100%; max-width: 470px; padding: 30px 38px; }

  .section { padding: 96px 0; }
  .section-sub { margin-bottom: 52px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-wide { grid-column: 1 / -1; }
  .usecase-grid { grid-template-columns: repeat(4, 1fr); }

  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-main { grid-column: span 1; }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .cta-panel { padding: 72px 48px; }
}
