/* ==========================================================
   Lam Alif Indonesia
   Layout: huruf besar sebagai struktur. Gerbang, layanan, dan kontak
   memakai baris-baris tipografi lebar yang sama; satu aksen amber
   (garis Alif) dipakai hemat.
   ========================================================== */
:root {
  /* tema terang */
  --bg: #F3F6F5;          /* putih dengan bias teal */
  --fg: #0F2A2E;          /* ink */
  --muted: #56696A;
  --line: #D3DDDB;
  --surface: #FFFFFF;
  --panel: #E3EBE9;       /* latar bingkai screenshot */
  --shot-edge: rgba(15, 42, 46, .12);
  --teal: #0B7A6C;
  --amber: #F2A93B;       /* aksen: garis Alif */
  --deep: #0F2A2E;        /* permukaan gelap: gerbang & kontak */
  --on-deep: #EEF3F2;
  --on-deep-muted: #8EA6A4;
  --deep-line: #24464A;
  --pattern: #16393E;     /* pola Kufi di atas --deep, satu tingkat lebih terang */

  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Noto Kufi Arabic", "Geeza Pro", "Arabic Typesetting", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1A1C; --fg: #E6EEEC; --muted: #8DA2A0; --line: #1E373A; --surface: #0F2326; --panel: #12292C; --shot-edge: rgba(230, 238, 236, .14); --teal: #5CC4B3;
    --deep: #06292B; --on-deep: #EEF3F2; --on-deep-muted: #8EA6A4; --deep-line: #1D4A4D; --pattern: #0D3538;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1A1C; --fg: #E6EEEC; --muted: #8DA2A0; --line: #1E373A; --surface: #0F2326; --panel: #12292C; --shot-edge: rgba(230, 238, 236, .14); --teal: #5CC4B3;
  --deep: #06292B; --on-deep: #EEF3F2; --on-deep-muted: #8EA6A4; --deep-line: #1D4A4D; --pattern: #0D3538;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html:not(.has-lang) body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Logo mark (lam alif, gaya Kufi) ---------- */
.mark { overflow: visible; }
.mark__lam { fill: var(--fg); }
.mark__alif { fill: var(--amber); }
.mark path { transform-box: fill-box; }
.mark .mark__lam { clip-path: inset(0 0 100% 0); }
.mark .mark__alif { opacity: 0; transform: translateY(-40%); }
@keyframes reveal-lam { to { clip-path: inset(0 0 0 0); } }
@keyframes drop-alif { to { opacity: 1; transform: none; } }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px;
  font: 700 .95rem/1 var(--body); white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--fg { background: var(--fg); color: var(--bg); }
.btn--amber { background: var(--amber); color: #0F2A2E; }

/* ---------- Baris tipografi (gerbang & kontak) ---------- */
.row-link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: .45em 0; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--deep-line);
  color: var(--on-deep); cursor: pointer;
  font: 800 clamp(2.1rem, 7vw, 5.5rem)/1.1 var(--display); letter-spacing: -0.035em;
  transition: color .25s ease;
}
.row-link:last-child { border-bottom: 1px solid var(--deep-line); }
.row-link i {
  font-style: normal; font-weight: 500; font-size: .6em; color: var(--amber);
  transition: transform .35s var(--ease);
}
.row-link:hover { color: var(--amber); }
.row-link:hover i { transform: translateX(.35em); }

/* ---------- Gerbang bahasa ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 4vw, 40px) var(--gutter);
  background: var(--deep); color: var(--on-deep);
  transition: transform .9s var(--ease);
}
html.has-lang .gate { display: none; }
.gate.is-leaving { transform: translateY(-100%); }

/* Pola Kufi murabba' sebagai tekstur, bukan logo */
.kufi-bg { position: absolute; top: 0; height: 100%; pointer-events: none; }
.gate__pattern {
  right: 0; width: clamp(56px, 18vw, 260px);
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
          mask-image: linear-gradient(to left, #000 35%, transparent);
  opacity: 0; animation: fade-in 1.2s ease .8s forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.gate__top, .gate__choices, .gate__foot { position: relative; }
.gate__top, .gate__choices, .gate__foot { width: 100%; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; }
.gate__top { display: flex; align-items: center; gap: 12px; }
.gate .mark { width: 44px; height: 44px; }
.gate .mark__lam { fill: var(--on-deep); }
.gate .mark .mark__lam { animation: reveal-lam .8s var(--ease) forwards; }
.gate .mark .mark__alif { animation: drop-alif .7s var(--ease) .5s forwards; }
.gate__name { font: 800 1.35rem/1 var(--display); letter-spacing: -0.03em; }

.gate__choices {
  align-self: center; display: grid;
}
.gate__hint {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-deep-muted); margin-bottom: 20px;
}
.gate__choices .row-link { opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease) forwards; }
.gate__choices .row-link:nth-of-type(1) { animation-delay: .35s; }
.gate__choices .row-link:nth-of-type(2) { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.gate__foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--on-deep-muted);
}
.gate__foot .ar { font: 800 1.4rem/1 var(--arabic); color: var(--amber); }

