/* ============================================================
   SOLUSI OSINT — sistem tampilan
   REVAMP TERANG 19/10/2026 — paper bersih + tinta netral,
   aksen MERAH sebagai warna utama (revisi), hijau hanya utk status sukses. Kelas lama dipertahankan.
   ============================================================ */

:root {
  /* permukaan terang */
  --paper: #f7faf7;
  --paper-2: #eff5f0;
  --card: #fdfefd;
  --line: #dbe7dd;
  --line-2: #839a8a;

  /* merek — nama var 'green*' historis; nilainya kini MERAH (swap 19/10) */
  --green: #b32433;
  --green-2: #921d2a;
  --green-ink: #48121a;
  --green-soft: #f9e7ea;
  --green-line: rgba(179, 36, 51, 0.33);
  /* semantik status (tetap) */
  --ok: #0a7f43;
  --warn: #8a6200;
  --red: #c92a3c;
  --red-2: #a82333;
  --red-soft: #fbeaec;
  --red-line: rgba(201, 42, 60, 0.28);

  /* teks */
  --ink: #14271b;
  --muted: #4f685a;
  --muted-2: #5e7a68;

  /* bayangan & radius */
  --shadow-sm: 0 1px 2px rgba(20, 39, 27, 0.05), 0 2px 8px rgba(20, 39, 27, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 39, 27, 0.08), 0 2px 6px rgba(20, 39, 27, 0.06);
  --radius: 12px;
  --radius-lg: 16px;

  /* tipografi */
  --disp: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

  /* alias kompatibilitas — nama lama dipakai tools.css / auth.css / inline lama */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--card);
  --panel: var(--card);
  --text: var(--ink);
  --green-dim: var(--green-soft);
  --green-glow: rgba(179, 36, 51, 0.15);
  --red-dim: #f0c6cc;
  --red-glow: rgba(201, 42, 60, 0.15);
}

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

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* garis aksen atas — ornamen global tunggal */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green);
  z-index: 60;
  pointer-events: none;
}

.container { width: min(1160px, 92%); margin: 0 auto; position: relative; z-index: 1; }

/* fokus & aksesibilitas */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 247, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-img { height: 40px; width: auto; display: block; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: var(--green-2); font-size: 15px;
}
.logo-text { font-family: var(--mono); font-weight: 700; letter-spacing: 0.4px; font-size: 17px; color: var(--ink); }
.logo-text em { color: var(--green-2); font-style: normal; }
.logo-text .dot { color: var(--red); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--green-2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  font-family: var(--sans);
}
.btn-primary { background: var(--green); color: #ffffff; }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-2); }
.btn-red { background: var(--red); color: #ffffff; }
.btn-red:hover { background: var(--red-2); }

.nav-burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--green-2); margin: 4px 0; border-radius: 2px; }

/* ---------- HERO ---------- */
.hero { padding: 84px 0 112px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--green-ink); border: 1px solid var(--green-line); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px;
  background: var(--green-soft);
}
.badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 42, 60, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(201, 42, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 42, 60, 0); }
}

