/* ═══════════════════════════════════════════
   DEV-SOLANA — Design System
   Crypto-native · Solana colors · Glassmorphism
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  /* Solana brand */
  --sol-purple: #9945FF;
  --sol-green: #14F195;
  --sol-cyan: #00D1FF;
  --sol-grad: linear-gradient(135deg, #9945FF, #14F195);
  --sol-grad-full: linear-gradient(135deg, #9945FF, #14F195, #00D1FF);

  /* Surfaces — dark default */
  --bg-0: #07070F;
  --bg-1: #0D0D1A;
  --bg-2: #141428;
  --bg-3: #1A1A36;
  --bg-glass: rgba(20, 20, 60, 0.25);
  --bg-glass-hover: rgba(30, 30, 75, 0.35);
  --glass-shine: rgba(255,255,255,0.15);
  --glass-shine-hover: rgba(255,255,255,0.25);

  /* Text — soft pink palette */
  --text-1: #FFD9E8;
  --text-2: #F0A6C4;
  --text-3: #B07A94;

  /* Borders */
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --border-glow: rgba(153, 69, 255, 0.25);

  /* Semantic */
  --green: #14F195;
  --red: #FF4466;
  --amber: #FFB84D;
  --cyan: #00D1FF;

  /* Neon glows */
  --glow-purple: 0 0 30px rgba(153,69,255,0.15), 0 0 60px rgba(153,69,255,0.05);
  --glow-green: 0 0 30px rgba(20,241,149,0.15), 0 0 60px rgba(20,241,149,0.05);
  --glow-card: 0 8px 32px rgba(0,0,0,0.3);

  /* Type */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0);
  color: #A5AAB7;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: #ffffff;
  line-height: 1.15;
  font-weight: 700;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.55),
    0 0 50px rgba(255, 255, 255, 0.4),
    0 0 90px rgba(255, 255, 255, 0.35),
    0 0 150px rgba(255, 255, 255, 0.25);
}
/* Secondary headings — soft mint green with matching glow */
h3, h4, h5, h6 {
  color: #B8F5D5;
  text-shadow:
    0 0 18px rgba(184, 245, 213, 0.5),
    0 0 40px rgba(20, 241, 149, 0.3),
    0 0 80px rgba(20, 241, 149, 0.22);
}
/* Headings override gradient-text — keep the heading's own color */
h1 .gradient-text, h2 .gradient-text {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  background-clip: initial;
  color: #ffffff;
}
h3 .gradient-text, h4 .gradient-text,
h5 .gradient-text, h6 .gradient-text {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #B8F5D5;
  background-clip: initial;
  color: #B8F5D5;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: -0.01em; }
.gradient-text {
  background: var(--sol-grad-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B8F5D5;
  text-shadow:
    0 0 14px rgba(184, 245, 213, 0.5),
    0 0 32px rgba(20, 241, 149, 0.3),
    0 0 60px rgba(20, 241, 149, 0.22);
}
.label-shimmer {
  color: #B8F5D5;
  -webkit-text-fill-color: #B8F5D5;
  text-shadow:
    0 0 20px rgba(184, 245, 213, 0.55),
    0 0 50px rgba(20, 241, 149, 0.4),
    0 0 90px rgba(20, 241, 149, 0.35),
    0 0 150px rgba(20, 241, 149, 0.25);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section {
  padding-block: clamp(60px, 8vw, 120px);
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.nav-logo span { color: var(--sol-green); }
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .nav-logo-img { height: 34px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #B8F5D5;
  text-shadow:
    0 0 14px rgba(184, 245, 213, 0.5),
    0 0 32px rgba(20, 241, 149, 0.3),
    0 0 60px rgba(20, 241, 149, 0.22);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: var(--bg-glass);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.55),
    0 0 40px rgba(255, 255, 255, 0.35),
    0 0 80px rgba(184, 245, 213, 0.3);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: #ffffff;
  transition: all 0.2s;
  font-size: 0.8rem;
}
.nav-btn:hover { color: #ffffff; border-color: var(--border-hover); background: var(--bg-glass); }
.nav-cta {
  padding: 8px 20px;
  background: var(--sol-grad);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.nav.nav-cta-visible .nav-cta {
  opacity: 1;
  pointer-events: auto;
}
.nav.nav-cta-visible .nav-cta:hover { opacity: 0.9; }

/* Mobile menu */
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 4px;
  }
  .nav-links.open a { padding: 12px 14px; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ── Glass Card ── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-top: 1px solid var(--glass-shine);
  border-radius: var(--r-lg);
  box-shadow:
    var(--glow-card),
    inset 0 1px 0 var(--glass-shine),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: inherit;
}
.glass::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}
.glass:hover {
  border-color: var(--border-glow);
  border-top-color: var(--glass-shine-hover);
  box-shadow:
    var(--glow-purple),
    0 12px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 var(--glass-shine-hover),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.glass-static {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-top: 1px solid var(--glass-shine);
  border-radius: var(--r-lg);
  box-shadow:
    var(--glow-card),
    inset 0 1px 0 var(--glass-shine),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.glass-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: inherit;
}
.glass-static::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  pointer-events: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all 0.25s;
}
.btn-primary {
  background: var(--sol-grad);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(153,69,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(153,69,255,0.35); }
.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-glass-hover); }

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.tag-purple { background: rgba(153,69,255,0.1); color: var(--sol-purple); }
.tag-green { background: rgba(20,241,149,0.1); color: var(--green); }
.tag-cyan { background: rgba(0,209,255,0.1); color: var(--cyan); }
.tag-red { background: rgba(255,68,102,0.1); color: var(--red); }
.tag-amber { background: rgba(255,184,77,0.1); color: var(--amber); }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  color: var(--text-3);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-1); }
.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
}
.footer-brand span { color: var(--sol-green); }
.footer-brand-img {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.9;
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.anim-up { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-up-d1 { animation-delay: 0.1s; }
.anim-up-d2 { animation-delay: 0.2s; }
.anim-up-d3 { animation-delay: 0.3s; }
.anim-up-d4 { animation-delay: 0.4s; }

/* Hero: sticky backdrop (stays while next content scrolls over) */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  z-index: 0;
  display: flex;
  align-items: center;
  padding: 0;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
}
.hero-bg-video-a { opacity: 1; }
.hero-bg-video-b { opacity: 0; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 10, 24, 0.95) 0%, rgba(10, 10, 24, 0.7) 30%, rgba(10, 10, 24, 0.15) 60%, rgba(10, 10, 24, 0) 100%),
    linear-gradient(180deg, rgba(10, 10, 24, 0) 70%, rgba(10, 10, 24, 0.6) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-text {
  text-align: left;
  max-width: 560px;
}
.hero-text .hero-sub { margin-left: 0; margin-right: 0; }
.hero-text .max-w-lg { max-width: 520px; }
.hero-cta { justify-content: flex-start; }

/* Everything after hero scrolls up and overlays it */
.scroll-stack {
  position: relative;
  z-index: 1;
  isolation: isolate;
  --cursor-x: -500px;
  --cursor-y: -500px;
  background:
    radial-gradient(circle 80px at var(--cursor-x) var(--cursor-y), rgba(255,150,200,0.07), transparent 75%) fixed,
    radial-gradient(ellipse 1400px 900px at 10% 5%, rgba(153,69,255,0.22), transparent 55%),
    radial-gradient(ellipse 1600px 1100px at 90% 70%, rgba(0,209,255,0.18), transparent 55%),
    radial-gradient(ellipse 1200px 800px at 40% 95%, rgba(153,69,255,0.12), transparent 60%),
    linear-gradient(180deg, #0A0A18 0%, #07070F 100%);
}
.scroll-stack > * {
  position: relative;
  z-index: 1;
}
.hero {
  --cursor-x: -500px;
  --cursor-y: -500px;
}
.hero-bg-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 80px at var(--cursor-x) var(--cursor-y), rgba(255,150,200,0.07), transparent 75%);
}

