:root {
  --black: #010806;
  --matte: #04100d;
  --panel: rgba(9, 32, 24, 0.74);
  --panel-strong: rgba(4, 18, 14, 0.94);
  --navy: #071426;
  --ink: #f3fff9;
  --muted: rgba(232, 250, 242, 0.62);
  --line: rgba(75, 230, 170, 0.16);
  --emerald: #28e39b;
  --emerald-soft: rgba(40, 227, 155, 0.16);
  --gold: #c7a75b;
  --red: #ee6b6b;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.44);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(40, 227, 155, 0.24), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(199, 167, 91, 0.12), transparent 25%),
    linear-gradient(180deg, #010806 0%, #06150f 44%, #020b08 100%);
  letter-spacing: 0;
  cursor: none;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.cursor-glow,
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-glow {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(40,227,155,0.2), rgba(41,120,255,0.08) 42%, transparent 68%);
  mix-blend-mode: screen;
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  box-shadow: 0 0 20px rgba(40,227,155,0.95);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(40, 227, 155, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 227, 155, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

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

h1, h2, h3, p { margin-top: 0; }

.section-shell {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(1, 8, 6, 0.78);
  backdrop-filter: blur(20px);
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  width: min(1200px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #01100b;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  box-shadow: 0 0 36px rgba(40, 227, 155, 0.28);
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover { color: var(--emerald); }

.nav-cta, .btn, .newsletter button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), #2978ff, var(--gold));
  box-shadow: 0 0 24px rgba(40,227,155,0.75);
  pointer-events: none;
}

.nav-cta {
  padding: 12px 18px;
  color: #02100b;
  background: linear-gradient(135deg, var(--emerald), #79f4c2);
  box-shadow: 0 16px 42px rgba(40, 227, 155, 0.2);
}

.nav-cta:hover, .btn:hover, .newsletter button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 920px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 70px 0 110px;
}

.hero-bg-widget {
  position: absolute;
  inset: -80px -40px 0;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.06);
}

.hero-bg-widget .tradingview-widget-container,
.hero-bg-widget .tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(40, 227, 155, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(1, 8, 6, 0.96) 0%, rgba(1, 8, 6, 0.78) 44%, rgba(1, 8, 6, 0.42) 100%),
    linear-gradient(180deg, rgba(1, 8, 6, 0.2), #010806 94%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  border: 1px solid rgba(40,227,155,0.12);
  background:
    conic-gradient(from 120deg, transparent, rgba(40,227,155,0.16), transparent, rgba(41,120,255,0.16), transparent);
  filter: blur(1px);
  animation: holoRotate 24s linear infinite;
  opacity: 0.62;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: gridDrift 18s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.ticker-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 860px;
  margin-bottom: 34px;
}

.ticker-wall span,
.ticker-wall b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(8, 31, 23, 0.7);
}

.ticker-wall span {
  border-radius: 999px 0 0 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ticker-wall b {
  margin-left: -8px;
  border-radius: 0 999px 999px 0;
  color: var(--emerald);
  font-size: 0.78rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

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

h1 {
  margin: 14px 0 22px;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 30px 90px rgba(40, 227, 155, 0.18);
}

.hero-copy h1 {
  max-width: 1050px;
  background: linear-gradient(110deg, #ffffff 0%, #cffff0 42%, var(--emerald) 66%, #8db8ff 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
}

.btn::after,
.nav-cta::after {
  content: "";
  position: absolute;
  inset: var(--y, 50%) auto auto var(--x, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  transform: translate(-50%, -50%);
  transition: width 480ms ease, height 480ms ease, opacity 520ms ease;
  opacity: 0;
}

.btn.ripple::after,
.nav-cta.ripple::after {
  width: 340px;
  height: 340px;
  opacity: 1;
}

.btn.primary {
  color: #02100b;
  background: linear-gradient(135deg, var(--emerald), #8bf7ca);
  box-shadow: 0 18px 50px rgba(40, 227, 155, 0.26);
}

.btn.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.analytics-float {
  position: absolute;
  min-width: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 38, 28, 0.76), rgba(2, 12, 9, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
  transform-style: preserve-3d;
  touch-action: none;
}

.analytics-float::before,
.service-card::before,
.tradingview-panel::before,
.data-card::before,
.ai-chat::before,
.allocation-card::before,
.insight-card::before,
.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(40,227,155,0.62), rgba(41,120,255,0.16), rgba(199,167,91,0.4));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.analytics-float:hover::before,
.service-card:hover::before,
.tradingview-panel:hover::before,
.data-card:hover::before,
.ai-chat:hover::before,
.allocation-card:hover::before,
.insight-card:hover::before,
.review-card:hover::before {
  opacity: 1;
}

.volatility-wave {
  position: absolute;
  right: 2%;
  bottom: 290px;
  width: 330px;
  height: 96px;
  display: flex;
  align-items: end;
  gap: 8px;
  pointer-events: none;
  opacity: 0.78;
}

.volatility-wave i {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(41,120,255,0.85), rgba(40,227,155,0.18));
  animation: waveBars 1.7s ease-in-out infinite;
}

.volatility-wave i:nth-child(1) { height: 38%; }
.volatility-wave i:nth-child(2) { height: 72%; animation-delay: 120ms; }
.volatility-wave i:nth-child(3) { height: 48%; animation-delay: 240ms; }
.volatility-wave i:nth-child(4) { height: 88%; animation-delay: 360ms; }
.volatility-wave i:nth-child(5) { height: 62%; animation-delay: 480ms; }
.volatility-wave i:nth-child(6) { height: 94%; animation-delay: 600ms; }
.volatility-wave i:nth-child(7) { height: 54%; animation-delay: 720ms; }

.analytics-float span,
.analytics-float small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.analytics-float strong {
  display: block;
  margin: 6px 0;
  font-size: 1.8rem;
}

.growth-card { top: 170px; right: 7%; }
.sentiment-card { top: 390px; right: 18%; animation-delay: 700ms; }
.risk-card { bottom: 150px; right: 8%; animation-delay: 1200ms; }
.asset-card { bottom: 90px; left: 47%; animation-delay: 300ms; }

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 12px 0 14px;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.02;
}

.section-heading p,
.about-copy p,
.service-card p,
.why-card p,
.perf-card p,
.insight-card p,
.app-copy p,
.footer p,
.footer a,
.footer label {
  color: var(--muted);
  line-height: 1.75;
}

.trust, .about, .markets, .assistant-section, .performance, .testimonials, .app-section {
  padding: 98px 0;
}

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

.stat, .terminal-card, .service-card, .tradingview-panel, .data-card, .heatmap-panel, .ai-chat, .allocation-card, .why-card, .perf-card, .review-card, .insight-card, .phone-mockup {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
}

.stat {
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  box-shadow: 0 0 24px rgba(40,227,155,0.35);
  animation: statPulse 2.4s ease-in-out infinite;
}

.stat span {
  display: block;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 900;
}

.stat p { margin: 8px 0 0; }

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.logo-strip span {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: rgba(243,255,249,0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 900;
}

.terminal-section {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.terminal-card {
  min-height: 460px;
  padding: 22px;
  border-radius: 30px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
}

.terminal-bar span:nth-child(2) { background: var(--gold); }
.terminal-bar span:nth-child(3) { background: var(--red); margin-right: 10px; }

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.terminal-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.terminal-grid small,
.terminal-grid strong {
  display: block;
}

.terminal-grid small { color: var(--muted); }
.terminal-grid strong { margin-top: 8px; font-size: 1.45rem; }

.terminal-lines {
  display: grid;
  gap: 14px;
}

.terminal-lines i {
  width: var(--w);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), rgba(199,167,91,0.5));
  box-shadow: 0 0 24px rgba(40,227,155,0.18);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.feature-list span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
}

.services, .why-section, .insights {
  padding: 98px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(40, 227, 155, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(1,8,6,0.2), rgba(1,8,6,0.6));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 22px;
  border-radius: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(40, 227, 155, 0.42);
}

.service-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #02100b;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 18px 0 10px;
}

.service-card i {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 36px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(40,227,155,0.8) 49%, transparent 52%),
    linear-gradient(45deg, transparent 45%, rgba(199,167,91,0.65) 48%, transparent 54%);
  opacity: 0.5;
  animation: miniChart 2.8s ease-in-out infinite;
}

.tradingview-tape {
  overflow: hidden;
  min-height: 56px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(1, 8, 6, 0.72);
}

.terminal-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
}