h1.hero-title {
  font-family: var(--disp);
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 22px;
  color: var(--ink);
}
.grad {
  color: var(--green-2);
  text-decoration: underline;
  text-decoration-color: var(--green-soft);
  text-decoration-thickness: 6px;
  text-underline-offset: 5px;
}
.hero-sub { color: var(--muted); font-size: 17px; max-width: 540px; margin-bottom: 34px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.hero-meta .tick { color: var(--green); font-weight: 700; }

/* ---------- KONSOL PENCARIAN ---------- */
.console {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.console-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.console-bar .r { background: #e15b68; }
.console-bar .y { background: #e8b74a; }
.console-bar .g { background: #57b878; }
.console-bar span { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.console-body { padding: 22px 20px 18px; }
.console-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--green-2); margin-bottom: 16px;
}
.console-status .live {
  background: var(--red); color: #ffffff; font-size: 10.5px; padding: 2px 8px;
  border-radius: 999px; letter-spacing: 1.2px; font-weight: 700;
}

.search-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.search-tab {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.search-tab:hover { color: var(--green-2); border-color: var(--line-2); }
.search-tab.active {
  color: #ffffff; background: var(--green-2); border-color: var(--green-2);
  font-weight: 700;
}
.search-row { display: flex; gap: 10px; }
.search-input {
  flex: 1; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 14px 16px; color: var(--ink); font-size: 14.5px; font-family: var(--sans);
  outline: none; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search-input::placeholder { color: var(--muted-2); }
.search-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.search-btn {
  padding: 14px 26px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--green);
  color: #ffffff; font-weight: 700; font-size: 14.5px; font-family: var(--sans);
  transition: background-color 160ms ease;
}
.search-btn:hover { background: var(--green-2); }

.console-log {
  margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  min-height: 76px;
}
.console-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-log .ok { color: var(--ok); }
.console-log .warn { color: var(--red-2); }

/* ---------- SECTION UMUM ---------- */
section { padding: 80px 0 96px; position: relative; }
#layanan, #keunggulan { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-tag {
  font-family: var(--mono); color: var(--red-2); font-size: 12.5px; letter-spacing: 2.2px;
  text-transform: uppercase; display: block; margin-bottom: 12px;
}
h2.sec-title { font-family: var(--disp); font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.4px; line-height: 1.18; margin-bottom: 14px; color: var(--ink); }
.sec-desc { color: var(--muted); font-size: 16px; max-width: 68ch; }

/* ---------- TOOLS GRID ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; position: relative; overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.tool-icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid var(--green-line);
  margin-bottom: 16px; position: relative;
}
.tool-icon svg { width: 21px; height: 21px; stroke: var(--green-2); }
.tool-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; position: relative; color: var(--ink); }
.tool-card p { color: var(--muted); font-size: 13.8px; line-height: 1.55; position: relative; }
.tool-tag {
  display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 1.2px; padding: 3px 9px; border-radius: 6px;
  color: var(--red-2); border: 1px solid var(--red-line); background: var(--red-soft);
  position: relative;
}
.tool-tag.on { color: var(--green-2); border-color: var(--green-line); background: var(--green-soft); }

/* ---------- CARA KERJA ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  background: var(--card);
  position: relative;
}
.step-num {
  font-family: var(--mono); font-size: 13px; color: #ffffff;
  background: var(--green-2); width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- KEUNGGULAN ---------- */
.why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-list { list-style: none; display: grid; gap: 16px; }
.why-list li {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  background: var(--card);
}
.why-list .ic { flex: 0 0 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--green-line); background: var(--green-soft); }
.why-list .ic svg { width: 17px; height: 17px; stroke: var(--green-2); }
.why-list .ic.red { border-color: var(--red-line); background: var(--red-soft); }
.why-list .ic.red svg { stroke: var(--red-2); }
.why-list h4 { font-size: 15.5px; margin-bottom: 3px; color: var(--ink); }
.why-list p { color: var(--muted); font-size: 13.6px; }

/* terminal tetap gelap — blok kontras yang disengaja */
.term {
  background: #0d1a12; border: 1px solid #1d3327; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-bottom: 1px solid #1d3327; background: #102316; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; }
.term-bar .r { background: #e15b68; } .term-bar .y { background: #e8b74a; } .term-bar .g { background: #57b878; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: #9b8085; }
.term-body { padding: 18px; font-family: var(--mono); font-size: 13px; line-height: 1.95; }
.term-body .p { color: #ff97a4; }
.term-body .c { color: #dcefe2; }
.term-body .m { color: #9b8085; }
.term-body .r { color: #ffc857; }
.term-body .g { color: #ffb6c0; }

/* ---------- CTA ---------- */
.cta-box {
  border: 1px solid var(--green-ink); border-radius: 20px; padding: 56px 40px; text-align: center;
  background: var(--green-ink);
  color: #eaf7ee;
}
.cta-box h2 { font-family: var(--disp); font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 12px; font-weight: 700; color: #ffffff; }
.cta-box p { color: #c9e6d4; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-primary { background: #ffffff; color: var(--green-ink); }
.cta-box .btn-primary:hover { background: var(--green-soft); }
.cta-box .btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #ffffff; background: transparent; }
.cta-box .btn-ghost:hover { border-color: #ffffff; color: #ffffff; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 34px; background: var(--paper-2); position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-brand p { color: var(--muted); font-size: 13.8px; margin-top: 14px; max-width: 300px; }
.foot-col h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 160ms ease; }
.foot-col a:hover { color: var(--green-2); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 12.8px; font-family: var(--mono);
}
.disclaimer { color: var(--muted-2); font-size: 12.3px; margin-top: 10px; max-width: 820px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 22px; font-size: 14px; color: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease; z-index: 100;
  font-family: var(--mono); display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .d { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .why-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 18px 6%; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav .btn-primary { display: none; }
  .steps { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .search-btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 72px; }
  section { padding: 60px 0 72px; }
  .cta-box { padding: 40px 22px; }
}

/* Hormati preferensi gerak minimal */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .badge .pulse { animation: none; }
  .tool-card, .btn, .search-btn, .search-tab { transition: none; }
}

/* Banner pengumuman (dikelola dari Ruang Admin) */
.cms-banner{background:var(--green-soft);border-bottom:1px solid var(--green-line);color:var(--green-ink);text-align:center;padding:9px 16px;font-size:14px;font-weight:600;letter-spacing:.2px}
.cms-banner[hidden]{display:none}
