:root {
  --ink: #f7fbff;
  --muted: #b8c4ce;
  --panel: rgba(9, 20, 32, 0.72);
  --panel-strong: rgba(12, 31, 45, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --teal: #51e2c2;
  --gold: #f7c85a;
  --coral: #ff6b5f;
  --navy: #07101b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 22% 18%, rgba(81, 226, 194, 0.18), transparent 32%),
    radial-gradient(circle at 78% 8%, rgba(247, 200, 90, 0.16), transparent 24%),
    linear-gradient(135deg, #07101b 0%, #10202a 45%, #18251e 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
}

#marketCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #061017;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 14px 40px rgba(81, 226, 194, 0.24);
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe7ef;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(8, 20, 31, 0.58);
  backdrop-filter: blur(16px);
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(247, 200, 90, 0.7);
  animation: pulse 1.8s infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
  min-height: calc(100vh - 118px);
  padding: 54px 0 20px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid rgba(81, 226, 194, 0.35);
  border-radius: 999px;
  color: #d6fff5;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(81, 226, 194, 0.08);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.actions {
  max-width: 520px;
  margin-top: 38px;
}

.progress-wrap {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 27, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #dbe7ef;
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-label strong {
  color: var(--teal);
}

.progress-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  box-shadow: 0 0 26px rgba(81, 226, 194, 0.5);
  transition: width 0.4s ease;
}

.signal-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateY(-6deg) rotateX(4deg);
  animation: floatPanel 7s ease-in-out infinite;
  backdrop-filter: blur(20px);
}

.signal-panel::after {
  position: absolute;
  inset: auto 34px -18px;
  height: 36px;
  border-radius: 50%;
  content: "";
  background: rgba(81, 226, 194, 0.28);
  filter: blur(24px);
}

.panel-head,
.build-row,
.metric-grid {
  display: flex;
  gap: 10px;
}

.panel-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.panel-head span:first-child {
  background: var(--coral);
}

.panel-head span:nth-child(2) {
  background: var(--gold);
}

.panel-head span:nth-child(3) {
  background: var(--teal);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0 16px;
}

.metric-grid article {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.metric-grid small,
.build-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 1.28rem;
}

.chart-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 42px 42px;
}

.chart-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.area {
  fill: url("#fillGradient");
}

.line {
  fill: none;
  stroke: url("#lineGradient");
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: drawLine 3.1s cubic-bezier(0.16, 1, 0.3, 1) forwards infinite;
}

.chart-dots circle {
  fill: #07101b;
  stroke: var(--teal);
  stroke-width: 4;
  animation: blinkDot 2.6s ease-in-out infinite;
}

.chart-dots circle:nth-child(2) {
  animation-delay: 0.2s;
}

.chart-dots circle:nth-child(3) {
  animation-delay: 0.4s;
}

.chart-dots circle:nth-child(4) {
  animation-delay: 0.6s;
}

.chart-dots circle:nth-child(5) {
  animation-delay: 0.8s;
}

.build-row {
  justify-content: space-between;
  margin-top: 16px;
}

.build-row span {
  position: relative;
  flex: 1;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.build-row span::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, rgba(81, 226, 194, 0.25), transparent);
  animation: scan 2.4s ease-in-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(247, 200, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 200, 90, 0);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: perspective(1100px) rotateY(-6deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: perspective(1100px) rotateY(-3deg) rotateX(2deg) translateY(-16px);
  }
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 620;
  }
  55%,
  100% {
    stroke-dashoffset: 0;
  }
}

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

@keyframes scan {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.35;
  }
  50% {
    transform: translateX(160%);
    opacity: 0.9;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 680px);
    padding-top: 18px;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.7rem);
  }

  .signal-panel {
    transform: none;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 24px, 480px);
  }

  .status-pill {
    width: 100%;
    justify-content: center;
  }

  .metric-grid,
  .build-row {
    grid-template-columns: 1fr;
  }

  .build-row {
    flex-direction: column;
  }
}

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