:root {
  --bg: #f7f9fc;
  --bg-secondary: #eef2f7;
  --text: #0f172a;
  --muted: #475569;
  --gradient: linear-gradient(135deg, #6ee7f9, #a78bfa, #f472b6);
  --radius-lg: 24px;
  --radius-md: 18px;
  /* Layered shadows — softer ambient + subtle tint */
  --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.09);
  --shadow-elevated:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 12px 28px rgba(15, 23, 42, 0.07),
    0 28px 56px -16px rgba(167, 139, 250, 0.14);
  --shadow-glow: 0 18px 45px rgba(167, 139, 250, 0.28);
  --shadow-glow-tight: 0 8px 28px rgba(167, 139, 250, 0.22), 0 2px 8px rgba(110, 231, 249, 0.12);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.38s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(167, 139, 250, 0.06), transparent 50%),
    radial-gradient(circle at 20% 10%, #ffffff 0%, var(--bg) 45%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

a {
  color: inherit;
  text-decoration: none;
}

:is(a, button, .btn, .nav-toggle, input[type="range"]):focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 3px;
}

.lang-switch__link:focus-visible {
  outline-offset: 2px;
}

.nav-toggle:focus-visible {
  outline-offset: 2px;
}

.container {
  width: min(1120px, calc(100% - clamp(1.25rem, 5vw, 3rem)));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 10vw, 7.5rem) 0;
}

/* Subtle separation between major bands (structure unchanged) */
.section + .section {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-header {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  min-width: 0;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  max-width: 38rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 2rem;
}

.glass {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.42) 55%,
    rgba(248, 250, 252, 0.38) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium),
    border-color 0.3s ease;
}

.hover-lift {
  transition:
    transform var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium),
    border-color 0.3s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .hover-lift:hover {
    transform: translateY(-7px) scale(1.012);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(255, 255, 255, 0.95);
  }

  /* Cards that ship without .hover-lift — same premium lift */
  .usecase-card.glass:hover,
  .web3-pillar.glass:hover,
  .web3-chart-card.glass:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(255, 255, 255, 0.92);
  }
}

.site-bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  /* Opacity-only drift — scroll parallax still sets transform inline */
  animation: orb-breathe 18s ease-in-out infinite alternate;
}

@keyframes orb-breathe {
  from {
    opacity: 0.28;
  }
  to {
    opacity: 0.42;
  }
}

.orb-1 {
  top: -100px;
  left: -100px;
  background: #6ee7f9;
  animation-delay: 0s;
}

.orb-2 {
  right: -80px;
  bottom: 20%;
  background: #f472b6;
  animation-delay: -7s;
}

.topbar {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - clamp(1rem, 4vw, 2rem)));
  border-radius: 20px;
  padding: 0.75rem 1rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  z-index: 15;
  pointer-events: none;
}