/* ---------- Navigasi ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font: 800 1.2rem/1 var(--display); letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 28px; font-weight: 600; font-size: .95rem; }
.nav__links a { color: var(--muted); transition: color .2s ease; }
.nav__links a:hover { color: var(--fg); }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.switch button {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: 7px 10px; border-radius: 999px;
}
.switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 5vw, 80px);
  align-items: end; padding-block: clamp(56px, 10vw, 140px) clamp(24px, 4vw, 56px);
}
.hero__title {
  grid-column: 1; max-width: 13ch;
  font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em;
}
.hero__row {
  grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 40px;
}
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); }
.hero__mark { grid-column: 2; grid-row: 1 / span 2; width: clamp(110px, 20vw, 280px); height: auto; }
html.has-lang .hero__mark .mark__lam { animation: reveal-lam .9s var(--ease) .1s forwards; }
html.has-lang .hero__mark .mark__alif { animation: drop-alif .8s var(--ease) .6s forwards; }

/* ---------- Seksi ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section__title {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: clamp(28px, 4vw, 48px);
}

/* Produk: teks + screenshot asli, sisi berselang */
.products { display: grid; gap: clamp(64px, 9vw, 120px); }
.product {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.product--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product--flip .product__text { order: 2; }
.product__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.product__head { display: flex; align-items: center; gap: 14px; }
.product__head img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.product h3 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.product__lead { font-size: 1.2rem; font-weight: 600; }
.product__list { list-style: none; margin: 0; padding: 0; display: grid; }
.product__list li { padding-block: 11px; border-top: 1px solid var(--line); color: var(--muted); }
.product__list li:last-child { border-bottom: 1px solid var(--line); }
.product__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5em; margin-top: 4px;
  padding: .85em 1.4em; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-weight: 700; font-size: .95rem; transition: transform .2s ease;
}
.product__link i { font-style: normal; color: var(--amber); transition: transform .35s var(--ease); }
.product__link:hover { transform: translateY(-2px); }
.product__link:hover i { transform: translateX(.25em); }

.product__shots {
  position: relative; margin: 0; min-width: 0;
  padding: clamp(16px, 2.4vw, 28px); padding-right: clamp(48px, 9vw, 120px);
  border-radius: 28px; background: var(--panel);
}
.product--flip .product__shots { padding-right: clamp(16px, 2.4vw, 28px); padding-left: clamp(48px, 9vw, 120px); }
.shot { display: block; height: auto; max-width: 100%; background: #fff; }
.shot--desk {
  width: 100%; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--shot-edge), 0 18px 40px -18px rgba(8, 30, 33, .35);
}
.shot--phone {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(-28px, -2vw, -16px);
  width: clamp(96px, 19%, 168px);
  border-radius: 18px; border: 5px solid #0F2A2E;
  box-shadow: 0 20px 40px -16px rgba(8, 30, 33, .45);
}
.product--flip .shot--phone { right: auto; left: clamp(12px, 2vw, 24px); }

/* Layanan: baris huruf besar */
.services { list-style: none; margin: 0; padding: 0; }
.services li {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 12px 40px; align-items: center;
  padding-block: clamp(20px, 2.6vw, 32px);
  border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--amber); transition: width .6s var(--ease);
}
.services li:hover::before { width: 100%; }
.services h3 {
  font-size: clamp(2.2rem, 6vw, 5.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em;
  transition: transform .5s var(--ease);
}
.services li:hover h3 { transform: translateX(.18em); }
.services p { color: var(--muted); font-size: 1.05rem; }

/* Cara kerja */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps b {
  display: block; font: 800 clamp(3rem, 5vw, 4.5rem)/1 var(--display); letter-spacing: -0.04em;
  color: var(--teal); margin-bottom: 20px;
}
.steps h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* Kontak */
.cta { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep); padding-block: clamp(72px, 11vw, 160px); }
.cta__pattern {
  left: 0; width: 100%;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%);
          mask-image: linear-gradient(to left, #000 10%, transparent 75%);
}
.cta__inner { position: relative; }
.cta h2 {
  font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em;
  max-width: 12ch; margin-bottom: clamp(40px, 6vw, 72px);
}
.cta__links { display: grid; }
.cta .row-link { font-size: clamp(1.5rem, 4.2vw, 3.5rem); padding-block: .6em; }
.cta .row-link span { display: grid; gap: 6px; min-width: 0; }
.cta .row-link small {
  font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted);
}
.cta .row-link b { font-weight: 800; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--deep); color: var(--on-deep-muted); font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; border-top: 1px solid var(--deep-line); }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .product, .product--flip { grid-template-columns: 1fr; }
  .product--flip .product__text { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .services li { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__inner { gap: 12px; height: 64px; }
  .hero { grid-template-columns: 1fr; }
  .hero__mark { grid-column: 1; grid-row: 1; width: 96px; margin-bottom: 32px; }
}
@media (max-width: 420px) {
  .nav__cta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero__row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark .mark__lam { clip-path: none; }
  .mark .mark__alif { opacity: 1; transform: none; }
  .gate__choices .row-link { opacity: 1; transform: none; }
  .gate__pattern { opacity: 1; }
}