/* Global cursor glow for pages without hero/scroll-stack */
body:not(:has(.scroll-stack)) {
  --cursor-x: -500px;
  --cursor-y: -500px;
}
body:not(:has(.scroll-stack))::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle 80px at var(--cursor-x) var(--cursor-y), rgba(255,150,200,0.07), transparent 75%);
}
@media (pointer: coarse) {
  body:not(:has(.scroll-stack))::after { display: none; }
}

@media (max-width: 900px) {
  .hero { height: 100vh; height: 100svh; min-height: 520px; }
  .hero-bg-video {
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 50% center;
  }
  .hero-bg-overlay {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(10, 10, 24, 0.3) 0%, rgba(10, 10, 24, 0.85) 60%, rgba(10, 10, 24, 0.95) 100%);
  }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-text .max-w-lg { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

/* Hero lines — staggered fade-in on load + scroll drift */
.hero-line {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}
.hero-line:nth-child(1) { animation-delay: 0.15s; }
.hero-line:nth-child(2) { animation-delay: 0.15s; }
.hero-line:nth-child(3) { animation-delay: 0.45s; }
.hero-line:nth-child(4) { animation-delay: 0.45s; }
.hero-line:nth-child(5) { animation-delay: 0.75s; }
.hero-line:nth-child(6) { animation-delay: 0.75s; }
.hero-line:nth-child(7) { animation-delay: 1.05s; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Background gradient flow ── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  will-change: transform;
}
.glow-1 {
  width: 110vmax; height: 110vmax;
  background: radial-gradient(circle, var(--sol-purple) 0%, transparent 65%);
  top: -30%; right: -30%;
  filter: blur(80px);
  animation: gflow1 30s ease-in-out infinite;
}
.glow-2 {
  width: 100vmax; height: 100vmax;
  background: radial-gradient(circle, var(--sol-cyan) 0%, transparent 65%);
  bottom: -35%; left: -25%;
  filter: blur(90px);
  animation: gflow2 36s ease-in-out infinite;
}
.glow-3 {
  width: 90vmax; height: 90vmax;
  background: radial-gradient(circle, var(--sol-cyan) 0%, transparent 60%);
  top: 10%; left: 20%;
  filter: blur(100px);
  animation: gflow3 40s ease-in-out infinite;
}

@keyframes gflow1 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(-8vw, 6vh) scale(1.05); }
  40%  { transform: translate(4vw, 14vh) scale(0.95); }
  60%  { transform: translate(-12vw, 8vh) scale(1.08); }
  80%  { transform: translate(6vw, 2vh) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes gflow2 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(10vw, -5vh) scale(1.06); }
  40%  { transform: translate(6vw, -12vh) scale(0.94); }
  60%  { transform: translate(14vw, -3vh) scale(1.04); }
  80%  { transform: translate(4vw, -8vh) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes gflow3 {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(7vw, -8vh) scale(1.04); }
  40%  { transform: translate(-6vw, 5vh) scale(1.08); }
  60%  { transform: translate(5vw, 10vh) scale(0.96); }
  80%  { transform: translate(-10vw, -4vh) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Neon divider ── */
.neon-divider {
  height: 1px;
  background: var(--sol-grad);
  opacity: 0.15;
  border: none;
  position: relative;
  z-index: 1;
}

/* ── Cursor glow ── */
/* Cursor glow is painted directly into backgrounds (scroll-stack + hero overlay)
   so it never sits on top of text, buttons or images. The old DOM glow is kept
   hidden as a graceful fallback. */
.cursor-glow { display: none !important; }

/* ── Utility ── */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-w-md { max-width: 540px; }
.max-w-lg { max-width: 720px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* ── Language toggle ── */
[data-lang="ru"] [data-i18n-en],
[data-lang="en"] [data-i18n-ru] { display: none; }

/* ───── Vertical bots carousel ───── */
.vcar-wrap {
  position: relative;
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 70px 40px;
}
.vcar-stage {
  position: relative;
  height: 380px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.vcar-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 640px;
  height: 320px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity;
  cursor: pointer;
}
.vcar-card[data-pos="0"]  { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 10; filter: none; pointer-events: auto; }
.vcar-card[data-pos="1"]  { transform: translate(-50%, -50%) translateX(90%) scale(0.78); opacity: 0.35; z-index: 5; filter: blur(2px) saturate(0.85); pointer-events: auto; }
.vcar-card[data-pos="-1"] { transform: translate(-50%, -50%) translateX(-90%) scale(0.78); opacity: 0.35; z-index: 5; filter: blur(2px) saturate(0.85); pointer-events: auto; }
.vcar-card[data-pos="hidden"] { transform: translate(-50%, -50%) scale(0.4); opacity: 0; z-index: 1; pointer-events: none; visibility: hidden; }

.vcar-card-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  height: 100%;
  padding: 36px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.vcar-card[data-pos="0"] .vcar-img img {
  filter:
    drop-shadow(0 0 45px rgba(255,255,255,0.55))
    drop-shadow(0 0 100px rgba(255,255,255,0.4))
    drop-shadow(0 0 170px rgba(255,255,255,0.25))
    drop-shadow(0 0 250px rgba(255,255,255,0.15))
    drop-shadow(0 18px 32px rgba(0,0,0,0.4));
}
.vcar-card-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vcar-tag-row { display: none; }
.vcar-title {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  color: #B8F5D5;
  text-shadow:
    0 0 18px rgba(184, 245, 213, 0.5),
    0 0 40px rgba(20, 241, 149, 0.3),
    0 0 80px rgba(20, 241, 149, 0.22);
}
.vcar-accent {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #B8F5D5;
  background-clip: initial;
  color: #B8F5D5;
}
.vcar-desc { font-size: 0.95rem; line-height: 1.55; color: #A5AAB7; }

.vcar-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  padding-bottom: 10%;
}
.vcar-img::before {
  content: "";
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle, var(--sol-purple) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}
.vcar-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.4)) drop-shadow(0 0 20px rgba(153,69,255,0.3));
}
/* Per-bot visual size tweaks */
.vcar-img img[src*="снайпер"]    { max-width: 180px; max-height: 180px; }
.vcar-img img[src*="копитрейдер"] { max-width: 270px; max-height: 270px; }
.vcar-img img[src*="НФТ"]         { max-width: 270px; max-height: 270px; }
.vcar-img img[src*="утилитарный"] { max-width: 270px; max-height: 270px; }
.vcar-card[data-pos="0"] .vcar-img img { animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.vcar-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 1.3rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s;
  z-index: 20;
}
.vcar-arrow:hover {
  background: var(--sol-purple);
  border-color: var(--sol-purple);
  color: white;
  box-shadow: 0 0 24px rgba(153,69,255,0.6);
}
.vcar-arrow.up   { top: 50%; left: 8px;  transform: translateY(-50%); }
.vcar-arrow.down { top: 50%; left: auto; right: 8px; transform: translateY(-50%); }

