/* ==========================================================================
   renaldihairil.my.id — design tokens + shared components (v2 redesign)
   Fonts: Familjen Grotesk (text) + IBM Plex Mono (labels)
   ========================================================================== */

:root {
  /* type scale: 1 = the original design. Lower = smaller text. Edit these two numbers to tune the whole site. */
  --ts: 0.9;   /* normal text (15 px and up) */
  --td: 0.72;  /* big display headings */
  --bg: #0d0e11;
  --bgt: #0d0e11ee;
  --fg: #ecebe6;
  --card: #14161a;
  --card2: #191b20;
  --bd: #2a2c33;
  --bd2: #23252b;
  --bd3: #3a3d46;
  --mu: #b3b2ab;
  --fa: #6d707a;
  --ac: oklch(0.88 0.2 125);
  --act: oklch(0.88 0.2 125);
  --on-ac: #0d0e11;
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --nav-h: 68px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f6f5f1;
  --bgt: #f6f5f1ee;
  --fg: #16181d;
  --card: #fff;
  --card2: #efede7;
  --bd: #dedcd4;
  --bd2: #e3e1da;
  --bd3: #c9c6bb;
  --mu: #4a4e57;
  --fa: #6b6e76;
  --act: oklch(0.5 0.17 135);
  color-scheme: light;
}
@supports not (color: oklch(0.5 0.1 100)) {
  :root { --ac: #c6f24a; --act: #c6f24a; }
  html[data-theme="light"] { --act: #3d7a14; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: normal;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--act); }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; left: -999px; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--ac); color: var(--on-ac); padding: 10px 14px; border-radius: 10px; }
.trk { scrollbar-width: none; }
.trk::-webkit-scrollbar { display: none; }

/* ---- layout ------------------------------------------------------------- */
.wrap { max-width: 1288px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.section { padding: 80px 0; border-top: 1px solid var(--bd2); }
.section.first { border-top: 0; }
.eyebrow { font: 400 13px var(--mono); color: var(--fa); }
.eyebrow.ac { color: var(--act); }
.h-xl { margin: 12px 0 0; font-size: calc(clamp(36px, 5vw, 68px) * var(--td)); letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.h-lg { margin: 12px 0 0; font-size: calc(clamp(32px, 4vw, 52px) * var(--td)); letter-spacing: -0.035em; font-weight: 500; }
.h-page { margin: 0; font-size: calc(clamp(44px, 7.5vw, 112px) * var(--td)); line-height: 0.94; letter-spacing: -0.05em; font-weight: 500; }
.dot { color: var(--act); }
.lead { margin: 0; font-size: calc(21px * var(--ts)); line-height: 1.5; color: var(--mu); max-width: 540px; text-wrap: pretty; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* ---- buttons / chips ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 12px; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn-primary { background: var(--ac); color: var(--on-ac); }
.btn-primary:hover { background: var(--fg); color: var(--bg); }
.btn-ghost { border-color: var(--bd3); font-weight: 500; }
.btn-ghost:hover { border-color: var(--act); color: var(--act); }
.btn-dark { background: #0d0e11; color: #ecebe6; }
.btn-dark:hover { background: #ecebe6; color: #0d0e11; }
.chip {
  font: 400 12px var(--mono); border: 1px solid var(--bd); border-radius: 999px;
  padding: 6px 12px; color: var(--mu); white-space: nowrap;
}
.pill {
  border: 1px solid var(--bd3); background: transparent; border-radius: 999px; padding: 10px 18px;
  cursor: pointer; font: 400 14px var(--mono); color: var(--fg); white-space: nowrap; transition: all 0.15s;
}
.pill:hover { border-color: var(--act); }
.pill.on { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bd3); background: transparent;
  color: var(--fg); cursor: pointer; display: grid; place-items: center; font-size: calc(18px * var(--ts)); padding: 0; flex: none;
}
.icon-btn:hover { border-color: var(--act); color: var(--act); }
.card {
  background: var(--card); border: 1px solid var(--bd); border-radius: 24px;
  transition: border-color 0.18s, background 0.18s;
}
a.card:hover, .card.hov:hover { border-color: var(--act); background: var(--card2); }
.cta {
  margin: 40px 0 72px; background: var(--ac); color: #0d0e11; border-radius: 32px;
  padding: clamp(40px, 7vw, 88px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.cta h2 { margin: 0; font-size: calc(clamp(40px, 7vw, 96px) * var(--td)); letter-spacing: -0.045em; font-weight: 500; line-height: 0.95; }
.cta p { margin: 0; font-size: calc(19px * var(--ts)); max-width: 520px; text-wrap: pretty; }
.cta .eyebrow { color: #0d0e11; font-weight: 500; }
.cta a { color: inherit; }

/* ---- header ------------------------------------------------------------- */
.hdr {
  width: 100%; min-height: 94px; max-width: 1240px; margin: 0 auto; padding: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hlogo { font: 500 14px var(--mono); }
.mgrp { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.mnav {
  display: flex; gap: 4px; font: 400 14px var(--mono); border: 1px solid var(--bd);
  border-radius: 999px; padding: 5px; overflow-x: auto; min-width: 0;
}
.mnav a { padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.mnav a.on { background: var(--fg); color: var(--bg); }
.mnav a:not(.on):hover { color: var(--act); }
html[data-s] .mgrp {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  gap: 8px; max-width: calc(100vw - 24px); padding: 6px; border: 1px solid var(--bd);
  border-radius: 999px; background: var(--bgt); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px #0000002e; animation: mIn 0.28s ease;
}
html[data-s] .mnav { border: 0; padding: 0; }
@keyframes mIn { from { opacity: 0; top: -8px; } to { opacity: 1; top: 14px; } }
@media (max-width: 1180px) { html[data-s] .hlogo { visibility: hidden; } }

/* ---- footer ------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--bd2); }
@media (min-width: 768px) { .ftr .ftr-in { padding-right: 96px; } }
.ftr-in {
  max-width: 1288px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font: 400 13px var(--mono); color: var(--fa);
}
.soc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.soc > span { margin-right: 6px; }
.soc a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bd3);
  display: grid; place-items: center; color: var(--fg);
}
.soc a:hover { border-color: var(--act); color: var(--act); }

/* ---- bottom nav (phones) + "Lainnya" sheet ------------------------------- */
.bnav, .sheet { display: none; }

@media (max-width: 767.98px) {
  .wrap, .hdr { padding-left: 18px; padding-right: 18px; }
  .hdr { min-height: 70px; padding-top: 16px; padding-bottom: 12px; flex-wrap: nowrap; }
  .mnav { display: none; }
  html[data-s] .mgrp { position: static; transform: none; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; animation: none; }
  body { padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
  .section { padding: 56px 0; }
  .lead { font-size: calc(18px * var(--ts)); }

  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
    height: var(--nav-h); padding: 0 6px 6px; border-radius: 24px;
    background: color-mix(in srgb, var(--card) 90%, transparent);
    border: 1px solid var(--bd); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); transition: transform 0.28s ease;
  }
  .bnav.hide { transform: translateY(calc(100% + 24px)); }
  .bn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 100%; border: 0; background: none; color: var(--mu); font: 500 11px var(--sans);
    cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; position: relative;
  }
  .bn svg { width: 22px; height: 22px; }
  .bn.on { color: var(--act); }
  .bn.on::before { content: ""; position: absolute; top: 7px; width: 26px; height: 3px; border-radius: 3px; background: var(--act); }
  .bn-chat { position: relative; }
  .bn-chat .fab {
    position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
    width: 58px; height: 58px; border-radius: 50%; background: var(--ac); color: var(--on-ac);
    display: grid; place-items: center; border: 4px solid var(--bg); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
  }
  .bn-chat .fab svg { width: 26px; height: 26px; }
  .bn-chat span.t { margin-top: 30px; color: var(--mu); }
  .bn-dot { position: absolute; top: -20px; left: calc(50% + 12px); width: 12px; height: 12px; border-radius: 50%; background: #e5604d; border: 2px solid var(--bg); }

  .sheet.open { display: block; position: fixed; inset: 0; z-index: 80; }
  .sheet-bd { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.6); backdrop-filter: blur(3px); }
  .sheet-pn {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto;
    background: var(--bg); border: 1px solid var(--bd3); border-bottom: 0; border-radius: 28px 28px 0 0;
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); animation: sUp 0.24s ease;
  }
  @keyframes sUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--bd3); margin: 4px auto 14px; }
  .sheet-title { font: 500 13px var(--mono); color: var(--fa); margin: 6px 2px 12px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sheet-grid a {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px;
    background: var(--card); border: 1px solid var(--bd); border-radius: 20px; font-weight: 500; font-size: 14px;
  }
  .sheet-grid a svg { width: 26px; height: 26px; color: var(--act); }
  .sheet .soc { margin-top: 18px; justify-content: center; }
  .ftr-in { padding-bottom: 12px; }
}

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

/* ==========================================================================
   Home
   ========================================================================== */
:root { --logo-mono: #ecebe6; }
html[data-theme="light"] { --logo-mono: #16181d; }

.hero { padding: 48px 0 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.hero-l { display: flex; flex-direction: column; gap: 32px; }
.hero-eyebrow { font: 400 13px var(--mono); color: var(--act); display: flex; align-items: center; gap: 10px; }
.hero-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.photo { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--ac); border-radius: 28px; }
.photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 28px; background: #fff; }
.photo .tag { position: absolute; left: -20px; bottom: 36px; background: var(--bg); border: 1px solid var(--bd); border-radius: 14px; padding: 12px 16px; font: 500 12px var(--mono); }

.grid-300 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.svc { padding: 32px; display: flex; flex-direction: column; gap: 20px; min-height: 404px; }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-no { font: 500 13px var(--mono); color: var(--act); }
.svc-go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bd3); display: grid; place-items: center; font-size: calc(16px * var(--ts)); color: var(--mu); }
.svc h3 { margin: auto 0 0; font-size: calc(34px * var(--ts)); font-weight: 500; letter-spacing: -0.03em; }
.svc p { margin: 0; color: var(--mu); font-size: calc(16px * var(--ts)); line-height: 1.55; text-wrap: pretty; }
.svc-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.wcard { display: block; border: 1px solid var(--bd); border-radius: 20px; overflow: hidden; background: var(--card); transition: border-color 0.18s; }
.wcard:hover { border-color: var(--act); color: inherit; }
.wcard .shot { aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, var(--card) 0 12px, var(--card2) 12px 24px); overflow: hidden; }
.wcard .shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.wcard:hover .shot img { transform: scale(1.04); }
.wcard .row { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; font-size: calc(18px * var(--ts)); border-top: 1px solid var(--bd); }
.wcard .row .n { font: 400 13px var(--mono); color: var(--act); white-space: nowrap; align-self: center; }

.tq { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px; }
.tq figure { margin: 0; flex: none; width: min(380px, 82vw); height: 340px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--bd); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.tq .qm { font: 500 calc(72px * var(--td))/0.6 var(--sans); color: var(--act); height: 36px; }
.tq blockquote { margin: 0; font-size: calc(20px * var(--ts)); line-height: 1.4; letter-spacing: -0.02em; color: var(--fg); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tq figcaption { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--bd2); }
.tq .av { width: 44px; height: 44px; border-radius: 50%; background: repeating-linear-gradient(135deg, var(--card2) 0 6px, var(--bd2) 6px 12px); flex: none; object-fit: cover; }
.tq figcaption span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tq figcaption b { font-weight: 500; }
.tq figcaption small { font: 400 12px var(--mono); color: var(--fa); }
.arrows { display: flex; gap: 10px; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--bd3); background: transparent; color: var(--fg); font-size: calc(20px * var(--ts)); cursor: pointer; }
.arrow:hover { background: var(--ac); color: #0d0e11; border-color: var(--act); }

/* tech marquee */
.tech { margin: 0 0 8px; padding: 22px 0; border-block: 1px solid var(--bd2); }
.tech-vp { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tech-track { display: flex; width: max-content; animation: tech-scroll 70s linear infinite; }
.tech:hover .tech-track { animation-play-state: paused; }
.tech-group { display: flex; flex: none; align-items: center; gap: clamp(36px, 5vw, 64px); padding: 0 clamp(18px, 2.5vw, 32px); margin: 0; list-style: none; }
.tech-item { width: 38px; height: 38px; flex: none; display: grid; place-items: center; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.tech-item:hover { opacity: 1; transform: scale(1.15); }
.tech-item img, .tech-item .m { width: 100%; height: 100%; object-fit: contain; display: block; }
.tech-item .m { background-color: var(--c, var(--logo-mono)); -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }
@keyframes tech-scroll { to { transform: translateX(-50%); } }
@media (max-width: 767.98px) {
  .hero { padding: 24px 0 56px; gap: 40px; }
  .hero-l { gap: 24px; }
  .photo .tag { left: 8px; }
  .svc { min-height: 0; padding: 26px; }
  .svc h3 { margin-top: 24px; font-size: calc(30px * var(--ts)); }
  .tq figure { height: 320px; padding: 26px; }
  .tech-item { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .tech-vp { overflow-x: auto; -webkit-mask: none; mask: none; } .tech-track { animation: none; } }

/* testimonial star rating (only shown when a rating exists) */
.tq .stars { margin: 0 0 12px; font-size: calc(17px * var(--ts)); letter-spacing: 3px; color: var(--act); line-height: 1; }
.tq .stars span { color: var(--bd3); }
