/* --------------------------------------------------------------------------
   NeuroFlow AI — Hero styles (glass, glow, motion)
   -------------------------------------------------------------------------- */

:root {
  --bg: #09090b;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
}

/* ---------- Ambient background ---------- */
#glow-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1; /* Поднимаем из глубокого минуса, чтобы фон его не перекрывал */
  filter: blur(60px);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: clip;
  background: var(--bg);
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.ambient__blob--1 {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.9), transparent 62%);
  animation: float-a 18s var(--ease-out) infinite alternate;
}

.ambient__blob--2 {
  width: min(64vw, 480px);
  height: min(64vw, 480px);
  top: 8%;
  right: -14%;
  background: radial-gradient(circle at 70% 40%, rgba(59, 130, 246, 0.75), transparent 60%);
  animation: float-b 22s var(--ease-out) infinite alternate;
}

.ambient__blob--3 {
  width: min(90vw, 640px);
  height: min(90vw, 640px);
  bottom: -22%;
  left: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.22), transparent 55%);
  filter: blur(100px);
  opacity: 0.45;
  animation: float-c 26s var(--ease-out) infinite alternate;
}

.ambient__grain {
  position: absolute;
  inset: -20%;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'160\' height=\'160\' viewBox=\'0 0 160 160\'%3E%3Cfilter id=\'n\'%3E%3CfeTurbulence type=\'fractalNoise\' baseFrequency=\'0.9\' numOctaves=\'3\' stitchTiles=\'stitch\'%2F%3E%3C%2Ffilter%3E%3Crect width=\'100%25\' height=\'100%25\' filter=\'url(%23n)\' opacity=\'0.55\'%2F%3E%3C%2Fsvg%3E");
}

@keyframes float-a {
  to {
    transform: translate(4%, 6%) scale(1.05);
    opacity: 0.62;
  }
}

@keyframes float-b {
  to {
    transform: translate(-5%, 4%) scale(1.08);
    opacity: 0.58;
  }
}

@keyframes float-c {
  to {
    transform: translate(-3%, -4%) scale(1.02);
    opacity: 0.52;
  }
}

/* ---------- Navbar ---------- */
.nav-pill {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  color: rgb(161 161 170);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-pill:hover {
  color: rgb(244 244 245);
  background: rgba(255, 255, 255, 0.06);
}

.btn-launch,
.btn-primary,
.btn-secondary {
  cursor: pointer;
  font-family: inherit;
}

button.btn-launch,
button.btn-primary,
button.btn-secondary {
  appearance: none;
}

.btn-launch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.22), rgba(24, 24, 27, 0.35));
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(237 233 254);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(139, 92, 246, 0.12);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-launch::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(120px 60px at 50% 0%, rgba(167, 139, 250, 0.55), transparent 60%);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.3s ease;
}

.btn-launch:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 16px 48px rgba(139, 92, 246, 0.28);
}

.btn-launch:hover::after {
  opacity: 1;
}

.btn-launch:active {
  transform: translateY(0);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu:not([hidden]) {
  display: block;
}

/* ---------- Typography & CTAs ---------- */
.text-gradient {
  background: linear-gradient(
    120deg,
    #fafafa 0%,
    #e4e4e7 18%,
    #c4b5fd 38%,
    #a78bfa 52%,
    #38bdf8 78%,
    #e4e4e7 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.875rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #2563eb 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 18px 50px rgba(79, 70, 229, 0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(255, 255, 255, 0.45), transparent 40%);
  opacity: 0;
  filter: blur(24px);
  transition: opacity 0.4s ease;
  animation: spin 6s linear infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 22px 60px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover::before {
  opacity: 0.15;
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  color: rgb(228 228 231);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* ---------- Tag dots (Hero + section tags) ---------- */
.hero-tag {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(161 161 170);
}

.tag-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  animation: tag-pulse 2.4s ease-in-out infinite;
}

.tag-dot--emerald {
  background: rgb(52 211 153);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.9);
}

/* ---------- Reveal animations ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out),
    filter 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .text-gradient {
    animation: none;
    background-position: 0% center;
  }

  .ambient__blob {
    animation: none;
  }

  .btn-primary::before {
    animation: none;
  }

  .tag-dot {
    animation: none;
    opacity: 0.85;
  }
  .orch-node--hub {
    animation: none;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.6), 0 0 20px rgba(147, 51, 234, 0.3), 0 0 30px rgba(147, 51, 234, 0.1);
  }

  .dashboard-wrap:hover .dashboard-shell,
  .dashboard-wrap:focus-within .dashboard-shell {
    transform: none;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 40px 100px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Dashboard mockup ---------- */
.js-dashboard-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease-out) 0.15s,
    transform 1s var(--ease-out) 0.15s,
    filter 1s var(--ease-out) 0.15s;
}

