:root {
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  overflow-x: hidden;
}

html.landing-entry-loader-active,
html.landing-entry-loader-active body {
  cursor: none;
}

/* ── Background effects ── */

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.82;
  mask-image: radial-gradient(ellipse 96% 74% at 50% 22%, #000 14%, rgba(0, 0, 0, 0.88) 52%, transparent 82%);
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.95;
  z-index: 0;
}

.bg-glow--1 {
  width: 940px;
  height: 680px;
  top: -210px;
  left: -190px;
  right: auto;
  background: radial-gradient(circle at 34% 32%, rgba(46, 96, 136, 0.22) 0%, rgba(24, 54, 82, 0.14) 38%, transparent 74%);
}

.bg-glow--2 {
  width: 1040px;
  height: 760px;
  right: -240px;
  bottom: -160px;
  left: auto;
  background:
    radial-gradient(circle at 70% 64%, rgba(24, 108, 112, 0.16) 0%, rgba(12, 48, 52, 0.1) 40%, transparent 72%),
    radial-gradient(circle at 36% 24%, rgba(255, 96, 96, 0.09) 0%, transparent 38%);
}

/* Full-screen canvas (dark only) — see landing-bg.js */
.landing-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

/* Vignette + static haze: compositor layers (avoids full-frame canvas fillRect each tick) */
.landing-bg-haze,
.landing-bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: none;
}

/* z-index 0 like .landing-bg-canvas — later DOM (hero, header) stacks above */
.landing-bg-haze {
  z-index: 0;
  background:
    radial-gradient(58% 44% at 18% 14%, rgba(46, 96, 136, 0.18) 0%, transparent 72%),
    radial-gradient(42% 34% at 78% 72%, rgba(24, 108, 112, 0.14) 0%, transparent 74%),
    radial-gradient(26% 20% at 66% 24%, rgba(255, 96, 96, 0.08) 0%, transparent 76%),
    linear-gradient(180deg, rgba(10, 18, 32, 0.24) 0%, rgba(7, 16, 26, 0.14) 54%, rgba(5, 8, 15, 0.08) 100%);
}

.landing-bg-vignette {
  z-index: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 62%, rgba(4, 7, 14, 0.22) 78%, rgba(2, 4, 10, 0.62) 100%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 0.8px, transparent 1px);
  background-size: auto, 4px 4px;
  opacity: 0.96;
}

body.landing-premium-bg-on .landing-bg-vignette {
  display: block;
}

body.landing-premium-bg-on .landing-bg-haze {
  display: block;
}

.landing-cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.landing-cursor-trail.is-active {
  opacity: 1;
}

html.landing-entry-loader-active .landing-cursor-trail {
  opacity: 0;
}

body.landing-premium-bg-on .bg-grid,
body.landing-premium-bg-on .bg-glow {
  opacity: 0;
  pointer-events: none;
}

/* Tools page uses stronger .bg-grid rules — still hide grid/glow when premium canvas is on */
body.landing-premium-bg-on.tools-body.tools-page--premium .bg-grid,
body.landing-premium-bg-on.tools-body.tools-page--premium .bg-glow {
  opacity: 0 !important;
  pointer-events: none;
}

.landing-entry-loader {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: auto;
  background: #02040a;
  opacity: 1;
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.72s ease;
}

.landing-entry-loader[hidden] {
  display: none;
}

.landing-entry-loader__canvas,
.landing-entry-loader__vignette,
.landing-entry-loader__grain {
  position: absolute;
  inset: 0;
}

.landing-entry-loader__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-entry-loader__vignette {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.025), transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(0, 0, 0, 0.34) 76%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.landing-entry-loader__grain {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 0.8px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.045;
  mix-blend-mode: screen;
  pointer-events: none;
}

.landing-entry-loader--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

main#top {
  position: relative;
  z-index: 1;
}

body.aurora-on:not(.tools-body) {
  background: #000000;
}

/* ── Layout ── */

.container {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Header ── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5000;
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(6, 10, 22, 0.75);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.logo--sm {
  font-size: 16px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.8);
  flex-shrink: 0;
}

.nav {
  --nav-indicator-x: 0px;
  --nav-indicator-y: 0px;
  --nav-indicator-width: 0px;
  --nav-indicator-height: 0px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  isolation: isolate;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(14, 21, 38, 0.84), rgba(8, 12, 24, 0.58)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 62%);
  border: 1px solid rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px -28px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 0;
}

.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--nav-indicator-width);
  height: var(--nav-indicator-height);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--nav-indicator-x), var(--nav-indicator-y), 0);
  transition:
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease;
  z-index: 1;
}

.nav--instant .nav-indicator {
  transition: none;
}

.nav-indicator::before,
.nav-indicator::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.nav-indicator::before {
  inset: 0;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.11)),
      color-mix(in srgb, var(--accent-2) 26%, rgba(255, 255, 255, 0.04))
    );
  border: 1px solid color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 26px -16px color-mix(in srgb, var(--accent) 52%, transparent);
}

.nav-indicator::after {
  inset: -10px 14px -6px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%);
  filter: blur(14px);
  opacity: 0.95;
  z-index: -1;
}

.nav-indicator.is-visible {
  opacity: 1;
}