body.nav-open {
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.brand__mark {
  color: var(--text);
}

.brand__art {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift-gradient 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .brand__art {
    animation: none;
    background-position: 50% 50%;
  }
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav > a {
  color: #334155;
  font-size: 0.93rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav > a:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.nav > a[aria-current="page"] {
  background: transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  background-image: var(--gradient);
  background-size: 160% auto;
  background-position: 40% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav > a[aria-current="page"]:hover {
  background-color: transparent;
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  padding: 0.28rem 0.4rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.lang-switch__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__link:hover {
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.lang-switch__link--active {
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.06em;
  background-image: var(--gradient);
  background-size: 160% auto;
  background-position: 40% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang-switch__link--active:hover {
  background-color: transparent;
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang-switch__sep {
  color: #cbd5e1;
  font-size: 0.75rem;
  user-select: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav > a[aria-current="page"],
  .nav > a[aria-current="page"]:hover,
  .lang-switch__link--active,
  .lang-switch__link--active:hover {
    background-position: 50% 50%;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 6rem;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}

/* Живой фон без внешнего видео (старая ссылка Coverr — 404) */
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 75% at 12% 18%, rgba(110, 231, 249, 0.38), transparent 58%),
    radial-gradient(ellipse 80% 70% at 88% 82%, rgba(167, 139, 250, 0.3), transparent 55%),
    radial-gradient(circle at 48% 52%, rgba(244, 114, 182, 0.1), transparent 52%),
    linear-gradient(158deg, #e4ebf4 0%, #f7f9fc 42%, #eef2f7 100%);
  animation: hero-mesh-drift 32s ease-in-out infinite alternate;
}

@keyframes hero-mesh-drift {
  from {
    transform: translate(-1.5%, -1%) scale(1);
  }
  to {
    transform: translate(1.5%, 1%) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

/* Оверлей на mesh; canvas со звёздами выше — иначе светлая пелена перекрывает частицы */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      130deg,
      rgba(247, 249, 252, 0.88) 25%,
      rgba(247, 249, 252, 0.72) 75%
    ),
    radial-gradient(circle at 50% 40%, rgba(167, 139, 250, 0.12), transparent 55%),
    radial-gradient(circle at center, rgba(110, 231, 249, 0.18), transparent 65%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 40rem;
  padding: 2rem;
}

.kicker {
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-title-line {
  display: inline-block;
}

.animated-gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shift-gradient 4s linear infinite;
}

.subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2.1vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.description {
  margin: 1rem auto 2.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  max-width: 32rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.4rem;
  font-weight: 600;
  transition:
    transform var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium),
    filter 0.25s ease,
    background 0.25s ease;
}

.btn-glass {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38));
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(167, 139, 250, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

@media (hover: hover) and (pointer: fine) {
  .btn-glass:hover {
    transform: translateY(-3px);
    filter: brightness(1.03);
    box-shadow: var(--shadow-glow-tight);
  }
}

.btn-glass:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.section-diagonal::before,
.section-diagonal-reverse::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  /* Angled band hidden — keeps layout hooks without visible divider noise */
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.section-diagonal::before {
  top: 0;
  transform: skewY(-3deg) translateY(-50%);
}

.section-diagonal-reverse::before {
  top: 0;
  transform: skewY(2deg) translateY(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
}

.services-grid > * {
  min-width: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.6rem);
  min-height: 0;
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
  overflow-wrap: break-word;
  hyphens: auto;
  flex-grow: 1;
}

.section-split {
  background: linear-gradient(
    180deg,
    rgba(238, 242, 247, 0.35) 0%,
    var(--bg-secondary) 48%,
    rgba(238, 242, 247, 0.85) 100%
  );
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.approach-item {
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.6rem);
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.icon-glow {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  margin-bottom: 1rem;
  flex-shrink: 0;
  background: var(--gradient);
  filter: blur(0.2px);
  box-shadow: 0 10px 25px rgba(110, 231, 249, 0.5);
  transition:
    transform var(--dur-fast) var(--ease-premium),
    box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .approach-item:hover .icon-glow {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 12px 28px rgba(167, 139, 250, 0.45);
  }
}

.approach-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.approach-item p {
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.65;
  font-size: 0.98rem;
  flex-grow: 1;
}

.muted {
  color: #64748b;
}

.value {
  font-weight: 700;
}

.speed-comparison {
  border-radius: var(--radius-lg);
  padding: 0.25rem 1.75rem 0.5rem;
  max-width: 40rem;
}

.speed-row {
  display: grid;
  grid-template-columns: minmax(7rem, 10.5rem) minmax(0, 1fr);
  gap: 1rem 1.75rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.speed-row:last-child {
  border-bottom: none;
}

.speed-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.speed-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.65rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.4;
}

.speed-before {
  color: #64748b;
  font-weight: 500;
}

.speed-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(1px);
}

.speed-after {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.speed-after--glow {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shift-gradient 5s linear infinite;
}

.ai-speed-arrow {
  background: linear-gradient(90deg, #94a3b8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-speed-panel {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 44rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.ai-speed-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.15), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(110, 231, 249, 0.12), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.ai-speed-slider-head,
.ai-speed-hint,
.speed-comparison--slider {
  position: relative;
  z-index: 1;
}

.ai-speed-slider-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ai-speed-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-speed-tag--muted {
  color: #94a3b8;
}

.ai-speed-tag--accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-speed-track-wrap {
  flex: 1;
  min-width: min(100%, 220px);
  position: relative;
  height: 2.75rem;
  display: flex;
  align-items: center;
}

.ai-speed-track-glow {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), rgba(167, 139, 250, 0.55), rgba(110, 231, 249, 0.5));
  filter: blur(10px);
  opacity: 0.85;
  pointer-events: none;
}

.ai-speed-range {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.35) 0%,
    rgba(167, 139, 250, 0.45) 50%,
    rgba(110, 231, 249, 0.55) 100%
  );
  border-radius: 999px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ai-speed-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #eef2f7);
  border: 2px solid rgba(167, 139, 250, 0.85);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.9);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-speed-range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(110, 231, 249, 0.55), 0 0 0 4px rgba(255, 255, 255, 0.95);
}

.ai-speed-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #eef2f7);
  border: 2px solid rgba(167, 139, 250, 0.85);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.45);
  cursor: grab;
}

.ai-speed-hint {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ai-speed-hint #ai-speed-mode-label {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-speed-hint__sub {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.speed-comparison--slider {
  padding: 0.15rem 0 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* Terminal */
.terminal-window {
  max-width: 52rem;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
}

.terminal-window__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.terminal-window__dots {
  display: flex;
  gap: 6px;
}

.terminal-window__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.terminal-window__dots i:nth-child(1) {
  background: #fb7185;
}

.terminal-window__dots i:nth-child(2) {
  background: #fbbf24;
}

.terminal-window__dots i:nth-child(3) {
  background: #34d399;
}

.terminal-window__title {
  flex: 1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.terminal-window__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  animation: terminal-pulse 2.2s ease-in-out infinite;
}

@keyframes terminal-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.terminal-window__body {
  position: relative;
  padding: 1.25rem 1.35rem 1.5rem;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.96) 100%);
  min-height: 14rem;
}

.terminal-window__pre {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.72rem, 1.35vw, 0.84rem);
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-window__pre code {
  color: inherit;
}

.terminal-caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: #6ee7f9;
  border-radius: 1px;
  animation: terminal-blink 1s step-end infinite;
}

@keyframes terminal-blink {
  50% {
    opacity: 0;
  }
}

.terminal-line--cmd {
  color: #a5b4fc;
}

.terminal-line--ok {
  color: #6ee7b4;
}

.terminal-line--dim {
  color: #94a3b8;
}

/* Dev compare */
.dev-compare {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  max-width: 56rem;
  margin: 0 auto;
}

.dev-compare__switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dev-compare__btn {
  position: relative;
  z-index: 2;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  transition: color 0.25s ease;
}

.dev-compare__btn.is-active {
  color: var(--text);
}

.dev-compare__pill {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.35rem);
  height: calc(100% - 0.7rem);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
  box-shadow: 0 8px 28px rgba(167, 139, 250, 0.22);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.dev-compare--mode-ai .dev-compare__pill {
  transform: translateX(calc(100% + 0.35rem));
}

.dev-compare__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.dev-compare__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.dev-compare__card--highlight {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 16px 40px rgba(167, 139, 250, 0.15);
  background: rgba(255, 255, 255, 0.65);
}

.dev-compare--mode-classic .dev-compare__card--classic {
  opacity: 1;
  transform: scale(1.01);
}

.dev-compare--mode-classic .dev-compare__card--ai {
  opacity: 0.55;
  transform: scale(0.99);
}

.dev-compare--mode-ai .dev-compare__card--ai {
  opacity: 1;
  transform: scale(1.01);
}

.dev-compare--mode-ai .dev-compare__card--classic {
  opacity: 0.55;
  transform: scale(0.99);
}

.dev-compare__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.dev-compare__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}

.dev-compare__list li {
  margin-bottom: 0.5rem;
}

.dev-compare__list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .dev-compare__grid {
    grid-template-columns: 1fr;
  }

  .dev-compare--mode-classic .dev-compare__card--ai,
  .dev-compare--mode-ai .dev-compare__card--classic {
    opacity: 0.85;
    transform: none;
  }

  .ai-speed-slider-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-speed-tag {
    text-align: center;
  }
}

