/* ==========================================================================
   RZGS-PRO — design tokens
   ========================================================================== */
:root {
  /* Surfaces */
  --bg: #07060b;
  --surface: #100f17;
  --surface-2: #17151f;
  --surface-3: #201e2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f5f5f7;
  --text-muted: #a9a8b8;
  --text-subtle: #8a899c;

  /* Brand */
  --lime: #82ff00;
  --mint: #00efa7;
  --violet: #7b5cff;
  --gold: #f4c85a;
  --down: #ff5f7e;
  --on-accent: #051106;
  --grad: linear-gradient(100deg, var(--mint) 0%, var(--lime) 100%);

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 700ms;

  /* Layout */
  --header-h: 72px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Layers */
  --z-canvas: -1;
  --z-header: 50;
  --z-skip: 100;

  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(123, 92, 255, 0.24), transparent 62%),
    radial-gradient(700px 520px at 88% 8%, rgba(0, 239, 167, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background-color: var(--lime);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Background canvas
   ========================================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}
.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .icon {
  transform: translateX(2px);
}
.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow:
    0 10px 30px -10px rgba(130, 255, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  box-shadow:
    0 14px 40px -8px rgba(130, 255, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-lg {
  --btn-h: 56px;
  padding: 0 28px;
  font-size: 16px;
}
.btn-sm {
  --btn-h: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}
.icon-btn:active {
  transform: scale(0.94);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.text-link:hover .icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(7, 6, 11, 0.78);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-name {
  font: 700 19px/1 var(--font-display);
  letter-spacing: 0.02em;
}
.brand-accent {
  color: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

/* Mobile: dropdown panel */
@media (max-width: 899.98px) {
  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: rgba(16, 15, 23, 0.97);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility 0s linear var(--dur);
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav-link {
    padding: 0 16px;
    min-height: 52px;
    border-radius: 14px;
    font-size: 17px;
    color: var(--text);
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  .nav-menu-cta {
    margin-top: 8px;
  }
}

@media (max-width: 379.98px) {
  .header-cta {
    display: none;
  }
}

/* Desktop: inline nav */
@media (min-width: 900px) {
  .menu-toggle,
  .nav-menu-cta {
    display: none;
  }
  .primary-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-list {
    display: flex;
    gap: 32px;
  }
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transition: transform var(--dur) var(--ease-out);
  }
  .nav-link:hover::after,
  .nav-link.is-active::after {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow-x: clip;
  padding: 8px 0 clamp(72px, 10vw, 128px);
}
.hero::before {
  /* faint tech grid behind the hero */
  content: "";
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -64px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(16, 15, 23, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--lime);
  animation: ping 2s var(--ease-out) infinite;
}

.hero-title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 13vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero-title .text-gradient {
  display: inline-block;
  padding-bottom: 0.04em;
}
.hero-title-sub {
  display: block;
  margin-top: 0.12em;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-lead {
  max-width: 34rem;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points .icon {
  width: 16px;
  height: 16px;
  color: var(--lime);
  stroke-width: 2.5;
}

/* Visual */
.hero-visual {
  position: relative;
  order: -1;
  justify-self: center;
  width: min(80vw, 330px);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% -6% 22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 239, 167, 0.3), rgba(130, 255, 0, 0.1) 55%, transparent 75%);
  filter: blur(24px);
}
.hero-orbit {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 118%;
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  border-radius: 50%;
  border: 1px dashed rgba(130, 255, 0, 0.18);
  animation: spin 60s linear infinite;
}
.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.hero-orbit::before {
  top: 14%;
  left: 14%;
}
.hero-orbit::after {
  right: 6%;
  bottom: 30%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.hero-robot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 8%;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 94%);
}

/* Floating glass cards */
.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(16, 15, 23, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  animation: float 7s ease-in-out infinite;
}
.float-signal {
  left: -4%;
  top: 44%;
  width: 164px;
}
.float-status {
  right: -4%;
  top: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation-delay: -3.5s;
}
.float-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ticker {
  font: 600 12px/1 var(--font-mono);
  color: var(--gold);
}
.ticker span {
  color: var(--text-muted);
}
.trend-up {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 4px;
  color: var(--mint);
  font: 600 11px/1 var(--font-mono);
}
.trend-up .icon {
  width: 14px;
  height: 14px;
}
.sparkline {
  width: 100%;
  height: 32px;
  margin-top: 8px;
}
.spark-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease-out) 0.4s forwards;
}
.status-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(130, 255, 0, 0.12);
  color: var(--lime);
}
.status-icon .icon {
  width: 16px;
  height: 16px;
}
.float-label {
  display: block;
  color: var(--text-subtle);
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.float-value {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.dots {
  display: inline-flex;
  gap: 2px;
  margin-left: 3px;
}
.dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.2s infinite;
}
.dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.dots i:nth-child(3) {
  animation-delay: 0.4s;
}

/* Page-load entrance for hero copy */
.js .hero-copy > * {
  animation: rise var(--dur-slow) var(--ease-out) both;
}
.js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
.js .hero-copy > :nth-child(5) { animation-delay: 240ms; }

@media (min-width: 560px) {
  .hero-visual {
    width: 360px;
  }
  .float-signal {
    left: -14%;
    top: 18%;
    width: 168px;
  }
  .float-signal {
    top: 18%;
  }
  .float-status {
    top: 52%;
    right: -12%;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: clamp(24px, 4vw, 56px);
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .hero-copy {
    margin-top: 0;
    text-align: left;
  }
  .hero-lead {
    margin-left: 0;
  }
  .hero-actions,
  .hero-points {
    justify-content: flex-start;
  }
  .hero-visual {
    order: 0;
    width: min(100%, 460px);
  }
  .hero-robot {
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
  }
  .float-signal {
    left: -18%;
    top: 30%;
    width: 184px;
  }
  .float-status {
    right: -8%;
    top: 62%;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--lime);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.section-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 36rem;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
}

/* Cards */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%),
    var(--surface);
}
.card[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(130, 255, 0, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}
.card[data-spotlight]:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Features (bento)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
  transition: border-color var(--dur) var(--ease-out);
}
.feature:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(130, 255, 0, 0.22);
  border-radius: 12px;
  background: rgba(130, 255, 0, 0.08);
  color: var(--lime);
}
.feature-copy h3 {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.feature-copy p {
  max-width: 42ch;
  margin: 0;
  color: var(--text-muted);
}

.mock {
  margin-top: auto;
  padding-top: 32px;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    min-height: 460px;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }
  .feature--analysis { grid-column: span 7; }
  .feature--always   { grid-column: span 5; }
  .feature--trade    { grid-column: span 5; }
  .feature--profit   { grid-column: span 7; }
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
}
.chip .icon {
  width: 13px;
  height: 13px;
}
.chip-gold {
  border: 1px solid rgba(244, 200, 90, 0.28);
  background: rgba(244, 200, 90, 0.1);
  color: var(--gold);
}
.chip-up {
  margin-left: auto;
  border: 1px solid rgba(0, 239, 167, 0.28);
  background: rgba(0, 239, 167, 0.1);
  color: var(--mint);
}

/* --- Chart mock --- */
.chart-frame {
  padding: 16px 16px 4px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: rgba(0, 0, 0, 0.4);
}
.chart-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.chart-tf {
  color: var(--text-subtle);
  font: 500 11px/1 var(--font-mono);
}
.mock-chart {
  container-type: inline-size;
}
.chart {
  width: 100%;
  height: auto;
  /* narrow cards show the most recent candles + forecast (svg uses xMaxYMid slice) */
  aspect-ratio: 360 / 210;
}
@container (min-width: 500px) {
  .chart {
    aspect-ratio: 560 / 210;
  }
}
.chart .grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-dasharray: 2 5;
}
.now-line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 3 4;
}
.chart-label {
  fill: var(--lime);
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
}
.candle line {
  stroke-width: 1.2;
}
.candle.up line { stroke: rgba(0, 239, 167, 0.7); }
.candle.up rect { fill: var(--mint); }
.candle.dn line { stroke: rgba(255, 95, 126, 0.6); }
.candle.dn rect { fill: var(--down); opacity: 0.85; }
.ema {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.5;
  opacity: 0.8;
}
.cone {
  fill: url(#cone-fill);
}
.forecast {
  fill: none;
  stroke: url(#forecast-stroke);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.forecast-dot {
  fill: var(--lime);
}
.forecast-dot-halo {
  fill: var(--lime);
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2s var(--ease-out) infinite;
}

/* chart entrance, only when JS can reveal it */
.js .mock-chart .candle {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i) * 30ms + 150ms);
}
.js .mock-chart .forecast {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease-out) 1s;
}
.js .mock-chart .cone,
.js .mock-chart .ema {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 0.9s;
}
.js .is-visible .mock-chart .candle {
  opacity: 1;
  transform: none;
}
.js .is-visible .mock-chart .forecast {
  stroke-dashoffset: 0;
}
.js .is-visible .mock-chart .cone {
  opacity: 1;
}
.js .is-visible .mock-chart .ema {
  opacity: 0.8;
}

