/* SectorZero — dasar: font, token warna, header, tombol, panel HUD, footer */
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/michroma-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); }

:root {
  --bg: #04060a; --bg2: #070a11; --bg3: #0b1019;
  --panel: rgba(16, 22, 34, .58); --panel2: rgba(9, 13, 21, .72);
  --line: rgba(168, 192, 232, .11); --line2: rgba(168, 192, 232, .2); --line3: rgba(168, 192, 232, .34);
  --text: #e8edf6; --mute: #8a95a9; --dim: #5a6579;
  --ice: #b4d0ff; --ice2: #7fa8f2; --ice3: #4f7cd0; --cream: #f2eee6;
  --neg: #e98a7f;
  --g: clamp(16px, 3vw, 56px);
  --display: 'Michroma', 'Manrope', system-ui, sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 18px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-synthesis: none; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: rgba(180, 208, 255, .28); }
.mono { font-family: var(--mono); font-feature-settings: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* garis konstruksi tipis di gutter */
.rails { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.rails::before, .rails::after { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.rails::before { left: var(--g); } .rails::after { right: var(--g); }

/* label mikro */
.micro { font: 600 10.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.micro b { color: var(--text); font-weight: 700; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); vertical-align: middle; margin-right: 8px; }
.dot.off { background: var(--dim); box-shadow: none; }
.dot.live { animation: ping 2.4s ease-in-out infinite; }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 208, 255, .55), 0 0 10px var(--ice); } 60% { box-shadow: 0 0 0 7px rgba(180, 208, 255, 0), 0 0 10px var(--ice); } }

/* judul raksasa dua warna */
.display { font: 400 clamp(32px, 5.4vw, 86px)/1.03 var(--display); letter-spacing: -.02em; text-transform: uppercase; margin: 0; }
.display em, .h2 em { font-style: normal; color: transparent; background: linear-gradient(180deg, #9aa7bd 0%, #5b667b 100%); -webkit-background-clip: text; background-clip: text; }
.h2 { font: 400 clamp(26px, 3.5vw, 54px)/1.05 var(--display); letter-spacing: -.02em; text-transform: uppercase; margin: 0; }
.lede { color: var(--mute); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; max-width: 34em; }
.lede strong { color: var(--text); font-weight: 600; }

/* tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 10px; font: 700 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-cream { background: var(--cream); color: #0a0d14; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 0 28px rgba(242, 238, 230, .28), 0 10px 30px rgba(0, 0, 0, .4); }
.btn-cream:hover { box-shadow: 0 0 0 1px #fff inset, 0 0 40px rgba(242, 238, 230, .45), 0 10px 30px rgba(0, 0, 0, .4); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); background: rgba(10, 14, 22, .45); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--line3); background: rgba(22, 30, 46, .6); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 10.5px; border-radius: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* panel HUD: kaca + sudut siku */
.hud { position: relative; background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hud::before, .hud::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--line3); pointer-events: none; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r); }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r); }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 68px; display: flex; align-items: center; gap: 18px; padding: 0 var(--g); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(4, 6, 10, .72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(127, 168, 242, .35)); }
.brand span { font: 400 12px/1 var(--display); letter-spacing: .02em; }
.brand span i { font-style: normal; color: var(--mute); }
.ca { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px 0 12px; border: 1px solid var(--line2); border-radius: 9px; background: rgba(10, 14, 22, .55); max-width: 100%; min-width: 0; transition: border-color .2s; }
.ca:hover { border-color: var(--line3); }
.ca .k { font: 700 9.5px/1 var(--sans); letter-spacing: .2em; color: var(--dim); flex: none; }
.ca .v { font: 500 12px/1 var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca .v.pending { font: 700 10.5px/1 var(--sans); letter-spacing: .16em; color: var(--ice); }
.ca button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--mute); flex: none; }
.ca button:hover { color: var(--text); background: rgba(168, 192, 232, .1); }
.ca button svg { width: 14px; height: 14px; }
.nav { margin: 0 auto; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 11, 18, .5); backdrop-filter: blur(12px); }
.nav a { padding: 8px 15px; border-radius: 999px; font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); transition: color .2s, background .2s; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(168, 192, 232, .09); }
.top-r { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav + .top-r { margin-left: 0; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 9px; color: var(--mute); transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line3); }
.icon-btn .bi { width: 14px; height: 14px; }
.bi { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ca-strip { display: none; }
@media (max-width: 1240px) { .nav { display: none; } .top-r { margin-left: auto; } .nav + .top-r { margin-left: auto; } }
@media (max-width: 860px) {
  .top { height: 60px; gap: 10px; }
  .top > .ca { display: none; }
  .ca-strip { display: flex; position: fixed; top: 60px; left: 0; right: 0; z-index: 49; padding: 6px var(--g); background: rgba(4, 6, 10, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .ca-strip .ca { width: 100%; height: 32px; }
  .ca-strip .ca .v { font-size: min(11.5px, 2.75vw); }
  .brand span { font-size: 13px; }
  .top-r .btn { height: 38px; padding: 0 14px; }
}
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 200; padding: 12px 18px; border-radius: 10px; background: rgba(14, 19, 30, .94); border: 1px solid var(--line2); color: var(--text); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.foot-scene { position: relative; height: clamp(300px, 46vw, 640px); overflow: hidden; }
.foot-scene .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .95; }
.foot-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%); }
.foot-scene .wm { position: absolute; left: 0; right: 0; bottom: 6%; z-index: 2; text-align: center; font: 400 clamp(36px, 10.4vw, 190px)/.9 var(--display); letter-spacing: -.03em; color: transparent; background: linear-gradient(180deg, rgba(232, 237, 246, .16), rgba(232, 237, 246, .02)); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; }
.foot-scene .emb { position: absolute; left: 50%; top: 18%; z-index: 2; width: clamp(64px, 8vw, 120px); transform: translateX(-50%); filter: drop-shadow(0 0 30px rgba(127, 168, 242, .45)); }
.foot-in { position: relative; z-index: 2; padding: 56px var(--g) 30px; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.foot-in h4 { margin: 0 0 16px; }
.foot-in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-in ul a { color: var(--mute); font-size: 13.5px; transition: color .2s; }
.foot-in ul a:hover { color: var(--text); }
.foot-in p { color: var(--mute); font-size: 13.5px; max-width: 30em; margin: 14px 0 18px; }
.foot-ca { margin-top: 8px; max-width: 460px; }
.foot-bar { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px var(--g) 28px; border-top: 1px solid var(--line); margin: 0 var(--g); padding-left: 0; padding-right: 0; color: var(--dim); font-size: 12px; }
.foot-bar a:hover { color: var(--text); }
.foot-soc { display: flex; gap: 8px; margin-top: 4px; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(2, 3, 6, .66); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal .box { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; transform: translateY(10px); transition: transform .25s; }
.modal.on .box { transform: none; }
.modal h3 { margin: 0 0 6px; font: 400 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--mute); }
.modal .x:hover { color: var(--text); background: rgba(168, 192, 232, .08); }
.wl { display: grid; gap: 8px; margin-top: 16px; }
.wl button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 14, 22, .6); text-align: left; font-weight: 600; transition: border-color .2s, background .2s; }
.wl button:hover { border-color: var(--line3); background: rgba(22, 30, 46, .7); }
.wl img { width: 28px; height: 28px; border-radius: 7px; }
.wl .none { color: var(--mute); font-size: 13.5px; padding: 8px 2px; }

:focus-visible { outline: 2px solid var(--ice2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