.tradingview-panel, .heatmap-panel {
  padding: 20px;
  border-radius: 28px;
}

.main-live-chart {
  min-height: 760px;
  grid-row: span 2;
}

.watchlist-panel {
  min-height: 560px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-head h3 {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--emerald);
  background: var(--emerald-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.tv-frame {
  overflow: hidden;
  height: calc(100% - 64px);
  min-height: 650px;
  border: 1px solid rgba(40, 227, 155, 0.1);
  border-radius: 20px;
  background: var(--black);
}

.tv-frame.compact {
  min-height: 480px;
}

.tv-frame .tradingview-widget-container,
.tv-frame .tradingview-widget-container__widget {
  height: 100%;
  width: 100%;
}

.mini-terminal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.data-card {
  padding: 18px;
  border-radius: 20px;
  cursor: grab;
  min-height: 134px;
}

.data-card:active {
  cursor: grabbing;
}

.data-card span,
.data-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.data-card b {
  display: block;
  margin: 8px 0;
  color: var(--emerald);
}

.heatmap-panel {
  grid-column: 2;
}

.heatmap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 62px;
  gap: 8px;
}

.heatmap span {
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #02100b;
  background: rgba(40, 227, 155, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
  animation: heatPulse 3s ease-in-out infinite;
}

.heatmap span:nth-child(4n) { background: rgba(238,107,107,0.8); color: white; }
.heatmap span:nth-child(3n) { background: rgba(199,167,91,0.86); }
.heatmap span:nth-child(5) { grid-row: span 2; }
.heatmap span:nth-child(8) { grid-column: span 2; }

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 18px rgba(40, 227, 155, 0.9);
  animation: pulse 1.3s ease-in-out infinite;
}

.assistant-grid, .app-section {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 22px;
  align-items: center;
}

.ai-chat, .allocation-card, .phone-mockup {
  padding: 24px;
  border-radius: 28px;
}

.ai-chat {
  overflow: hidden;
}

.neural-field {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
}

.neural-field i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 18px rgba(40,227,155,0.8);
  animation: nodeFloat 5s ease-in-out infinite;
}

.neural-field i:nth-child(1) { left: 12%; top: 22%; }
.neural-field i:nth-child(2) { left: 52%; top: 14%; animation-delay: 700ms; }
.neural-field i:nth-child(3) { left: 82%; top: 36%; animation-delay: 1200ms; }
.neural-field i:nth-child(4) { left: 28%; top: 78%; animation-delay: 1700ms; }
.neural-field i:nth-child(5) { left: 72%; top: 72%; animation-delay: 2300ms; }

.voice-wave {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin-top: 12px;
}

.voice-wave i {
  width: 9px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--emerald), #2978ff);
  animation: waveBars 1.2s ease-in-out infinite;
}

.voice-wave i:nth-child(2n) { animation-delay: 160ms; }
.voice-wave i:nth-child(3n) { animation-delay: 320ms; }

.confidence-ring {
  --angle: calc(var(--score) * 3.6deg);
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  margin: 26px auto 0;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) var(--angle), rgba(255,255,255,0.08) 0);
  box-shadow: 0 0 46px rgba(40,227,155,0.2);
}

.confidence-ring::before {
  content: "";
  position: absolute;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #04120e;
}

.confidence-ring span,
.confidence-ring small {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.confidence-ring span {
  font-size: 2rem;
  font-weight: 900;
}

.confidence-ring small {
  color: var(--muted);
  font-weight: 800;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.message {
  width: fit-content;
  max-width: 82%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.55;
}

.message.user {
  margin-left: auto;
  color: #02100b;
  background: var(--emerald);
}

.message.ai {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
}

.allocation-bars {
  display: grid;
  gap: 14px;
}

.allocation-bars div {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}

.allocation-bars div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(40,227,155,0.55), rgba(199,167,91,0.22));
}

.allocation-bars span,
.allocation-bars b {
  position: relative;
  z-index: 1;
}

.why-grid, .performance-grid, .testimonial-grid, .insight-grid {
  display: grid;
  gap: 16px;
}

.why-grid {
  grid-template-columns: repeat(4, 1fr);
}

.performance-grid, .testimonial-grid, .insight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.simulator {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.6fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow);
}

.simulator h3 {
  margin: 10px 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.simulator label {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.simulator input {
  width: 100%;
  accent-color: var(--emerald);
}

.projection-bars {
  height: 170px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.projection-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--emerald), rgba(41,120,255,0.18));
  box-shadow: 0 0 24px rgba(40,227,155,0.18);
  transition: height 260ms ease;
}

.why-card, .perf-card, .review-card, .insight-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
}

.perf-card strong {
  display: block;
  margin: 12px 0;
  color: var(--emerald);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.perf-card span,
.insight-card span,
.review-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #02100b;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  font-weight: 900;
}

.review-card p {
  color: rgba(243,255,249,0.78);
  line-height: 1.65;
}

.review-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.app-copy {
  max-width: 700px;
}

.app-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.app-buttons a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  font-weight: 900;
}

.news-ticker {
  overflow: hidden;
  display: flex;
  gap: 24px;
  margin: -10px 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.news-ticker div {
  min-width: max-content;
  animation: tickerMove 22s linear infinite;
}

.news-ticker span {
  margin-right: 12px;
  color: var(--emerald);
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-row button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,0.045);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter-row button.active,
.filter-row button:hover {
  color: #02100b;
  background: var(--emerald);
}

.phone-mockup {
  width: min(100%, 390px);
  margin-left: auto;
  padding: 16px;
  border-radius: 42px;
}

.phone-screen {
  min-height: 620px;
  padding: 28px;
  border: 1px solid rgba(40,227,155,0.2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 10%, rgba(40,227,155,0.2), transparent 26%),
    linear-gradient(180deg, #061911, #010806);
}

.phone-screen span,
.phone-screen small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.phone-screen strong {
  display: block;
  margin: 16px 0 4px;
  font-size: 2.8rem;
}

.phone-chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 30px 0;
}

.phone-chart i {
  flex: 1;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--emerald), rgba(40,227,155,0.1));
}