/* --- 24/7 AI running mock --- */
.mock-always {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 28px;
  padding-bottom: 32px;
}
.radar {
  position: relative;
  flex: none;
  width: 156px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 255, 0, 0.08), transparent 70%);
}
.radar::before {
  /* 24 hour ticks */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.3) 0 1.4deg, transparent 1.4deg 15deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
.radar::after {
  /* full, always-on ring */
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: conic-gradient(var(--mint), var(--lime), var(--mint));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.radar-sweep {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: conic-gradient(transparent 0 280deg, rgba(130, 255, 0, 0.4) 360deg);
  animation: spin 4s linear infinite;
}
.radar-core {
  position: absolute;
  inset: 34px;
  z-index: 1;
  display: grid;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  text-align: center;
}
.radar-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.radar-small {
  margin-top: 6px;
  color: var(--text-subtle);
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.engine {
  display: grid;
  flex: 1 1 180px;
  gap: 16px;
  min-width: 0;
  max-width: 260px;
}
.engine-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(130, 255, 0, 0.3);
  border-radius: 999px;
  background: rgba(130, 255, 0, 0.07);
  color: var(--lime);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sessions {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sessions li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.session-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.session-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0.85;
}
.session-bar i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: sweep 2.4s linear infinite;
  animation-delay: var(--s, 0s);
}

/* --- One-tap: Activate / Pause AI Trading --- */
.mock-trade {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(100%, 300px);
  padding: 30px 18px 20px;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #1a1824, #111019);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 6px;
  translate: -50% 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(130, 255, 0, 0.4);
  border-radius: 999px;
  background: rgba(130, 255, 0, 0.1);
  color: var(--lime);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}
.ai-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ai-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 18px auto 12px;
}
.ai-orb-ring {
  position: absolute;
  inset: 26px;
  border: 1.5px solid rgba(130, 255, 0, 0.55);
  border-radius: 50%;
  animation: ring 2.4s var(--ease-out) infinite;
}
.ai-orb-ring:nth-child(2) {
  animation-delay: 1.2s;
}
.ai-orb-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 0 40px rgba(130, 255, 0, 0.45);
  transition: filter var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.ai-orb-core .icon {
  width: 28px;
  height: 28px;
}
.ai-status {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.ai-toggle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--text);
  font: 700 15px/1 var(--font-body);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.ai-toggle::before {
  /* gradient fill for the "Activate" state, faded in so the switch doesn't snap */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.ai-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.ai-toggle:active {
  transform: scale(0.97);
}
.ai-toggle .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke-width: 1.5;
}
.ai-toggle .icon-play {
  display: none;
}
.ai-hint {
  margin: 12px 0 0;
  color: var(--text-subtle);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* Paused state */
.ai-panel[data-state="paused"] .ai-chip {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-subtle);
}
.ai-panel[data-state="paused"] .ai-orb-ring {
  animation: none;
  opacity: 0;
}
.ai-panel[data-state="paused"] .ai-orb-core {
  filter: grayscale(1) brightness(0.55);
  box-shadow: none;
}
.ai-panel[data-state="paused"] .ai-toggle {
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px rgba(130, 255, 0, 0.6);
}
.ai-panel[data-state="paused"] .ai-toggle::before {
  opacity: 1;
}
.ai-panel[data-state="paused"] .ai-toggle .icon-pause {
  display: none;
}
.ai-panel[data-state="paused"] .ai-toggle .icon-play {
  display: block;
}

