/* ============================================================
   DIGIFANA /auto — near-black + orange glow + glassmorphism
   Brand DNA: orange #E8430A · black #0A0A0A · white #FFFFFF (mono-orange).
   Khusus halaman lead automation. Halaman lain pakai theme.css (token sama).
   --bad sengaja merah (bukan orange) biar kolom "pain" tetap kebaca negatif.
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --panel: rgba(26, 16, 12, 0.55);
  --line: rgba(232, 67, 10, 0.16);
  --acc: #e8430a;
  --acc2: #ff7a3c;
  --txt: #ffffff;
  --mut: #b9ada6;
  --good: #34d399;
  --bad: #fb7185;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; position: relative; }
a { color: var(--acc); text-decoration: none; }

/* ---------- background layers ---------- */
.bg-grid, .bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 80%);
}
.bg-glow {
  background:
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(232, 67, 10, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 25%, rgba(255, 122, 60, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 35% at 10% 70%, rgba(232, 67, 10, 0.07), transparent 70%);
}
header, section, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; letter-spacing: 0.06em; color: var(--txt); font-size: 17px; }
.logo span { color: var(--acc); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--acc), #ff6a2b);
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 122, 60, 0.35) inset, 0 8px 30px rgba(232, 67, 10, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 150, 100, 0.5) inset, 0 14px 40px rgba(232, 67, 10, 0.5); }
.btn .arr {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.18); font-size: 13px;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- type ---------- */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--acc); text-transform: uppercase; margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.grad {
  background: linear-gradient(95deg, #ff7a3c, var(--acc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub, .sec-sub { color: var(--mut); font-size: clamp(15px, 2vw, 17px); max-width: 640px; }
.sub strong, .sec-sub strong { color: var(--txt); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 0; text-align: center; }
.hero .sub { margin: 18px auto 28px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-note { font-size: 13px; color: var(--mut); }

/* ---------- orbit ---------- */
.orbit { position: relative; height: 380px; margin-top: 10px; }
#orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip {
  position: absolute; top: 50%; left: 50%;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  background: rgba(26, 16, 12, 0.85);
  border: 1px solid rgba(232, 67, 10, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.chip-core {
  z-index: 6; padding: 11px 18px; font-size: 14px;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 36px rgba(52, 211, 153, 0.25), 0 0 80px rgba(232, 67, 10, 0.2);
  animation: pulse 3.2s ease-in-out infinite;
}
.chip-sat { color: #f5d7c8; }
.chip-sat svg { color: var(--acc); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(52, 211, 153, 0.2), 0 0 70px rgba(232, 67, 10, 0.16); }
  50% { box-shadow: 0 0 44px rgba(52, 211, 153, 0.35), 0 0 110px rgba(232, 67, 10, 0.3); }
}

/* ---------- stats ---------- */
.stats { padding: 30px 0 10px; }
.stats-in {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(28px, 5vw, 42px); font-weight: 800; color: var(--txt); }
.stat strong em { font-style: normal; font-size: 0.5em; color: var(--acc); margin-left: 2px; }
.stat span { font-size: 13px; color: var(--mut); letter-spacing: 0.04em; }

/* ---------- glass card base ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: 19px; z-index: -1;
  background: linear-gradient(135deg, rgba(232, 67, 10, 0.55), rgba(255, 122, 60, 0.25), transparent 60%);
  filter: blur(10px); opacity: 0.55;
}

/* ---------- gap (pain vs solusi) ---------- */
.gap { padding: 80px 0 30px; }
.gap .sec-sub { margin-bottom: 34px; }
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gcard { padding: 26px; }
.gcard-label { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.gcard-label.bad { color: var(--bad); }
.gcard-label.good { color: var(--good); }
.xlist li, .vlist li {
  list-style: none; padding: 8px 0 8px 30px; position: relative;
  color: var(--mut); font-size: 15px;
}
.vlist li { color: #e7ddd6; }
.xlist li::before, .vlist li::before {
  position: absolute; left: 0; top: 8px; font-weight: 800;
}
.xlist li::before { content: "✕"; color: var(--bad); }
.vlist li::before { content: "✓"; color: var(--good); }
.vlist.big li { font-size: 16px; padding: 10px 0 10px 32px; }
.vlist.big strong { color: var(--txt); }

/* ---------- how ---------- */
.how { padding: 70px 0 30px; text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; text-align: left; }
.hcard { padding: 26px; transition: border-color 0.25s ease; }
.hcard:hover { border-color: rgba(232, 67, 10, 0.4); }
.hcard p { color: var(--mut); font-size: 14.5px; }
.hnum {
  display: inline-block; font-size: 13px; font-weight: 800; color: var(--acc);
  border: 1px solid rgba(232, 67, 10, 0.4); border-radius: 8px;
  padding: 4px 10px; margin-bottom: 16px; letter-spacing: 0.1em;
}
.hcard-acc { background: linear-gradient(160deg, rgba(232, 67, 10, 0.32), rgba(26, 16, 12, 0.6)); }

/* ---------- get ---------- */
.get { padding: 70px 0 30px; text-align: center; }
.get-card { padding: 34px; margin-top: 30px; text-align: left; }
.get-note { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mut); font-size: 14.5px; }

/* ---------- form ---------- */
.cta { padding: 80px 0 90px; }
.form-card { padding: 40px; max-width: 560px; margin: 0 auto; text-align: center; }
.form-card .sec-sub { margin: 0 auto 26px; }
#lead-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
#lead-form label { font-size: 13px; font-weight: 700; color: var(--mut); letter-spacing: 0.04em; }
#lead-form .opt { font-weight: 400; opacity: 0.7; }
#lead-form input {
  display: block; width: 100%; margin-top: 6px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; color: var(--txt); font-size: 16px;
  outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#lead-form input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(232, 67, 10, 0.18); }
#f-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-err { color: #fb7185; font-size: 13.5px; min-height: 1em; text-align: center; }
#lead-form .cta-note { text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* success */
.success-ico {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--good);
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.25);
}
#success-state .btn { margin: 18px 0 14px; }
#success-state .cta-note { max-width: 380px; margin: 0 auto; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 0; text-align: center; overflow: hidden; }
.foot-links { font-size: 14px; color: var(--mut); margin-bottom: 10px; }
.foot-links a { color: var(--mut); }
.foot-links a:hover { color: var(--txt); }
.foot-mark {
  font-size: clamp(70px, 16vw, 170px); font-weight: 800; letter-spacing: 0.04em;
  line-height: 1; transform: translateY(18%);
  background: linear-gradient(180deg, rgba(232, 67, 10, 0.22), transparent 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ---------- reveal & tilt ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-tilt] { transform-style: preserve-3d; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .chip-core { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 54px; }
  .orbit { height: 300px; }
  .gap-grid, .how-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .stats-in { gap: 6px; }
}

/* ============================================================
   STACK STRIP (logo cloud) — dipakai di SEMUA landing page.
   Port dari pola shadcn "logo-cloud-2" ke static CSS:
   grid berbingkai 2 kolom (mobile) / 4 kolom (desktop),
   checkerboard halus + tanda "+" di tiap persilangan grid.
   Logo di /assets/logos/*.svg — wordmark versi light, dibikin
   putih via filter biar mono (sesuai DNA mono-orange).
   Token-nya sama dengan theme.css — kalau ganti, ganti dua file.
   ============================================================ */
.stack-cloud { padding: 54px 0 30px; }
.stack-cloud .wrap { text-align: center; }
.stack-cloud .sec-sub { margin: 0 auto 30px; }
.stack-fine { margin-top: 18px; font-size: 12px; color: var(--mut); opacity: 0.6; }

.logo-cloud {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
/* garis atas & bawah full-bleed (nembus lebar viewport) */
.logo-cloud::before,
.logo-cloud::after {
  content: ""; position: absolute; left: 50%; width: 100vw;
  transform: translateX(-50%); border-top: 1px solid var(--line);
  pointer-events: none;
}
.logo-cloud::before { top: -1px; }
.logo-cloud::after { bottom: -1px; }

.lc-cell {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 26px 14px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--mut); opacity: 0.78;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease, color 0.2s ease;
}
.lc-cell:hover { opacity: 1; color: var(--txt); }
.lc-cell img {
  display: block; height: 20px; width: auto;
  filter: brightness(0) invert(1);
  pointer-events: none; user-select: none;
}
/* YouTube: logonya multi-warna — brightness(0) bikin play-triangle-nya ilang,
   jadi dia pakai invert+grayscale biar detailnya tetep kebaca */
.lc-cell img[alt="YouTube"] { filter: invert(1) grayscale(1); }
.lc-cell svg { flex: 0 0 auto; width: 19px; height: 19px; }

/* checkerboard — mobile (2 kolom): sel 1,4,5,8 */
.lc-cell:nth-child(4n+1), .lc-cell:nth-child(4n) { background: rgba(232, 67, 10, 0.05); }
.lc-cell:nth-child(2n) { border-right: 0; }
.lc-cell:nth-child(n+7) { border-bottom: 0; }

/* tanda "+" di persilangan grid */
.lc-plus { position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; z-index: 2; }
.lc-plus::before, .lc-plus::after { content: ""; position: absolute; background: var(--acc); opacity: 0.5; }
.lc-plus::before { left: 50%; top: 4px; bottom: 4px; width: 1px; transform: translateX(-50%); }
.lc-plus::after { top: 50%; left: 4px; right: 4px; height: 1px; transform: translateY(-50%); }
.lc-cell:nth-child(2) .lc-plus { display: none; }

@media (min-width: 760px) {
  .logo-cloud { grid-template-columns: repeat(4, 1fr); }
  .lc-cell { padding: 30px 16px; }
  /* checkerboard — desktop (4 kolom): sel 1,3,6,8 */
  .lc-cell:nth-child(4n+1), .lc-cell:nth-child(4n) { background: none; }
  .lc-cell:nth-child(8n+1), .lc-cell:nth-child(8n+3),
  .lc-cell:nth-child(8n+6), .lc-cell:nth-child(8n) { background: rgba(232, 67, 10, 0.05); }
  .lc-cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .lc-cell:nth-child(4n) { border-right: 0; }
  .lc-cell:nth-child(n+5) { border-bottom: 0; }
  .lc-cell:nth-child(2) .lc-plus { display: block; }
  .lc-cell:nth-child(5) .lc-plus { display: none; }
}
@media (max-width: 420px) {
  .lc-cell { font-size: 13px; gap: 7px; padding: 22px 9px; }
  .lc-cell img { height: 17px; }
  .lc-cell svg { width: 17px; height: 17px; }
}
