:root {
  --bg: #070c1a;
  --surface: #0c1326;
  --card: #0f1a33;
  --card-strong: rgba(255, 255, 255, 0.06);
  --text: #e8eefc;
  --muted: #9aa5c0;
  --accent: #22d3ee;
  --accent-2: #f59e0b;
  --accent-3: #7c3aed;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 25px 70px rgba(5, 12, 34, 0.65);
  --radius: 16px;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 50;
}

.site-logo {
  font-family: "Ubuntu", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px 0;
  }
}

.page {
  position: relative;
  min-height: 100vh;
  z-index: 0;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 72px 0 120px;
  position: relative;
  overflow: hidden;
}

.bg-accents {
  position: fixed;
  inset: -120px 0 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(34, 211, 238, 0.35);
  top: -80px;
  left: -60px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(124, 58, 237, 0.32);
  right: -120px;
  top: 120px;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: rgba(245, 158, 11, 0.22);
  bottom: -80px;
  left: 20%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(44px, 6vw, 96px);
  text-align: left;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero-content {
  max-width: 540px;
  padding-top: 10px;
}

.hero-line {
  margin: 0;
  display: block;
  white-space: normal;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #e5edff;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero-lead {
  color: #cbd5f5;
  font-size: 18px;
  line-height: 1.7;
  max-width: 54ch;
  text-wrap: pretty;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .lead {
    font-size: 16px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #c7d2fe;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.cta-group.center {
  justify-content: center;
}

.btn {
  font: inherit;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #041019;
  border: none;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.hero .btn {
  padding: 14px 24px;
  font-size: 15px;
}

.microcopy {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: clamp(18px, 3.2vw, 56px);
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 26px;
  align-self: start;
  margin-top: 0;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.16), transparent 55%);
  filter: blur(20px);
  z-index: 0;
}

.hero-screenshot {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  padding: 8px;
  margin: 0;
  box-shadow: var(--shadow);
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hero-media {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 20% 0, rgba(34, 211, 238, 0.12), transparent 50%), #050b1a;
  padding: 0;
  margin: 0px;
  box-shadow: 0 40px 120px rgba(5, 12, 34, 0.7);
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050b1a;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-widgets {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}

.hero-widget {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.65));
  box-shadow: 0 22px 60px rgba(5, 12, 34, 0.55);
  backdrop-filter: blur(10px);
  min-height: 110px;
}

.widget-title {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c7d2fe;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.widget-list li {
  position: relative;
  padding-left: 16px;
}

.widget-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.carousel-widget {
  margin: 18px auto 28px;
  padding: 12px 14px;
  max-width: 760px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.35));
  box-shadow: 0 30px 80px rgba(5, 12, 34, 0.55);
}

.carousel-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050b1a;
  cursor: pointer;
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  margin: 0;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: radial-gradient(circle at 30% 30%, #e0f2fe, #38bdf8 55%, #0ea5e9);
  color: #041019;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.45);
  opacity: 0.96;
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.carousel-nav span {
  font-size: 24px;
  font-weight: 700;
}

.carousel-nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.carousel-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.carousel-caption {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #e8eefc;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.15), rgba(124, 58, 237, 0.12));
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-hint {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d8e8ff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.carousel-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.section-divider {
  width: min(1200px, 92vw);
  margin: 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), rgba(124, 58, 237, 0.55), transparent);
  opacity: 0.8;
}

.section-divider::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 36px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  filter: blur(16px);
  opacity: 0.7;
}

.section--first {
  padding-top: 80px;
}

.section {
  padding: 80px 0;
}

@supports not (aspect-ratio: 1) {
  .hero-media {
    height: 0;
    padding-top: 56.25%;
  }

  .hero-video,
  .hero-video-fallback {
    position: absolute;
    inset: 0;
  }
}

.hero-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hero-mock-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: #e0faff;
  font-size: 12px;
}

.hero-mock-status {
  font-size: 12px;
  color: var(--muted);
}

.hero-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.hero-mock-row--strong {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(130deg, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.9));
}

.hero-mock-label {
  font-size: 13px;
  color: #e5edff;
}

.hero-mock-meta {
  font-size: 11px;
  color: var(--muted);
}