/* --- Notification mock --- */
.mock-notify {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 32px;
}
.notif {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(30, 28, 40, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.8);
}
.notif--main {
  border-color: rgba(130, 255, 0, 0.3);
  box-shadow:
    0 16px 32px -16px rgba(0, 0, 0, 0.8),
    0 0 0 4px rgba(130, 255, 0, 0.05);
}
.notif--muted {
  width: 94%;
  margin-inline: auto;
  opacity: 0.7;
}
.notif--ghost {
  width: 88%;
  margin-inline: auto;
  opacity: 0.35;
}
.notif-app {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: #07060b;
  border: 1px solid var(--border);
}
.notif-app img {
  width: 28px;
  height: 28px;
}
.notif-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.notif-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.notif-head strong {
  font-size: 14px;
}
.notif-head span {
  color: var(--text-subtle);
  font-size: 12px;
  white-space: nowrap;
}
.notif-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}
.notif-text .icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}
.pos {
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 600;
}
.notif-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: rgba(130, 255, 0, 0.14);
  color: var(--lime);
}
.notif-badge .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}
.skeleton {
  display: block;
  height: 8px;
  width: 70%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}
.skeleton.short {
  width: 45%;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps-panel {
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid rgba(123, 92, 255, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(123, 92, 255, 0.22), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(0, 239, 167, 0.08), transparent 60%),
    rgba(20, 18, 34, 0.7);
}
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(7, 6, 11, 0.55);
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(130, 255, 0, 0.7);
}
.step-num {
  color: var(--text-subtle);
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.12em;
}
.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .step:not(:last-child)::after {
    /* connector chevron between steps */
    content: "";
    position: absolute;
    top: 48px;
    right: -14px;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--lime);
    border-right: 2px solid var(--lime);
    rotate: 45deg;
    opacity: 0.7;
  }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
}
.price-card--featured {
  border-color: rgba(130, 255, 0, 0.38);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(130, 255, 0, 0.13), transparent 60%),
    var(--surface);
  box-shadow: 0 30px 80px -40px rgba(130, 255, 0, 0.5);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.price-card--featured .plan-icon {
  border-color: rgba(130, 255, 0, 0.35);
  background: rgba(130, 255, 0, 0.1);
  color: var(--lime);
}
.plan-tag {
  color: var(--text-subtle);
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}
.price-card--featured .plan-tag {
  color: var(--lime);
}
.plan-name {
  margin: 24px 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
}
.plan-desc {
  margin: 0;
  color: var(--text-muted);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 0 0;
}
.plan-price .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.plan-price .per {
  color: var(--text-subtle);
  font-size: 15px;
}
.plan-features {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 15px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.plan-features .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--mint);
  stroke-width: 2.5;
}
.price-card--featured .plan-features .icon {
  color: var(--lime);
}
.price-card .btn {
  margin-top: auto;
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: repeat(3, 1fr);
  }
  .price-card--featured {
    translate: 0 -12px;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out);
}
.faq-item[open] {
  border-color: var(--border-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .icon {
  color: var(--text-subtle);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.faq-item summary:hover .icon {
  color: var(--text);
}
.faq-item[open] summary .icon {
  transform: rotate(180deg);
  color: var(--lime);
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
}
.faq-answer p {
  margin: 0;
  max-width: 65ch;
}

/* Smooth open/close where supported */
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--dur) var(--ease-out),
      content-visibility var(--dur) allow-discrete;
  }
  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.section--cta {
  padding-top: clamp(40px, 6vw, 80px);
}
.cta-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  padding: clamp(28px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #000;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 40%;
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, #000 42%, rgba(0, 0, 0, 0.6) 62%, transparent 85%);
}
.cta-copy {
  max-width: 540px;
}
.cta-copy .section-lead {
  margin-left: 0;
}
.cta-copy .btn {
  margin-top: 32px;
}

@media (min-width: 820px) {
  .cta-panel {
    align-items: center;
    min-height: 480px;
  }
  .cta-bg {
    object-position: 100% 50%;
  }
  .cta-panel::after {
    background: linear-gradient(90deg, #000 30%, rgba(0, 0, 0, 0.7) 50%, transparent 72%);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer .brand img {
  width: 36px;
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.footer-nav a:hover {
  color: var(--text);
}
.risk {
  display: flex;
  gap: 12px;
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.7;
}
.risk .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--gold);
}
.risk strong {
  color: var(--text-muted);
}
.copyright {
  margin: 24px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    border-color var(--dur) var(--ease-out);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes spin {
  to { rotate: 360deg; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
@keyframes ring {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.9); opacity: 0; }
}
@keyframes halo {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal,
  .js .mock-chart .candle {
    opacity: 1;
    transform: none;
  }
  .js .mock-chart .forecast,
  .spark-line {
    stroke-dashoffset: 0;
  }
  .js .mock-chart .cone {
    opacity: 1;
  }
  .js .mock-chart .ema {
    opacity: 0.8;
  }
}
