:root {
  --bg: #0b0f14;
  --bg-alt: #0f161d;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(160, 190, 210, .13);
  --line-strong: rgba(var(--accent-rgb), .45);
  --text: #e6edf3;
  --muted: #8b98a8;
  --accent: #34d399;
  --accent-soft: rgba(var(--accent-rgb), .12);
  --accent-hover: #5eead4;
  --accent-ink: #04281c;
  --accent-rgb: 52, 211, 153;
  --bg-rgb: 11, 15, 20;
  --cover-a: #16202b;
  --cover-b: #0d131a;
  --warn: #f87171;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  box-shadow: 0 6px 22px -8px rgba(var(--accent-rgb), .55);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 10px 28px -8px rgba(var(--accent-rgb), .65); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); box-shadow: none; backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--line-strong); background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn.small { padding: 8px 18px; font-size: 14px; }

/* nav: transparan di atas hero, kaca saat scroll */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.nav.scrolled, .nav.open { background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); }
.links a:not(.btn) { position: relative; padding: 4px 0; transition: color .3s var(--ease); }
.links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:not(.btn):hover { color: var(--text); }
.links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ornamen: pola lama (assets/img/ornament.png), garis mint transparan */
.orn { position: absolute; inset: auto 0 0 0; height: min(52vw, 560px); background: url("../assets/img/ornament.png") center bottom / max(100%, 1100px) auto no-repeat; opacity: .62; pointer-events: none; }

/* hero: memudar halus ke warna halaman */
.hero { padding: 168px 0 240px; position: relative; overflow: hidden; background:
  radial-gradient(720px 380px at 85% -8%, rgba(var(--accent-rgb), .16), transparent 70%),
  radial-gradient(520px 320px at 8% 30%, rgba(var(--accent-rgb), .06), transparent 70%),
  linear-gradient(rgba(160, 190, 210, .07) 1px, transparent 1px) 0 0 / 100% 56px,
  var(--bg); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0), var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap > * { animation: rise .9s var(--ease) both; }
.hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero .wrap > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; max-width: 14ch; background: linear-gradient(180deg, #fff 30%, #b9c8d4 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.actions.center { justify-content: center; }
.stats { display: flex; flex-wrap: wrap; gap: 44px; margin: 60px 0 0; }
.stats dt { color: var(--muted); font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.stats dd { margin: 4px 0 0; font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; }

/* sections: tanpa garis keras, warna mengalir */
.section { padding: 104px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 16%, var(--bg-alt) 84%, var(--bg) 100%); }
.sec-head { max-width: 60ch; margin-bottom: 48px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.eyebrow.line::before, .sec-head .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); opacity: .7; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.025em; line-height: 1.15; font-weight: 700; }
.sec-head p:last-child { color: var(--muted); margin-top: 16px; }
.sub { margin: 72px 0 24px; font-size: 13px; font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; display: flex; align-items: center; gap: 16px; }
.sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.empty { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.team { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.works { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.services { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* kartu kaca */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -26px rgba(0, 0, 0, .8);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 28px 50px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--accent-rgb), .08); }

/* product */
.product { overflow: hidden; display: flex; flex-direction: column; }
.cover { aspect-ratio: 16 / 9; position: relative; background: radial-gradient(260px 160px at 50% 40%, var(--accent-soft), transparent 70%), linear-gradient(135deg, var(--cover-a), var(--cover-b)); display: grid; place-items: center; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(var(--bg-rgb), .55)); pointer-events: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .cover img { transform: scale(1.05); }
.cover-glyph { font-family: var(--mono); font-size: 3.4rem; color: var(--accent); opacity: .9; transition: transform .5s var(--ease); }
.product:hover .cover-glyph { transform: scale(1.1); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.card-body p { color: var(--muted); font-size: 15px; }
.chip { font-family: var(--mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 3px 11px; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.link { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--accent); transition: color .3s var(--ease); }
.link:hover { color: var(--accent-hover); }
.link span { display: inline-block; transition: transform .3s var(--ease); }
.link:hover span { transform: translateX(4px); }
.link.muted { color: var(--muted); font-weight: 500; }

.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-status="up"] { color: var(--accent); }
.status[data-status="up"] i { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.status[data-status="down"] { color: var(--warn); }
.status[data-status="down"] i { background: var(--warn); }
.status[data-status="check"] i { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* team */
.member { padding: 30px 22px; text-align: center; }
.avatar { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--cover-a), var(--cover-b)); border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .45s var(--ease), box-shadow .45s var(--ease); }
.member:hover .avatar { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-family: var(--mono); font-size: 1.6rem; color: var(--accent); }
.member h3 { font-size: 1.1rem; }
.role { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.member .tags { justify-content: center; }
.social { display: flex; justify-content: center; gap: 14px; margin-top: 16px; font-family: var(--mono); font-size: 13px; }
.social a { color: var(--accent); transition: color .3s var(--ease); }
.social a:hover { color: #fff; }

/* works */
.work { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #101821; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8); transition: border-color .45s var(--ease), transform .45s var(--ease); }
.work:hover { border-color: var(--line-strong); transform: translateY(-5px); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work figcaption { position: absolute; inset: auto 0 0 0; padding: 56px 20px 18px; display: flex; flex-direction: column; background: linear-gradient(180deg, transparent, rgba(5, 8, 12, .92)); }
.work figcaption span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.work figcaption strong { font-size: 1.1rem; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.clients li { background: rgba(244, 247, 250, .93); border-radius: 14px; height: 88px; display: grid; place-items: center; padding: 14px 20px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.clients li:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8); }
.clients img { max-height: 58px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* services */
.service { padding: 28px; }
.service img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 18px; padding: 8px; box-sizing: content-box; border-radius: 14px; background: var(--accent-soft); }
.service h3 { font-size: 1.1rem; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: 15px; }

/* cta + footer */
.cta { text-align: center; overflow: hidden; padding: 128px 0 220px; background: radial-gradient(640px 200px at 50% 42%, rgba(var(--accent-rgb), .13), transparent 70%), var(--bg); }
.cta::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0), var(--bg)); pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }
.cta p { color: var(--muted); margin-top: 12px; }
.footer { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }

/* reveal: section muncul, isi kartu menyusul bergantian */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal .grid > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }
.reveal.in .grid > * { opacity: 1; transform: none; }
.reveal.in .grid > :nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.reveal.in .grid > :nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.reveal.in .grid > :nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
.reveal.in .grid > :nth-child(5) { transition-delay: .32s, .32s, 0s, 0s; }
.reveal.in .grid > :nth-child(n+6) { transition-delay: .4s, .4s, 0s, 0s; }
.reveal.in .grid > .card:hover, .reveal.in .grid > .work:hover { transform: translateY(-5px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .wrap > * { animation: none; }
  .reveal, .reveal .grid > * { opacity: 1; transform: none; transition: none; }
  .status[data-status="check"] i { animation: none; }
  .card, .work, .work img, .cover img, .btn { transition: none; }
}

/* mobile */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: rgba(var(--bg-rgb), .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: none; }
  .nav.open .links { display: flex; }
  .links a:not(.btn) { padding: 13px 4px; }
  .links a:not(.btn)::after { display: none; }
  .links .btn { margin-top: 8px; }
  .hero { padding: 124px 0 180px; }
  .section { padding: 72px 0; }
  .stats { gap: 28px; }
  .cta { padding: 90px 0 160px; }
}

/* kartu yang seluruhnya bisa diklik lewat judulnya */
.card { position: relative; }
.tlink::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card .link, .card .btn, .card .social a { position: relative; z-index: 2; }
.tlink:hover { color: var(--accent); }

[hidden] { display: none !important; }

/* Tema "original": teal dan emas (palet studio asli). Dipilih per portal di CMS. */
:root[data-theme="original"] {
  --bg: #0e1b1c;
  --bg-alt: #122426;
  --line: rgba(218, 230, 226, .12);
  --line-strong: rgba(218, 170, 98, .45);
  --text: #eef3f1;
  --muted: #9ab0ad;
  --accent: #DAAA62;
  --accent-soft: rgba(218, 170, 98, .14);
  --accent-hover: #e8c283;
  --accent-ink: #1d1707;
  --accent-rgb: 218, 170, 98;
  --bg-rgb: 14, 27, 28;
  --cover-a: #204041;
  --cover-b: #122426;
}
:root[data-theme="original"] .orn { filter: hue-rotate(-122deg) saturate(.85); }
