/* ==========================================================================
   CylicDev — landing page
   Berdiri sendiri (tidak bergantung ke css/style.css) supaya redesign ini
   tidak menyentuh style dashboard sama sekali. Palet ungu di sini sengaja
   disamakan dengan --mint di dashboard (css/style.css) biar identitas warna
   brand konsisten dari landing sampai ke dalam produk.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --paper:      #f6f5fc;   /* putih ber-tint ungu pucat — bukan putih polos */
  --paper-2:    #edebf9;
  --card:       #ffffff;
  --ink:        #130f21;
  --ink-soft:   #5c5872;
  --ink-faint:  #9691ac;
  --line:       rgba(19, 15, 33, .10);
  --line-soft:  rgba(19, 15, 33, .06);

  --accent:      #5a4be0;  /* ungu identitas brand — sama dengan --mint di dashboard */
  --accent-2:    #8f7cf7;  /* ungu terang, dipakai buat gradient & glow */
  --accent-deep: #4433c4;  /* ungu gelap, dipakai buat gradient tombol & bayangan */
  --accent-ink:  #ffffff;
  --accent-dim:  #ece8fd;

  --leaf:       #22a35d;   /* hijau centang WhatsApp — cuma dipakai di dalam mockup chat */
  --leaf-dim:   #dff1e4;

  --bubble-out: #dcf0d3;
  --bubble-in:  #ffffff;

  --radius-lg: 30px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body.landing {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

body.landing a { color: inherit; text-decoration: none; }
body.landing .mono { font-family: var(--font-mono); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* grid tipis + titik halus di seluruh halaman, biar nggak terasa kosong
   tanpa harus nambah elemen dekoratif di tiap section */
body.landing::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(19,15,33,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,15,33,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 40%, transparent 85%);
}
body.landing > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }

.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  color: var(--accent-ink);
  box-shadow: 0 16px 32px -14px rgba(90,75,224,.65), 0 2px 8px -2px rgba(90,75,224,.4);
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(90,75,224,.72), 0 4px 10px -2px rgba(90,75,224,.45); }
.btn-primary:hover::after { left: 130%; }

.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 2px 6px rgba(19,15,33,.04); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(90,75,224,.35); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { opacity: .88; transform: translateY(-2px); }
.btn-block { width: 100%; }

@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  padding: 16px 0;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.nav.is-scrolled {
  background: rgba(246, 245, 252, .78);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(19,15,33,.25);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand span { color: var(--accent); }

.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-actions { display: none; align-items: center; gap: 14px; }

.nav-burger {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card);
  cursor: pointer;
  transition: border-color .15s ease;
}
.nav-burger:hover { border-color: var(--accent); }
.nav-burger svg { width: 18px; height: 18px; stroke: var(--ink); }

.nav-drawer {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 20px 40px -24px rgba(19,15,33,.35);
}
.nav-drawer.open { display: flex; }
.nav-drawer a:not(.btn) { padding: 13px 4px; font-weight: 600; font-size: 15.5px; border-bottom: 1px solid var(--line-soft); }
.nav-drawer .btn { margin-top: 14px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-burger { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 60px; overflow: hidden; }
@media (min-width: 640px) { .hero { padding: 56px 0 80px; } }

/* dua glow blur ungu — signature dekoratif hero, dibangun dari warna brand
   yang sama, bukan aksen baru yang asing */
.hero .glow { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; z-index: 0; }
.hero .glow-1 { width: 460px; height: 460px; top: -180px; right: -140px; background: radial-gradient(circle, rgba(90,75,224,.38), transparent 72%); }
.hero .glow-2 { width: 380px; height: 380px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(143,124,247,.30), transparent 72%); }