.phone-chart i:nth-child(1) { height: 40%; }
.phone-chart i:nth-child(2) { height: 68%; }
.phone-chart i:nth-child(3) { height: 52%; }
.phone-chart i:nth-child(4) { height: 82%; }
.phone-chart i:nth-child(5) { height: 94%; }

.phone-alert {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
}

.footer {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  border-top: 1px solid var(--line);
  background: #010806;
}

.footer-orbit {
  position: absolute;
  right: -140px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(40,227,155,0.16);
  background: conic-gradient(from 90deg, transparent, rgba(40,227,155,0.16), transparent, rgba(199,167,91,0.14), transparent);
  animation: holoRotate 24s linear infinite;
}

.footer-market-strip {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-market-strip span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--emerald);
  background: rgba(255,255,255,0.04);
  font-size: 0.78rem;
  font-weight: 900;
}

.footer-ai-widget {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5,25,18,0.82);
  backdrop-filter: blur(18px);
}

.footer-ai-widget p {
  margin: 8px 0 0;
  color: var(--muted);
}

.spark {
  position: fixed;
  z-index: 1001;
  width: 6px;
  height: 6px;
  pointer-events: none;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 18px rgba(40,227,155,0.95);
  animation: sparkOut 620ms ease-out forwards;
}

.footer-grid {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.9fr 1fr;
  gap: 34px;
}

.footer a, .footer p, .footer label {
  display: block;
}

.footer h3 { margin-bottom: 14px; }
.footer-brand { margin-bottom: 18px; }

.newsletter div {
  display: flex;
  gap: 8px;
}

.newsletter input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255,255,255,0.055);
  outline: none;
}

.newsletter button {
  min-height: 48px;
  padding: 0 18px;
  color: #02100b;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms ease, transform 760ms ease;
}

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

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(46px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes heatPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.55); opacity: 1; }
}

@keyframes holoRotate {
  to { transform: rotate(360deg); }
}

@keyframes waveBars {
  0%, 100% { transform: scaleY(0.55); filter: brightness(0.9); }
  50% { transform: scaleY(1); filter: brightness(1.35); }
}

@keyframes miniChart {
  0%, 100% { transform: translateX(-8px) scaleY(0.8); opacity: 0.34; }
  50% { transform: translateX(8px) scaleY(1.1); opacity: 0.72; }
}

@keyframes nodeFloat {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(18px,-12px,0); }
}

@keyframes statPulse {
  0%, 100% { transform: scaleX(0.42); transform-origin: left; opacity: 0.48; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 24px)); }
}

@keyframes sparkOut {
  to {
    transform: translate(var(--sx), var(--sy)) scale(0);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .terminal-dashboard, .terminal-section, .assistant-grid, .app-section { grid-template-columns: 1fr; }
  .main-live-chart, .heatmap-panel { grid-row: auto; grid-column: auto; }
  .phone-mockup { margin: 0; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero { min-height: 820px; }
  .analytics-float { position: static; margin-top: 12px; width: min(100%, 340px); }
  .stat-grid, .logo-strip, .why-grid, .performance-grid, .testimonial-grid, .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .mini-terminal { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .simulator { grid-template-columns: 1fr; }
  body { cursor: auto; }
  .cursor-glow, .cursor-dot { display: none; }
}

@media (max-width: 620px) {
  .section-shell, .nav, .footer-grid { width: min(100% - 28px, 1200px); }
  .nav-cta { display: none; }
  .hero { padding-top: 42px; min-height: auto; }
  h1 { font-size: 3.8rem; }
  .hero-copy p { font-size: 1rem; }
  .hero-actions, .newsletter div, .app-buttons { flex-direction: column; }
  .stat-grid, .logo-strip, .service-grid, .mini-terminal, .why-grid, .performance-grid, .testimonial-grid, .insight-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust, .about, .markets, .assistant-section, .performance, .testimonials, .app-section, .services, .why-section, .insights { padding: 66px 0; }
  .main-live-chart { min-height: 620px; }
  .tv-frame { min-height: 500px; }
  .tv-frame.compact { min-height: 430px; }
  .phone-screen { min-height: 520px; }
  .volatility-wave { display: none; }
  .footer-ai-widget { position: relative; right: auto; bottom: auto; width: min(100% - 28px, 1200px); margin: 28px auto 0; }
}