.pipeline-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pipeline-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: pipeline-sweep 6s ease-in-out infinite;
}

.pipeline {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
}

.pipeline-step {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* AI-страница: один длинный смысловой блок в карточке — перенос строк */
.page-ai [data-pipeline-typewriter] .pipeline .pipeline-step {
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  line-height: 1.6;
  max-width: min(40rem, 100%);
  text-align: center;
}

.pipeline-arrow {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: #94a3b8;
  opacity: 0.85;
}

/* AI pipeline typewriter (data-pipeline-typewriter) */
[data-pipeline-typewriter] .section-header {
  max-width: 42rem;
}

[data-pipeline-typewriter] .pipeline-tw-heading {
  min-height: 2.75em;
}

[data-pipeline-typewriter] .pipeline-tw-lead {
  min-height: 3.25em;
}

.pipeline-tw-heading.is-typing::after,
.pipeline-tw-lead.is-typing::after,
.pipeline-step.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  border-radius: 1px;
  background: linear-gradient(180deg, #6ee7f9, #a78bfa);
  animation: pipeline-tw-caret 0.85s steps(1, end) infinite;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.45);
}

@keyframes pipeline-tw-caret {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-tw-heading.is-typing::after,
  .pipeline-tw-lead.is-typing::after,
  .pipeline-step.is-typing::after {
    animation: none;
    opacity: 0.85;
  }
}

[data-pipeline-typewriter].pipeline-tw--soft-hide .section-header,
[data-pipeline-typewriter].pipeline-tw--soft-hide .pipeline-wrap {
  opacity: 0.2;
  filter: blur(1px);
  transition:
    opacity 0.4s ease,
    filter 0.4s ease;
}

[data-pipeline-typewriter] .section-header,
[data-pipeline-typewriter] .pipeline-wrap {
  transition:
    opacity 0.45s ease,
    filter 0.45s ease;
}