.nav-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--nav-particle-size, 8px);
  height: var(--nav-particle-size, 8px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.96) 0%,
    color-mix(in srgb, var(--accent-2) 72%, #fff 28%) 45%,
    transparent 78%
  );
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 36%, transparent);
  transform: translate3d(var(--nav-particle-x), var(--nav-particle-y), 0) scale(0.3);
  animation: navParticleBurst 680ms cubic-bezier(0.18, 0.9, 0.22, 1) forwards;
  animation-delay: var(--nav-particle-delay, 0ms);
}

.nav a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    color var(--transition),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.32s ease;
}

.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 72%);
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav a:hover::before,
.nav a:focus-visible::before,
.nav a[data-nav-hovered="true"]::before {
  opacity: 1;
  transform: scale(1);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  color: var(--text);
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  color: #f8fbff;
  text-decoration: none;
  background: transparent;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.nav a[aria-current="page"]:hover {
  color: #fff;
}

@keyframes navParticleBurst {
  0% {
    opacity: 0;
    transform: translate3d(var(--nav-particle-x), var(--nav-particle-y), 0) scale(0.25);
  }

  18% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate3d(
        calc(var(--nav-particle-x) + var(--nav-particle-dx)),
        calc(var(--nav-particle-y) + var(--nav-particle-dy)),
        0
      )
      scale(1.3);
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-dropdown {
  position: relative;
}

.topbar-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, 0.08));
  background: rgba(8, 12, 24, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.topbar-dropdown-trigger:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, var(--accent) 8%, rgba(8, 12, 24, 0.75));
}

.topbar-dropdown-trigger.is-open {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.theme-dropdown-trigger {
  padding-left: 8px;
  padding-right: 9px;
}

.theme-dropdown-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
}

.topbar-dropdown-chevron {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.2s var(--ease-premium, ease);
}

.topbar-dropdown-trigger.is-open .topbar-dropdown-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-trigger {
  gap: 8px;
  padding-left: 12px;
  padding-right: 10px;
}

.lang-dropdown-globe {
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--accent);
}

.lang-dropdown-code {
  min-width: 1.75em;
  text-align: center;
}

.topbar-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6000;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.08));
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.theme-dropdown-panel {
  min-width: 200px;
}

.lang-dropdown-panel {
  min-width: 240px;
}

.theme-menu-item,
.lang-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-menu-item:hover,
.lang-menu-item:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}

.theme-menu-item.is-selected,
.lang-menu-item.is-selected {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.theme-menu-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.theme-menu-item span[data-i18n],
.lang-menu-item span[data-i18n] {
  flex: 1;
}

.lang-menu-sep {
  height: 1px;
  margin: 6px 8px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 35%, transparent),
    transparent
  );
  list-style: none;
}

.lang-menu-item--soon {
  opacity: 0.45;
  cursor: not-allowed;
}

@supports not (color: color-mix(in srgb, white, black)) {
  .topbar-dropdown-trigger {
    border-color: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.28);
  }

  .topbar-dropdown-panel {
    border-color: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.22);
  }
}



/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #06101e;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 24px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.45);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(220, 229, 255, 0.18);
  background: rgba(220, 229, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(220, 229, 255, 0.3);
  background: rgba(220, 229, 255, 0.08);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ── Hero ── */

.hero {
  padding: 80px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-brand-icon {
  display: inline-flex;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.35));
}

.hero-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-beta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--cb-green-r), var(--cb-green-g), var(--cb-green-b), 0.35);
  background: rgba(var(--cb-green-r), var(--cb-green-g), var(--cb-green-b), 0.12);
  color: var(--green);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
}

.hero-title-line1 {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.12;
  letter-spacing: inherit;
  color: var(--text);
}

.hero-title-accent {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.12;
  letter-spacing: inherit;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-proof-item strong {
  display: block;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-proof-item span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.btn-hero-feed {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.2),
    0 12px 40px -8px rgba(var(--cb-sky-r), var(--cb-sky-g), var(--cb-sky-b), 0.55);
}

.btn-hero-feed:hover {
  box-shadow:
    0 0 0 1px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.35),
    0 16px 48px -6px rgba(var(--cb-sky-r), var(--cb-sky-g), var(--cb-sky-b), 0.65);
}

.btn-hero-how {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 700;
  border-color: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.btn-hero-how .btn-hero-icon {
  color: var(--accent-2);
}

.btn-hero-icon {
  flex-shrink: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.08);
  border: 1px solid rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.2);
}

.hero h1,
.hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Serif italic accent on hero line 2 — premium landing feel (original, not a clone) */
.hero-title-accent.hero-title-display {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Monospace market-style ticker (decorative; copy from i18n, neutral tokens) */
.market-ticker-section {
  position: relative;
  z-index: 1;
  margin: 8px 0 28px;
}

.market-ticker-bar {
  border-top: 1px solid rgba(220, 229, 255, 0.08);
  border-bottom: 1px solid rgba(220, 229, 255, 0.08);
  background: rgba(6, 10, 22, 0.42);
  backdrop-filter: blur(10px);
}

.market-ticker-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 174, 212, 0.75);
}

.market-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.45);
  animation: tickerPulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .market-ticker-dot {
    animation: none;
    opacity: 0.85;
  }
}

@keyframes tickerPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.market-ticker-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.market-ticker-rail {
  display: flex;
  width: max-content;
  padding: 6px 0 14px;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(170, 195, 235, 0.5);
  animation: marketTickerMarquee 52s linear infinite;
}

.market-ticker-rail--static {
  animation: none;
  width: 100%;
  max-width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 6px;
  column-gap: 12px;
  text-align: center;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

.market-ticker-track {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 2.5rem;
}

.market-ticker-rail--static .market-ticker-track {
  white-space: normal;
  padding-right: 0;
  max-width: 100%;
}

@keyframes marketTickerMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}