.js-dashboard-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.dashboard-wrap {
  overflow: clip;
  overflow-clip-margin: 1rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-glow {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.35), transparent 58%),
    radial-gradient(ellipse at 80% 40%, rgba(59, 130, 246, 0.2), transparent 50%);
  filter: blur(28px);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.dashboard-wrap:hover .dashboard-glow,
.dashboard-wrap:focus-within .dashboard-glow {
  opacity: 1;
  filter: blur(32px);
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.72), rgba(9, 9, 11, 0.55));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 100px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.dashboard-wrap:hover .dashboard-shell,
.dashboard-wrap:focus-within .dashboard-shell {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 48px 100px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(139, 92, 246, 0.18),
    0 24px 48px rgba(59, 130, 246, 0.12);
}

.dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.chrome-dot--r {
  background: #fb7185;
}
.chrome-dot--y {
  background: #fbbf24;
}
.chrome-dot--g {
  background: #34d399;
}

.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(113 113 122);
}

.chrome-spacer {
  width: 52px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 200px 1fr;
    min-height: 320px;
  }
}

.dashboard-sidebar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .dashboard-sidebar {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.sidebar-logo {
  width: 34px;
  height: 34px;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(59, 130, 246, 0.45));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}

.sidebar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .sidebar-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

.sidebar-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 12px;
  color: rgb(161 161 170);
  border: 1px solid transparent;
}

.sidebar-link.is-active {
  color: rgb(244 244 245);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-foot {
  margin-top: 1rem;
}

.meter__head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgb(161 161 170);
  margin-bottom: 0.35rem;
}

.meter__bar {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.45);
}

.dashboard-main {
  padding: 1rem;
}

.dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-pills {
  display: flex;
  gap: 0.35rem;
}

.pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: rgb(167 243 208);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.12);
}

.pill--muted {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgb(161 161 170);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.dash-cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .dash-cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .glass-card--wide {
    grid-column: 1 / -1;
  }
}

.glass-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  padding: 0.85rem;
}

.glass-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 11px;
  font-weight: 600;
  color: rgb(212 212 216);
}

.tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  color: rgb(221 214 254);
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.12);
}

.tag--blue {
  color: rgb(191 219 254);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.tag--slate {
  color: rgb(212 212 216);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.spark {
  height: 88px;
  border-radius: 0.65rem;
  background: radial-gradient(120px 60px at 20% 0%, rgba(139, 92, 246, 0.2), transparent 60%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.spark__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.spark__line {
  stroke: rgba(196, 181, 253, 0.95);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.glass-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.55rem;
  font-size: 11px;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.45rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.task__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #a78bfa;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.75);
}

.task__dot--idle {
  background: #71717a;
  box-shadow: none;
}

.task__dot--ok {
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.55);
}

.task__title {
  font-size: 12px;
  font-weight: 600;
  color: rgb(244 244 245);
  margin: 0;
}

.task__meta {
  font-size: 10px;
  color: rgb(113 113 122);
  margin: 0.1rem 0 0;
}

.task__badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  color: rgb(196 181 253);
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.1);
}

.task__badge--idle {
  color: rgb(161 161 170);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.task__badge--ok {
  color: rgb(167 243 208);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
}

.map__node {
  flex: 1 1 90px;
  min-width: 84px;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 0.65rem 0.65rem;
  text-align: center;
}

.map__node span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgb(250 250 250);
}

.map__node small {
  display: block;
  margin-top: 0.15rem;
  font-size: 10px;
  color: rgb(161 161 170);
}

.map__node--a {
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.15);
}
.map__node--b {
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.18);
}
.map__node--c {
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.12);
}

.map__edge {
  flex: 0 0 32px;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(167, 139, 250, 0.85), rgba(59, 130, 246, 0.2));
  opacity: 0.85;
}