.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 42px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .03em; color: var(--accent-deep);
  background: var(--accent-dim);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim), 0 0 10px rgba(90,75,224,.6); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero .lead { font-size: clamp(16px, 2.2vw, 18.5px); line-height: 1.6; color: var(--ink-soft); max-width: 480px; margin: 0 0 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-cta .btn { font-size: 15.5px; padding: 15px 26px; }

/* chip badge kecil — "Gratis", "24/7 Online", "Multi Device" */
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-proof span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(19,15,33,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hero-proof span:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 20px -12px rgba(90,75,224,.35); }
.hero-proof svg { width: 15px; height: 15px; stroke: var(--accent); flex-shrink: 0; }

/* ---------- Hero: entrance saat halaman dimuat ---------- */
.hero-copy > * {
  opacity: 0; transform: translateY(16px);
  animation: heroIn .65s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .16s; }
.hero-copy > *:nth-child(3) { animation-delay: .27s; }
.hero-copy > *:nth-child(4) { animation-delay: .38s; }
.hero-copy > *:nth-child(5) { animation-delay: .49s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-phone-wrap {
  opacity: 0; transform: translateY(28px) scale(.95);
  animation: heroIn .8s cubic-bezier(.16,1,.3,1) .32s forwards;
}

@media (min-width: 980px) {
  .hero .wrap { flex-direction: row; align-items: center; }
  .hero-copy { flex: 1 1 50%; max-width: 560px; }
  .hero-phone-wrap { flex: 1 1 46%; display: flex; justify-content: center; }
}

/* ---------- Phone mockup — fokus visual utama hero ---------- */
.hero-phone-wrap { display: flex; justify-content: center; position: relative; }
.hero-phone-wrap::before {
  content: '';
  position: absolute; z-index: 0;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(90,75,224,.32), transparent 70%);
  filter: blur(50px);
  border-radius: 50%;
}

.phone {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #1c1732, var(--ink) 60%);
  padding: 13px;
  box-shadow: 0 40px 80px -24px rgba(19,15,33,.45), 0 0 0 1px rgba(19,15,33,.08), 0 0 60px -10px rgba(90,75,224,.25);
  transform: rotate(1.4deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: rotate(1.4deg) translateY(0); } 50% { transform: rotate(1.4deg) translateY(-10px); } }

@media (min-width: 480px) { .phone { max-width: 370px; } }
@media (min-width: 980px) { .phone { max-width: 410px; } }

.phone-screen {
  background: var(--paper-2);
  border-radius: 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 580px;
}
@media (min-width: 480px) { .phone-screen { height: 620px; } }
@media (min-width: 980px) { .phone-screen { height: 660px; } }

.phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px 4px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink);
}
.phone-status .icons { display: flex; align-items: center; gap: 4px; }
.phone-status svg { width: 14px; height: 14px; }

.phone-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px 13px;
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
}
.phone-chat-header .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phone-chat-header .avatar svg { width: 19px; height: 19px; }
.phone-chat-header .name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.phone-chat-header .status { font-size: 11.5px; color: var(--leaf); font-weight: 600; }

