* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #04110a;
  --bg-sub: #071a12;
  --bg-deep: #020a06;
  --panel: rgba(0, 255, 136, 0.06);
  --panel-strong: rgba(0, 255, 136, 0.1);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(0, 255, 136, 0.22);
  --line-strong: rgba(0, 255, 136, 0.38);
  --glow: #00ff88;
  --glow-soft: rgba(0, 255, 136, 0.22);
  --text-main: #e8fff2;
  --text-sub: #9edbb7;
  --text-muted: #6fb48f;
  --warn: #8fffd1;
  --shadow: 0 0 30px rgba(0, 255, 136, 0.08);
  --radius: 18px;
  --radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Consolas, "Courier New", monospace;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.12), transparent 20%),
    radial-gradient(circle at top right, rgba(0, 255, 136, 0.05), transparent 20%),
    radial-gradient(circle at bottom left, rgba(0, 255, 136, 0.08), transparent 16%),
    linear-gradient(135deg, var(--bg-main), var(--bg-sub), var(--bg-deep));
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.12;
  pointer-events: none;
}

.screen-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.12;
  mix-blend-mode: screen;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: min(1500px, 94%);
  margin: 0 auto;
  padding: 22px 0 30px;
  position: relative;
  z-index: 3;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 20, 10, 0.46);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--glow);
  text-shadow: 0 0 10px var(--glow);
}

.brand-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.topbar-center {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.status-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--warn);
  background: rgba(0, 255, 136, 0.06);
  font-size: 0.82rem;
  white-space: nowrap;
}

.clock-box {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.06);
  text-align: right;
}

.clock-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-bottom: 4px;
}

#clock {
  color: var(--glow);
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 10px var(--glow);
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 18px;
  align-items: start;
}

.left-column,
.center-column,
.right-column {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow:
    inset 0 0 18px rgba(0, 255, 136, 0.04),
    0 0 20px rgba(0, 255, 136, 0.04);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 255, 136, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 255, 136, 0.04);
  color: var(--glow);
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 1px;
}

.panel-code {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.radar-panel {
  padding-bottom: 16px;
}

.radar-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 12px;
}

.radar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle, rgba(0, 255, 136, 0.14), transparent 62%),
    repeating-radial-gradient(circle, rgba(0, 255, 136, 0.12) 0 2px, transparent 2px 25px);
  box-shadow:
    inset 0 0 26px rgba(0, 255, 136, 0.08),
    0 0 24px rgba(0, 255, 136, 0.12);
  position: relative;
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 255, 136, 0.45) 24deg,
    transparent 54deg
  );
  animation: radar-spin 4s linear infinite;
}

.radar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--glow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px var(--glow);
}

.radar-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #d7fff0;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--glow);
}

.dot-1 {
  left: 24%;
  top: 30%;
}

.dot-2 {
  left: 66%;
  top: 44%;
}

.dot-3 {
  left: 50%;
  top: 72%;
}

@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mini-status-grid {
  padding: 12px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-status {
  padding: 12px;
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 14px;
  background: rgba(0, 255, 136, 0.04);
}

.mini-status strong {
  display: block;
  color: var(--glow);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.mini-status span {
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.5;
}

.menu-grid {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.menu-btn {
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 16px;
  background: rgba(0, 255, 136, 0.05);
  color: var(--text-main);
  cursor: pointer;
  transition: 0.22s ease;
  position: relative;
}

.menu-btn:hover,
.menu-btn.active {
  transform: translateX(4px);
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.36);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.12);
}

.menu-btn-title {
  display: block;
  font-weight: 700;
  color: var(--glow);
  margin-bottom: 6px;
}

.menu-btn-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.hero-panel {
  padding: 20px;
}

.hero-topline {
  color: var(--warn);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-text h1 span {
  color: var(--glow);
  text-shadow: 0 0 14px rgba(0, 255, 136, 0.45);
}

.hero-text p {
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 0.96rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 14px;
  background: rgba(0, 255, 136, 0.05);
  color: var(--text-main);
  transition: 0.2s ease;
}

.link-btn:hover {
  background: rgba(0, 255, 136, 0.13);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.14);
  transform: translateY(-2px);
}

.hero-sidebox {
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0, 255, 136, 0.04);
}

.sidebox-label {
  color: var(--warn);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.sidebox-list {
  display: grid;
  gap: 10px;
}

.side-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.side-row span {
  color: var(--text-sub);
  font-size: 0.84rem;
}

.side-row strong {
  color: var(--glow);
  font-size: 0.84rem;
  text-align: right;
}

.main-display-panel {
  padding: 18px;
}

.main-display {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.display-left {
  display: grid;
  gap: 14px;
}

.display-tag {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.05);
  color: var(--warn);
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.display-visual {
  min-height: 380px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(0, 255, 136, 0.1), transparent 50%),
    linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 0, 0, 0.18));
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.visual-core {
  width: 74%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: var(--glow);
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--glow);
  background:
    linear-gradient(135deg, rgba(0, 255, 136, 0.04), rgba(0, 255, 136, 0.01));
  box-shadow: inset 0 0 25px rgba(0, 255, 136, 0.06);
}

.visual-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: rgba(0, 255, 136, 0.35);
  border-style: solid;
}

.visual-corner-tl {
  left: 12px;
  top: 12px;
  border-width: 2px 0 0 2px;
}

.visual-corner-tr {
  right: 12px;
  top: 12px;
  border-width: 2px 2px 0 0;
}

.visual-corner-bl {
  left: 12px;
  bottom: 12px;
  border-width: 0 0 2px 2px;
}

.visual-corner-br {
  right: 12px;
  bottom: 12px;
  border-width: 0 2px 2px 0;
}

.display-graph {
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 255, 136, 0.04);
}

.graph-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-bottom: 10px;
}

.graph-line {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.graph-line span {
  flex: 1;
  background: linear-gradient(to top, rgba(0, 255, 136, 0.7), rgba(0, 255, 136, 0.08));
  border-radius: 999px 999px 0 0;
  animation: graph-bounce 2.8s infinite ease-in-out;
}

.graph-line span:nth-child(1) { height: 28%; animation-delay: 0.05s; }
.graph-line span:nth-child(2) { height: 44%; animation-delay: 0.12s; }
.graph-line span:nth-child(3) { height: 35%; animation-delay: 0.18s; }
.graph-line span:nth-child(4) { height: 58%; animation-delay: 0.24s; }
.graph-line span:nth-child(5) { height: 40%; animation-delay: 0.3s; }
.graph-line span:nth-child(6) { height: 62%; animation-delay: 0.36s; }
.graph-line span:nth-child(7) { height: 34%; animation-delay: 0.42s; }
.graph-line span:nth-child(8) { height: 52%; animation-delay: 0.48s; }
.graph-line span:nth-child(9) { height: 46%; animation-delay: 0.54s; }
.graph-line span:nth-child(10) { height: 64%; animation-delay: 0.6s; }
.graph-line span:nth-child(11) { height: 31%; animation-delay: 0.66s; }
.graph-line span:nth-child(12) { height: 55%; animation-delay: 0.72s; }
.graph-line span:nth-child(13) { height: 39%; animation-delay: 0.78s; }
.graph-line span:nth-child(14) { height: 61%; animation-delay: 0.84s; }
.graph-line span:nth-child(15) { height: 43%; animation-delay: 0.9s; }

@keyframes graph-bounce {
  0%, 100% {
    opacity: 0.7;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.08);
  }
}

.display-right {
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(0, 255, 136, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-label {
  color: var(--warn);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.info-title {
  color: var(--glow);
  font-size: 1.55rem;
  margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.info-desc {
  color: var(--text-sub);
  line-height: 1.95;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.info-detail-box {
  display: grid;
  gap: 10px;
}

.info-detail {
  padding: 12px 14px;
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.info-detail span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.info-detail strong {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stats-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-box {
  padding: 16px;
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 16px;
  background: rgba(0, 255, 136, 0.04);
}

.stat-box strong {
  display: block;
  color: var(--glow);
  margin-bottom: 8px;
  font-size: 1rem;
}

.stat-box span {
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.6;
}

.mini-panels {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.mini-card {
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 16px;
  background: rgba(0, 255, 136, 0.04);
  padding: 14px;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
}

.mini-card h3 {
  color: var(--glow);
  margin-bottom: 8px;
  font-size: 1rem;
}

.mini-card p {
  color: var(--text-sub);
  line-height: 1.7;
  font-size: 0.85rem;
}

.terminal {
  padding: 16px;
  color: var(--text-sub);
  font-size: 0.88rem;
  line-height: 1.8;
  min-height: 210px;
}

.terminal .green {
  color: var(--glow);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 20, 10, 0.4);
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 1280px) {
  .layout {
    grid-template-columns: 300px 1fr 320px;
  }
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-column,
  .center-column,
  .right-column {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .main-display {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .topbar-center {
    justify-content: flex-start;
  }

  .clock-box {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(96%, 96%);
    padding-top: 14px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid,
  .mini-status-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .display-visual {
    min-height: 280px;
  }


  .visual-core {
    width: 82%;
    font-size: 1.05rem;
  }
}
.visual-image {
  max-width: 50%;
  max-height: 50%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