.final-cta {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.75rem;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.final-cta ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta li {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
}

.footer {
  padding: 2rem 0 2.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #334155;
}

.footer-cr {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.footer-year {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-name {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  background-size: 160% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  white-space: nowrap;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.85);
}

.footer-links__here {
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  color: #64748b;
  font-weight: 500;
  cursor: default;
  white-space: nowrap;
}

[data-parallax] {
  transition: transform 0.1s linear;
  will-change: transform;
}

@keyframes shift-gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes pipeline-sweep {
  0%,
  100% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
}

/* ---------- Mobile navigation ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 30;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #334155;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar--open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.topbar--open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 5.25rem;
    left: 50%;
    width: min(1120px, calc(100% - clamp(1rem, 4vw, 2rem)));
    margin: 0;
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft), 0 24px 60px rgba(15, 23, 42, 0.12);
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }

  .topbar--open .nav {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .nav > a {
    padding: 0.75rem 1rem;
    border-radius: 14px;
  }

  .nav .lang-switch {
    margin-left: 0;
    margin-top: 0.35rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .pipeline {
    justify-content: center;
    gap: 0.5rem 0.85rem;
  }

  .integrations-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .page-hero--split.page-hero--web3 .page-hero__web3-card {
    min-height: auto;
  }
}

/* Tablet: 768–1024 — home services only: 2-up + centered third */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .services-grid .service-card:nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: 28rem;
    justify-self: center;
  }

  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-gradient-text {
    animation: none;
    background-position: 50% 50%;
  }

  .pipeline-light {
    animation: none;
    opacity: 0.22;
  }

  .speed-after--glow {
    animation: none;
    background-position: 50% 50%;
  }

  .terminal-window__badge {
    animation: none;
  }

  .terminal-caret {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .section {
    padding: clamp(4.25rem, 11vw, 5.75rem) 0;
  }

  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .hero-content {
    padding: 1rem max(0.5rem, env(safe-area-inset-left, 0));
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.75rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:nth-child(3):last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .speed-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 1.15rem 0;
  }

  .speed-compare {
    width: 100%;
  }

  .process-flow {
    flex-direction: column;
    gap: 0.35rem;
  }

  .process-flow__arrow {
    transform: rotate(90deg);
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .footer-cr {
    flex-wrap: nowrap;
    gap: 0.28rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .footer-year {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .footer-name {
    font-size: 0.7rem;
  }

  .footer-links {
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    max-width: 100%;
  }

  .footer-links a {
    font-size: 0.72rem;
    padding: 0.28rem 0.38rem;
  }

  .page-ai [data-pipeline-typewriter] .pipeline {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .usecase-card,
  .work-card {
    padding: 1.25rem 1.15rem;
  }

  .section-header--center {
    padding-inline: 0;
  }

  .section-lead--center {
    overflow-wrap: anywhere;
  }

  .pipeline {
    padding: 1.25rem 1rem;
  }

  .terminal-window__body {
    min-height: min(13rem, 42vh);
    padding: 1rem 1.1rem 1.35rem;
  }

  .terminal-window__chrome {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dev-compare__btn {
    min-height: 44px;
  }
}

/* ---------- Page: Web development ---------- */

.page-hero {
  min-height: min(88vh, 52rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: clamp(3rem, 8vw, 5rem);
  isolation: isolate;
  position: relative;
}

.page-hero--split {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  min-height: min(90vh, 54rem);
}

.page-hero--split .page-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: stretch;
  padding-top: 6rem;
  padding-bottom: clamp(3rem, 8vw, 5rem);
  position: relative;
  z-index: 2;
  min-height: min(88vh, 52rem);
}

.page-hero__copy {
  text-align: left;
}

.page-hero--split .page-hero__inner {
  margin: 0;
  max-width: 36rem;
  text-align: left;
}

.page-hero--split .page-hero__subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* Hero lead — matches home `.description`: lighter weight, readable body */
.page-hero__lead {
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.page-hero--split .page-hero__inner .page-hero__lead {
  margin-left: 0;
  margin-right: 0;
}

/* Web3 / AI split heroes: subtitle as readable body (aligns with Web page `.page-hero__lead`) */
.page-hero--split .page-hero__inner .subtitle.page-hero__subtitle {
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .page-hero--split .page-hero__inner .page-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero--split .page-hero__inner .subtitle.page-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.page-hero__arch {
  position: relative;
  min-height: min(48vh, 26rem);
  height: auto;
  align-self: stretch;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.web-arch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.98;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(128deg, rgba(247, 249, 252, 0.98) 0%, rgba(238, 242, 247, 0.94) 100%),
    radial-gradient(circle at 50% 20%, rgba(110, 231, 249, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(244, 114, 182, 0.1), transparent 45%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 44rem;
}

@media (max-width: 900px) {
  .page-hero--split .page-hero__layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 5.5rem;
    text-align: center;
  }

  .page-hero__copy {
    text-align: center;
  }

  .page-hero--split .page-hero__inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 40rem;
  }

  .page-hero__arch {
    min-height: min(38vh, 20rem);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

/* Web dev: performance speedometer */
.web-perf-showcase {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
}

.web-speedometer {
  text-align: center;
  position: relative;
}

.web-speedometer__svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.web-speedometer__readout {
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.web-speedometer__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.web-speedometer__slash {
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0.1em;
}

.web-speedometer__max {
  font-weight: 700;
  color: var(--muted);
  font-size: 1.1rem;
}

.web-speedometer__caption {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.web-perf-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.web-perf-metric {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.web-perf-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.web-perf-metric__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.web-perf-metric__name {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.web-perf-metric__tag {
  font-size: 0.78rem;
  color: #94a3b8;
}

.web-perf-metric__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.web-perf-metric__fill {
  display: block;
  height: 100%;
  width: calc(var(--fill, 0.9) * 100%);
  border-radius: inherit;
  background: var(--gradient);
  background-size: 150% 100%;
  transform-origin: left center;
  transform: scaleX(0.12);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.web-perf-showcase.is-in-view .web-perf-metric__fill {
  transform: scaleX(1);
}

.web-perf-metric__target {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* Integrations build cards */
.integrations-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.integration-build-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.25rem;
  overflow: hidden;
  --accent: #a78bfa;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease,
    box-shadow 0.35s ease;
  transition-delay: calc(var(--build-i, 0) * 0.1s);
}

.integration-build-card--crm {
  --accent: #38bdf8;
}

.integration-build-card--pay {
  --accent: #34d399;
}

.integration-build-card--api {
  --accent: #a78bfa;
}

.integration-build-card--analytics {
  --accent: #f472b6;
}

/* Web dev: integrations — near-opaque panel, high-contrast copy */
.page-web .integration-build-card.glass {
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.page-web .integration-build-card__label {
  color: #0f172a;
}

.page-web .integration-build-card__value {
  color: #0f172a;
  font-weight: 600;
}

.page-web .integration-build-card__log {
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.18);
}

.page-web .integration-build-card__log-line {
  color: #1e293b;
  opacity: 1;
}

.page-web .integrations-build-grid.is-built .integration-build-card__scan {
  opacity: 0.08;
}

.integrations-build-grid.is-built .integration-build-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.integration-build-card:hover {
  box-shadow: var(--shadow-glow);
}

.integration-build-card__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: integration-scan 2.8s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}

.integrations-build-grid.is-built .integration-build-card__scan {
  opacity: 1;
}

@keyframes integration-scan {
  0%,
  100% {
    background-position: 120% 50%;
  }
  50% {
    background-position: -20% 50%;
  }
}

.integration-build-card__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.integration-build-card__icon {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
  flex-shrink: 0;
}

.integration-build-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.integration-build-card__status {
  margin-left: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #059669;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
}

.integration-build-card__value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  flex-grow: 1;
}

.integration-build-card__log {
  margin-top: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.integration-build-card__log-line {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.45;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.integrations-build-grid.is-built .integration-build-card__log-line {
  opacity: 1;
  transform: translateX(0);
}

.integrations-build-grid.is-built .integration-build-card:nth-child(1) .integration-build-card__log-line:nth-child(1) {
  transition-delay: 0.35s;
}
.integrations-build-grid.is-built .integration-build-card:nth-child(1) .integration-build-card__log-line:nth-child(2) {
  transition-delay: 0.5s;
}
.integrations-build-grid.is-built .integration-build-card:nth-child(2) .integration-build-card__log-line:nth-child(1) {
  transition-delay: 0.45s;
}
.integrations-build-grid.is-built .integration-build-card:nth-child(2) .integration-build-card__log-line:nth-child(2) {
  transition-delay: 0.6s;
}
.integrations-build-grid.is-built .integration-build-card:nth-child(3) .integration-build-card__log-line:nth-child(1) {
  transition-delay: 0.55s;
}
.integrations-build-grid.is-built .integration-build-card:nth-child(3) .integration-build-card__log-line:nth-child(2) {
  transition-delay: 0.7s;
}
.integrations-build-grid.is-built .integration-build-card:nth-child(4) .integration-build-card__log-line:nth-child(1) {
  transition-delay: 0.65s;
}
.integrations-build-grid.is-built .integration-build-card:nth-child(4) .integration-build-card__log-line:nth-child(2) {
  transition-delay: 0.8s;
}

.integration-build-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)) padding-box,
    linear-gradient(120deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent)
      border-box;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.integrations-build-grid.is-built .integration-build-card::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .web-perf-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .web-perf-metrics {
    text-align: left;
  }

  .usecase-card,
  .type-card {
    min-height: auto;
  }

  .page-hero--split.page-hero--ai .page-hero__sign {
    min-height: auto;
    padding-bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .integration-build-card__scan {
    animation: none;
    opacity: 0.14;
  }

  .web-perf-metric__fill {
    transition: none;
    transform: scaleX(1);
  }
}

.page-hero__title {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  text-wrap: balance;
}

.page-hero__subtitle {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__subtitle.page-hero__lead {
  max-width: 32rem;
}

.page-section {
  scroll-margin-top: 5rem;
}

.section-header--center {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  min-width: 0;
}

.section-header--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-lead--center {
  text-align: center;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.types-grid > * {
  min-width: 0;
}

.type-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.type-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.type-card__desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  flex-grow: 1;
}

.type-card__meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.35rem;
}

.type-card__bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.type-card__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.type-card__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(167, 139, 250, 0.45);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.type-card__links a:hover {
  color: var(--text);
  text-decoration-color: rgba(110, 231, 249, 0.7);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.usecases-grid > * {
  min-width: 0;
}

.work-grid > * {
  min-width: 0;
}

.usecase-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}

.usecase-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.usecase-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-grow: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.work-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  height: 100%;
}

.work-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.work-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-top: auto;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

.work-card__link:hover {
  color: var(--text);
}

/* ---------- Web: блок «Selected work» / «Избранные проекты» — hover + ::after (scroll-in см. после глобального reveal) ---------- */
.page-web #work .work-card {
  position: relative;
  z-index: 0;
}

.page-web #work .work-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 2px);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    130deg,
    rgba(110, 231, 249, 0.22),
    rgba(167, 139, 250, 0.18),
    rgba(244, 114, 182, 0.14)
  );
  filter: blur(18px);
  transform: scale(0.96);
  transition: opacity 0.38s var(--ease-premium), transform 0.38s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .page-web #work .work-card.hover-lift:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow:
      0 14px 32px rgba(15, 23, 42, 0.1),
      0 8px 20px -4px rgba(167, 139, 250, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.9),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.94);
  }

  .page-web #work .work-card.hover-lift:hover::after {
    opacity: 0.42;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-web main > section#work[data-work-cards-reveal] .work-card.glass {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-web main > section#work[data-work-cards-reveal] .work-grid > .work-card {
    transition-delay: 0s !important;
  }

  .page-web #work .work-card::after {
    display: none;
  }

  .page-web #work .work-card.hover-lift:hover {
    transform: none;
  }
}

.integrations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.integrations-list li {
  display: grid;
  grid-template-columns: minmax(5rem, 8rem) 1fr;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  align-items: baseline;
}

.integrations-list li:last-child {
  border-bottom: none;
}

.integrations-list__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.integrations-list__value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

.process-flow__step {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.process-flow__arrow {
  font-weight: 700;
  font-size: 1.25rem;
  color: #94a3b8;
  line-height: 1;
}

.final-cta__lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}






.marquee-section {
  overflow: hidden;
  padding: 100px 0;
  position: relative;
z-index: 1;
}

.marquee-row {
  overflow: hidden;
  white-space: nowrap;
  margin: 20px 0;
}

.marquee-track {
  display: inline-flex;
  gap: 60px;
  will-change: transform;
}

.marquee-track span {
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 800;
  letter-spacing: -0.02em;

  background: linear-gradient(
    135deg,
    rgba(110,231,249,0.5),
    rgba(167,139,250,0.5),
    rgba(244,114,182,0.5)
  );

  -webkit-background-clip: text;
  color: transparent;
}

/* глубина */
.marquee-row:nth-child(1) span {
  opacity: 0.5;
}

.marquee-row:nth-child(2) span {
  opacity: 0.43;
}

.marquee-auto {
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}

.marquee-line {
  overflow: hidden;
  white-space: nowrap;
  margin: 20px 0;
}

.marquee-content {
  display: inline-flex;
  animation: marqueeMove 45s linear infinite;
}

.marquee-line.reverse .marquee-content {
  animation-direction: reverse;
}

.marquee-content span {
  font-size: clamp(18px, 2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-right: 60px;

  background: linear-gradient(
    135deg,
    rgba(110,231,249,0.5),
    rgba(167,139,250,0.5),
    rgba(244,114,182,0.5)
  );

  -webkit-background-clip: text;
  color: transparent;
}

@keyframes marqueeMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
  }
}

.marquee-auto::before,
.marquee-auto::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-auto::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-auto::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* ---------- Page: AI Development ---------- */

.page-hero--ai .page-hero__bg {
  background:
    linear-gradient(135deg, rgba(247, 249, 252, 0.97) 0%, rgba(238, 242, 247, 0.94) 100%),
    radial-gradient(ellipse 80% 50% at 85% 15%, rgba(167, 139, 250, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 70% at 10% 90%, rgba(110, 231, 249, 0.18), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.06), transparent 60%);
}

.ai-mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.page-hero--ai .page-hero__layout {
  z-index: 2;
}

.page-hero__sign {
  position: relative;
  min-height: min(48vh, 26rem);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
  letter-spacing: -0.02em;
}

.ai-sign-card {
  width: 100%;
  max-width: 22rem;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.ai-sign-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(167, 139, 250, 0.12), transparent 55%);
  pointer-events: none;
}

.ai-sign-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.ai-sign-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.ai-sign-card__net {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.ai-sign-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  position: relative;
  z-index: 1;
}

.ai-sign-card__artifact {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.ai-sign-card__hash {
  font-size: 0.78rem;
  color: #334155;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.ai-sign-card__meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.ai-sign-card__meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.ai-sign-card__meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ai-sign-card__btn {
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ai-sign-card__btn-spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(167, 139, 250, 0.25);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: ai-spin 0.7s linear infinite;
}

.ai-sign-card.is-busy .ai-sign-card__btn-text {
  opacity: 0;
}

.ai-sign-card.is-busy .ai-sign-card__btn-spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.55rem 0 0 -0.55rem;
}

.ai-sign-card.is-busy .ai-sign-card__btn {
  pointer-events: none;
}

@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-sign-card__done {
  text-align: center;
  padding-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.ai-sign-card__check {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(110, 231, 249, 0.2));
  color: #059669;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.ai-sign-card__done-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.ai-sign-card__tx {
  font-size: 0.72rem;
  color: #475569;
  word-break: break-all;
  margin: 0 0 0.35rem;
}

.ai-sign-card__latency {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.ai-sign-card__reset {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0.25rem;
}

.ai-sign-card__reset:hover {
  color: var(--text);
}

.ai-sign-card.is-done .ai-sign-card__btn {
  display: none;
}

.ai-sign-card.is-done .ai-sign-card__hash,
.ai-sign-card.is-done .ai-sign-card__meta {
  opacity: 0.45;
}

.ai-hash-river {
  position: relative;
  padding: 1.25rem 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(238, 242, 247, 0.5) 0%,
    rgba(247, 249, 252, 0.9) 50%,
    rgba(238, 242, 247, 0.5) 100%
  );
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.ai-hash-river__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.ai-hash-river__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.ai-hash-river__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.ai-hash-river__row {
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.ai-hash-river__row:last-child {
  margin-bottom: 0;
}

.ai-hash-river__track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: ai-hash-drift 55s linear infinite;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.72rem;
  opacity: 0.85;
}

.ai-hash-river__row--b .ai-hash-river__track {
  animation-duration: 72s;
  animation-direction: reverse;
}
.ai-hash-river__row--c .ai-hash-river__track {
  animation-duration: 48s;
}
.ai-hash-river__row--d .ai-hash-river__track {
  animation-duration: 62s;
  animation-direction: reverse;
}

@keyframes ai-hash-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ai-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.ai-build-grid > * {
  min-width: 0;
}

.ai-feature-card {
  padding: 1.65rem 1.7rem;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius-lg);
}

.ai-feature-card__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6ee7f9, #a78bfa);
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.28);
  transition:
    transform var(--dur-fast) var(--ease-premium),
    box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ai-feature-card:hover .ai-feature-card__mark {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 14px 34px rgba(167, 139, 250, 0.42);
  }
}

