/* ============================================================
   Ezhar Digital — Landing Page
   Konsep: "ruang kendali yang tenang"
   Kertas hijau-abu, tinta pinus, hijau = tanda hidup/aksi.
   Struktur dari hairline rules, bukan kartu seragam.
   ============================================================ */

:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --ink: #16241e;
  --soft: #5a6b62;
  --line: #dfe6de;
  --brand: #1e6b50;
  --brand-hover: #175540;
  --brand-ink: #ffffff;
  --brand-soft: #e7f1eb;
  --live: #23985c;
  --warn: #dd8f2e;
  --log-bg: #10201a;
  --log-ink: #bfd6c9;
  --log-time: #7f9c8d;
  --shadow: 0 30px 70px -34px rgba(22, 36, 30, 0.35);
  --shadow-sm: 0 1px 2px rgba(22, 36, 30, 0.05);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1a15;
  --surface: #16251f;
  --ink: #e9f0ea;
  --soft: #9db3a8;
  --line: #26382f;
  --brand: #4cc38a;
  --brand-hover: #63d6a0;
  --brand-ink: #0c1712;
  --brand-soft: #1b2f26;
  --live: #3ed598;
  --warn: #e8a33d;
  --log-bg: #0b1511;
  --log-ink: #a9c4b6;
  --log-time: #71917f;
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--brand-soft); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1120px, 92%); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92%); }
.mono { font-family: var(--mono); }
.muted { color: var(--soft); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-block { width: 100%; }
.icon-wa { width: 19px; height: 19px; }

.text-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--brand-hover); }
[data-theme="dark"] .text-link:hover { color: var(--brand-hover); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.nav.scrolled { box-shadow: 0 12px 32px -18px rgba(22, 36, 30, 0.25); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-alt { color: var(--brand); }

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.menu > a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--soft);
  transition: color 0.18s ease;
}
.menu > a:not(.btn):hover { color: var(--ink); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 156px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.lede {
  font-size: 1.13rem;
  color: var(--soft);
  max-width: 470px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.stats {
  display: flex;
  gap: 44px;
}
.stats > div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  min-width: 118px;
}
.stats dt {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stats dd {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--soft);
  letter-spacing: 0.02em;
}

/* ---------- Panel pemantauan (elemen khas) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--soft);
}
.panel-head .chip { margin-left: auto; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
}

.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.panel-rows { padding: 8px 20px; }
.panel-rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 0.8rem;
}
.panel-rows li + li { border-top: 1px dashed var(--line); }
.panel-rows .svc { font-family: var(--font); font-weight: 600; font-size: 0.92rem; }
.panel-rows .val { color: var(--soft); margin-left: auto; }
.panel-rows .st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--live);
  font-weight: 500;
  min-width: 74px;
  justify-content: flex-end;
}
.panel-rows .dot, .reasons .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
}

.panel-uptime {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.bars { display: flex; gap: 3px; flex: 1; }
.bars i {
  flex: 1;
  height: 26px;
  border-radius: 2.5px;
  background: var(--live);
  opacity: 0.4;
}
.bars i.warn { background: var(--warn); opacity: 0.85; }
.panel-uptime .mono { font-size: 0.7rem; white-space: nowrap; }

.panel-log {
  background: var(--log-bg);
  color: var(--log-ink);
  padding: 16px 20px;
  font-size: 0.74rem;
  line-height: 1.9;
  border-top: 1px solid var(--line);
  min-height: 148px;
}
.panel-log .lt { color: var(--log-time); margin-right: 10px; }

.panel-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--soft);
}

/* ---------- Strip klien ---------- */
.strip {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  text-align: center;
}
.strip-cap {
  font-size: 0.72rem;
  color: var(--soft);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--soft);
  opacity: 0.75;
}

/* ---------- Section umum ---------- */
.sec { border-top: 1px solid var(--line); padding: 104px 0; }

.sec-head {
  max-width: 620px;
  margin-bottom: 60px;
}
.sec-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.sec-head p { color: var(--soft); font-size: 1.04rem; }