.map__edge--2 {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.2), rgba(34, 211, 238, 0.75), rgba(167, 139, 250, 0.2));
}

@media (max-width: 520px) {
  .map__edge {
    display: none;
  }

  .map {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-dashboard-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ---------- Features — Bento Grid ---------- */
.section-tag {
  border-radius: 9999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
  padding: 0.35rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(196 181 253);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(139, 92, 246, 0.22);
}

.section-tag__dot {
  background: rgb(167 139 250);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.9);
}

@keyframes tag-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.65), rgba(9, 9, 11, 0.45));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(147, 51, 234, 0.2);
}

.bento-card__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.bento-card:hover .bento-card__glow {
  opacity: 0.85;
}

.bento-card__glow--violet {
  background: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(139, 92, 246, 0.28), transparent 55%);
}

.bento-card__glow--blue {
  background: radial-gradient(ellipse 70% 55% at 90% 10%, rgba(59, 130, 246, 0.25), transparent 50%);
}

.bento-card__glow--emerald {
  background: radial-gradient(ellipse 70% 55% at 20% 100%, rgba(52, 211, 153, 0.2), transparent 50%);
}

.bento-card__glow--slate {
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(59, 130, 246, 0.15), transparent 55%);
}

.bento-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
}

.bento-card__inner--row {
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .bento-card__inner--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
  }
}

.bento-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.bento-icon--violet {
  color: rgb(196 181 253);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.bento-icon--blue {
  color: rgb(147 197 253);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.bento-icon--emerald {
  color: rgb(110 231 183);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}
.bento-icon--slate {
  color: rgb(212 212 216);
}

.bento-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(250 250 250);
}

.bento-card--lg .bento-card__title {
  font-size: 1.2rem;
}

.bento-card__desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(161 161 170);
  flex: 1;
}