.hero-mock-footer {
  margin: 4px 2px 0;
  font-size: 11px;
  color: var(--muted);
}

.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.pill.accent {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.35);
  color: #c8f5ff;
}

.pill.subtle {
  background: rgba(255, 255, 255, 0.04);
}

.mock-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.row.highlight {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.15), rgba(255, 255, 255, 0.02));
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.badge.solid {
  background: rgba(34, 211, 238, 0.18);
  color: #d7f7ff;
}

.badge.line {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.stat-block {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin: 4px 0 0;
  font-weight: 600;
}

.stat-chip {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.15);
  color: #e4d9ff;
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-size: 13px;
}



.section-header {
  width: min(860px, 92vw);
  margin: 0 auto 80px;
}

.section-header.center {
  text-align: center;
}

.section-header--narrow {
  width: min(720px, 92vw);
}

.section h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 10px 0 32px;
}

.section h2,
.hero-content h1,
.hero-subtitle {
  text-wrap: balance;
}

.card-grid {
  display: grid;
  gap: 32px;
}

.card-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 170px;
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.card h3 {
  margin: 4px 0 10px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card.tall {
  min-height: 160px;
}

.card--primary {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.8));
}

.icon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.icon-dot.accent {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12);
}

.icon-dot.green {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.icon-dot.orange {
  background: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
}

.icon-dot.blue {
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.12);
}

.feature-list {
  display: grid;
  gap: 32px;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 22px 26px;
  align-items: flex-start;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.7), rgba(5, 10, 22, 0.55));
  box-shadow: 0 28px 70px rgba(5, 12, 34, 0.55);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: #f1f5ff;
}

.feature-item p {
  margin: 0;
  color: #c7d2ea;
}

.feature-marker {
  display: none;
}

.feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.deliverables {
  display: grid;
  gap: 48px;
}

.deliverable-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.deliverable-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.deliverable-body p {
  margin: 0;
  color: var(--muted);
}

.steps,
.steps.compact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Dark cards */
/* Единый фон для всех карточек / панелей */
.card,
.deliverable-item,
.step,
.pipeline-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.panel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 980px;
  margin: 20px auto 18px;
}


.node-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 80px 24px;
  align-items: center;
  margin-top: 60px;
  position: relative;
}

/* Central Rail Line */
.node-grid::before {
  content: "";
  position: absolute;
  top: 70px;
  bottom: 40px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(124, 58, 237, 0.4), rgba(34, 211, 238, 0.05));
  transform: translateX(-50%);
  z-index: 0;
}

.node-header {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 8px;
  align-self: start;
}

.node-spacer {
  /* Empty spacer for the middle column in header row */
  display: block;
}

.node-card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 25px 70px rgba(5, 12, 34, 0.65);
  backdrop-filter: blur(10px);
  z-index: 1;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 35px 80px rgba(5, 12, 34, 0.75);
}

.node-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
}

.node-card p {
  margin: 0;
  line-height: 1.6;
  color: #cbd5f5;
  font-size: 15px;
}

.node-connector {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
  position: relative;
  z-index: 2;
}

/* Horizontal connectors */
.node-pin::before,
.node-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  z-index: -1;
}

.node-pin::before {
  right: 14px;
  /* Start from pin edge */
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4));
}

.node-pin::after {
  left: 14px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), transparent);
}

/* Mobile Layout */
@media (max-width: 900px) {
  .node-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .node-grid::before {
    display: none;
  }

  .node-spacer,
  .node-connector {
    display: none;
  }

  .node-header {
    margin-bottom: 12px;
    font-size: 22px;
  }

  /* Add separation between pairs */
  .node-card:nth-of-type(even) {
    margin-bottom: 24px;
  }

  /* Slightly darker background for 'Problem' cards to distinguish? */

}

.narrative-card ul {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.narrative-card li+li {
  margin-top: 4px;
}

.panel-conclusion {
  margin: 8px auto 0;
  max-width: 820px;
  text-align: center;
  text-wrap: pretty;
}

.demo-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: stretch;
}