.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 229, 255, 0.12);
  background: rgba(220, 229, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero-trust span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-2) 35%, transparent);
}

.hero-visual {
  position: relative;
  perspective: 1400px;
  perspective-origin: 45% 35%;
}

/* Fullscreen expand: tap card → 3D + drag to rotate (see script.js heroLiveCardInteractive) */
.hero-live-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px;
  box-sizing: border-box;
  isolation: isolate;
}

.hero-live-overlay[hidden] {
  display: none !important;
  visibility: hidden;
}

.hero-live-overlay[hidden] .hero-live-overlay__backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-live-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.32, 0.72, 0.28, 1);
}

.hero-live-overlay--animate-in .hero-live-overlay__backdrop {
  opacity: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-live-overlay__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(540px, 100%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.996);
  transition:
    opacity 0.4s cubic-bezier(0.32, 0.72, 0.28, 1),
    transform 0.4s cubic-bezier(0.32, 0.72, 0.28, 1);
}

.hero-live-overlay--animate-in .hero-live-overlay__stage {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-live-overlay__slot {
  pointer-events: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  touch-action: none;
}

.hero-live-overlay__drag-hint {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.hero-live-overlay__drag-hint .hero-live-drag-icon {
  color: rgba(255, 255, 255, 0.5);
}

.hero-live-overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.36s cubic-bezier(0.32, 0.72, 0.28, 1) 0.02s,
    background 0.2s ease,
    color 0.2s ease;
}

.hero-live-overlay--animate-in .hero-live-overlay__close {
  opacity: 1;
}

.hero-live-overlay__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* CSFloat-style 3D card stack */
.hero-stack {
  position: relative;
  padding-bottom: 36px;
  --hero-rx: 0;
  --hero-ry: 0;
}

.hero-stack-mist {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.4;
  mix-blend-mode: screen;
}

.hero-stack-mist--a {
  width: min(58%, 280px);
  height: 120px;
  left: 4%;
  top: -8%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 50%, transparent) 0%, transparent 72%);
  animation: heroMistDriftA 20s ease-in-out infinite;
}

.hero-stack-mist--b {
  width: min(52%, 260px);
  height: 100px;
  right: -2%;
  bottom: 18%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-2) 42%, transparent) 0%, transparent 75%);
  animation: heroMistDriftB 24s ease-in-out infinite;
}

@keyframes heroMistDriftA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(12px, 8px) scale(1.08);
    opacity: 0.5;
  }
}

@keyframes heroMistDriftB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-16px, -10px) scale(1.12);
    opacity: 0.48;
  }
}

.hero-stack-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(420px, 90%);
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    color-mix(in srgb, var(--accent-2) 6%, transparent) 40%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0.85;
  z-index: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-stack:hover .hero-stack-glow {
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}

.hero-stack:hover .hero-stack-mist {
  opacity: 0.55;
}

.hero-stack-inner {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.visible .hero-stack-inner,
.js .landing-hero.landing-hero--in .hero-stack-inner {
  animation:
    heroDeckEnter 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    heroDeckDrift 16s ease-in-out 1.05s infinite;
}

.hero-stack:hover .hero-stack-inner {
  animation: none;
  transform: translateY(-10px);
}

/* Tap → expand: pause deck drift, lift deck before overlay */
.hero-stack.hero-stack--pre-open .hero-stack-inner {
  animation: none !important;
  transform: translate3d(0, -5px, 0) scale(1.008);
  transition: transform 0.28s cubic-bezier(0.34, 1.02, 0.32, 1);
}

.hero-stack.hero-stack--pre-open .hero-panel-shell {
  transition: box-shadow 0.3s cubic-bezier(0.34, 1.02, 0.32, 1);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 14%, transparent),
    0 20px 44px rgba(0, 0, 0, 0.38);
}

.hero-stack.hero-stack--pre-open .hero-stack-glow {
  opacity: 1;
  transform: translateX(-50%) scale(1.06);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.34, 1.02, 0.32, 1);
}

.hero-stack.hero-stack--pre-open .hero-stack-mist {
  opacity: 0.48;
  transition: opacity 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stack.hero-stack--pre-open .hero-stack-inner {
    transform: none !important;
    transition: none !important;
  }

  .hero-stack.hero-stack--pre-open .hero-panel-shell {
    box-shadow: none !important;
    transition: none !important;
  }

  .hero-stack.hero-stack--pre-open .hero-stack-glow,
  .hero-stack.hero-stack--pre-open .hero-stack-mist {
    transition: none !important;
  }
}