.bento-card__desc--sm {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.bento-card__desc--orch {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.bento-card__inner--orch {
  min-height: 0;
}

.bento-card--lg .bento-card__inner--orch .orchestration-viz {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: none;
  min-height: 10.5rem;
  margin: 0.5rem 0 0.35rem;
  padding: 1rem 1.1rem 1rem;
}

.bento-card--lg .bento-card__inner--orch .orch-stage {
  width: 100%;
  max-width: none;
  flex: 1;
  justify-content: space-evenly;
  gap: 0.7rem;
  padding: 0.15rem 0.25rem;
}

.bento-card--lg .bento-card__inner--orch .orch-row--top {
  gap: 1.25rem;
  padding: 0 0.35rem;
}

.bento-card--lg .bento-card__inner--orch .orch-row--bot {
  padding-top: 0.2rem;
}

.bento-card--lg .bento-card__inner--orch .orch-node {
  font-size: 11px;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
}

.bento-card--lg .bento-card__inner--orch .orch-node--hub {
  padding: 0.55rem 0.85rem;
  font-size: 12px;
}

.bento-card--lg .bento-card__inner--orch .orch-link {
  stroke-width: 1.75;
}

/* Orchestration viz */
.orchestration-viz {
  position: relative;
  width: 100%;
  max-width: 18.5rem;
  margin: 0.5rem auto 0;
  padding: 0.55rem 0.65rem 0.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.orch-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.orch-link {
  stroke: rgba(167, 139, 250, 0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
  z-index: 1;
}

.orch-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.orch-row {
  display: flex;
  width: 100%;
  justify-content: center;
}

.orch-row--top {
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.orch-row--mid {
  position: relative;
  z-index: 2;
  padding: 0.35rem 0;
  margin-bottom: 0.1rem;
}

.orch-row--bot {
  position: relative;
  z-index: 1;
  padding-top: 0.2rem;
}

.orch-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: rgb(228 228 231);
}

.orch-node--hub {
  position: relative;
  z-index: 10;
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(139, 92, 246, 0.18);
  overflow: initial;
  isolation: isolate;
  animation: hubGlowPulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: box-shadow;
}

.orch-node--hub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.7), transparent 70%);
  transform: scale(0.9);
  opacity: 0;
  animation: hub-pulse 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes hubGlowPulse {
  0% { box-shadow: 0 0 10px rgba(147, 51, 234, 0.6), 0 0 20px rgba(147, 51, 234, 0.3), 0 0 30px rgba(147, 51, 234, 0.1); }
  50% { box-shadow: 0 0 15px rgba(147, 51, 234, 0.9), 0 0 30px rgba(147, 51, 234, 0.6), 0 0 50px rgba(147, 51, 234, 0.3); } /* Усиленное свечение */
  100% { box-shadow: 0 0 10px rgba(147, 51, 234, 0.6), 0 0 20px rgba(147, 51, 234, 0.3), 0 0 30px rgba(147, 51, 234, 0.1); } /* Возврат к базовому уровню */
}

.orch-hub-label {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .bento-card--lg .bento-card__inner--orch .orchestration-viz {
    min-height: 12.5rem;
    margin-bottom: 0.4rem;
    padding: 1.15rem 1.35rem 1.1rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-stage {
    gap: 0.85rem;
    padding: 0.25rem 0.5rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-row--top {
    gap: 2rem;
    padding: 0 0.5rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-node {
    font-size: 12px;
    padding: 0.55rem 0.8rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-node--hub {
    font-size: 13px;
    padding: 0.6rem 1rem;
  }

  .orchestration-viz {
    max-width: 20rem;
    margin-top: 0.55rem;
  }

  .orch-stage {
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .bento-card--lg .bento-card__inner--orch .orchestration-viz {
    min-height: 14rem;
    padding: 1.25rem 1.5rem 1.15rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-stage {
    gap: 1rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-row--top {
    gap: 2.5rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-node {
    font-size: 13px;
    padding: 0.6rem 0.95rem;
  }

  .bento-card--lg .bento-card__inner--orch .orch-node--hub {
    font-size: 14px;
    padding: 0.65rem 1.15rem;
  }
}

/* Mini chart */
.mini-chart {
  position: relative;
  margin-top: auto;
  height: 88px;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.mini-chart__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 4px;
  padding: 0.5rem 0.65rem 0.35rem;
}

.mini-chart__bar {
  flex: 1;
  max-width: 14px;
  height: var(--h, 50%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0.25));
  transform-origin: bottom;
  animation: bar-pulse 2.8s ease-in-out infinite;
}

.mini-chart__bar:nth-child(2) {
  animation-delay: 0.15s;
}
.mini-chart__bar:nth-child(3) {
  animation-delay: 0.3s;
}
.mini-chart__bar:nth-child(4) {
  animation-delay: 0.45s;
}
.mini-chart__bar:nth-child(5) {
  animation-delay: 0.6s;
}
.mini-chart__bar:nth-child(6) {
  animation-delay: 0.75s;
}
.mini-chart__bar:nth-child(7) {
  animation-delay: 0.9s;
}

@keyframes bar-pulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.85;
  }
  50% {
    transform: scaleY(1.12);
    opacity: 1;
  }
}

.mini-chart__line-wrap {
  position: absolute;
  inset: 0.35rem 0.5rem 0.25rem;
  pointer-events: none;
}

.mini-chart__line {
  width: 100%;
  height: 100%;
}

.mini-chart__path {
  stroke: rgba(196, 181, 253, 0.9);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: line-draw 4s ease-in-out infinite;
}

@keyframes line-draw {
  0% {
    stroke-dashoffset: 120;
    opacity: 0.4;
  }
  40%,
  60% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -120;
    opacity: 0.4;
  }
}

/* Uptime */
.uptime-panel {
  margin-top: auto;
  padding-top: 0.5rem;
}

.uptime-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uptime-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgb(52 211 153);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.85);
  animation: uptime-blink 1.8s ease-in-out infinite;
}

@keyframes uptime-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.85);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
  }
}

.uptime-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.uptime-metric__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgb(250 250 250);
}

.uptime-metric__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(113 113 122);
}

.uptime-rings {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.uptime-rings span {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.uptime-rings span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  transform: scaleX(0.85);
  transform-origin: left;
}

.uptime-rings span:nth-child(2)::after {
  transform: scaleX(0.72);
}
.uptime-rings span:nth-child(3)::after {
  transform: scaleX(0.94);
}

/* Security wide card */
.security-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.security-tags li {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgb(161 161 170);
  background: rgba(255, 255, 255, 0.03);
}

.security-lock {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .security-lock {
    width: 120px;
    height: 120px;
    margin: 0;
  }
}

.security-lock__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: lock-spin 12s linear infinite;
}