.demo-video {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.demo-video-inner {
  position: relative;
  border-radius: 18px;
  padding: 20px;
  min-height: 220px;
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.18), transparent 60%),
    linear-gradient(135deg, #020617, #020617);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.demo-play {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 20%, #e0f2fe, #bae6fd);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.demo-play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #020617;
  margin-left: 2px;
}

.demo-caption {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.demo-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.demo-text {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.step {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.pipeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.pipeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.7), transparent);
  opacity: 0.6;
}

.pipeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  padding: 14px 18px 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.pipeline-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.pipeline-item p {
  margin: 0;
  color: var(--muted);
}

/* Единый стиль нумерации */
.step-number,
.deliverable-badge,
.pipeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f9fafb, #bae6fd);
  border: 2px solid rgba(34, 211, 238, 0.7);
  display: grid;
  place-items: center;
  color: #020617;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  z-index: 1;
}

footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(34, 211, 238, 0.5);
  border-color: rgba(34, 211, 238, 0.6);
}

.field.full {
  grid-column: 1 / -1;
}

.form-success {
  display: none;
  margin: 12px 0 0;
  color: #bbf7d0;
  font-size: 14px;
}

.form-success.visible {
  display: block;
}

.contacts {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.contacts-title {
  margin: 0 0 8px;
  font-weight: 600;
}

.contacts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.contacts li+li {
  margin-top: 6px;
}

.muted {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  width: min(520px, 92vw);
  box-shadow: var(--shadow);
  z-index: 11;
}

.modal-card h3 {
  margin: 10px 0 14px;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.footer-intro h2 {
  margin: 10px 0 12px;
}

.footer-intro .lead {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-line {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 52px 0 92px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
  }

  .hero-content {
    max-width: 100%;
    margin-right: auto;
    text-align: left;
  }

  .hero-grid {
    text-align: left;
    gap: 40px;
  }

  /* Reset center alignment overrides from previous generic mobile styles */
  .hero-grid>* {
    justify-self: start;
    text-align: left;
  }

  .hero-visual {
    justify-content: center;
    padding-top: 24px;
  }

  .hero-stage {
    max-width: 680px;
    margin-top: 0;
  }

  .node-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .node-rail {
    display: none;
  }

  .hero-widgets {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .demo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 44px 0 78px;
  }

  .hero-grid {
    gap: 28px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    margin-bottom: 12px;
    font-size: 28px;
  }

  .section-header .lead {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .feature-list {
    gap: 20px;
  }

  .carousel-widget {
    padding: 12px;
  }

  .carousel-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-nav {
    opacity: 1;
    width: 36px;
    height: 36px;
  }

  .carousel-nav span {
    font-size: 20px;
  }

  .carousel-nav.prev {
    left: 4px;
  }

  .carousel-nav.next {
    right: 4px;
  }

  /* Node Grid Mobile Refinements */
  .node-header {
    display: none;
  }

  .node-grid {
    gap: 12px;
  }

  /* Problem Cards (3n+4) implies distinct styling */
  .node-card:nth-child(3n+4) {
    border-color: rgba(244, 63, 94, 0.4);
    background: linear-gradient(160deg, rgba(244, 63, 94, 0.05), rgba(15, 23, 42, 0.6));
    margin-bottom: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    position: relative;
    padding-top: 36px;
    border-bottom: none;
    padding-bottom: 24px;
  }

  .node-card:nth-child(3n+4)::before {
    content: "Проблема";
    position: absolute;
    top: 10px;
    left: 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fda4af;
    font-weight: 700;
  }

  /* Solution Cards (3n+6) */
  .feature-item {
    padding: 18px 20px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    max-width: 100%;
    margin-right: auto;
    text-align: left;
  }

  .hero-lead {
    padding-left: 16px;
    border-left: 2px solid var(--accent);
  }

  .hero-grid {
    text-align: left;
    gap: 48px;
  }

  .hero-grid>* {
    justify-self: start;
    text-align: left;
  }

  .hero .eyebrow {
    margin-bottom: 32px;
  }

  /* Tighter spacing for text elements */
  .hero-content h1 {
    margin-bottom: 24px;
  }

  .hero-subtitle {
    margin-bottom: 32px;
  }

  margin-bottom: 20px;
}
}