.vcar-dots {
  position: absolute;
  left: 50%;
  bottom: -8px;
  top: auto;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 20;
}
.vcar-dot {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s;
}
.vcar-dot.active {
  width: 36px;
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
}

@media (max-width: 720px) {
  .vcar-wrap { padding: 0 56px 36px; }
  .vcar-stage {
    height: 540px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
  .vcar-card { height: 480px; max-width: 92%; }
  .vcar-card-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 8px;
    padding: 28px 24px 16px;
    text-align: center;
    justify-items: center;
    align-items: start;
  }
  .vcar-card-text {
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
  }
  .vcar-img {
    padding-bottom: 0;
    width: 100%;
    align-items: center;
  }
  .vcar-img img,
  .vcar-img img[src*="снайпер"],
  .vcar-img img[src*="копитрейдер"],
  .vcar-img img[src*="НФТ"],
  .vcar-img img[src*="утилитарный"] { max-width: 180px; max-height: 200px; }
  .vcar-title { font-size: 1.3rem; }
  .vcar-desc { font-size: 0.88rem; max-width: 320px; margin: 0 auto; }
  .vcar-card[data-pos="1"]  { transform: translate(-50%, -50%) translateX(85%) scale(0.72); opacity: 0.3; }
  .vcar-card[data-pos="-1"] { transform: translate(-50%, -50%) translateX(-85%) scale(0.72); opacity: 0.3; }
}

