/* The night layer every redesigned ARSWORD page shares (owner, 2026-10-02: the home after Google Stitch and Google
   Labs, then Layanan "masih dengan style halaman beranda kita"): dark sections (.b-dark) with their own tokens and a sky
   (langit.js: a silver aurora and dots that answer the pointer), a floating masthead that turns dark over them, the
   hero's words, light sections' headings, the dark close and the almost-absent footer. A page adds class "malam" to
   its body and loads this after site.css and chrome.css; its own sheet (beranda.css, layanan.css) follows. */

.malam { background: var(--canvas); }
.malam ::selection { background: var(--ink); color: var(--canvas); }
.b-nb { white-space: nowrap; } /* "developer-nya" never breaks at its hyphen */

/* ---------- dark sections: their own tokens, so the shared buttons and links turn over by themselves */
.b-dark {
  --canvas: #050505; --panel: #0d0d0d; --sunken: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .24); --ctl: rgba(255, 255, 255, .4);
  --ink: #f5f5f5; --ink-2: rgba(245, 245, 245, .74); --ink-3: rgba(245, 245, 245, .56);
  --inverse: #ffffff; --inverse-hover: #e2e2e2; --on-inverse: #0a0a0a;
  background: var(--canvas); color: var(--ink);
}
.b-dark :focus-visible { outline-color: #fff; }

/* the sky: a CSS one first (the dot grid and a low glow), then the WebGL canvas fades in over it with the same dots */
.b-sky { position: relative; isolation: isolate; overflow: clip; }
.b-sky::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .13) 1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(120% 60% at 50% 100%, rgba(255, 255, 255, .14), transparent 62%);
  /* like the canvas, it fades out before the bottom edge, so the section never ends on a cut */
  -webkit-mask-image: linear-gradient(to top, transparent, #000 24%); mask-image: linear-gradient(to top, transparent, #000 24%);
}
.langit { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease); }
.langit.is-on { opacity: 1; }

/* ---------- masthead: over the dark sections it turns dark, and over the hero's top it is clear glass */
.malam .masthead { position: fixed; inset: 0 0 auto 0; }
.masthead.on-dark {
  --canvas: #050505; --sunken: rgba(255, 255, 255, .1); --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .26);
  --ink: #f5f5f5; --ink-2: rgba(245, 245, 245, .76); --ink-3: rgba(245, 245, 245, .56);
  --inverse: #ffffff; --inverse-hover: #e2e2e2; --on-inverse: #0a0a0a;
}
html:not(.menu-open) .masthead.at-top::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 900px) { .malam .masthead::before { transition: background-color .4s var(--ease); } }

/* ---------- hero: the headline alone in the night, over the aurora (owner, 2026-10-02: no pictures here, a big thick
   aurora as on Stitch) */
.b-hero {
  min-height: max(660px, 100svh);
  display: grid; place-items: center;
  padding: calc(var(--topbar) + clamp(32px, 6vh, 64px)) 0 clamp(72px, 10vh, 112px);
}
.b-hero-in { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }
/* a little night kept behind the words, so the light passing under them never thins the type */
.b-hero-in::before {
  content: ""; position: absolute; inset: -16% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 5, 5, .72), rgba(5, 5, 5, .4) 60%, transparent);
}
.b-hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3.1rem, 1.2rem + 6.4vw, 7.25rem); font-weight: 600; line-height: .96; letter-spacing: -.04em;
  text-wrap: balance;
}
.b-lede { max-width: 40ch; margin-top: clamp(18px, 2vw, 26px); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.b-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.b-actions .cta.ghost { border-color: rgba(255, 255, 255, .3); }
.b-actions .cta.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

/* the entrance: the words rise. From a visible default (no html.b-intro, as under reduced motion, nothing moves);
   html.b-late holds it until the splash lifts */
@keyframes b-rise { from { opacity: 0; transform: translateY(22px); } }
html.b-intro .b-hero-in > * { animation: b-rise 1.2s var(--ease) both; animation-delay: calc(var(--d0, .1s) + .15s + var(--j) * 90ms); }
html.b-late { --d0: 1.7s; }

/* ---------- light sections */
.b-sec { padding: clamp(96px, 11vw, 168px) 0; }
.b-h2 { font-size: clamp(2rem, 1.25rem + 2.7vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.b-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(32px, 3.6vw, 56px); }
.b-head-act { display: flex; align-items: center; gap: 20px; }

/* ---------- steps on a Sunken band (the home's three, the template page's four): a large grey numeral, a title, one
   line. A page sets --cols for more than three (and fewer on narrower screens) */
.b-steps { background: var(--sunken); }
.b-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); }
.b-no { display: block; font-size: clamp(3.4rem, 2.4rem + 3.2vw, 6rem); font-weight: 500; line-height: 1; letter-spacing: -.05em; color: #c4c4c4; font-variant-numeric: tabular-nums; }
.b-steps h3 { margin-top: clamp(14px, 1.6vw, 22px); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; }
.b-steps p { margin-top: 6px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 699.98px) { .b-steps ol { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the close */
.b-end { padding: clamp(128px, 15vw, 224px) 0 clamp(120px, 14vw, 208px); text-align: center; }
.b-end h2 { font-size: clamp(2.8rem, 1.3rem + 5.2vw, 6.25rem); font-weight: 600; line-height: .98; letter-spacing: -.04em; }
.b-end-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: clamp(28px, 3vw, 40px); }
.b-end-act .more-link { text-decoration-color: rgba(255, 255, 255, .3); }
@media (max-width: 599.98px) { .b-end-act .more-link { display: block; text-align: center; line-height: 1.6; } .b-end-act .more-link .ico { display: none; } }

/* ---------- the footer, after Stitch's: the mark at one side, three quiet links at the other, nothing else; it carries
   on from the dark close with no rule between them */
.b-foot { padding: clamp(40px, 6vw, 88px) 0 calc(clamp(28px, 3vw, 44px) + env(safe-area-inset-bottom)); }
.b-foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.b-foot .logo { color: var(--ink); }
.b-foot .logo-mark { width: 27px; }
.b-foot .logo-word { width: 92px; }
.b-foot-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.b-foot-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); font-size: var(--fs-md); font-weight: 500; text-decoration: none; transition: color .2s; }
.b-foot-nav a:hover { color: var(--ink); }
.b-foot-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

