/* Anatomi Digital — site styles (no external fonts, no trackers) */
:root {
  --bg: #0b0f16;
  --bg2: #111725;
  --card: #141b29;
  --card2: #1a2333;
  --ink: #e8edf5;
  --muted: #9aa7ba;
  --line: #243045;
  --accent: #4da3ff;
  --accent2: #ff5a6e;
  --bone: #ece3c9;
  --ok: #57d39a;
  --warn-bg: #3a2a0c;
  --warn-ink: #ffd68a;
  --glow: rgba(77, 163, 255, .35);
  --radius: 18px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --bg2: #eaeef6;
  --card: #ffffff;
  --card2: #f1f4f9;
  --ink: #141a24;
  --muted: #566276;
  --line: #dbe2ec;
  --accent: #1f6fd1;
  --accent2: #d93850;
  --bone: #7a6a3e;
  --ok: #138a55;
  --warn-bg: #fff3d6;
  --warn-ink: #6b4a00;
  --glow: rgba(31, 111, 209, .18);
  color-scheme: light;
}
/* Dark is the default look; light only when the visitor picks it (theme button). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }

/* language switching: content blocks marked lang="en" / lang="id" */
html[data-lang="en"] [data-only="id"], html[data-lang="id"] [data-only="en"] { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--card2); }
.tools { display: flex; gap: 6px; }
.btn-icon {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px;
  height: 36px; min-width: 36px; padding: 0 10px; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600;
}
.btn-icon:hover { border-color: var(--accent); }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .tools { margin-left: auto; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px; font-weight: 650;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-primary { background: #1f6fd1; color: #fff; box-shadow: 0 8px 30px var(--glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }
.btn small { font-weight: 500; opacity: .8; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 45% at 70% 40%, var(--glow), transparent 70%),
    radial-gradient(30% 35% at 20% 80%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; min-height: min(86vh, 760px); padding-block: 32px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; background: var(--card); }
.eyebrow b { color: var(--ok); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin: 18px 0 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stage { position: relative; height: min(78vh, 700px); }
.stage model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: var(--accent); }
.stage .ring { position: absolute; left: 50%; bottom: 4%; width: 46%; aspect-ratio: 4 / 1; transform: translateX(-50%);
  border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 40px var(--glow), inset 0 0 30px var(--glow); opacity: .7; pointer-events: none; }
.stage .hint { position: absolute; right: 8px; bottom: 8px; font-size: .8rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .stage { height: 50vh; order: -1; margin-top: -8px; }
}

/* sections */
section { padding-block: 72px; }
.sec-head { max-width: 46em; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.alt { background: var(--bg2); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line); margin-bottom: 12px; color: var(--accent); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--card2); color: var(--muted); border: 1px solid var(--line); margin-left: 6px; vertical-align: middle; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode { position: relative; overflow: hidden; min-height: 220px; }
.mode h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.mode p { color: var(--muted); margin: 0; }
.mode .big { font-size: 3.4rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) { .modes { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat b { display: block; font-size: 2rem; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; background: #1b1e25; }
.gallery figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure.wide { grid-column: span 2; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide { grid-column: auto; } }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

.trust { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.trust a { text-decoration: none; color: inherit; }
.trust .card:hover { border-color: var(--accent); }
.trust h3 { margin: 0 0 6px; font-size: 1.05rem; }
.trust p { margin: 0; color: var(--muted); font-size: .94rem; }

/* legal / doc pages */
.doc { padding-block: 40px 72px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 8px 0 6px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; padding-top: 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc .meta { color: var(--muted); font-size: .93rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 10px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.doc th { background: var(--card2); }
.doc li { margin-bottom: 6px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 20px 0; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.callout { border: 1px solid color-mix(in srgb, var(--warn-ink) 40%, transparent); background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.callout b { color: inherit; }
.info { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.lic { display: grid; gap: 14px; }
.lic .card h3 { margin-top: 0; }
.lic .card p { margin: 6px 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-top: 12px; }
details summary { cursor: pointer; font-weight: 600; }
.srclist { columns: 3 220px; font-size: .85rem; padding-left: 18px; margin: 12px 0 0; }
.srclist li { break-inside: avoid; margin-bottom: 2px; }
.ph { background: var(--warn-bg); color: var(--warn-ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer h4 { color: var(--ink); margin: 0 0 8px; font-size: .95rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .fine { margin-top: 26px; font-size: .82rem; }
@media (max-width: 700px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: span 2; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