.ai-feature-card__mark--b {
  background: linear-gradient(135deg, #a78bfa, #f472b6);
}

.ai-feature-card__mark--c {
  background: linear-gradient(135deg, #34d399, #6ee7f9);
}

.ai-feature-card__mark--d {
  background: linear-gradient(135deg, #f472b6, #fbbf24);
}

.ai-feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.ai-feature-card__desc {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
  margin-top: auto;
}

.ai-results-panel {
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
}

.ai-stack-grid {
  max-width: 52rem;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .ai-hash-river__track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
  }

  .ai-sign-card__btn-spinner {
    animation: none;
    border-color: rgba(167, 139, 250, 0.45);
  }
}

/* ---------- Page: Web3 Development (landing) ---------- */

.page-hero--web3 .page-hero__bg {
  background: linear-gradient(
    145deg,
    rgba(247, 249, 252, 1) 0%,
    rgba(238, 242, 247, 0.98) 50%,
    rgba(247, 249, 252, 1) 100%
  );
}

.page-hero--web3 .page-hero__layout {
  z-index: 2;
}

.page-hero__web3-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(48vh, 26rem);
  align-self: stretch;
}

.web3-hero-panel {
  width: 100%;
  max-width: 22rem;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.15rem;
  position: relative;
  overflow: hidden;
}

.web3-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.15), transparent 45%);
  pointer-events: none;
}

