:root {
  --bg: #050507;
  --panel: #0b0e13;
  --line: #252b35;
  --text: #f0f1f5;
  --muted: #9ba2b0;
  --green: #6fff34;
  --red: #ff2638;
  --silver: #d7d9e1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background: #040406;
  color: var(--text);
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 50% -15%, rgba(255, 38, 56, 0.2), transparent 70%),
    radial-gradient(60% 45% at 50% 120%, rgba(111, 255, 52, 0.16), transparent 70%),
    linear-gradient(180deg, #07080c 0%, #030304 100%);
}

.bg-layer::after {
  content: "";
  position: absolute;
  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: 34px 34px;
  mask-image: radial-gradient(circle at 50% 35%, black 20%, transparent 85%);
}

.hero-shell {
  width: min(960px, 92vw);
  margin: 1.8rem auto 2.5rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.edge-logo {
  width: min(760px, 95%);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.6));
}

.decision-panel {
  width: min(700px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(14, 18, 24, 0.98), rgba(9, 12, 16, 0.96));
  padding: 1.1rem 1rem;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.decision-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.04) 48%, transparent 53%);
  transform: translateX(-130%);
  animation: sweep 3.4s linear infinite;
  pointer-events: none;
}

.decision-panel[data-tone="bull"] {
  border-color: rgba(111, 255, 52, 0.45);
}

.decision-panel[data-tone="neutral"] {
  border-color: rgba(215, 217, 225, 0.45);
}

.decision-panel[data-tone="bear"] {
  border-color: rgba(255, 38, 56, 0.45);
}

.panel-title {
  margin: 0 0 0.75rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(215, 217, 225, 0.58);
  box-shadow: 0 0 10px rgba(215, 217, 225, 0.25);
  animation: pulse 1.3s ease-in-out infinite;
}

.decision-panel[data-feed="live"] .live-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(111, 255, 52, 0.75);
}

.decision-panel[data-feed="delay"] .live-dot {
  background: #f4d98f;
  box-shadow: 0 0 12px rgba(255, 205, 92, 0.55);
}

.feed-badge {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid rgba(215, 217, 225, 0.22);
  padding: 0.15rem 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(215, 217, 225, 0.72);
  background: rgba(215, 217, 225, 0.06);
}

.feed-badge.is-live {
  border-color: rgba(111, 255, 52, 0.32);
  color: #bfe6b2;
  background: rgba(111, 255, 52, 0.08);
}

.feed-badge.is-delay {
  border-color: rgba(255, 205, 92, 0.4);
  color: #f4d98f;
  background: rgba(255, 205, 92, 0.12);
}

.panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.panel-row:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-row-price {
  padding-top: 0.58rem;
  padding-bottom: 0.7rem;
}

.panel-row-price .value {
  font-size: clamp(1.95rem, 7.3vw, 2.95rem);
  letter-spacing: 0.02em;
  color: #f6f8ff;
  text-shadow: 0 0 18px rgba(125, 157, 255, 0.22);
  line-height: 1;
}

.key {
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.symbol-pill {
  display: inline-grid;
  place-items: center;
  margin-left: 0.45rem;
  padding: 0.1rem 0.42rem;
  border: 1px solid rgba(215, 217, 225, 0.22);
  border-radius: 999px;
  color: var(--silver);
  font-size: 0.72em;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.value {
  text-align: right;
  font-size: clamp(1rem, 2.8vw, 1.24rem);
  font-weight: 700;
  color: var(--text);
}

.value.action {
  color: var(--green);
  font-size: clamp(1.2rem, 3.1vw, 1.5rem);
  letter-spacing: 0.01em;
  transition: color 220ms ease, text-shadow 220ms ease, opacity 220ms ease;
}

.panel-row-action {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-top-color: rgba(111, 255, 52, 0.22);
}

.value.action.pending {
  opacity: 0.72;
}

.value.action.pre-decision {
  color: #c8d0bc;
  animation: preDecisionPulse 180ms ease;
}

.value.action.confirmed {
  text-shadow: 0 0 10px rgba(111, 255, 52, 0.55);
}

.position-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.mono {
  font-family: "Orbitron", sans-serif;
}

.pressure-track {
  --pressure-strength: 0.56;
  margin-top: 0.9rem;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  transition: box-shadow 300ms ease, border-color 300ms ease;
}

.pressure-track[data-bias="buy"] {
  border-color: rgba(111, 255, 52, 0.45);
  box-shadow: 0 0 calc(2px + (var(--pressure-strength) * 14px)) rgba(111, 255, 52, 0.45);
}

.pressure-track[data-bias="sell"] {
  border-color: rgba(255, 38, 56, 0.45);
  box-shadow: 0 0 calc(2px + (var(--pressure-strength) * 14px)) rgba(255, 38, 56, 0.42);
}

.pressure-buy {
  display: block;
  background: linear-gradient(90deg, #40b91e, #74ff3e);
  transition: width 560ms ease;
}

.pressure-sell {
  display: block;
  background: linear-gradient(90deg, #ff4a5a, #b70f1f);
  transition: width 560ms ease;
}

.tagline {
  margin: 0.05rem 0 0;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--silver);
  font-size: clamp(0.72rem, 2.1vw, 0.93rem);
}

.enter-cta {
  margin-top: 0.25rem;
  text-decoration: none;
  color: #091007;
  font-family: "Orbitron", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.68rem 1.15rem;
  border: 1px solid rgba(111, 255, 52, 0.7);
  background: linear-gradient(180deg, #87ff5d, #53d629);
  box-shadow: 0 12px 22px rgba(111, 255, 52, 0.24);
  transition: transform 140ms ease;
}

.enter-cta:hover {
  transform: translateY(-1px);
}

.framework-strip {
  width: min(840px, 100%);
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 12, 17, 0.9);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.framework-strip article {
  padding: 0.9rem 0.75rem;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.framework-strip article:first-child {
  border-left: 0;
}

.framework-strip h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
}

.framework-strip p {
  margin: 0.4rem 0 0;
  color: #c0c6d1;
  font-size: 1rem;
  font-weight: 600;
}

.decision-panel.is-updating {
  animation: panelPulse 460ms ease;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes panelPulse {
  0% {
    box-shadow:
      0 22px 46px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  }
  50% {
    box-shadow:
      0 26px 55px rgba(0, 0, 0, 0.52),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  100% {
    box-shadow:
      0 22px 46px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  }
}

@keyframes preDecisionPulse {
  0% {
    opacity: 1;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    opacity: 0.78;
    text-shadow: 0 0 8px rgba(210, 222, 191, 0.35);
  }
  100% {
    opacity: 0.95;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(140%);
  }
}

@media (max-width: 720px) {
  .hero-shell {
    margin-top: 1rem;
    gap: 0.8rem;
  }

  .decision-panel {
    padding: 0.85rem 0.8rem;
  }

  .panel-row {
    align-items: center;
  }

  .value {
    max-width: 65%;
  }

  .feed-badge {
    margin-left: 0;
  }

  .framework-strip {
    grid-template-columns: 1fr;
  }

  .framework-strip article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .framework-strip article:first-child {
    border-top: 0;
  }
}