@keyframes heroDeckEnter {
  from {
    opacity: 0;
    transform: translateY(48px) rotateX(10deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

/* Float only — 3D rotation stacks with .hero-panel-shell tilt and makes body text look soft */
@keyframes heroDeckDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  33% {
    transform: translateY(-5px);
  }
  66% {
    transform: translateY(3px);
  }
}

.hero-stack-back {
  position: absolute;
  inset: 0 0 28px 0;
  border-radius: 28px;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  background: linear-gradient(155deg, rgba(12, 18, 38, 0.95) 0%, rgba(6, 10, 22, 0.98) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-stack-back--mid {
  z-index: 0;
  transform: translate(12px, 14px) scale(0.96);
  opacity: 0.55;
  filter: blur(3px);
}

.hero-stack-back--far {
  z-index: 0;
  transform: translate(22px, 26px) scale(0.9);
  opacity: 0.38;
  filter: blur(7px);
}

/* Rotating rim light + 3D tilt target */
.hero-panel-shell {
  position: relative;
  z-index: 2;
  padding: 2px;
  border-radius: 30px;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(calc(var(--hero-rx, 0) * 1deg)) rotateY(calc(var(--hero-ry, 0) * 1deg))
    translateZ(0);
  transition: transform 0.18s ease-out;
}

.hero-panel-shell[data-hero-live-panel] {
  cursor: grab;
  outline: none;
}

.hero-panel-shell[data-hero-live-panel]:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 30px;
}

.hero-panel-shell--dragging {
  cursor: grabbing !important;
}

.hero-panel-shell.hero-panel-shell--expanded {
  max-width: min(520px, 94vw);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transform: perspective(1400px) rotateX(calc(var(--hero-rx, 0) * 1deg)) rotateY(calc(var(--hero-ry, 0) * 1deg))
    translateZ(0) scale(1.06);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-panel-shell.hero-panel-shell--expanded.hero-panel-shell--dragging {
  transition: none;
}

.hero-stack-inner--shell-out {
  transform: none !important;
  animation: none !important;
}

@keyframes heroShellEntrance {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateX(calc(var(--hero-rx, 0) * 1deg - 3deg)) rotateY(calc(var(--hero-ry, 0) * 1deg + 2deg)) translateZ(0)
      scale(0.98);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateX(calc(var(--hero-rx, 0) * 1deg)) rotateY(calc(var(--hero-ry, 0) * 1deg)) translateZ(0)
      scale(1.06);
  }
}

.hero-live-overlay__slot .hero-panel-shell.hero-panel-shell--expanded.hero-panel-shell--entering {
  animation: heroShellEntrance 0.46s cubic-bezier(0.34, 1.02, 0.32, 1) forwards;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-overlay__backdrop,
  .hero-live-overlay__stage {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .hero-live-overlay__slot .hero-panel-shell.hero-panel-shell--expanded.hero-panel-shell--entering {
    animation: none !important;
  }
}

.hero-panel-shell-bg {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-panel-shell-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240%;
  height: 240%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg 70deg,
    var(--hero-preview-rim-a) 118deg,
    var(--hero-preview-rim-b) 165deg,
    var(--hero-preview-rim-c) 212deg,
    color-mix(in srgb, var(--accent) 35%, transparent) 265deg,
    transparent 305deg 360deg
  );
  animation: heroRimSpin 16s linear infinite;
}

@keyframes heroRimSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-panel-shell:has(.hero-panel--live) .hero-panel-shell-bg::after {
  display: none;
}

.hero-panel {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 38%),
    radial-gradient(ellipse 80% 50% at 50% 100%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(15, 22, 44, 0.94), rgba(8, 12, 24, 0.99));
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px -12px var(--hero-preview-accent-mid);
  transform: translateZ(0);
  transition:
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-stack:hover .hero-panel {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent) inset,
    0 0 72px -8px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Live feed preview: generic stack-hover shadows + backdrop-filter = horizontal band; keep depth without tight glow ring */
.hero-stack:hover .hero-panel.hero-panel--live {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-panel-shell > .hero-panel {
  border-radius: 26px;
  z-index: 1;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
}

/* L-shaped corner — top-right (premium preview cue) */
.hero-panel::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  width: 36px;
  height: 36px;
  pointer-events: none;
  border-top: 1px solid var(--hero-preview-accent-strong);
  border-right: 1px solid var(--hero-preview-accent-strong);
  border-radius: 0 4px 0 0;
  opacity: 0.55;
  z-index: 2;
}

.hero-panel-light-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(
    100deg,
    transparent 28%,
    var(--hero-preview-accent-soft) 48%,
    var(--hero-preview-accent-2-soft) 52%,
    transparent 72%
  );
  background-size: 240% 100%;
  animation: heroPanelLightSweep 6.5s ease-in-out infinite;
}

@keyframes heroPanelLightSweep {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.hero-panel > *:not(.hero-panel-light-sweep) {
  position: relative;
  z-index: 1;
}

/* ── Live signals table preview (index hero) — accents follow html[data-accent] ── */
.hero-panel.hero-panel--live {
  padding: 0;
  overflow: visible;
  /* Same mesh as landing-bg.js (≈rgb 11,14,20 → 5,6,10) + lighter glass — heavy blur(22px) softens glyphs */
  background:
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
    radial-gradient(ellipse 88% 52% at 50% 100%, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent 54%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.7), rgba(5, 6, 10, 0.82));
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset,
    0 0 52px -12px var(--hero-preview-accent-mid);
}



.hero-panel.hero-panel--live::before,
.hero-panel.hero-panel--live::after {
  display: none;
}

.hero-panel.hero-panel--live > .hero-live-ambient {
  z-index: 0;
}

.hero-panel.hero-panel--live > .hero-live-inner {
  z-index: 1;
}

.hero-live-ambient {
  position: absolute;
  left: -18%;
  top: 8%;
  width: 58%;
  height: 72%;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 85% 70% at 28% 48%,
    color-mix(in srgb, var(--accent) 32%, transparent),
    transparent 68%
  );
  filter: blur(32px);
  opacity: 0.88;
}

.hero-panel.hero-panel--live .hero-live-ambient {
  opacity: 0.52;
}

.hero-live-inner {
  padding: 14px 14px 12px;
  border-radius: inherit;
  overflow: hidden;
  font-family: "Manrope", system-ui, sans-serif;
  /* Own compositing layer so type isn’t double-filtered with the glass panel */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

.hero-live-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.hero-live-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.hero-live-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.hero-live-title-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
  animation: heroLiveTitlePulse 2.1s ease-in-out infinite;
}

@keyframes heroLiveTitlePulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-live-title {
  margin: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--muted) 88%, var(--text) 12%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-live-ekg {
  flex-shrink: 0;
  color: var(--accent);
}

.hero-live-ekg-path {
  stroke: currentColor;
}

.hero-live-rule {
  height: 1px;
  margin: 0 -14px 10px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent
  );
}

