* {
  box-sizing: border-box;
}

:root {
  --bg: #050814;
  --panel: rgba(9, 16, 30, 0.72);
  --panel-strong: rgba(11, 19, 36, 0.92);
  --panel-border: rgba(132, 255, 236, 0.16);
  --text: #ecf5ff;
  --muted: #98a9c6;
  --accent: #7cffe5;
  --accent-2: #8b5cff;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(124, 255, 229, 0.14), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 255, 0.16), transparent 20%),
    radial-gradient(circle at 50% 88%, rgba(255, 92, 205, 0.08), transparent 24%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  opacity: 0.35;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 255, 229, 0.2), rgba(124, 255, 229, 0) 60%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  filter: blur(6px);
}

.bg-grid,
.bg-orb {
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.bg-grid {
  inset: 0;
  background:
    linear-gradient(transparent 96%, rgba(124, 255, 229, 0.08) 97%, transparent 100%),
    linear-gradient(90deg, transparent 96%, rgba(124, 255, 229, 0.08) 97%, transparent 100%);
  background-size: 160px 160px;
  opacity: 0.14;
  transform: perspective(1000px) rotateX(62deg) translateY(14vh);
  transform-origin: center top;
}

.bg-orb {
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.5;
}

.orb-a {
  width: 540px;
  height: 540px;
  background: rgba(124, 255, 229, 0.18);
  top: -120px;
  right: -120px;
}

.orb-b {
  width: 620px;
  height: 620px;
  background: rgba(139, 92, 255, 0.17);
  bottom: -220px;
  left: -160px;
}

.page {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 48px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-bottom: 18px;
  background: rgba(8, 14, 27, 0.74);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand strong,
.signal h2,
.pricing h2,
.system-copy h2,
.hero-copy h1 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

.brand strong {
  display: block;
  letter-spacing: 0.24em;
  font-size: 0.86rem;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 0 18px rgba(124, 255, 229, 0.28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  box-shadow: 0 0 14px rgba(124, 255, 229, 0.2);
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-emblem {
  width: min(100%, 400px);
  margin-bottom: 24px;
  display: block;
  filter: drop-shadow(0 0 48px rgba(93, 144, 255, 0.35)) drop-shadow(0 20px 60px rgba(0,0,0,0.6));
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a:hover,
.mini-pill:hover {
  color: var(--text);
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 255, 229, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
}

.ticker {
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 1;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 8, 20, 0.95), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(5, 8, 20, 0.95), transparent);
}

.ticker-track {
  display: flex;
  gap: 22px;
  padding: 14px 22px;
  white-space: nowrap;
  will-change: transform;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker-track span::before {
  content: "●";
  color: var(--accent);
  font-size: 0.7rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.signal,
.system,
.pricing {
  padding: 28px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124, 255, 229, 0.12), transparent 64%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: fit-content;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(124, 255, 229, 0.7);
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin: 18px 0 0;
  max-width: 12ch;
}

.lead,
.signal p,
.pricing p,
.system-copy p,
.invite {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b3fff0);
  color: #03111a;
  box-shadow: 0 12px 40px rgba(124, 255, 229, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-color: rgba(124, 255, 229, 0.12);
}

.pulse-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.pulse-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 255, 229, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pulse-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  margin-bottom: 8px;
}

.pulse-card strong {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: -0.06em;
}

.hero-panel {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10, 19, 36, 0.9), rgba(8, 14, 27, 0.76));
}

.panel-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3bffb3;
}

.panel-dot.live {
  animation: pulse 1.6s infinite;
}

.chart-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(124, 255, 229, 0.1);
}

#chartCanvas {
  display: block;
  width: 100%;
  height: auto;
}

.chart-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 255, 229, 0.12);
  backdrop-filter: blur(18px);
}

.overlay-label,
.mini-stats span,
.section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.chart-overlay strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-stats div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 255, 229, 0.1);
}

.mini-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.signal {
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.signal::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 255, 229, 0.12), transparent 65%);
  pointer-events: none;
}

.signal h2,
.system-copy h2,
.pricing h2 {
  margin: 8px 0 0;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.signal h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
}

.signal p {
  margin-bottom: 0;
}

.system {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 20px;
}

.system-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.system-diagram {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.node {
  min-width: 150px;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 255, 229, 0.18), rgba(139, 92, 255, 0.2));
  border: 1px solid rgba(124, 255, 229, 0.22);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.line {
  width: 2px;
  height: 46px;
  background: linear-gradient(180deg, rgba(124, 255, 229, 0.1), rgba(124, 255, 229, 0.65), rgba(124, 255, 229, 0.1));
}

.pricing {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: center;
}

.pricing h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.price-box {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(124, 255, 229, 0.14);
}

.price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

.price-sub {
  color: var(--muted);
  margin-bottom: 16px;
}

.wide {
  width: 100%;
  margin-top: 10px;
}

.invite {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.footer {
  margin: 18px 0 0;
  padding: 18px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 255, 179, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(59, 255, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 255, 179, 0); }
}

@media (max-width: 900px) {
  .hero,
  .pricing,
  .system,
  .signals-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
  }

  .hero-copy,
  .hero-panel {
    min-height: auto;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .system-diagram {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 16px, 1120px);
    padding: 8px 0 28px;
  }

  .hero-copy,
  .hero-panel,
  .signal,
  .system,
  .pricing {
    padding: 18px;
  }

  .ticker-track {
    padding: 12px 16px;
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4.5rem);
  }

  .chart-overlay {
    flex-direction: column;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