.phone-body {
  flex: 1;
  padding: 18px 13px;
  display: flex; flex-direction: column; gap: 9px;
  overflow: hidden;
  background-image: radial-gradient(rgba(19,15,33,.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

.bub {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 1px 2px rgba(19,15,33,.07);
}
.bub.show { animation: bubIn .35s ease forwards; }
@keyframes bubIn { to { opacity: 1; transform: translateY(0); } }

.bub.out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; font-family: var(--font-mono); font-weight: 500; }
.bub.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.bub.in .cmd-out { font-family: var(--font-mono); color: var(--ink-soft); }

.bub .meta { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 4px; font-size: 10px; color: var(--ink-faint); }
.bub.out .meta svg { width: 13px; }
.tick-sent path { stroke: var(--ink-faint); }
.tick-read path { stroke: var(--leaf); }

.typing-row { display: none; align-self: flex-start; align-items: center; gap: 4px; background: var(--bubble-in); padding: 11px 14px; border-radius: 15px; border-bottom-left-radius: 4px; }
.typing-row.show { display: flex; }
.typing-row span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); animation: bounce 1.1s ease-in-out infinite; }
.typing-row span:nth-child(2) { animation-delay: .15s; }
.typing-row span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.phone-input {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  background: var(--card);
  border-top: 1px solid var(--line-soft);
}
.phone-input .field {
  flex: 1;
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.phone-input .send {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phone-input .send svg { width: 14px; height: 14px; }

/* ---------- Section scaffolding ---------- */
section { padding: 64px 0; }
@media (min-width: 640px) { section { padding: 88px 0; } }

.section-head { max-width: 620px; margin: 0 auto 36px; text-align: left; }
@media (min-width: 640px) { .section-head { margin-bottom: 44px; } }
.section-head .tag {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: .06em; text-transform: uppercase;
  display: block; margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(27px, 4.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
.section-head p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.reveal { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Cara kerja ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -24px rgba(19,15,33,.28); border-color: var(--accent); }
.step .n {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.step .n::before { content: ''; width: 22px; height: 1.5px; background: var(--accent); }
.step h3 { font-family: var(--font-display); font-size: 18.5px; margin: 0 0 8px; letter-spacing: -.01em; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute; top: 46px; left: 100%;
    width: 20px; height: 1.5px;
    background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
    z-index: 2;
  }
}

/* ---------- Perintah ---------- */
.cmd-list { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.cmd-row { background: var(--card); padding: 17px 19px; display: flex; gap: 14px; align-items: baseline; transition: background .18s ease; }
.cmd-row:hover { background: var(--accent-dim); }
.cmd-row .cmd { font-family: var(--font-mono); color: var(--accent); font-weight: 700; white-space: nowrap; font-size: 13.5px; min-width: 118px; }
.cmd-row .desc { color: var(--ink-soft); font-size: 13.5px; }
.cmd-row .desc b { color: var(--ink); font-weight: 700; }
.cmd-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin: 28px 0 10px; }
.cmd-group-title:first-of-type { margin-top: 8px; }
@media (min-width: 700px) { .cmd-list { grid-template-columns: repeat(2, 1fr); } }

.note {
  color: var(--ink-soft); font-size: 13.5px; margin-top: 18px;
  padding: 15px 17px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.note b { color: var(--ink); }
.note + .note { margin-top: 10px; }

/* ---------- Harga ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 18px; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -26px rgba(19,15,33,.3); }
.plan.featured {
  border-color: var(--accent);
  position: relative;
  background: linear-gradient(165deg, #221c3d, var(--ink) 65%);
  color: var(--paper);
  box-shadow: 0 30px 60px -28px rgba(90,75,224,.55);
}
.plan.featured:hover { box-shadow: 0 34px 64px -26px rgba(90,75,224,.65); }
.plan.featured .plan-badge {
  position: absolute; top: -13px; right: 24px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  padding: 6px 13px; border-radius: 999px; letter-spacing: .02em;
  box-shadow: 0 8px 18px -6px rgba(90,75,224,.55);
}
.plan h3 { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); font-weight: 700; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .05em; }
.plan.featured h3 { color: rgba(246,245,252,.6); }
.plan .price { font-family: var(--font-display); font-size: 40px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.plan .price span { font-size: 14px; color: var(--ink-soft); font-weight: 500; font-family: var(--font-body); }
.plan.featured .price span { color: rgba(246,245,252,.6); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.plan.featured li { color: rgba(246,245,252,.85); }
.plan li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke: var(--accent); }
.plan.featured li svg { stroke: #b7abfa; }
.plan li.locked { opacity: .5; }
.plan li.locked svg { stroke: var(--ink-faint); }

@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 70px; }
.cta-card {
  background: linear-gradient(155deg, #241d42, var(--ink) 70%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(90,75,224,.4);
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(246,245,252,.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.cta-card::after {
  content: '';
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 280px;
  background: radial-gradient(circle, rgba(143,124,247,.35), transparent 70%);
  filter: blur(30px);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-family: var(--font-display); font-size: clamp(25px, 4.2vw, 36px); margin: 0 0 12px; letter-spacing: -.015em; }
.cta-card p { color: rgba(246,245,252,.68); font-size: 15.5px; margin: 0 0 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer { padding: 34px 0 44px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-direction: column; gap: 8px; color: var(--ink-faint); font-size: 13px; }
@media (min-width: 700px) { footer .wrap { flex-direction: row; justify-content: space-between; } }