.hero-live-thead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, auto) auto minmax(44px, 0.75fr) minmax(48px, auto) minmax(52px, auto);
  gap: 8px 10px;
  align-items: end;
  padding: 0 2px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 88%, var(--accent) 12%);
}

.hero-live-thead-act {
  width: 100%;
}

.hero-live-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-live-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, auto) auto minmax(44px, 0.75fr) minmax(48px, auto) minmax(52px, auto);
  gap: 8px 10px;
  align-items: center;
  padding: 9px 10px 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.22s ease, background 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  /* No inset/tight outer glows or translate — they read as a horizontal band on short rows */
  .hero-live-row:hover {
    border-color: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, 0.12));
    background: color-mix(in srgb, var(--text) 6%, rgba(255, 255, 255, 0.04));
  }

  .hero-live-row--top:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, rgba(255, 255, 255, 0.14));
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--accent) 14%, transparent),
      color-mix(in srgb, var(--text) 5%, rgba(255, 255, 255, 0.05))
    );
  }

  .hero-live-row--top:hover::before {
    filter: brightness(1.06);
  }

  .hero-live-row--selected:hover {
    border-color: color-mix(in srgb, var(--accent) 52%, rgba(255, 255, 255, 0.12));
  }
}

.hero-live-row--top {
  padding-left: 14px;
  border-color: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.06));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 9%, transparent),
    rgba(255, 255, 255, 0.02)
  );
}

.hero-live-row--top::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
}

.hero-live-row--selected {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.08));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 12%, rgba(6, 10, 18, 0.55)),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent) inset,
    0 0 28px -6px color-mix(in srgb, var(--accent) 28%, transparent);
}

.hero-live-row-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 95% 85% at 50% 0%,
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 62%
  );
  opacity: 0.65;
  z-index: 0;
}

.hero-live-row--selected .hero-live-cell {
  position: relative;
  z-index: 1;
}

.hero-live-cell--skin {
  min-width: 0;
}

.hero-live-skin-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-live-skin-name strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: color-mix(in srgb, var(--text) 96%, transparent);
}

.hero-live-skin-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: color-mix(in srgb, var(--muted) 92%, var(--text) 8%);
}

.hero-live-top-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-live-price {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-live-wear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--muted) 92%, var(--text) 8%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.hero-live-cell--spark {
  display: flex;
  justify-content: center;
}

.hero-live-trend {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-live-trend--up {
  color: var(--green);
}

.hero-live-trend--down {
  color: var(--red);
}

.hero-live-trend--hold {
  color: var(--yellow);
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-live-pill--buy {
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}

.hero-live-pill--sell {
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}

.hero-live-pill--hold {
  color: var(--yellow);
  border: 1px solid color-mix(in srgb, var(--yellow) 35%, transparent);
  background: color-mix(in srgb, var(--yellow) 12%, transparent);
}

.hero-live-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px -14px 0;
  padding: 10px 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, var(--muted) 95%, var(--accent) 5%);
}

.hero-live-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-live-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 55%, transparent);
}

.hero-live-footer-center {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.hero-live-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-live-footer-age-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
}

.hero-live-footer-age {
  font-variant-numeric: tabular-nums;
}

.hero-live-hint {
  margin: 12px 0 0;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 82%, var(--accent) 18%);
}

.hero-live-interactive-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hero-live-interactive-hint .hero-live-drag-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 6px;
  color: var(--accent);
  opacity: 0.85;
}

@media (max-width: 520px) {
  .hero-live-thead .hero-live-col--chart,
  .hero-live-row .hero-live-col--chart {
    display: none;
  }

  .hero-live-thead,
  .hero-live-row {
    grid-template-columns: minmax(0, 1.2fr) auto auto minmax(48px, auto) minmax(52px, auto);
  }
}

.hero-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-panel-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-panel-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 20%, transparent);
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(var(--cb-green-r), var(--cb-green-g), var(--cb-green-b), 0.55);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.hero-stat-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stat-card > span {
  display: block;
  color: rgba(180, 200, 232, 0.88);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-stat-dual span {
  display: inline;
  margin-bottom: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.hero-stat-card strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0;
  font-variant-numeric: tabular-nums;
}

.hero-stat-dual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  font-size: 26px;
}

.hero-stat-sep {
  font-weight: 700;
  opacity: 0.45;
  padding: 0 1px;
}

.hero-signal-shimmer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 35%, transparent),
    var(--hero-preview-accent-2-mid),
    color-mix(in srgb, var(--accent) 35%, transparent),
    transparent
  );
  background-size: 200% 100%;
  animation: heroSignalShimmer 2.8s linear infinite;
  z-index: 3;
}