/* ───── Three steps section ───── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  position: relative;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}
.step-card {
  position: relative;
  padding: 44px 32px 36px;
  background: linear-gradient(135deg, rgba(20,20,60,0.4) 0%, rgba(20,20,60,0.1) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  color: var(--step-color);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
  backface-visibility: hidden;
}
/* 3D flip reveal animation state */
.steps-grid.flip-ready .step-card {
  opacity: 0;
  transform: rotateY(-110deg) translateZ(-120px) scale(0.9);
  transform-origin: left center;
}
.steps-grid.flip-play .step-card {
  animation: step-flip-in 1s cubic-bezier(.22,1.1,.36,1) forwards;
}
.steps-grid.flip-play .step-card:nth-child(1) { animation-delay: 0.05s; }
.steps-grid.flip-play .step-card:nth-child(2) { animation-delay: 0.45s; }
.steps-grid.flip-play .step-card:nth-child(3) { animation-delay: 0.85s; }
@keyframes step-flip-in {
  0% {
    opacity: 0;
    transform: rotateY(-110deg) translateZ(-120px) scale(0.9);
    transform-origin: left center;
  }
  55% {
    opacity: 1;
    transform: rotateY(14deg) translateZ(40px) scale(1.04);
    transform-origin: left center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 60px color-mix(in srgb, var(--step-color) 55%, transparent);
  }
  100% {
    opacity: 1;
    transform: rotateY(0) translateZ(0) scale(1);
    transform-origin: left center;
  }
}
/* Connectors fade in after cards land */
.steps-grid.flip-ready .step-connector { opacity: 0; }
.steps-grid.flip-play .step-connector {
  animation: step-conn-fade 0.5s ease forwards;
}
.steps-grid.flip-play .step-card:nth-child(1) .step-connector { animation-delay: 1.0s; }
.steps-grid.flip-play .step-card:nth-child(2) .step-connector { animation-delay: 1.4s; }
@keyframes step-conn-fade {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, var(--step-color), transparent 65%);
  opacity: 0.08;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
}
.step-card {
  box-shadow: 0 0 32px color-mix(in srgb, var(--step-color) 12%, transparent);
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--step-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px var(--step-color), 0 0 40px color-mix(in srgb, var(--step-color) 40%, transparent);
}
.step-card:hover::before { opacity: 0.15; }

.step-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #B8F5D5;
  text-shadow:
    0 0 18px rgba(184, 245, 213, 0.5),
    0 0 40px rgba(20, 241, 149, 0.3),
    0 0 80px rgba(20, 241, 149, 0.22);
  margin-bottom: 14px;
}
.step-desc {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #A5AAB7;
}

