/* landing.css — halaman perkenalan (/). Aplikasinya sendiri memakai styles.css.
   Token warna sengaja disamakan dengan styles.css agar identitasnya menyatu. */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --line: #e5eaf2;
  --line-strong: #d5dde9;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eaf1ff;

  --male: #2563eb;
  --male-soft: #d7e5ff;
  --female: #d6249f;
  --female-soft: #f8d4ec;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .13);
  --radius: 14px;
  --radius-lg: 22px;

  --wrap: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code, kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}
kbd { box-shadow: 0 1px 0 var(--line-strong); }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
.wrap.narrow { width: min(100% - 40px, 780px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { left: 12px; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ tombol */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { border-color: #c2cddd; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .25), 0 8px 20px rgba(37, 99, 235, .22);
}
.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 2px 4px rgba(37, 99, 235, .28), 0 12px 28px rgba(37, 99, 235, .28);
}

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

.btn.lg { padding: 13px 24px; font-size: 16px; border-radius: 13px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 251, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand-logo { width: 32px; height: 32px; object-fit: contain; display: block; }
.brand-name { font-size: 16.5px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .8); }

/* ------------------------------------------------------------------- hero */

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 68px); }

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(33px, 4.4vw, 51px);
  font-weight: 800;
  margin-bottom: 20px;
}

.lede {
  font-size: clamp(16px, 1.35vw, 18px);
  color: #46536b;
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-art { min-width: 0; }

.tree-mock {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 34px rgba(15, 23, 42, .10));
}
.tree-mock .c-name {
  font-size: 13px;
  font-weight: 650;
  fill: var(--text);
  text-anchor: middle;
}
.tree-mock .c-sub {
  font-size: 10.5px;
  fill: var(--muted);
  text-anchor: middle;
}
.tree-mock .c-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-anchor: middle;
}
.tree-mock .c-badge {
  /* sebutkan font emoji supaya tidak jatuh ke glif hitam-putih di Linux/Windows */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 11px;
  text-anchor: middle;
}
.tree-mock .c-order {
  font-size: 11px;
  font-weight: 800;
  fill: var(--accent);
  text-anchor: middle;
}

/* ------------------------------------------------------------------ strip */

.strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.strip-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding: 18px 0;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
}
.strip-in span { display: inline-flex; align-items: center; gap: 8px; }
.strip-in span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* ---------------------------------------------------------------- section */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 780; }
.head-lede { margin-top: 16px; color: #46536b; font-size: 16.5px; }

/* ------------------------------------------------------------- grid fitur */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 18px;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}
.section.alt .feat { background: var(--surface-2); }
.feat:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.feat-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  font-size: 21px;
  margin-bottom: 16px;
}
.feat h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 9px; }
.feat p { color: var(--muted); font-size: 14.8px; }

/* --------------------------------------------------------------- dua kolom */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.reverse .split-copy { order: 2; }
.split.reverse .split-art { order: 1; }

.split-copy h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 780; margin-bottom: 18px; }

.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: #46536b;
  font-size: 15.2px;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.foot-note {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.section.alt .foot-note { background: var(--bg); }

/* --------------------------------------------------------------- mockup UI */

.split-art { min-width: 0; }

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14.5px;
}
.mock-x { color: var(--muted); font-size: 13px; }

.mock-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  padding: 20px 18px;
}
.mock-field { min-width: 0; }
.mock-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
}
.mock-input {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  background: var(--surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-swap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
}

.mock-result {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface-2));
}
.mock-answer { font-size: 16px; }
.mock-answer b { color: var(--accent-strong); }
.mock-meta { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.mock-path {
  margin-top: 12px;
  font-size: 12.5px;
  color: #46536b;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
}

.mock-body.share { display: block; }
.share-status,
.share-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.dot.green { background: #16a34a; }

.share-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 13.5px;
  overflow: hidden;
}
.share-link > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.share-copy {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-weight: 650;
  font-size: 12.5px;
}
.share-help { margin-top: 12px; font-size: 13px; color: var(--muted); }
.share-sync { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; }

/* ------------------------------------------------------------------- peran */

.roles { display: grid; gap: 14px; margin-top: 26px; }
.role {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.role p { color: var(--muted); font-size: 14.8px; }
.role-tag {
  display: inline-flex;
  justify-content: center;
  padding: 4px 0;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.role-tag.owner { background: var(--male-soft); color: var(--accent-strong); }
.role-tag.admin { background: var(--female-soft); color: #b01a83; }
.role-tag.public { background: #e2e8f0; color: #475569; }

/* ----------------------------------------------------------------- langkah */

.steps {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
}
.steps li {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
}
.section.alt .steps li { background: var(--bg); }
.step-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}
.steps h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 9px; }
.steps p { color: var(--muted); font-size: 14.8px; }

.mid-cta { margin-top: 40px; display: flex; justify-content: center; }

/* --------------------------------------------------------------------- faq */

.faq { display: grid; gap: 10px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 4px 20px;
  transition: border-color .18s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 34px 15px 0;
  font-weight: 650;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  transition: rotate .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  max-width: 68ch;
}

/* --------------------------------------------------------------- cta akhir */

.cta-final {
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(37, 99, 235, .10), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.cta-final h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.cta-final p {
  margin: 16px auto 30px;
  max-width: 52ch;
  color: #46536b;
  font-size: 17px;
}

/* ------------------------------------------------------------------ footer */

.foot {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.foot-brand { display: flex; gap: 18px; align-items: center; max-width: 460px; }
.foot-logo { width: 80px; height: 100px; object-fit: contain; flex: 0 0 auto; }
.foot-brand p { color: var(--muted); font-size: 13.5px; max-width: 34ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.foot-links a:hover { color: var(--accent); }

.foot-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.foot-credit .ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.foot-credit .ig:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }
.foot-credit .ig svg { flex: 0 0 auto; }
.foot-sep { opacity: .5; }

@media (max-width: 560px) {
  .foot-sep { display: none; }
  .foot-credit > span:last-child { flex-basis: 100%; }
}

/* -------------------------------------------------------------- responsif */

@media (max-width: 940px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 520px; margin-inline: auto; order: 2; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-copy,
  .split.reverse .split-art { order: initial; }
  .split-art { max-width: 560px; }
  .nav-links { display: none; }
  .brand-name { font-size: 16px; }
  .nav-in { justify-content: space-between; }
  .nav-cta { margin-left: auto; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero-cta .btn { flex: 1 1 auto; }
  .mock-body { grid-template-columns: 1fr; align-items: stretch; }
  .mock-swap { justify-self: center; rotate: 90deg; }
  .role { grid-template-columns: 1fr; gap: 6px; }
  .role-tag { justify-self: start; padding-inline: 14px; }
  .strip-in { gap: 8px 20px; font-size: 12.8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