.web3-hero-panel__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.web3-hero-panel__live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
  animation: web3-pulse-live 2s ease-in-out infinite;
}

@keyframes web3-pulse-live {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.web3-hero-panel__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.web3-hero-panel__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.web3-hero-panel__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.web3-hero-panel__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.web3-hero-panel__spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.web3-hero-panel__spark span {
  flex: 1;
  min-height: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.5), rgba(110, 231, 249, 0.65));
  animation: web3-spark-bar 1.4s ease-in-out infinite;
}

.web3-hero-panel__spark span:nth-child(1) {
  height: 35%;
  animation-delay: 0s;
}
.web3-hero-panel__spark span:nth-child(2) {
  height: 55%;
  animation-delay: 0.1s;
}
.web3-hero-panel__spark span:nth-child(3) {
  height: 45%;
  animation-delay: 0.2s;
}
.web3-hero-panel__spark span:nth-child(4) {
  height: 70%;
  animation-delay: 0.05s;
}
.web3-hero-panel__spark span:nth-child(5) {
  height: 50%;
  animation-delay: 0.15s;
}
.web3-hero-panel__spark span:nth-child(6) {
  height: 80%;
  animation-delay: 0.1s;
}
.web3-hero-panel__spark span:nth-child(7) {
  height: 60%;
  animation-delay: 0.2s;
}
.web3-hero-panel__spark span:nth-child(8) {
  height: 90%;
  animation-delay: 0.08s;
}

@keyframes web3-spark-bar {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.85;
  }
  50% {
    transform: scaleY(1.15);
    opacity: 1;
  }
}

.web3-hero-panel__hint {
  margin: 0;
  font-size: 0.65rem;
  color: #94a3b8;
  position: relative;
  z-index: 1;
}