/* Animated flow connector between cards */
.step-connector {
  position: absolute;
  top: 50%;
  right: -56px;
  width: 112px;
  height: 60px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}
.step-connector svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.step-connector .flow-path {
  animation: step-dash 1.8s linear infinite;
}
@keyframes step-dash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -18; }
}

@media (max-width: 960px) {
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .step-connector {
    top: auto;
    bottom: -40px;
    right: 50%;
    width: 60px;
    height: 32px;
    transform: translateX(50%) rotate(90deg);
  }
}

/* ───── CTA peek-a-boo bots ───── */
.cta-hero {
  position: relative;
  overflow: visible !important;
}
.cta-peek {
  position: absolute;
  width: 180px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  filter:
    drop-shadow(0 0 22px rgba(255,255,255,0.5))
    drop-shadow(0 0 50px rgba(255,255,255,0.28))
    drop-shadow(0 0 90px rgba(255,255,255,0.15))
    drop-shadow(0 12px 24px rgba(0,0,0,0.45));
  transition: opacity 0.5s ease;
}
/* Hidden "behind the wall" starting positions */
.cta-peek-left   { left: -140px; top: 50%; transform: translate(-20px, -50%) scale(0.6); }
.cta-peek-top    { right: -100px; top: -120px; transform: translate(30px, -20px) scale(0.6) rotate(10deg); width: 160px; }
.cta-peek-bottom { right: -120px; bottom: -110px; transform: translate(30px, 30px) scale(0.6) rotate(-6deg); width: 170px; }

/* Enter animation: triggered via JS-added .cta-active */
.cta-hero.cta-active .cta-peek-left {
  animation: cta-peek-left-combo 1.6s cubic-bezier(.4,1.2,.4,1) 0.05s both;
}
.cta-hero.cta-active .cta-peek-top {
  animation: cta-peek-top-combo 1.6s cubic-bezier(.4,1.2,.4,1) 0.20s both;
}
.cta-hero.cta-active .cta-peek-bottom {
  animation: cta-peek-bottom-combo 1.6s cubic-bezier(.4,1.2,.4,1) 0.35s both;
}