.security-lock__ring::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgb(147 197 253);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.8);
}

@keyframes lock-spin {
  to {
    transform: rotate(360deg);
  }
}

.security-lock__icon {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  color: rgb(212 212 216);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.25));
}

[data-bento-grid] .js-reveal.is-visible:nth-child(1) {
  transition-delay: 0ms;
}
[data-bento-grid] .js-reveal.is-visible:nth-child(2) {
  transition-delay: 80ms;
}
[data-bento-grid] .js-reveal.is-visible:nth-child(3) {
  transition-delay: 140ms;
}
[data-bento-grid] .js-reveal.is-visible:nth-child(4) {
  transition-delay: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  .tag-dot,
  .orch-pulse,
  .mini-chart__bar,
  .mini-chart__path,
  .uptime-dot,
  .security-lock__ring {
    animation: none;
  }

  .mini-chart__path {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---------- Live Demo — chat UI ---------- */
.demo-chat__log {
  max-height: min(420px, 70vh);
  scroll-behavior: smooth;
}

.demo-agent {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.45rem 0.65rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(161 161 170);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.demo-agent:hover {
  color: rgb(228 228 231);
  background: rgba(255, 255, 255, 0.05);
}

.demo-agent.is-active {
  color: rgb(244 244 245);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
}

.demo-msg {
  display: flex;
  width: 100%;
}

.demo-msg--user {
  justify-content: flex-end;
}

.demo-msg--ai {
  justify-content: flex-start;
}

.demo-msg__bubble {
  max-width: min(100%, 26rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.85), rgba(24, 24, 27, 0.55));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 12px 40px rgba(0, 0, 0, 0.25);
}

.demo-msg__bubble--user {
  border-color: rgba(139, 92, 246, 0.25);
  background: linear-gradient(160deg, rgba(91, 33, 182, 0.22), rgba(24, 24, 27, 0.55));
}

.demo-msg__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(228 228 231);
}

.demo-msg__bubble--user .demo-msg__text {
  color: rgb(244 244 245);
}

.demo-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: rgb(167 139 250);
  animation: demo-cursor 1s step-end infinite;
}

@keyframes demo-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.demo-msg--typing .demo-msg__bubble {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.08);
}

.demo-result {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: min(100%, 26rem);
  border-radius: 1rem;
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.75rem 1rem;
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.25), rgba(24, 24, 27, 0.75));
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.demo-result__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.12);
  color: rgb(52 211 153);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}

.demo-result__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(212 212 216);
}

.demo-result__text strong {
  font-weight: 700;
  color: rgb(167 243 208);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
}

.footer-link {
  color: rgb(161 161 170);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.footer-link:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.45);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #9333ea, #3b82f6); /* наш фирменный градиент */
  transform: scaleX(0);
  transform-origin: bottom center;
  transition: transform 0.3s ease-out;
}

.footer-link:hover {
  color: rgb(244 244 245);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-link--dead {
  cursor: default;
}

/* ---------- Section blocks ---------- */
.section-block {
  scroll-margin-top: 5.5rem;
}

/* ---------- Solutions ---------- */
.solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(24, 24, 27, 0.65), rgba(9, 9, 11, 0.45));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.35rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 20px 50px rgba(0, 0, 0, 0.3);
}

.solution-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 64px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(139, 92, 246, 0.12);
}

.solution-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.solution-card__icon--violet {
  color: rgb(196 181 253);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.15);
}