.web3-tx-river {
  position: relative;
  padding: 1.1rem 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(238, 242, 247, 0.55) 0%,
    rgba(247, 249, 252, 0.92) 100%
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.web3-tx-river__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.web3-tx-river__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.web3-tx-river__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.web3-tx-river__row {
  margin-bottom: 0.45rem;
  overflow: hidden;
}

.web3-tx-river__row:last-child {
  margin-bottom: 0;
}

.web3-tx-river__track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: web3-tx-drift 48s linear infinite;
  white-space: nowrap;
  color: #64748b;
  font-size: 0.72rem;
  opacity: 0.88;
}

.web3-tx-river__row--b .web3-tx-river__track {
  animation-duration: 62s;
  animation-direction: reverse;
}

@keyframes web3-tx-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section--compact {
  padding-top: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.web3-crypto-strip {
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.web3-crypto-strip__label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.web3-crypto-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.web3-crypto-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.25s ease;
}

.web3-crypto-icon:hover {
  transform: translateY(-4px);
}

.web3-crypto-icon__svg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.web3-crypto-icon__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.web3-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
  align-items: stretch;
}

.web3-pillar-grid > * {
  min-width: 0;
}

.web3-pillar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1.5rem 1.55rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.web3-pillar__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.web3-pillar h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.web3-pillar p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.web3-chart-card {
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1rem;
  overflow: hidden;
}

.web3-chart-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.web3-chart-card__pair {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.web3-chart-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.web3-chart-card__canvas-wrap {
  position: relative;
  width: 100%;
  height: min(220px, 42vw);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(238, 242, 247, 0.5) 100%
  );
  border: 1px solid rgba(15, 23, 42, 0.06);
}

#web3-chart-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.web3-chart-card__footnote {
  margin: 0.65rem 0 0;
  font-size: 0.65rem;
  color: #94a3b8;
  text-align: center;
}

.web3-stack-wide {
  max-width: 52rem;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.web3-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, rgba(110, 231, 249, 0.35), rgba(167, 139, 250, 0.4));
  color: #0f172a;
}

.web3-card--accent-b .web3-card__icon-wrap {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(244, 114, 182, 0.35));
}

.web3-card--accent-c .web3-card__icon-wrap {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.35), rgba(110, 231, 249, 0.4));
}

.web3-card--accent-d .web3-card__icon-wrap {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(244, 114, 182, 0.3));
}

.web3-card__icon {
  width: 24px;
  height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .web3-tx-river__track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
  }

  .web3-hero-panel__live,
  .web3-hero-panel__spark span {
    animation: none;
  }
}

/* ---------- Page: Web3 Development ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  align-items: stretch;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.web3-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.web3-card {
  padding: 1.65rem 1.7rem;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.web3-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.web3-card__desc {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
  margin-top: auto;
}

.web3-final-cta {
  text-align: center;
}

/* Large desktop: slightly wider measure, aligned chrome */
@media (min-width: 1440px) {
  .container {
    width: min(1200px, calc(100% - clamp(2rem, 5vw, 4rem)));
  }

  .topbar {
    width: min(1200px, calc(100% - clamp(1.25rem, 4vw, 2.5rem)));
  }
}

/* Laptop: consistent inter-card rhythm */
@media (min-width: 1024px) and (max-width: 1439px) {
  .services-grid,
  .usecases-grid,
  .approach-grid {
    gap: 1.2rem;
  }
}

/* Card grids: one column ≤1023px — rules live here so they win over later base grid definitions */
@media (max-width: 1023px) {
  .web3-pillar-grid,
  .usecases-grid,
  .work-grid,
  .integrations-build-grid,
  .web3-build-grid,
  .ai-build-grid {
    grid-template-columns: 1fr;
  }

  .usecases-grid .usecase-card:nth-child(3):last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

/* =============================================================================
   Premium polish — micro-interactions, scroll reveals, hero entrance
   (layout/structure unchanged; respects prefers-reduced-motion via .reduce-ui-motion)
   ============================================================================= */

@keyframes dart-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

html:not(.reduce-ui-motion) body.site-ui-ready .hero .hero-content > *,
html:not(.reduce-ui-motion) body.site-ui-ready .page-hero__inner > * {
  animation: dart-fade-up 0.62s var(--ease-premium) both;
}

html:not(.reduce-ui-motion) body.site-ui-ready .hero .hero-content > *:nth-child(1),
html:not(.reduce-ui-motion) body.site-ui-ready .page-hero__inner > *:nth-child(1) {
  animation-delay: 0.03s;
}
html:not(.reduce-ui-motion) body.site-ui-ready .hero .hero-content > *:nth-child(2),
html:not(.reduce-ui-motion) body.site-ui-ready .page-hero__inner > *:nth-child(2) {
  animation-delay: 0.09s;
}
html:not(.reduce-ui-motion) body.site-ui-ready .hero .hero-content > *:nth-child(3),
html:not(.reduce-ui-motion) body.site-ui-ready .page-hero__inner > *:nth-child(3) {
  animation-delay: 0.15s;
}
html:not(.reduce-ui-motion) body.site-ui-ready .hero .hero-content > *:nth-child(4),
html:not(.reduce-ui-motion) body.site-ui-ready .page-hero__inner > *:nth-child(4) {
  animation-delay: 0.2s;
}
html:not(.reduce-ui-motion) body.site-ui-ready .hero .hero-content > *:nth-child(5),
html:not(.reduce-ui-motion) body.site-ui-ready .page-hero__inner > *:nth-child(5) {
  animation-delay: 0.25s;
}
html:not(.reduce-ui-motion) body.site-ui-ready .hero .hero-content > *:nth-child(6),
html:not(.reduce-ui-motion) body.site-ui-ready .page-hero__inner > *:nth-child(6) {
  animation-delay: 0.3s;
}

/* Subtle focal glow behind hero copy (does not affect layout) */
.hero .hero-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 35%;
  width: min(120%, 36rem);
  height: min(70%, 14rem);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(167, 139, 250, 0.14) 0%,
    rgba(110, 231, 249, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-orb {
    animation: none;
    opacity: 0.34;
  }

  body.site-ui-ready .hero .hero-content > *,
  body.site-ui-ready .page-hero__inner > * {
    animation: none !important;
  }
}

html.reduce-ui-motion main > section:not(.hero):not(.page-hero) .glass,
html.reduce-ui-motion main > section:not(.hero):not(.page-hero) .section-header {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Scroll-driven section reveals: content below the fold */
main > section:not(.hero):not(.page-hero):not(.section-inview) .glass,
main > section:not(.hero):not(.page-hero):not(.section-inview) .section-header {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.45s var(--ease-premium),
    transform 0.5s var(--ease-premium);
}

main > section:not(.hero):not(.page-hero).section-inview .glass,
main > section:not(.hero):not(.page-hero).section-inview .section-header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/*
 * Selected work: класс .work-cards--visible вешает script.js.
 * Без него глобальное `main > section.section-inview .glass { opacity:1 }` срабатывает
 * одновременно с появлением секции и «съедает» видимый transition.
 */
.page-web main > section#work[data-work-cards-reveal] .work-card.glass {
  transition:
    opacity 0.72s var(--ease-premium),
    transform 0.75s var(--ease-premium),
    box-shadow 0.45s var(--ease-premium),
    border-color 0.35s ease;
}

.page-web main > section#work[data-work-cards-reveal]:not(.work-cards--visible) .work-card.glass {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.page-web main > section#work[data-work-cards-reveal].work-cards--visible .work-card.glass {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-web main > section#work[data-work-cards-reveal].work-cards--visible .work-grid > .work-card:nth-child(1) {
  transition-delay: 0s;
}
.page-web main > section#work[data-work-cards-reveal].work-cards--visible .work-grid > .work-card:nth-child(2) {
  transition-delay: 0.14s;
}
.page-web main > section#work[data-work-cards-reveal].work-cards--visible .work-grid > .work-card:nth-child(3) {
  transition-delay: 0.28s;
}
.page-web main > section#work[data-work-cards-reveal].work-cards--visible .work-grid > .work-card:nth-child(4) {
  transition-delay: 0.42s;
}