@keyframes heroSignalShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.hero-signal-card {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: rgba(7, 11, 22, 0.88);
  overflow: hidden;
  box-shadow: 0 0 40px -18px var(--hero-preview-accent-soft);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* macOS-style window chrome + rarity stripe (Premiumdarkuianimation-inspired) */
.hero-signal-card--window {
  padding-top: 0;
}

.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
}

.hero-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-window-dot--close {
  background: rgba(255, 95, 87, 0.88);
}

.hero-window-dot--min {
  background: rgba(255, 189, 46, 0.88);
}

.hero-window-dot--max {
  background: rgba(39, 201, 63, 0.88);
}

.hero-window-url {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(148, 174, 212, 0.72);
  font-variant-numeric: tabular-nums;
}

.hero-signal-top--stripe {
  align-items: stretch;
  gap: 14px;
}

.hero-skin-stripe {
  width: 4px;
  min-height: 46px;
  align-self: stretch;
  border-radius: 999px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent-2) 0%, color-mix(in srgb, var(--accent) 35%, var(--green) 65%) 100%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-2) 35%, transparent);
}

.hero-signal-title-block {
  flex: 1;
  min-width: 0;
}

.hero-stack:hover .hero-signal-card {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 0 48px -12px var(--hero-preview-accent-mid);
}

/* Subtle bottom accent (static) */
.hero-signal-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-2) 25%, transparent), transparent);
}

/* Fake “listing preview” strip — CSFloat energy */
.hero-signal-visual {
  position: relative;
  height: 112px;
  margin: 14px 0 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
}

.hero-signal-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 22, 0.3) 0%,
    color-mix(in srgb, var(--accent) 35%, transparent) 55%,
    color-mix(in srgb, var(--accent-2) 25%, transparent) 100%
  );
}

.hero-signal-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 40%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
}

.hero-signal-visual-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 140px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, color-mix(in srgb, var(--yellow) 50%, var(--accent) 50%) 26%, transparent),
    transparent 70%
  );
  filter: blur(8px);
  animation: heroOrbPulse 4s ease-in-out infinite;
}

@keyframes heroOrbPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.hero-signal-visual-skin {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  height: 96%;
  width: auto;
  max-width: 92%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.hero-stack:hover .hero-signal-visual-skin {
  transform: translateX(-50%) scale(1.06) translateY(-2px);
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 22%, transparent));
}

.hero-signal-visual-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: heroVisualShine 5s ease-in-out infinite;
}

@keyframes heroVisualShine {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

/* Wear bar — green → amber → red */
.hero-float-row {
  margin-bottom: 12px;
}

.hero-float-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-float-wear {
  color: var(--accent);
  font-weight: 700;
}

.hero-float-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--float-0) 0%,
    var(--float-1) 35%,
    var(--float-2) 68%,
    var(--float-3) 100%
  );
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-float-tick {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-left: -1.5px;
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
  animation: heroTickGlow 2.4s ease-in-out infinite;
}

@keyframes heroTickGlow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 255, 255, 1);
  }
}

.hero-float-caption {
  margin-top: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-signal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-signal-top--stripe .hero-signal-price {
  align-self: flex-start;
}

.hero-signal-card h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-signal-wear {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.hero-signal-price {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-signal-price--gold {
  color: color-mix(in srgb, var(--yellow) 78%, var(--accent) 22%);
  text-shadow: 0 0 24px color-mix(in srgb, var(--yellow) 35%, transparent);
}

.hero-signal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-badge--buy {
  border: 1px solid rgba(var(--cb-green-r), var(--cb-green-g), var(--cb-green-b), 0.28);
  background: rgba(var(--cb-green-r), var(--cb-green-g), var(--cb-green-b), 0.14);
  color: #7ee3a1;
}

.hero-badge--chain {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.hero-badge--cn {
  border: 1px solid color-mix(in srgb, var(--accent-2) 38%, transparent);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  color: color-mix(in srgb, var(--accent-2) 88%, var(--text) 12%);
}

.hero-signal-rows {
  display: grid;
  gap: 9px;
}

.hero-signal-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.hero-signal-rows span {
  color: var(--muted);
}

.hero-signal-rows strong {
  color: var(--text);
}

.hero-progress {
  width: 100%;
  height: 5px;
  margin: 14px 0 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.hero-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 200% 100%;
  animation: heroSpecShimmer 3s ease-in-out infinite;
}

@keyframes heroSpecShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-signal-note,
.hero-panel-footer {
  /* Ярче, чем --muted: читаемость на градиенте панели */
  color: color-mix(in srgb, var(--text) 82%, var(--accent) 18%);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-panel-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  /* Отдельный композитный слой — меньше «мыльности» от perspective на .hero-panel-shell */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-signal-note {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ── Proof (premium stat strip) ── */

.proof {
  padding: 28px 0 64px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.proof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.11);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 36, 0.97) 0%, rgba(6, 10, 20, 0.99) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 48px -28px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.proof-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.22),
    rgba(167, 139, 250, 0.15),
    transparent
  );
  opacity: 0.65;
  pointer-events: none;
}

.proof-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.14), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.proof-card:hover {
  border-color: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.26);
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 56px -24px rgba(0, 0, 0, 0.7),
    0 0 48px -20px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.2),
    0 0 0 1px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.08) inset;
}

.proof-card:hover::after {
  opacity: 1;
}

.proof-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.07);
  border: 1px solid rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.14);
  box-shadow: 0 0 24px -8px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.35);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

