@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600&family=Orbitron:wght@400;500;600&display=swap');

:root {
  --black: #000;
  --panel: #0b0b0d;
  --panel-2: #151518;
  --red: #ff1724;
  --red-deep: #a9000b;
  --silver: #f2f2f3;
  --muted: #aeb0b5;
  --line: rgba(218, 220, 225, .28);
  --display: 'Orbitron', 'Segoe UI', sans-serif;
  --body: 'Exo 2', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 6rem; background: var(--black); }
body { margin: 0; min-width: 320px; min-height: 100svh; overflow-x: hidden; background: #000; color: var(--silver); font-family: var(--body); }
body.drawer-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.app-shell {
  position: relative;
  width: min(100%, 425px);
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 27%, rgba(102, 0, 8, .18), transparent 32%),
    #000;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.1rem;
  padding: max(1.1rem, env(safe-area-inset-top)) 1.55rem .65rem;
}

.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; color: #fff; text-decoration: none; }
.brand img { width: 4rem; height: 4rem; object-fit: contain; filter: drop-shadow(0 0 9px rgba(255, 23, 36, .3)); }
.brand-copy { display: grid; gap: .35rem; min-width: 0; }
.brand-copy strong { font: 500 1.16rem/1 var(--display); letter-spacing: .115em; white-space: nowrap; }
.brand-copy small { font: 500 .58rem/1 var(--display); letter-spacing: .22em; color: #d5d5d7; }

.menu-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.15rem;
  height: 3.15rem;
  padding: 0;
  border: 1px solid rgba(220, 222, 228, .42);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #242529, #08080a 72%);
  box-shadow: 0 12px 22px rgba(255, 0, 16, .35), inset 0 0 0 1px rgba(255,255,255,.03);
  color: #fff;
  cursor: pointer;
}

.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-menu { --icon: url('assets/icons/menu.svg'); width: 1.55rem; height: 1.55rem; }
.icon-crosshair { --icon: url('assets/icons/crosshair.svg'); }
.icon-shield-check { --icon: url('assets/icons/shield-check.svg'); }
.icon-network { --icon: url('assets/icons/network.svg'); }
.icon-radar { --icon: url('assets/icons/radar.svg'); }
.icon-scan-search { --icon: url('assets/icons/scan-search.svg'); }
.icon-wrench { --icon: url('assets/icons/wrench.svg'); }
.icon-user { --icon: url('assets/icons/user-round.svg'); }
.icon-chevron { --icon: url('assets/icons/chevron-right.svg'); }

.hero { position: relative; z-index: 2; padding: 0 2.1rem; }
.circuit-field {
  position: absolute;
  z-index: -1;
  top: .5rem;
  left: -2rem;
  right: -2rem;
  height: 23rem;
  opacity: .55;
  background:
    linear-gradient(90deg, transparent 12%, rgba(96,96,100,.22) 12.2%, transparent 12.6%, transparent 82%, rgba(96,96,100,.2) 82.2%, transparent 82.6%),
    linear-gradient(rgba(74,74,78,.21) 1px, transparent 1px);
  background-size: 100% 100%, 100% 4.5rem;
  -webkit-mask-image: radial-gradient(ellipse at 50% 46%, #000 24%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 46%, #000 24%, transparent 70%);
}
.circuit-field::before, .circuit-field::after { content: ''; position: absolute; inset: 2rem 4rem; border: 1px solid rgba(170,170,174,.1); border-radius: 50%; }
.circuit-field::after { inset: 4rem 6rem; }

.operational-status {
  position: absolute;
  z-index: 6;
  top: 9.4rem;
  display: grid;
  width: 6.8rem;
  gap: .28rem;
  font-family: var(--display);
  letter-spacing: .09em;
}
.operational-status span { color: #8f9095; font-size: .5rem; }
.operational-status span i { display: inline-block; width: .34rem; height: .34rem; margin-right: .32rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 9px var(--red); }
.operational-status strong { font-size: .62rem; font-weight: 500; }
.operational-status::after { content: ''; width: 100%; height: 1px; margin-top: .35rem; background: linear-gradient(90deg, rgba(255,255,255,.5), var(--red)); box-shadow: 0 0 7px rgba(255,23,36,.8); }
.status-left { left: -.2rem; text-align: right; }
.status-right { right: -.2rem; }
.status-right::after { background: linear-gradient(90deg, var(--red), rgba(255,255,255,.5)); }

.command-core { position: relative; display: grid; place-items: center; width: 100%; height: 15.2rem; margin: .1rem auto 0; }
.command-core img { position: relative; z-index: 3; width: 18.4rem; height: 18.4rem; object-fit: contain; filter: drop-shadow(0 0 16px rgba(255, 16, 31, .35)); }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); }
.orbit-one { width: 16.8rem; height: 16.8rem; border-top-color: rgba(255,23,36,.36); border-bottom-color: rgba(255,23,36,.28); animation: rotate 30s linear infinite; }
.orbit-two { width: 13.1rem; height: 13.1rem; border-style: dashed; animation: rotate 18s linear reverse infinite; }