/* Exit animation: same keyframes played in reverse direction */
.cta-hero.cta-leaving .cta-peek-left {
  animation: cta-peek-left-combo 0.65s cubic-bezier(.5,0,.6,1) 0.2s reverse both;
}
.cta-hero.cta-leaving .cta-peek-top {
  animation: cta-peek-top-combo 0.65s cubic-bezier(.5,0,.6,1) 0.1s reverse both;
}
.cta-hero.cta-leaving .cta-peek-bottom {
  animation: cta-peek-bottom-combo 0.65s cubic-bezier(.5,0,.6,1) 0s reverse both;
}
@keyframes cta-peek-left-combo {
  0%   { opacity: 0; transform: translate(-90px, -50%) scale(0.5) rotate(-14deg); }
  40%  { opacity: 1; transform: translate(10px, calc(-50% - 6px)) scale(1.12, 0.88) rotate(-10deg); }
  55%  { transform: translate(-4px, calc(-50% + 4px)) scale(0.9, 1.14) rotate(-4deg); }
  70%  { transform: translate(2px, calc(-50% - 2px)) scale(1.05, 0.95) rotate(-7deg); }
  85%  { transform: translate(0, -50%) scale(0.98, 1.02) rotate(-6deg); }
  100% { opacity: 1; transform: translate(0, -50%) scale(1) rotate(-6deg); }
}
@keyframes cta-peek-top-combo {
  0%   { opacity: 0; transform: translate(90px, -60px) scale(0.5) rotate(28deg); }
  40%  { opacity: 1; transform: translate(-6px, 6px) scale(1.12, 0.88) rotate(10deg); }
  55%  { transform: translate(4px, -4px) scale(0.9, 1.14) rotate(6deg); }
  70%  { transform: translate(-2px, 2px) scale(1.05, 0.95) rotate(9deg); }
  85%  { transform: translate(0, 0) scale(0.98, 1.02) rotate(8deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(8deg); }
}
@keyframes cta-peek-bottom-combo {
  0%   { opacity: 0; transform: translate(90px, 80px) scale(0.5) rotate(-28deg); }
  40%  { opacity: 1; transform: translate(-6px, -6px) scale(1.12, 0.88) rotate(-8deg); }
  55%  { transform: translate(4px, 4px) scale(0.9, 1.14) rotate(0deg); }
  70%  { transform: translate(-2px, -2px) scale(1.05, 0.95) rotate(-5deg); }
  85%  { transform: translate(0, 0) scale(0.98, 1.02) rotate(-4deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(-4deg); }
}

/* Mobile + tablet: stack buttons; bots peek from corners/edges */
@media (max-width: 960px) {
  /* Stack CTA buttons vertically, each sized to its text with padding */
  .cta-hero .flex {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .cta-hero .btn {
    width: auto;
    padding: 12px 28px;
  }

  /* Clip anything outside the card — robots peek, don't fly out */
  .cta-hero { overflow: hidden !important; }
  .cta-peek {
    opacity: 0;
    width: 120px;
    filter:
      drop-shadow(0 0 16px rgba(255,255,255,0.45))
      drop-shadow(0 0 38px rgba(255,255,255,0.25))
      drop-shadow(0 0 64px rgba(255,255,255,0.12))
      drop-shadow(0 6px 14px rgba(0,0,0,0.4));
  }
  /* Resting positions:
     - heart robot (left) tucked UNDER the bottom-left corner, rotated 80° right (clipped by overflow)
     - jump robot (bottom) INSIDE the card at bottom-right, upright
     - waving robot (top) stays at TOP-RIGHT */
  .cta-peek-left {
    left: -28px;
    bottom: -22px;
    top: auto;
    right: auto;
    width: 100px;
    transform: translate(-180%, 180%) rotate(80deg);
    transform-origin: center;
  }
  .cta-peek-top {
    right: 6px;
    top: 6px;
    left: auto;
    bottom: auto;
    width: 68px;
    transform: translateX(180%) rotate(-10deg);
  }
  .cta-peek-bottom {
    right: 28px;
    bottom: 14px;
    top: auto;
    left: auto;
    width: 80px;
    transform: translateX(180%) rotate(0deg);
  }
  /* Disable hover-based animations on mobile — reveal is scroll-triggered */
  .cta-hero.cta-active .cta-peek,
  .cta-hero.cta-leaving .cta-peek { animation: none; }

  /* Scroll-triggered reveal + continuous levitation */
  .cta-hero.cta-mobile-reveal .cta-peek { opacity: 1; }
  .cta-hero.cta-mobile-reveal .cta-peek-left {
    animation:
      mob-peek-left-in 0.9s cubic-bezier(.3,1.5,.4,1) 0.1s both,
      mob-float-left 3.2s ease-in-out 1.0s infinite;
  }
  .cta-hero.cta-mobile-reveal .cta-peek-top {
    animation:
      mob-peek-top-in 0.9s cubic-bezier(.3,1.5,.4,1) 0.3s both,
      mob-float-top 3.6s ease-in-out 1.2s infinite;
  }
  .cta-hero.cta-mobile-reveal .cta-peek-bottom {
    animation:
      mob-peek-bottom-in 0.9s cubic-bezier(.3,1.5,.4,1) 0.5s both,
      mob-float-bottom 3.4s ease-in-out 1.4s infinite;
  }
}
@keyframes mob-peek-left-in {
  0%   { opacity: 0; transform: translate(-180%, 180%) rotate(80deg); }
  60%  { opacity: 1; transform: translate(6px, -4px) rotate(82deg); }
  80%  { transform: translate(-2px, 2px) rotate(78deg); }
  100% { opacity: 1; transform: translate(0, 0) rotate(80deg); }
}
@keyframes mob-peek-top-in {
  0%   { opacity: 0; transform: translateX(180%) rotate(-10deg); }
  60%  { opacity: 1; transform: translate(-4px, 4px) rotate(-30deg); }
  80%  { transform: translate(2px, -2px) rotate(-22deg); }
  100% { opacity: 1; transform: translate(0, 0) rotate(-25deg); }
}
@keyframes mob-peek-bottom-in {
  0%   { opacity: 0; transform: translateX(180%) rotate(0deg); }
  60%  { opacity: 1; transform: translate(-6px, 2px) rotate(4deg); }
  80%  { transform: translate(2px, -2px) rotate(-2deg); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}
/* Continuous levitation */
@keyframes mob-float-left {
  0%, 100% { transform: translate(0, 0) rotate(80deg); }
  50%      { transform: translate(0, -4px) rotate(83deg); }
}
@keyframes mob-float-top {
  0%, 100% { transform: translate(0, 0) rotate(-25deg); }
  50%      { transform: translate(0, -6px) rotate(-28deg); }
}
@keyframes mob-float-bottom {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(0, -5px) rotate(2deg); }
}

/* ── Bots page: tabbed explainer ── */
.bots-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.bot-tabs {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.bot-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: #A5AAB7;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bot-tab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.bot-tab:hover {
  color: var(--text-1);
  background: var(--bg-glass-hover);
}
.bot-tab.active {
  color: var(--text-1);
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(153, 69, 255, 0.25);
}
.bot-panels { position: relative; }
.bot-panel {
  display: none;
  padding: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  animation: bot-panel-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.bot-panel.active { display: block; }
@keyframes bot-panel-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bot-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}
.bot-hero-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter:
    drop-shadow(0 0 40px rgba(255,255,255,0.3))
    drop-shadow(0 0 80px rgba(153, 69, 255, 0.25));
}
.bot-hero-text .tag { margin-bottom: 12px; }
.bot-hero-text h2 {
  font-size: 2rem;
  margin: 0 0 12px;
}
.bot-hero-text p {
  font-size: 1rem;
  color: #A5AAB7;
  margin: 0;
  max-width: 540px;
}
.bot-section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B8F5D5;
  margin: 0 0 20px;
}
.bot-steps {
  list-style: none;
  counter-reset: botstep;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 16px;
}
.bot-steps li {
  counter-increment: botstep;
  position: relative;
  padding: 16px 16px 16px 60px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.bot-steps li::before {
  content: counter(botstep);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--sol-grad);
}
.bot-steps li strong {
  display: block;
  color: var(--text-1);
  font-size: 1rem;
  margin-bottom: 4px;
}
.bot-steps li span {
  color: #A5AAB7;
  font-size: 0.9rem;
  line-height: 1.5;
}
.bot-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.bot-grid-2 h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B8F5D5;
  margin: 0 0 14px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-1);
  font-family: var(--font-mono);
}
.bot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot-list li {
  padding-left: 20px;
  position: relative;
  color: #A5AAB7;
  font-size: 0.9rem;
  line-height: 1.5;
}
.bot-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--sol-green);
  font-weight: 700;
}
.nav-cta-static {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

@media (max-width: 900px) {
  .bots-layout { grid-template-columns: 1fr; gap: 20px; }
  .bot-tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
  }
  .bot-tab {
    flex-shrink: 0;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    min-width: 92px;
    padding: 8px;
    font-size: 0.78rem;
  }
  .bot-tab img { width: 44px; height: 44px; }
  .bot-panel { padding: 24px; }
  .bot-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    justify-items: center;
  }
  .bot-hero-img { width: 180px; height: 180px; }
  .bot-hero-text h2 { font-size: 1.6rem; }
  .bot-grid-2 { grid-template-columns: 1fr; gap: 24px; }
}

/* Bots page: expanded detail blocks */
.strat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.strat-card {
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.strat-card h5 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: #B8F5D5;
  margin: 0 0 6px;
}
.strat-card p {
  font-size: 0.85rem;
  color: #A5AAB7;
  line-height: 1.5;
  margin: 0;
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.metric {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.metric-value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
}
.chip-risk { margin: 0 0 36px; }
.chip-risk .chip {
  color: #ff9fb9;
  border-color: rgba(255, 100, 140, 0.3);
  background: rgba(255, 68, 102, 0.08);
}
@media (max-width: 900px) {
  .strat-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
}

/* Bot scheme diagrams */
.bot-scheme {
  margin: 0 0 36px;
  padding: 24px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow-x: auto;
}
.bot-scheme svg {
  width: 100%;
  height: auto;
  max-width: 820px;
  display: block;
  margin: 0 auto;
}
.bs-box { fill: rgba(255,255,255,0.02); stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.bs-box-ok { stroke: var(--sol-green); }
.bs-box-pur { stroke: var(--sol-purple); }
.bs-label { fill: #FFD9E8; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.bs-sub { fill: #A78094; font-family: var(--font-mono); font-size: 10px; }
.bs-arrow { fill: none; stroke: var(--sol-purple); stroke-width: 1.5; marker-end: url(#bs-arr); }
.bs-arrow-ok { stroke: var(--sol-green); }
.bs-arrow-cyan { stroke: var(--sol-cyan); }
.bs-dash { stroke-dasharray: 4 4; }

/* Scrollbars — Solana gradient thumb */
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}
/* The thumb's own `background` is just a solid fallback for Chrome.
   The real gradient is painted by a cover-sized background-image that fills
   the entire thumb regardless of its height. */
*::-webkit-scrollbar-thumb {
  background-color: #9945FF;
  background-image: linear-gradient(180deg, #9945FF 0%, #14F195 55%, #00D1FF 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, #B065FF 0%, #30F7A3 55%, #22DDFF 100%);
}
*::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb:horizontal {
  background-image: linear-gradient(90deg, #9945FF 0%, #14F195 55%, #00D1FF 100%);
}
*::-webkit-scrollbar-thumb:horizontal:hover {
  background-image: linear-gradient(90deg, #B065FF 0%, #30F7A3 55%, #22DDFF 100%);
}

/* ─────────── Bot panel — deep-dive example block ─────────── */
.bot-example-block {
  --ex-fg: #A5AAB7;
  --ex-dim: #A5AAB7;
  --ex-head: #B8F5D5;
  --ex-bg: var(--bg-glass);
  --ex-border: var(--border);
  --ex-accent: var(--sol-purple);
  --ex-accent-glow: rgba(153, 69, 255, 0.22);
  --ex-green: var(--sol-green);
  --ex-green-dim: rgba(20, 241, 149, 0.18);
  --ex-red: #FF8FA8;
  --ex-red-dim: rgba(255, 143, 168, 0.18);
  --ex-yellow: #FFD56B;
  --ex-yellow-dim: rgba(255, 213, 107, 0.18);
  --ex-cyan: var(--sol-cyan);
  --ex-cyan-dim: rgba(0, 209, 255, 0.18);
  --ex-purple: #D4A6FF;
  --ex-purple-dim: rgba(212, 166, 255, 0.18);
  --ex-orange: #FFB880;
  --ex-orange-dim: rgba(255, 184, 128, 0.18);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bot-example-block .ex-desc {
  color: var(--ex-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

/* Diagram card */
.ex-diagram {
  background: var(--ex-bg);
  border: 1px solid var(--ex-border);
  border-radius: 14px;
  padding: 20px;
  overflow-x: auto;
}
.ex-diagram h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ex-head);
  margin: 0 0 14px;
}
.ex-diagram svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  min-width: 560px;
}
.ex-diagram svg text { font-family: var(--font-body); }
.ex-diagram svg .mono { font-family: var(--font-mono); }
.ex-diagram svg .label { fill: var(--ex-dim); font-size: 11px; }
.ex-diagram svg .heading { fill: var(--ex-head); font-size: 13px; font-weight: 600; }
.ex-diagram svg .fg-fill { fill: var(--ex-fg); font-size: 12px; }
.ex-diagram svg .dim-fill { fill: var(--ex-dim); font-size: 11px; }
.ex-diagram svg .accent-fill { fill: var(--ex-accent); }
.ex-diagram svg .green-fill { fill: var(--ex-green); }
.ex-diagram svg .red-fill { fill: var(--ex-red); }
.ex-diagram svg .yellow-fill { fill: var(--ex-yellow); }
.ex-diagram svg .cyan-fill { fill: var(--ex-cyan); }
.ex-diagram svg .purple-fill { fill: var(--ex-purple); }
.ex-diagram svg .orange-fill { fill: var(--ex-orange); }

/* Bot variant grid (мини-карточки) */
.ex-bot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px) {
  .ex-bot-grid { grid-template-columns: 1fr 1fr; }
}
.ex-bot-card {
  background: var(--ex-bg);
  border: 1px solid var(--ex-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.ex-bot-card h5 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ex-head);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ex-bot-card p {
  font-size: 0.85rem;
  color: var(--ex-dim);
  line-height: 1.5;
  margin: 0;
}
.ex-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ex-tag-green  { background: var(--ex-green-dim);  color: var(--ex-green); }
.ex-tag-red    { background: var(--ex-red-dim);    color: var(--ex-red); }
.ex-tag-yellow { background: var(--ex-yellow-dim); color: var(--ex-yellow); }
.ex-tag-cyan   { background: var(--ex-cyan-dim);   color: var(--ex-cyan); }
.ex-tag-purple { background: var(--ex-purple-dim); color: var(--ex-purple); }
.ex-tag-orange { background: var(--ex-orange-dim); color: var(--ex-orange); }

/* Arb-detail block (с под-схемой и "как это работает") */
.ex-detail {
  background: var(--ex-bg);
  border: 1px solid var(--ex-border);
  border-radius: 14px;
  padding: 20px;
}
.ex-detail h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ex-head);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ex-detail .ex-detail-desc {
  font-size: 0.88rem;
  color: var(--ex-dim);
  line-height: 1.55;
  margin: 0 0 14px;
}
.ex-detail svg {
  display: block;
  margin: 0 auto 14px;
  max-width: 100%;
  height: auto;
  min-width: 560px;
}
.ex-profit {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--ex-green-dim);
  color: var(--ex-green);
  padding: 2px 8px;
  border-radius: 6px;
}
.ex-how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 720px) {
  .ex-how { grid-template-columns: 1fr 1fr; }
}
.ex-how-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ex-border);
  border-radius: 10px;
  padding: 12px 14px;
}
.ex-how-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ex-head);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ex-how-item span {
  font-size: 0.82rem;
  color: var(--ex-dim);
  line-height: 1.5;
}

/* Diagram scroll wrapper to keep SVG from overflowing on mobile */
.ex-diagram, .ex-detail {
  overflow-x: auto;
}

/* Diagram scrollbars inside the panel inherit site-wide styling */
.ex-section-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}