.proof-card:hover .proof-card-icon {
  background: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.11);
  border-color: rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.24);
  box-shadow: 0 0 32px -6px rgba(var(--cb-rim-r), var(--cb-rim-g), var(--cb-rim-b), 0.45);
  color: var(--accent-2);
}

.proof-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.proof-card-title--metric {
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #f8fafc 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-card-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(148, 174, 212, 0.92);
}

/* Stagger in with hero strip */
.js .reveal:not(.visible) .proof-stagger,
.js .reveal:not(.visible) .feature-tile,
.js .reveal:not(.visible) .pillar-card,
.js .reveal:not(.visible) .built-card {
  opacity: 0;
  transform: translateY(22px);
}

.js .reveal.visible .proof-stagger,
.js .reveal.visible .feature-tile,
.js .reveal.visible .pillar-card,
.js .reveal.visible .built-card {
  animation: proofStaggerIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.08s);
}

@keyframes proofStaggerIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero title per-letter reveal — js/anim/split-text.js wraps chars in <span class="char" style="--i:N">. */
.hero-title-line1.cb-split-ready .char,
.hero-title-accent.cb-split-ready .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotateX(-50deg);
  transform-origin: 0 50%;
  animation: heroCharIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.18s + var(--i, 0) * 28ms);
  will-change: transform, opacity;
}
.hero-title-accent.cb-split-ready .char {
  animation-delay: calc(0.4s + var(--i, 0) * 32ms);
}
@keyframes heroCharIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-line1.cb-split-ready .char,
  .hero-title-accent.cb-split-ready .char {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Scroll-reveal split-word stagger — applied via data-anim="split-word" + js/anim/scroll-reveal.js. */
.reveal[data-anim="split-word"] .cb-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal[data-anim="split-word"].visible .cb-word {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal[data-anim="split-word"] .cb-word {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Button ripple — js/anim/ripple.js appends <span class="cb-ripple"> on click. */
.btn-primary,
.btn-ghost,
.btn-hero-feed,
.btn-hero-tg,
.btn-hero-how,
.btn-signal-demo,
.pf-btn,
[data-pay-btn],
.footer-help-fab {
  position: relative;
  overflow: hidden;
}
.cb-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(var(--cb-rim-r, 110), var(--cb-rim-g, 165), var(--cb-rim-b, 255), 0.35) 40%,
    transparent 72%
  );
  mix-blend-mode: screen;
  animation: cbRipple 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 0;
}
@keyframes cbRipple {
  to {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb-ripple {
    animation: none;
    display: none;
  }
}

/* Icon hover micro-interactions (feature-tile-icon, hero-brand-icon). */
.feature-tile-icon,
.feature-tile .feature-icon,
.hero-brand-icon,
.pillar-card-icon {
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-tile:hover .feature-tile-icon,
.feature-tile:hover .feature-icon,
.pillar-card:hover .pillar-card-icon {
  transform: scale(1.14) rotate(-6deg);
  filter: drop-shadow(
    0 6px 16px rgba(var(--cb-rim-r, 110), var(--cb-rim-g, 165), var(--cb-rim-b, 255), 0.55)
  );
}
.hero-brand-row:hover .hero-brand-icon,
.hero-brand:hover .hero-brand-icon {
  transform: rotate(8deg) scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .feature-tile-icon,
  .feature-tile .feature-icon,
  .hero-brand-icon,
  .pillar-card-icon {
    transition: none;
  }
  .feature-tile:hover .feature-tile-icon,
  .feature-tile:hover .feature-icon,
  .pillar-card:hover .pillar-card-icon,
  .hero-brand-row:hover .hero-brand-icon {
    transform: none;
    filter: none;
  }
}

/* SVG draw-in (hero-live-spark-stroke) — js/anim/svg-draw.js sets stroke-dash on visible. */
.hero-live-spark-stroke {
  transition: stroke-dashoffset 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-live-spark-end {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.cb-spark-revealed .hero-live-spark-end,
.hero-live-spark-svg.cb-spark-revealed .hero-live-spark-end {
  opacity: 0.9;
}

/* ── Section defaults ── */

section {
  padding: 70px 0;
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* ── Landing first paint (hero + topbar) — staggered fade-up like premium marketing sites ── */

.js .landing-topbar {
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js.landing-shell--in .landing-topbar {
  opacity: 1;
  transform: translateY(0);
}

.js .landing-hero:not(.landing-hero--in) .landing-intro-item {
  opacity: 0;
  transform: translateY(28px);
}

.js .landing-hero.landing-hero--in .landing-intro-item {
  opacity: 1;
  transform: translateY(0);
  /* LCP-tuned: shorter duration + smaller per-step delay keep the visual
   * staggered feel but let the hero-proof block (step 4) settle in <0.6s
   * instead of ~1.16s — the previous timing made the largest contentful
   * paint wait on the intro animation, breaking Core Web Vitals. */
  transition:
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--intro-step, 0) * 0.035s);
}

.js .landing-hero.landing-hero--in .hero-title-line1 {
  /* `landingHeroTitleDimToBright` animates color alpha 0.22 → 1, which gates
   * LCP on the hero headline. Halve the duration so the headline reaches its
   * final color quickly while the dim→bright reveal remains perceptible. */
  animation: landingHeroTitleDimToBright 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(0.04s + var(--intro-step, 1) * 0.035s) both;
}

@keyframes landingHeroTitleDimToBright {
  from {
    color: rgba(226, 232, 240, 0.22);
  }
  to {
    color: var(--text);
  }
}

.js .landing-hero.landing-hero--in .hero-title-accent {
  animation: landingHeroAccentPop 1.05s cubic-bezier(0.22, 1, 0.36, 1) calc(0.2s + var(--intro-step, 1) * 0.07s) both;
}

@keyframes landingHeroAccentPop {
  from {
    opacity: 0.28;
    transform: translateY(0.14em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Reveal animation ── */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Deep link (#section): show target before IntersectionObserver runs (fixes empty-looking #cta, etc.) */
.js .reveal:target {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero stagger animation ── */

.js .reveal:not(.visible) .hero-stagger,
.js .landing-hero:not(.landing-hero--in) .hero-stagger {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

.js .reveal.visible .hero-stagger,
.js .landing-hero.landing-hero--in .hero-stagger {
  animation: heroStaggerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.42s + var(--i, 0) * 0.09s);
}

@keyframes heroStaggerIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Status dot pulse in hero ── */

.hero-status-dot {
  animation: heroPulse 2s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(var(--cb-green-r), var(--cb-green-g), var(--cb-green-b), 0.55); }
  50% { box-shadow: 0 0 20px rgba(var(--cb-green-r), var(--cb-green-g), var(--cb-green-b), 0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-indicator,
  .nav a,
  .nav a::before {
    transition: none !important;
  }

  .nav-particle {
    display: none !important;
    animation: none !important;
  }

  .landing-cursor-trail {
    display: none;
  }

  html.landing-entry-loader-active,
  html.landing-entry-loader-active body {
    cursor: auto;
  }

  .js .landing-topbar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .js .landing-hero:not(.landing-hero--in) .landing-intro-item,
  .js .landing-hero.landing-hero--in .landing-intro-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .js .landing-hero.landing-hero--in .hero-title-line1,
  .js .landing-hero.landing-hero--in .hero-title-accent {
    animation: none !important;
  }

  .js .reveal.visible .hero-stack-inner,
  .js .landing-hero.landing-hero--in .hero-stack-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-stack:hover .hero-stack-inner {
    transform: none;
  }

  .hero-stack:hover .hero-stack-glow {
    transform: translateX(-50%);
  }

  .hero-panel-shell {
    transform: perspective(1400px) rotateX(0) rotateY(0) translateZ(0);
  }

  .hero-panel-shell-bg::after,
  .hero-stack-mist--a,
  .hero-stack-mist--b {
    animation: none !important;
  }

  .hero-stack:hover .hero-signal-visual-skin {
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
  }

  .hero-panel-light-sweep,
  .hero-signal-shimmer,
  .hero-signal-visual-sweep,
  .hero-signal-visual-orb,
  .hero-float-tick,
  .hero-progress span,
  .hero-status-dot,
  .hero-live-title-pulse {
    animation: none !important;
  }

  .hero-panel-light-sweep {
    background-position: 0 0;
  }

  .hero-progress span {
    background-position: 0% 50%;
  }

  .js .reveal.visible .proof-stagger {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .proof-card:hover {
    transform: none;
  }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
    margin-inline: auto;
  }

  .hero-brand-row {
    justify-content: center;
  }

  .hero-title {
    align-items: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-proof {
    text-align: center;
    max-width: 520px;
    margin-inline: auto;
  }

  .cards,
  .audience-grid,
  .steps,
  .workflow-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .built-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-demo-shell {
    grid-template-columns: 1fr;
    padding: 24px 22px 28px;
  }

  .feature-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card--accent {
    order: -1;
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 6px 8px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .nav.scrolled-end {
    mask-image: linear-gradient(90deg, transparent, #000 15%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%);
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    font-size: 12px;
    min-height: 34px;
    padding: 5px 10px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-stack-back--mid {
    transform: translate(8px, 10px) scale(0.97);
    filter: blur(2px);
  }

  .hero-stack-back--far {
    transform: translate(14px, 18px) scale(0.93);
    filter: blur(5px);
  }

  .hero-stack {
    padding-bottom: 28px;
  }

  .hero-visual {
    perspective: 1000px;
  }

  .hero-panel-top,
  .hero-signal-top {
    flex-direction: column;
  }

  .hero-panel-status,
  .hero-signal-price {
    align-self: flex-start;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards,
  .audience-grid,
  .steps,
  .proof-grid,
  .workflow-grid,
  .pricing-grid,
  .built-grid,
  .feature-tiles {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-payments {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pricing-card--accent {
    order: -1;
  }

  section {
    padding: 50px 0;
  }

  .cmd {
    flex-direction: column;
    gap: 4px;
  }

  .cmd code {
    min-width: 0;
  }

  .cta-inner {
    padding: 36px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    margin-left: 0;
  }

  .mobile-cta {
    display: block;
  }

  .footer-help-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  main {
    padding-bottom: 72px;
  }
}

/* Narrow viewports: prevent hero card from overlapping title.
   At <=480px the 3D transforms on .hero-stack-inner combined with
   the live panel can escape the grid cell, so we cap them here. */
@media (max-width: 480px) {
  .hero-grid {
    gap: 18px;
  }

  .hero-copy,
  .hero-visual {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-stack,
  .hero-stack-inner,
  .hero-panel-shell,
  .hero-panel {
    max-width: 100%;
  }

  .hero-stack-inner {
    transform: none !important;
    animation: none !important;
  }

  .hero-stack-back--mid,
  .hero-stack-back--far {
    display: none;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.08;
  }

  .hero-proof {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-proof-item:nth-child(3) {
    grid-column: 1 / -1;
  }
}
