:root {
  --ink: #09111d;
  --ink-soft: #0d1827;
  --gold: #c89b3c;
  --gold-light: #e1bc68;
  --white: #f7f8fa;
  --muted: #8f99a8;
  --line: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 25%, rgba(28,49,75,.65), transparent 34%),
    radial-gradient(circle at 15% 50%, rgba(200,155,60,.035), transparent 28%),
    linear-gradient(180deg, #0a1421 0%, var(--ink) 42%, #070d16 100%);
}

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.grid {
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 74%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.orb-one { width: 340px; height: 340px; background: rgba(43,72,108,.13); top: 18%; left: 11%; animation: drift 12s ease-in-out infinite; }
.orb-two { width: 280px; height: 280px; background: rgba(200,155,60,.05); top: 45%; right: 10%; animation: drift 15s ease-in-out infinite reverse; }
.legal-mark { position: absolute; width: 680px; height: 680px; left: 50%; top: 300px; transform: translateX(-50%); opacity: .018; }
.legal-mark svg { width: 100%; }
.legal-mark path { stroke: var(--white); stroke-width: 1; }
.particle { position: absolute; width: 2px; height: 2px; background: rgba(200,155,60,.65); border-radius: 50%; box-shadow: 0 0 8px var(--gold); animation: particleFloat linear infinite; }

.top-line { position: fixed; top: 0; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.03); z-index: 20; overflow: hidden; }
.top-line span { display: block; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); filter: drop-shadow(0 0 6px var(--gold)); animation: topScan 8s linear infinite; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.brand { display: flex; justify-content: center; align-items: center; gap: 13px; padding-top: 38px; }
.brand-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(200,155,60,.32); border-radius: 12px; background: linear-gradient(145deg, rgba(200,155,60,.12), rgba(200,155,60,.025)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 36px rgba(0,0,0,.2); }
.brand-symbol svg { width: 29px; }
.brand-symbol path { stroke: var(--gold-light); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 14px; letter-spacing: .24em; font-weight: 800; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: 8.5px; letter-spacing: .08em; }

