/* CELLOMTS Data Center — Technical Index
   Warna diatur lewat variabel di bawah. Tema gelap ada di [data-theme="dark"]. */

:root {
  --paper: #F4F2EE;
  --ink: #16181D;
  --ink-2: #3E424B;
  --ink-3: #5B5F68;
  --rule: #CFCAC1;
  --hover: #ECE9E3;
  --link-hover: #0B57A4;
  --live: #0B6B3A;
  --btn-bg: #16181D;
  --btn-text: #F4F2EE;
  --c: #1A2BE8;
  --m: #E8005E;
  --y: #F2B200;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #111317;
  --ink: #ECE8E1;
  --ink-2: #B9B5AE;
  --ink-3: #969289;
  --rule: #2E3138;
  --hover: #1A1D22;
  --link-hover: #8CC3FF;
  --live: #6FD49B;
  --btn-bg: #ECE8E1;
  --btn-text: #111317;
  --c: #6C7BFF;
  --m: #FF4D8D;
  --y: #FFC629;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 3px; }

.wrap { --gutter: 32px; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* garis yang sejajar dengan kolom konten (tidak melebar ke gutter) */
.rule-bottom, .rule-top {
  background-repeat: no-repeat; background-position: center bottom;
  background-size: calc(100% - 2 * var(--gutter)) 1px;
}
.rule-top { background-position: center top; }
.mono { font-family: var(--mono); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; background: var(--btn-bg); color: var(--btn-text); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 18px; padding-bottom: 18px;
  background-image: linear-gradient(var(--ink), var(--ink));
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand { gap: 14px; }
.brand-logo { display: block; height: 42px; width: auto; }
.brand-sep { width: 1px; height: 26px; background: var(--rule); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: .14em; }
.brand-sub { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav a {
  text-decoration: none; padding: 10px 10px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-login {
  margin-left: 6px; padding: 0 16px !important;
  border: 1px solid var(--ink); font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.nav-login:hover { background: var(--ink); color: var(--paper); }
.theme-btn {
  width: 40px; height: 40px; margin-left: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s ease;
}
.theme-btn:hover { background: var(--hover); }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- Intro ---------- */
.intro {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.intro h1 {
  flex: 1 1 520px; margin: 0;
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -.025em;
}
.intro-side { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.intro-side p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 520px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; }
.tags li { border: 1px solid var(--ink); padding: 4px 10px; }

/* ---------- Aplikasi aktif ---------- */
.active-app {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 90px;
}
.label { flex: 0 0 130px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.app-text { flex: 1 1 340px; }
.app-text h2 { margin: 0 0 4px; font-size: 22px; font-weight: 500; }
.app-text p { margin: 0; font-size: 14px; color: var(--ink-2); }
.app-domain { font-size: 13px; color: var(--ink-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-text);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { color: var(--btn-text); opacity: .9; }
.btn:hover span { transform: translateX(2px); }
.btn span { transition: transform .15s ease; }

/* ---------- Direktori ---------- */
.directory { padding-top: 44px; scroll-margin-top: 70px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.sw { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; }
.sw.ops { background: var(--c); }
.sw.know { background: var(--m); }
.sw.comm { background: var(--y); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 56px minmax(200px, 1.2fr) minmax(0, 2fr) 130px;
  gap: 20px; align-items: baseline;
  padding: 20px 8px;
  border-bottom: 1px solid var(--rule);
  transition: background-color .15s ease;
}
.row:hover { background: var(--hover); }
.row[hidden] { display: none; }
.no { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.row-name { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; text-decoration: none; }
a.row-name { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
a.row-name:hover { text-decoration-color: currentColor; }
.row-desc { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.status { justify-self: end; font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.is-live .status { color: var(--live); font-weight: 500; }
.is-live .status::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }

.note { margin: 20px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); max-width: 720px; }

/* ---------- Brand mesin (logo berwarna asli) ---------- */
.brands { padding-top: 56px; scroll-margin-top: 70px; }
.brand-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.brand-grid li {
  display: flex; align-items: center; justify-content: center;
  height: 112px; padding: 0 20px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.brand-grid li:last-child { border-right: 0; }
.brand-grid img {
  display: block; max-width: 100%; max-height: 40px; width: auto; height: auto;
  transition: transform .25s ease;
}
.brand-grid li:hover img { transform: scale(1.04); }
/* Tema gelap: logo tetap berwarna asli di atas pelat terang agar logo hitam/navy tetap terbaca */
[data-theme="dark"] .brand-grid { border-top-color: var(--rule); }
[data-theme="dark"] .brand-grid li { background: #F4F2EE; border-color: #DAD5CC; }

/* ---------- Domain ---------- */
.domains {
  margin: 48px 0 64px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  scroll-margin-top: 70px;
}
.domains > div { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.domains > div span:last-child { font-size: 13px; color: var(--ink-2); }
.domains .mono { font-size: 13px; }

/* ---------- Footer ---------- */
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 28px;
  background-image: linear-gradient(var(--rule), var(--rule));
  font-size: 12px; color: var(--ink-3);
}
.footer-inner a { text-decoration: none; }

/* ---------- Animasi masuk (halus) ---------- */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .js .reveal { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 16px; }
  .row-desc { grid-column: 2 / 4; grid-row: 2; }
  .status { grid-column: 3; grid-row: 1; }
  .domains { grid-template-columns: minmax(0, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-grid li:last-child { border-right: 1px solid var(--rule); }
  .brand-grid li:nth-child(3n) { border-right: 0; }
  .domains > div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- HP ---------- */
@media (max-width: 600px) {
  .wrap { --gutter: 16px; }
  .header-inner { padding-top: 12px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: space-between; margin-left: -10px; }
  .nav a { padding: 8px 10px; }
  .theme-btn { margin-left: auto; }
  .intro { padding: 32px 0 32px; }
  .intro h1 { flex-basis: 100%; }
  .intro-side { flex-basis: 100%; }
  .intro-side p { font-size: 15px; }
  .label { flex-basis: 100%; }
  .app-text { flex-basis: 100%; }
  .active-app { gap: 12px 16px; }
  .btn { width: 100%; }
  .app-domain { order: 5; }
  .directory { padding-top: 32px; }
  .row { grid-template-columns: 32px minmax(0, 1fr); padding: 16px 4px; }
  .row-name { font-size: 16px; }
  .row-desc { grid-column: 2; grid-row: 2; }
  .status { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; }
  .domains { margin: 36px 0 40px; }
  .brands { padding-top: 40px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid li { height: 88px; padding: 0 14px; }
  .brand-grid li:nth-child(3n) { border-right: 1px solid var(--rule); }
  .brand-grid li:nth-child(2n) { border-right: 0; }
  .brand-grid li:last-child { border-right: 0; }
  .brand-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .brand-grid img { max-height: 30px; }
  .brand-logo { height: 34px; }
  .nav-login { margin-left: 0; padding: 0 12px !important; }
}

/* ---------- HP sangat sempit ---------- */
@media (max-width: 400px) {
  .nav a[href="#brand"] { display: none; }
}