/* ---------- Ledger masalah → solusi ---------- */
.ledger-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px 56px;
  padding: 30px 0;
}
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-row .q {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.ledger-row .a p { color: var(--soft); margin-bottom: 12px; }
.ledger-row .ref {
  font-size: 0.72rem;
  color: var(--brand);
  background: var(--brand-soft);
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- Indeks layanan (accordion) ---------- */
.svc-item { border-top: 1px solid var(--line); }
.svc-item:last-child { border-bottom: 1px solid var(--line); }

.svc-item summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
}
.svc-item summary::-webkit-details-marker { display: none; }

.svc-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.svc-item summary:hover .svc-name { color: var(--brand); }
.svc-short {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--soft);
}

.svc-x { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.svc-x::before, .svc-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.svc-x::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .svc-x::after { transform: translate(-50%, -50%) rotate(0deg); }

.svc-body { padding: 2px 4px 30px; max-width: 640px; }
.svc-body p { color: var(--soft); margin-bottom: 16px; }
.svc-body .meta {
  font-size: 0.73rem;
  color: var(--soft);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

/* ---------- Kenapa kami ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.split-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.split-copy > p, .split-copy > .lede { color: var(--soft); font-size: 1.04rem; }

.reasons li {
  display: flex;
  gap: 16px;
  padding: 19px 0;
}
.reasons li + li { border-top: 1px solid var(--line); }
.reasons .dot { margin-top: 9px; }
.reasons strong { display: block; margin-bottom: 2px; }
.reasons div { color: var(--soft); font-size: 0.97rem; }
.reasons strong { color: var(--ink); font-size: 1.02rem; }

/* ---------- Cara kerja ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  counter-reset: langkah;
}
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.steps .n {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.steps p { font-size: 0.93rem; color: var(--soft); }

/* ---------- Portofolio ---------- */
.case {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 30px 0;
}
.case + .case { border-top: 1px solid var(--line); }

.case-thumb {
  width: 220px;
  height: 140px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-thumb svg { width: 52px; height: 52px; }

.case-body h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 7px; }
.case-body p { color: var(--soft); font-size: 0.96rem; margin-bottom: 12px; max-width: 560px; }
.case-body .meta { font-size: 0.73rem; color: var(--soft); }

/* ---------- Testimoni ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.quotes figure { border-top: 1px solid var(--line); padding-top: 22px; }
.qmark {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 6px;
}
.quotes blockquote { font-size: 1.02rem; margin-bottom: 16px; }
.quotes figcaption { font-size: 0.74rem; color: var(--soft); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  padding: 0 4px 22px;
  color: var(--soft);
  max-width: 640px;
}

/* ---------- Kontak ---------- */
#kontak { padding-bottom: 110px; }

.contact-list { margin: 34px 0; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
}
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list .lbl {
  font-size: 0.72rem;
  color: var(--soft);
  min-width: 84px;
}
.contact-list a { color: var(--brand); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe { display: block; width: 100%; height: 264px; border: 0; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.req { color: var(--warn); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input.invalid, .field select.invalid { border-color: #c2452d; }
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--soft);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 60px 0 0;
  transition: background-color 0.25s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--soft);
  max-width: 300px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.94rem; font-weight: 700; margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; color: var(--soft); transition: color 0.18s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.74rem; color: var(--soft); text-align: center; }

/* ---------- WA mengambang ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float:hover { background: var(--brand-hover); transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 44px; }
  .case { grid-template-columns: 180px 1fr auto; gap: 24px; }
  .case-thumb { width: 180px; height: 120px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 4vw 22px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu > a:not(.btn) { padding: 12px 8px; font-size: 1rem; border-radius: 8px; }
  .menu > a:not(.btn):hover { background: var(--brand-soft); }
  .menu .btn { margin-top: 10px; }

  .hero { padding: 132px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .panel { max-width: 560px; }

  .split { grid-template-columns: 1fr; gap: 44px; }
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 42px; }

  .hero { padding: 118px 0 60px; }
  .hero-cta .btn { width: 100%; }
  .stats { gap: 22px; flex-wrap: wrap; }
  .stats > div { min-width: 96px; flex: 1; }

  .ledger-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .ledger-row .q { font-size: 1.15rem; }

  .svc-item summary {
    grid-template-columns: 1fr auto;
  }
  .svc-short { display: none; }
  .svc-name { font-size: 1.13rem; }

  .steps { grid-template-columns: 1fr; gap: 26px; }

  .case { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .case-thumb { width: 100%; height: 150px; }
  .case .chip { justify-self: start; }

  .field-grid { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .contact-list .lbl { min-width: 74px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ---------- Gerak diminimalkan ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