h1 { position: relative; z-index: 5; margin: .1rem -1rem 0; text-align: center; font: 400 clamp(2rem, 8.5vw, 2.25rem)/1.1 var(--display); letter-spacing: .01em; white-space: nowrap; text-shadow: 0 2px 7px rgba(255,255,255,.08); }
h1 span { color: var(--red); }
.signal-line { position: relative; display: grid; place-items: center; height: 1.5rem; margin: .45rem 0 .1rem; }
.signal-line::before { content: ''; width: 78%; height: 1px; background: linear-gradient(90deg, transparent, var(--red) 25%, var(--red) 75%, transparent); box-shadow: 0 0 10px var(--red); }
.signal-line i { position: absolute; width: .58rem; height: .58rem; border: 2px solid var(--red); border-radius: 50%; background: #fff; box-shadow: 0 0 11px 3px rgba(255,23,36,.85); }
.hero-copy { margin: .15rem -.5rem 0; text-align: center; color: #b9bbc0; font: 500 .61rem/1.75 var(--display); letter-spacing: .14em; }

.actions { display: grid; gap: .7rem; margin-top: 1.05rem; }
.action {
  display: grid;
  grid-template-columns: 2.2rem 1fr 1.15rem;
  align-items: center;
  gap: .85rem;
  width: 100%;
  min-height: 3.45rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(207,209,216,.52);
  border-radius: .85rem;
  background: linear-gradient(120deg, #151518, #09090b 72%);
  color: #f5f5f6;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.action b { font-size: 1rem; font-weight: 500; letter-spacing: .025em; }
.action .ui-icon:first-child { width: 2rem; height: 2rem; }
.action .icon-chevron { justify-self: end; width: 1.2rem; height: 1.2rem; }
.action-primary { border: 2px solid var(--red); background: radial-gradient(circle at 18% 48%, #ff222e, #b6000c 62%, #730008); box-shadow: inset 0 0 20px rgba(255,100,110,.25), 0 0 18px rgba(255,0,18,.35); }

.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: .75rem; padding: .65rem 0; border: 1px solid rgba(230,232,238,.16); border-radius: 1rem; background: linear-gradient(135deg, rgba(20,20,23,.92), rgba(3,3,4,.96)); }
.telemetry-item { display: grid; place-items: center; gap: .18rem; min-height: 5.2rem; border-right: 1px solid rgba(230,232,238,.15); text-align: center; }
.telemetry-item:last-child { border-right: 0; }
.telemetry-icon { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; color: #e5e5e7; }
.telemetry-icon .ui-icon { width: 2.15rem; height: 2.15rem; }
.telemetry-icon.uptime { border: 1px solid rgba(230,232,238,.7); border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,23,36,.08); }
.telemetry-icon.uptime i { color: var(--red); font-style: normal; font-size: .82rem; }
.telemetry small { font: 500 .5rem var(--display); letter-spacing: .07em; }
.telemetry strong { color: var(--red); font: 500 .54rem var(--display); letter-spacing: .08em; }

.categories { padding: 1rem 1.55rem .9rem; }
.categories h2 { margin: 0 0 .55rem; color: #b8bac0; font: 500 .63rem var(--display); letter-spacing: .14em; }
.category-scroll { display: flex; gap: .5rem; overflow-x: auto; padding: .05rem .05rem .35rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll button { display: flex; align-items: center; gap: .48rem; flex: 0 0 auto; min-width: 5.9rem; height: 2.65rem; padding: 0 .9rem; border: 1px solid rgba(207,209,216,.5); border-radius: 1.4rem; background: #0e0e11; color: #efeff1; font-size: .73rem; cursor: pointer; scroll-snap-align: start; }
.category-scroll button .ui-icon { width: 1.2rem; height: 1.2rem; }
.category-scroll button.is-active { border-color: var(--red); box-shadow: inset 0 0 14px rgba(255,23,36,.16); }
.category-scroll button.is-active .ui-icon { color: var(--red); }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 425px); height: calc(4.75rem + env(safe-area-inset-bottom)); padding: .55rem .15rem env(safe-area-inset-bottom); transform: translateX(-50%); border-top: 1px solid rgba(219,221,227,.24); border-radius: 1rem 1rem 0 0; background: rgba(7,7,9,.96); box-shadow: 0 -12px 28px rgba(0,0,0,.7); backdrop-filter: blur(16px); }
.bottom-nav::before { content: ''; position: absolute; top: -1px; left: 1.2rem; width: 4.1rem; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.bottom-nav a, .bottom-nav button { display: grid; place-items: center; align-content: center; gap: .2rem; min-width: 0; padding: 0; border: 0; border-right: 1px solid rgba(220,222,228,.11); background: transparent; color: #aeb0b5; text-decoration: none; cursor: pointer; }
.bottom-nav > :last-child { border-right: 0; }
.bottom-nav .ui-icon { width: 1.55rem; height: 1.55rem; }
.bottom-nav b { font-size: .66rem; font-weight: 400; }
.bottom-nav .is-active { color: var(--red); text-shadow: 0 0 12px rgba(255,23,36,.52); }

.overlay { position: fixed; z-index: 38; inset: 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .2s ease; }
.overlay.is-open { opacity: 1; }
.drawer { position: fixed; z-index: 40; top: 0; right: max(calc((100vw - 425px) / 2), 0px); width: min(88vw, 360px); height: 100svh; padding: max(5rem, calc(env(safe-area-inset-top) + 4rem)) 1.7rem 2rem; visibility: hidden; pointer-events: none; opacity: 0; transform: translateX(105%); border-left: 1px solid rgba(255,23,36,.5); background: linear-gradient(145deg, #151519, #020203 55%); box-shadow: -18px 0 38px rgba(255,0,20,.17); transition: transform .24s ease, opacity .2s ease, visibility .2s ease; }
.drawer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateX(0); }
.drawer-close { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1rem; width: 2.8rem; height: 2.8rem; border: 1px solid rgba(230,232,238,.3); border-radius: 50%; background: #0d0d10; color: #fff; font-size: 1.8rem; cursor: pointer; }
.drawer-kicker { color: var(--red); font: 500 .62rem var(--display); letter-spacing: .14em; }
.drawer h2 { margin: 1rem 0; font: 400 2rem/1.15 var(--display); }
.drawer > p:not(.drawer-kicker) { color: #b5b7bc; line-height: 1.55; }
.drawer-links { display: grid; gap: .7rem; margin-top: 2rem; }
.drawer-links a, .drawer-links button { padding: 1rem; border: 1px solid rgba(230,232,238,.2); border-radius: .8rem; background: #101013; color: #fff; text-align: left; text-decoration: none; cursor: pointer; }

@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 374px) {
  .topbar { padding-inline: 1rem; }
  .brand img { width: 3.5rem; height: 3.5rem; }
  .brand-copy strong { font-size: .98rem; }
  .brand-copy small { font-size: .5rem; }
  .hero { padding-inline: 1.3rem; }
  .operational-status { width: 6.2rem; }
  h1 { font-size: 2.05rem; }
  .hero-copy { font-size: .55rem; }
  .action b { font-size: .9rem; }
  .categories { padding-inline: 1.25rem; }
}

@media (max-height: 860px) and (min-width: 375px) {
  .topbar { height: 5.55rem; }
  .command-core { height: 13.2rem; }
  .command-core img { width: 16.5rem; height: 16.5rem; }
  .orbit-one { width: 14.8rem; height: 14.8rem; }
  .orbit-two { width: 11.5rem; height: 11.5rem; }
  .operational-status { top: 8.2rem; }
  h1 { font-size: 2.05rem; }
  .actions { margin-top: .8rem; }
  .action { min-height: 3.2rem; }
  .telemetry-item { min-height: 4.8rem; }
  .categories { padding-top: .75rem; }
}

@media (min-width: 426px) { body { background: radial-gradient(circle at 50% 20%, #161619, #000 55%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }







