
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050712;
  --card: #050b18;
  --border-soft: rgba(135, 255, 255, 0.15);
  --accent: #46e6c4;
  --accent-soft: rgba(70, 230, 196, 0.16);
  --amber: #ffb649;
  --text-main: #f5fbff;
  --text-soft: #a4b2d6;
  --pill: linear-gradient(90deg, #36e0c1, #7b5cff);
  --orb-cyan: #40dfff;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #101b37 0, #050712 55%, #020309 100%);
}

body {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

/* System bar */
.sys-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(255, 184, 77, 0.1), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0, 255, 200, 0.1), transparent 60%),
              #050810;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sys-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.prompt {
  color: #ffb649;
}

.sys-label {
  color: var(--text-soft);
}

.sys-ok {
  color: #6bff8d;
  text-shadow: 0 0 8px rgba(107, 255, 141, 0.7);
}

.sys-meta {
  color: #6f89c5;
}

.wallet-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 77, 0.7);
  background: radial-gradient(circle at top, rgba(255, 184, 77, 0.35), transparent 60%),
              #05060c;
  box-shadow: 0 0 25px rgba(255, 184, 77, 0.7);
  color: #ffe7c1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* hero card */
.content {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card {
  padding: 18px 16px 20px;
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(88, 208, 255, 0.16), transparent 60%),
              radial-gradient(circle at bottom, rgba(120, 255, 180, 0.12), transparent 70%),
              #050912;
  border: 1px solid var(--border-soft);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background-image: var(--pill);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #eaffff;
  box-shadow: 0 0 22px rgba(66, 235, 204, 0.6);
}

.title {
  margin: 14px 0 4px;
  font-size: clamp(32px, 6vw, 40px);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-align: center;
}

.subtitle {
  margin: 0 0 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Orb frame */
.orb-frame {
  margin-top: 8px;
  position: relative;
  border-radius: 26px;
  padding: 26px 16px 22px;
  background:
    radial-gradient(circle at top left, rgba(70, 230, 196, 0.17), transparent 60%),
    radial-gradient(circle at bottom right, rgba(122, 167, 255, 0.22), transparent 60%),
    #02040a;
  overflow: hidden;
  border: 1px solid rgba(138, 255, 255, 0.18);
}

/* subtle outer frame */
.orb-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(133, 245, 255, 0.16);
  pointer-events: none;
}

/* star layer */
.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.7) 0, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(183,248,255,0.7) 0, transparent 45%),
    radial-gradient(circle at 40% 80%, rgba(168,255,210,0.9) 0, transparent 50%);
  opacity: 0.16;
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: twinkle 12s linear infinite alternate;
}

@keyframes twinkle {
  0% { transform: translate3d(0,0,0) scale(1); opacity: 0.12; }
  50% { transform: translate3d(0,-6px,0) scale(1.03); opacity: 0.18; }
  100% { transform: translate3d(0,4px,0) scale(1.01); opacity: 0.15; }
}

/* nodes */
.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.node-pill {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(6, 16, 30, 0.92);
  border: 1px solid rgba(147, 199, 255, 0.6);
  color: #eaf3ff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.node-formula {
  font-size: 10px;
  color: rgba(189, 214, 255, 0.9);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monaco, Consolas, "Courier New", monospace;
}

/* layout positions */
.node-a {
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.node-b {
  bottom: 26px;
  left: 12%;
}

.node-c {
  bottom: 26px;
  right: 12%;
}

/* orb */
.orb {
  position: relative;
  margin: 40px auto 32px;
  width: min(260px, 70vw);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 18%, #ecfbff 0, #baf1ff 14%, #5dd9ff 36%, #148fe5 68%, #021833 100%);
  box-shadow:
    0 0 60px rgba(81, 232, 255, 0.75),
    0 0 140px rgba(15, 227, 194, 0.75);
  overflow: hidden;
}

.orb-inner {
  position: absolute;
  inset: 18% 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.70) 10%, rgba(215,246,255,0.55) 24%, rgba(0,255,214,0.18) 50%, transparent 78%),
    radial-gradient(circle at 50% 72%, rgba(0,255,214,0.18) 0%, rgba(120,220,255,0.14) 26%, rgba(0,0,0,0) 72%);
  box-shadow:
    0 0 34px rgba(110,240,255,0.65),
    0 0 90px rgba(0,255,214,0.5);
  mix-blend-mode: screen;
  animation: orbInner 9s ease-in-out infinite alternate;
}

@keyframes orbInner {
  0% { transform: translate3d(-4px, 2px, 0) scale(0.98); opacity: 0.9; }
  50% { transform: translate3d(3px, -3px, 0) scale(1.02); opacity: 1; }
  100% { transform: translate3d(-2px, 1px, 0) scale(0.99); opacity: 0.92; }
}

.orb-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 78%;
  height: 48%;
  border-radius: 50%;
  border: 1.5px solid rgba(163, 255, 255, 0.9);
  transform: translate(-50%, -50%) rotateX(64deg);
  box-shadow: 0 0 18px rgba(55, 249, 255, 0.8);
}

.orb-ring-1 {
  animation: ringSpin 11s linear infinite;
}

.orb-ring-2 {
  width: 64%;
  height: 40%;
  top: 56%;
  border-color: rgba(122, 255, 206, 0.8);
  box-shadow: 0 0 20px rgba(92, 255, 219, 0.7);
  animation: ringSpin 13s linear infinite reverse;
}

@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(360deg); }
}

.orb-math {
  position: absolute;
  inset: 22% 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(222, 246, 255, 0.95);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-shadow:
    0 0 8px rgba(0,0,0,0.7),
    0 0 16px rgba(134, 255, 255, 0.65);
  opacity: 0.9;
}

/* bridges */
.bridge {
  position: absolute;
  width: 40%;
  height: 56%;
  pointer-events: none;
}

.bridge-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 70%;
  background: linear-gradient(to bottom, rgba(255, 186, 89, 0) 0, rgba(255, 192, 120, 0.8) 40%, rgba(61, 255, 212, 0.3) 100%);
  transform-origin: center bottom;
  filter: blur(0.3px);
  opacity: 0.9;
}

.bridge-pulse {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffe8b9 0, #ffb649 38%, rgba(255,214,154,0) 68%);
  box-shadow: 0 0 12px rgba(255, 198, 126, 0.85);
  animation: pulseTravel 2.8s cubic-bezier(0.4, 0, 0.3, 1) infinite;
}

@keyframes pulseTravel {
  0%   { top: 88%; opacity: 0; transform: translateY(0) scale(0.6); }
  8%   { opacity: 1; }
  52%  { top: 18%; opacity: 1; transform: translateY(-4px) scale(1); }
  90%  { opacity: 0; transform: translateY(-6px) scale(0.7); }
  100% { top: 10%; opacity: 0; }
}

/* positioning each bridge */
.bridge-a {
  left: 50%;
  top: 8%;
  transform: translateX(-50%) rotate(0deg);
}

.bridge-b {
  left: 14%;
  bottom: 10%;
  transform: rotate(30deg);
}

.bridge-c {
  right: 14%;
  bottom: 10%;
  transform: rotate(-30deg);
}

/* Core status line */
.core-status {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(135, 255, 255, 0.28);
  background: radial-gradient(circle at left, rgba(99, 255, 197, 0.28), transparent 55%),
              radial-gradient(circle at right, rgba(255, 186, 104, 0.3), transparent 55%),
              rgba(3, 10, 20, 0.95);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #d6f7ff;
}

.core-status .label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9cefff;
}

.core-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38ff9f;
  box-shadow: 0 0 10px rgba(56, 255, 159, 0.95);
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.4); opacity: 1; }
}

.core-status .value {
  opacity: 0.94;
}

.core-status .divider {
  opacity: 0.45;
}

.core-status .metric {
  color: #9bc9ff;
}

/* Stats card */
.stats-card {
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(76, 214, 255, 0.08), transparent 60%),
              radial-gradient(circle at bottom right, rgba(255, 112, 178, 0.08), transparent 55%),
              #050712;
  border: 1px solid rgba(142, 205, 255, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-soft);
}

.stats-title {
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stats-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 255, 183, 0.7);
  color: #8bffc4;
  font-size: 10px;
}

.stats-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 20, 38, 0.96);
  border: 1px solid rgba(143, 199, 255, 0.5);
  font-size: 11px;
}

.stats-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11px;
  color: var(--text-soft);
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .hero-card {
    padding: 22px 26px 26px;
  }

  .orb-frame {
    padding-inline: 42px;
  }

  .node-b { left: 18%; }
  .node-c { right: 18%; }

  .core-status {
    justify-content: space-between;
  }
}