.hero { text-align: center; padding-top: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #b9c0cb; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.eyebrow i, .loading-meta span i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(200,155,60,.8); animation: pulse 2s ease-in-out infinite; }
h1 { margin: 20px auto 0; max-width: 920px; font-size: clamp(42px, 5.25vw, 68px); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; text-wrap: balance; }
h1 em { color: var(--gold-light); font-style: normal; font-weight: 600; }
.lead { max-width: 720px; margin: 25px auto 0; color: #9ba5b3; font-size: 15px; line-height: 1.85; text-wrap: balance; }

.system-stage { position: relative; width: min(760px, 100%); height: 415px; margin: 43px auto 0; perspective: 1200px; }
.stage-glow { position: absolute; width: 82%; height: 150px; left: 9%; bottom: 20px; border-radius: 50%; background: rgba(200,155,60,.08); filter: blur(42px); }
.monitor { position: absolute; width: 570px; left: 50%; transform: translateX(-50%); animation: monitorFloat 6s ease-in-out infinite; }
.monitor-frame { padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: linear-gradient(145deg, #273343, #0d1623 45%, #202b38); box-shadow: 0 38px 80px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.18), 0 0 0 1px rgba(0,0,0,.4); }
.screen { position: relative; height: 315px; overflow: hidden; border-radius: 10px; background: #0a111b; box-shadow: inset 0 0 35px rgba(0,0,0,.42); }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.025) 42%, transparent 55%); }
.screen-header { height: 29px; border-bottom: 1px solid rgba(255,255,255,.055); display: flex; align-items: center; justify-content: space-between; padding: 0 11px; }
.mini-brand { color: rgba(255,255,255,.44); font-size: 6px; font-weight: 800; letter-spacing: .14em; }
.mini-brand span { display: inline-block; width: 4px; height: 4px; border-radius: 50%; margin-right: 4px; background: var(--gold); }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.16); }
.screen-content { height: calc(100% - 29px); display: flex; }
aside { width: 48px; border-right: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; gap: 17px; padding-top: 14px; }
aside .side-logo { width: 19px; height: 19px; border-radius: 6px; background: linear-gradient(145deg, rgba(200,155,60,.28), rgba(200,155,60,.06)); border: 1px solid rgba(200,155,60,.3); margin-bottom: 6px; }
aside i { width: 11px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.13); }
aside i.active { width: 20px; height: 20px; background: rgba(200,155,60,.1); border-left: 2px solid var(--gold); }
aside b { margin-top: auto; margin-bottom: 15px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.08); }
.dashboard { flex: 1; padding: 20px 21px; text-align: left; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; }
.dashboard-top div { display: flex; flex-direction: column; gap: 5px; }
.dashboard-top small, .metric span, .chart-card > span { color: rgba(255,255,255,.28); font-size: 6px; letter-spacing: .12em; }
.dashboard-top strong { font-size: 12px; font-weight: 600; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(145deg, #2d3a4a, #141e2a); border: 1px solid rgba(255,255,255,.09); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.metric { position: relative; height: 70px; padding: 11px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); overflow: hidden; }
.metric b { display: block; margin-top: 6px; font-size: 17px; }
.metric i { position: absolute; width: 25px; height: 25px; right: 9px; bottom: 9px; border-radius: 50%; border: 3px solid rgba(200,155,60,.14); border-top-color: var(--gold); }
.dashboard-bottom { display: grid; grid-template-columns: 2.1fr .8fr; gap: 9px; margin-top: 9px; }
.chart-card, .justice-loader { height: 112px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; background: rgba(255,255,255,.018); padding: 10px; overflow: hidden; }
.chart-card svg { width: 100%; height: 82px; margin-top: 2px; }
.chart-area { fill: url(#chartFill); animation: chartReveal 4s ease infinite alternate; }
.chart-line { fill: none; stroke: var(--gold); stroke-width: 1.3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(200,155,60,.5)); }
.justice-loader { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.justice-loader > svg { width: 38px; }
.justice-loader > svg path { stroke: rgba(225,188,104,.8); stroke-width: 1; stroke-linecap: round; }
.justice-loader small { margin-top: 6px; color: rgba(255,255,255,.3); font-size: 5.5px; letter-spacing: .12em; }
.loader-ring { position: absolute; width: 63px; height: 63px; border-radius: 50%; border: 1px solid rgba(200,155,60,.08); border-top-color: rgba(200,155,60,.55); animation: spin 4s linear infinite; }
.scan-line { position: absolute; z-index: 3; left: 0; right: 0; height: 1px; top: 0; background: linear-gradient(90deg, transparent, rgba(200,155,60,.5), transparent); box-shadow: 0 0 12px rgba(200,155,60,.2); animation: screenScan 5s ease-in-out infinite; }
.monitor-neck { width: 72px; height: 43px; margin: -1px auto 0; background: linear-gradient(90deg, #121c28, #344151 50%, #121c28); clip-path: polygon(20% 0,80% 0,100% 100%,0 100%); }
.monitor-base { width: 175px; height: 8px; margin: 0 auto; border-radius: 50% 50% 5px 5px; background: linear-gradient(180deg, #3b4653, #101923); box-shadow: 0 9px 22px rgba(0,0,0,.45); }
.float-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; min-width: 174px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(17,29,44,.72); box-shadow: 0 18px 40px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); text-align: left; }
.float-card > span { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 8px; color: var(--gold-light); background: rgba(200,155,60,.1); border: 1px solid rgba(200,155,60,.16); font-family: Georgia, serif; }
.float-card div { display: flex; flex-direction: column; gap: 3px; }
.float-card small { color: rgba(255,255,255,.36); font-size: 6px; letter-spacing: .14em; }
.float-card b { font-size: 9px; font-weight: 600; white-space: nowrap; }
.float-card > i { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #6ecb92; box-shadow: 0 0 9px rgba(110,203,146,.7); }
.card-left { left: 0; top: 174px; animation: cardFloat 5s ease-in-out infinite; }
.card-right { right: 0; top: 110px; animation: cardFloat 6s .8s ease-in-out infinite; }
.shield-icon svg { width: 17px; }
.shield-icon path { stroke: var(--gold-light); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.loading-panel { width: min(760px, 100%); margin: 0 auto; padding: 23px 26px 20px; border: 1px solid rgba(255,255,255,.075); border-radius: 15px; background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 24px 70px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.loading-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.loading-meta span { display: flex; align-items: center; gap: 9px; color: #c5cbd3; font-weight: 600; letter-spacing: .04em; }
.loading-meta b { color: var(--gold-light); font-size: 10px; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; margin-top: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 99px; background: rgba(0,0,0,.25); }
.progress-bar { position: relative; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7b5c23, var(--gold), #e2bb66); box-shadow: 0 0 16px rgba(200,155,60,.45); animation: progress 7s cubic-bezier(.65,0,.35,1) infinite; }
.progress-bar::after { content: ""; position: absolute; top: 0; right: -30px; width: 55px; height: 100%; background: linear-gradient(90deg, transparent, #fff, transparent); filter: blur(2px); opacity: .65; }
.status-list { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; }
.status { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.35); font-size: 7.5px; white-space: nowrap; animation: statusCycle 6s var(--delay) ease-in-out infinite; }
.status span { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; color: var(--gold-light); background: rgba(200,155,60,.1); border: 1px solid rgba(200,155,60,.18); font-size: 7px; }

footer { display: flex; align-items: center; justify-content: space-between; margin: 74px 0 35px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.06); color: #687383; }
footer div { display: flex; align-items: center; gap: 13px; }
footer strong { color: #aeb6c1; font-size: 9px; letter-spacing: .18em; }
footer span, footer p { font-size: 9px; }

.reveal { opacity: 0; transform: translateY(14px); animation: reveal .9s forwards cubic-bezier(.2,.7,.2,1); }
.delay-one { animation-delay: .14s; }.delay-two { animation-delay: .26s; }.delay-three { animation-delay: .4s; }.delay-four { animation-delay: .56s; }.delay-five { animation-delay: .72s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes drift { 50% { transform: translate(40px, 25px) scale(1.08); } }
@keyframes particleFloat { 0% { transform: translateY(30px); opacity: 0; } 20% { opacity: .65; } 80% { opacity: .25; } 100% { transform: translateY(-180px); opacity: 0; } }
@keyframes topScan { from { transform: translateX(-120%); } to { transform: translateX(560%); } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.8); box-shadow: 0 0 5px rgba(200,155,60,.4); } }
@keyframes monitorFloat { 50% { transform: translateX(-50%) translateY(-7px); } }
@keyframes cardFloat { 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes screenScan { 0%,10% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: .8; } 90%,100% { top: 100%; opacity: 0; } }
@keyframes chartReveal { from { opacity: .45; } to { opacity: 1; } }
@keyframes progress { 0% { width: 13%; } 45% { width: 78%; } 72% { width: 92%; } 100% { width: 13%; } }
@keyframes statusCycle { 0%,100% { opacity: .35; } 12%,65% { opacity: 1; color: rgba(255,255,255,.68); } }

@media (max-width: 800px) {
  main { width: min(100% - 32px, 700px); }
  .hero { padding-top: 58px; }
  h1 br { display: none; }
  .system-stage { height: 365px; transform: scale(.9); transform-origin: top center; margin-bottom: -36px; width: 111%; margin-left: -5.5%; }
  .status-list { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 620px) {
  .brand { padding-top: 27px; }
  .hero { padding-top: 45px; }
  .eyebrow { font-size: 8px; letter-spacing: .14em; }
  h1 { margin-top: 17px; font-size: clamp(35px, 10.8vw, 48px); }
  .lead { font-size: 13px; line-height: 1.75; }
  .system-stage { height: 302px; width: 148%; margin-left: -24%; transform: scale(.68); margin-bottom: -91px; margin-top: 35px; }
  .loading-panel { margin-top: 25px; padding: 19px 18px; }
  .status-list { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
  .status:last-child { grid-column: 1 / -1; justify-content: center; }
  footer { margin-top: 52px; flex-direction: column; gap: 14px; text-align: center; }
  footer div { flex-direction: column; gap: 6px; }
}

@media (max-width: 390px) {
  main { width: calc(100% - 24px); }
  .system-stage { transform: scale(.6); width: 166%; margin-left: -33%; margin-bottom: -118px; }
  .loading-meta { font-size: 9px; }
  .status { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