/* Staggered grid reveals (fast, responsive steps) */
main > section.section-inview .services-grid > *:nth-child(1),
main > section.section-inview .approach-grid > *:nth-child(1),
main > section.section-inview .types-grid > *:nth-child(1),
main > section.section-inview .usecases-grid > *:nth-child(1),
main > section.section-inview .work-grid > *:nth-child(1),
main > section.section-inview .web3-pillar-grid > *:nth-child(1),
main > section.section-inview .web3-build-grid > *:nth-child(1),
main > section.section-inview .ai-build-grid > *:nth-child(1),
main > section.section-inview .integrations-build-grid > *:nth-child(1) {
  transition-delay: 0.03s;
}
main > section.section-inview .services-grid > *:nth-child(2),
main > section.section-inview .approach-grid > *:nth-child(2),
main > section.section-inview .types-grid > *:nth-child(2),
main > section.section-inview .usecases-grid > *:nth-child(2),
main > section.section-inview .work-grid > *:nth-child(2),
main > section.section-inview .web3-pillar-grid > *:nth-child(2),
main > section.section-inview .web3-build-grid > *:nth-child(2),
main > section.section-inview .ai-build-grid > *:nth-child(2),
main > section.section-inview .integrations-build-grid > *:nth-child(2) {
  transition-delay: 0.08s;
}
main > section.section-inview .services-grid > *:nth-child(3),
main > section.section-inview .approach-grid > *:nth-child(3),
main > section.section-inview .types-grid > *:nth-child(3),
main > section.section-inview .usecases-grid > *:nth-child(3),
main > section.section-inview .work-grid > *:nth-child(3),
main > section.section-inview .web3-pillar-grid > *:nth-child(3),
main > section.section-inview .web3-build-grid > *:nth-child(3),
main > section.section-inview .ai-build-grid > *:nth-child(3),
main > section.section-inview .integrations-build-grid > *:nth-child(3) {
  transition-delay: 0.13s;
}
main > section.section-inview .services-grid > *:nth-child(4),
main > section.section-inview .approach-grid > *:nth-child(4),
main > section.section-inview .types-grid > *:nth-child(4),
main > section.section-inview .usecases-grid > *:nth-child(4),
main > section.section-inview .work-grid > *:nth-child(4),
main > section.section-inview .web3-pillar-grid > *:nth-child(4),
main > section.section-inview .web3-build-grid > *:nth-child(4),
main > section.section-inview .ai-build-grid > *:nth-child(4),
main > section.section-inview .integrations-build-grid > *:nth-child(4) {
  transition-delay: 0.18s;
}
main > section.section-inview .types-grid > *:nth-child(5),
main > section.section-inview .integrations-build-grid > *:nth-child(5) {
  transition-delay: 0.23s;
}
main > section.section-inview .integrations-build-grid > *:nth-child(6) {
  transition-delay: 0.28s;
}

/* Stack grids (Web3 / AI stack blocks) */
main > section.section-inview .stack-grid > *:nth-child(1) {
  transition-delay: 0.04s;
}
main > section.section-inview .stack-grid > *:nth-child(2) {
  transition-delay: 0.09s;
}
main > section.section-inview .stack-grid > *:nth-child(3) {
  transition-delay: 0.14s;
}
main > section.section-inview .stack-grid > *:nth-child(4) {
  transition-delay: 0.19s;
}

/* Topbar: light lift on scroll implied by glass — subtle link motion */
@media (hover: hover) and (pointer: fine) {
  .topbar .nav > a {
    transition:
      transform 0.22s var(--ease-premium),
      background-color 0.25s ease,
      color 0.25s ease;
  }

  .topbar .nav > a:hover {
    transform: translateY(-1px);
  }
}