.solution-card__icon--blue {
  color: rgb(147 197 253);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

.solution-card__icon--cyan {
  color: rgb(103 232 249);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.solution-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgb(250 250 250);
}

.solution-card__desc {
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(161 161 170);
}

.solution-card__metric {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card:hover .solution-card__metric {
  filter: brightness(1.2) saturate(1.2);
  text-shadow:
    0 0 20px rgba(167, 139, 250, 0.55),
    0 0 36px rgba(59, 130, 246, 0.4),
    0 0 48px rgba(139, 92, 246, 0.25);
}

/* ---------- Pricing ---------- */
.pricing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(161 161 170);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.pricing-toggle__btn.is-active {
  color: rgb(244 244 245);
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.pricing-toggle__save {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(167 243 208);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(24, 24, 27, 0.7), rgba(9, 9, 11, 0.5));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 20px 50px rgba(0, 0, 0, 0.32);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.pricing-card--pro {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(165deg, rgba(91, 33, 182, 0.18), rgba(9, 9, 11, 0.55));
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.15) inset,
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(139, 92, 246, 0.2);
}

.pricing-card--pro:hover {
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.2) inset,
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 56px rgba(139, 92, 246, 0.28);
}

.pricing-card-outer {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card-outer--pro {
  padding-top: 0.85rem;
}

.pricing-card__badge-slot {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.pricing-card__badge {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: linear-gradient(180deg, rgb(39 39 42), rgb(9 9 11));
  padding: 0.3rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(237 233 254);
  box-shadow:
    0 0 0 3px rgb(9 9 11),
    0 0 28px rgba(139, 92, 246, 0.4);
  white-space: nowrap;
}

.pricing-card-outer--pro .pricing-card--pro {
  margin-top: 0;
}

.pricing-card--pro .pricing-card__name {
  margin-top: 0;
}

.pricing-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgb(250 250 250);
}

.pricing-card__tagline {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: rgb(113 113 122);
}

.pricing-card__price {
  margin-bottom: 1.25rem;
}

.pricing-card__amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgb(250 250 250);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pricing-card__amount.is-updating {
  opacity: 0;
  transform: translateY(6px);
}

.pricing-card__amount--custom {
  font-size: 2rem;
}

.pricing-card__period {
  margin-left: 0.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgb(113 113 122);
}

.pricing-card__features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.pricing-card__features li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(161 161 170);
}

.pricing-card__features li + li {
  margin-top: 0.45rem;
}

.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: rgb(167 139 250);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.pricing-card__cta {
  margin-top: auto;
}


/* ---------- Access modal ---------- */
body.modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal:not([hidden]) {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.modal.is-visible .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.88), rgba(9, 9, 11, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(139, 92, 246, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.75rem 1.5rem 1.5rem;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.modal.is-visible .modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgb(161 161 170);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: rgb(244 244 245);
  background: rgba(255, 255, 255, 0.1);
}

.modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgb(250 250 250);
  padding-right: 1.5rem;
}

.modal__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgb(161 161 170);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal__input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: rgb(244 244 245);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal__input::placeholder {
  color: rgb(113 113 122);
}

.modal__input:focus {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.modal__input.is-invalid {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.modal__submit {
  width: 100%;
}

.modal__success {
  text-align: center;
}

.modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.12);
  color: rgb(52 211 153);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
}

.modal__done {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .solution-card:hover .solution-card__metric {
    filter: none;
    text-shadow: none;
  }

  .modal__backdrop,
  .modal__panel {
    transition: none;
  }

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

  .demo-typing-cursor {
    animation: none;
    opacity: 0.6;
  }

  .demo-result {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================
   ФИНАЛЬНЫЙ РЕАНИМАТОР ИНТЕРАКТИВА (РУЧНОЙ)
   ========================================== */

/* Bento Section - Next-Gen Smoothness & Border-Color Synchronization */
.bento-card,
[class*="analytics"],
[class*="uptime"],
[class*="security"] {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s ease !important;
}

.bento-card:hover,
[class*="analytics"]:hover,
[class*="uptime"]:hover,
[class*="security"]:hover {
  transform: scale(1.02) !important; /* Gentle 2% scale */
  border-color: rgba(147, 51, 234, 0.5) !important;
}

/* Tailored AI Solutions Section */
.solution-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.solution-card:hover {
  transform: translateY(-10px) !important;
}

/* Flexible Pricing Section */
.pricing-card,
.pricing-card-outer {
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.pricing-card:hover,
.pricing-card-outer:hover {
  transform: translateY(-10px) !important;
}

/* Prevent double-lifting on nested cards */
.pricing-card-outer .pricing-card {
  transform: none !important;
}
.pricing-card-outer .pricing-card:hover {
  transform: none !important;
}

/* Strict Child Reset - Ensures all inner text/elements stay completely still */
.pricing-card *, [class*="pricing-card"] * { 
  transform: none !important; 
}

/* Center-aligned Badge override for Pro card */
.pricing-card__badge {
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
}
