/* Product-led landing direction: precise structure, graph-first composition. */

:root {
  --landing-sky: #8fd3ff;
  --landing-sky-strong: #61c2ff;
  --landing-sky-soft: rgba(143, 211, 255, 0.14);
  --landing-sky-line: rgba(143, 211, 255, 0.28);
}

.reveal-on .hero-inner > *,
.reveal-on .hero > .actions,
.reveal-on .hero > .hero-channels,
.reveal-on .hero > .hero-preview {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

body {
  background: #070809;
}

body::before,
body::after {
  opacity: 0.22;
  filter: grayscale(1) contrast(1.08);
}

.page {
  padding: 0 24px 48px;
}

.shell {
  display: flex;
  width: min(1320px, 100%);
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.shell::before {
  display: none;
}

.topbar {
  min-height: 76px;
  padding: 0;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.brand {
  font-size: 18px;
}

.brand img {
  width: 26px;
  height: 26px;
  opacity: 0.84;
}

.nav {
  gap: 2px;
}

.nav a {
  border-radius: 7px;
}

.nav .login {
  margin-left: 8px;
}

.hero {
  position: relative;
  grid-template-columns: minmax(340px, 0.72fr) minmax(620px, 1.28fr);
  grid-template-areas:
    "copy preview"
    "actions preview"
    "channels preview";
  min-height: min(690px, calc(100svh - 108px));
  column-gap: 54px;
  row-gap: 20px;
  align-content: center;
  padding: 64px 0 32px;
  overflow: visible;
}

.aurora {
  display: none;
}

.eyebrow {
  color: #8e9299;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-color: rgba(157, 190, 244, 0.72);
  background: #7ca7ec;
  box-shadow: 0 0 0 4px rgba(108, 154, 232, 0.08);
}

.hero-title-row {
  margin-top: 20px;
}

h1 {
  font-size: 148px;
  line-height: 0.84;
  color: #f7f7f7;
  background: none;
  filter: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.hero-telegram {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.28);
  background: #e9e9e9;
  box-shadow: none;
}

.lead {
  max-width: 470px;
  margin-top: 30px;
  color: #c7c9cd;
  font-size: 25px;
  line-height: 1.4;
}

.actions {
  align-self: start;
  justify-content: flex-start;
  margin-top: 4px;
}

.button {
  min-height: 44px;
  border-radius: 7px;
  background: #101113;
}

.button.primary {
  box-shadow: none;
}

.hero-channels {
  align-self: start;
  justify-content: flex-start;
  max-width: 500px;
  margin-top: 0;
}

.hero-channels span:first-child {
  width: 100%;
  margin: 0 0 2px;
  color: #646970;
  letter-spacing: 0;
}

.channel-pill {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.028);
  color: #aeb1b6;
  font-size: 12px;
  box-shadow: none;
}

.channel-pill::before {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.hero-preview {
  align-self: center;
  min-height: 520px;
  overflow: visible;
}

.preview-stage {
  width: 780px;
  height: 460px;
  transform: translateX(-8px);
  border: 1px solid rgba(143, 211, 255, 0.11);
  border-radius: 12px;
  background: #090a0c;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.preview-stage::before {
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 76%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 76%, transparent 100%);
}

.preview-stage::after {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.38);
  content: "СЦЕНАРИЙ В РАБОТЕ";
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0;
}

.preview-links path {
  stroke: rgba(119, 177, 219, 0.42);
}

.preview-links .preview-pulse {
  stroke: rgba(143, 211, 255, 0.94);
  filter: none;
}

.preview-slot,
.preview-widget {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(18, 19, 22, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: none;
}

.preview-slot {
  width: 185px;
  min-height: 94px;
  padding: 14px 15px;
  border-radius: 8px;
}

.preview-slot.start {
  top: 190px;
  left: 24px;
  width: 160px;
}

.preview-slot.agent {
  top: 75px;
  left: 210px;
  width: 185px;
}

.preview-slot.menu {
  top: 270px;
  left: 210px;
  width: 185px;
}

.preview-slot.channel {
  top: 173px;
  left: 420px;
  width: 145px;
}

.preview-slot::after {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.preview-widget {
  top: 76px;
  right: 18px;
  width: 198px;
  min-height: 310px;
  padding: 14px;
  border-radius: 9px;
}

.preview-widget-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-widget-dot {
  width: 6px;
  height: 6px;
  background: #79be91;
  opacity: 1;
}

.preview-bubble {
  margin-top: 13px;
  border-radius: 6px;
  background: #181a1e;
}

.preview-bubble.reply {
  margin-left: 28px;
  background: #202329;
}

.preview-input {
  border-radius: 7px;
}

.preview-send {
  border-radius: 5px;
}

.hero-note {
  width: 100%;
  margin-top: 0;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.note {
  min-height: 132px;
  padding: 26px 30px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.note:first-child {
  padding-left: 0;
}

.note:last-child {
  padding-right: 0;
  border-right: 0;
}

.note strong {
  font-size: 16px;
}

.note span {
  max-width: 330px;
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.5;
}

.section {
  padding: 104px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 80px;
  align-items: start;
  margin-bottom: 46px;
}

h2 {
  max-width: 640px;
  color: #f1f1f1;
  background: none;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
  -webkit-text-fill-color: currentColor;
}

.section-head p {
  max-width: 520px;
  padding-top: 8px;
  font-size: 17px;
  line-height: 1.58;
}

.grid {
  gap: 12px;
}

.card {
  min-height: 250px;
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background: #0d0e10;
  box-shadow: none;
}

.card::before {
  display: none;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--landing-sky-line);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
}

.card-label {
  margin-bottom: 64px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #6f747b;
  font-size: 11px;
}

.card h3 {
  font-size: 22px;
}

.card p {
  max-width: 330px;
  margin-top: 13px;
  font-size: 15px;
  line-height: 1.52;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step {
  display: block;
  min-height: 210px;
  padding: 28px 32px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
  border-right: 0;
}

.step::before {
  display: none;
}

.step:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.018);
}

.index {
  width: 30px;
  height: 30px;
  margin-bottom: 42px;
  border-radius: 6px;
  font-size: 11px;
}

.step h3 {
  font-size: 20px;
}

.step p {
  max-width: 330px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.3fr);
  gap: 84px;
  padding-top: 104px !important;
  color: var(--text);
  background: transparent;
}

.request-section .section-head {
  display: block;
  margin: 0;
}

.request-section .section-head p {
  max-width: 400px;
  margin-top: 24px;
}

.lead-form {
  border-radius: 8px;
  background: #0d0e10;
  box-shadow: none;
}

.lead-form::before {
  display: none;
}

.lead-field input,
.lead-field textarea {
  border-radius: 6px;
}

.lead-field span {
  letter-spacing: 0;
}

.request-section .button.primary {
  animation: none;
}

.footer {
  padding: 38px 0 24px;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-brand,
.footer-docs,
.footer-owner {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-brand:hover,
.footer-docs:hover,
.footer-owner:hover {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(320px, 0.78fr) minmax(500px, 1.22fr);
    column-gap: 20px;
  }

  .preview-stage {
    transform: translateX(-30px) scale(0.82);
  }

  h1 {
    font-size: 124px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "actions"
      "channels"
      "preview";
    min-height: auto;
    padding-top: 60px;
  }

  .hero-inner {
    max-width: 680px;
  }

  .hero-preview {
    min-height: 420px;
    margin-top: 24px;
    overflow: hidden;
  }

  .preview-stage {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.86);
    transform-origin: top center;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .request-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .page {
    padding: 0 18px 36px !important;
  }

  .topbar {
    padding-inline: 0;
  }

  .hero {
    padding-inline: 0;
  }

  .hero-note,
  .grid,
  .lead-form,
  .steps {
    grid-template-columns: 1fr;
  }

  .note,
  .note:first-child,
  .note:last-child,
  .step,
  .step:first-child,
  .step:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .note:last-child,
  .step:last-child {
    border-bottom: 0;
  }

  .card {
    min-height: 220px;
  }

  .section {
    padding: 78px 0 !important;
  }

  .request-section {
    padding-top: 78px !important;
  }
}

@media (max-width: 700px) {
  .hero-preview {
    min-height: 350px;
  }

  .preview-stage {
    transform: translateX(-50%) scale(0.72);
  }
}

@media (max-width: 620px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    padding-top: 44px;
  }

  .hero > * {
    min-width: 0;
  }

  h1 {
    font-size: 88px;
  }

  .lead {
    width: 100%;
    max-width: 100%;
    margin-top: 22px;
    font-size: 19px;
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
    text-align: center;
  }

  .actions .button.primary {
    grid-column: 1 / -1;
  }

  .hero-channels {
    width: 100%;
    max-width: 100%;
    gap: 6px;
  }

  .channel-pill {
    flex: 0 1 auto;
    min-width: 0;
  }

  .hero-preview {
    width: calc(100% + 36px);
    max-width: none;
    min-height: 280px;
    margin-top: 12px;
    margin-inline: -18px;
  }

  .preview-stage {
    transform: translateX(-50%) scale(0.56);
  }

  h2 {
    font-size: 44px;
  }

  .lead-form {
    padding: 12px;
  }
}

@media (max-width: 460px) {
  .hero-preview {
    min-height: 232px;
  }

  .preview-stage {
    transform: translateX(-50%) scale(0.46);
  }
}


@media (max-width: 360px) {
  .hero-preview {
    min-height: 204px;
  }

  .preview-stage {
    transform: translateX(-50%) scale(0.4);
  }
}

/* Sky accent pass and collision-safe hero actions. */
body {
  background: linear-gradient(180deg, #08121b 0, #07090c 520px, #070809 1000px);
}

body::before,
body::after {
  opacity: 0.25;
  filter: contrast(1.12) drop-shadow(0 0 18px rgba(143, 211, 255, 0.13));
}

.topbar {
  border-bottom-color: rgba(143, 211, 255, 0.11);
}

.eyebrow::before {
  border-color: rgba(143, 211, 255, 0.78);
  background: var(--landing-sky);
  box-shadow: 0 0 0 4px rgba(143, 211, 255, 0.09);
}

.hero-telegram {
  color: #07131b;
  border-color: rgba(143, 211, 255, 0.74);
  background: var(--landing-sky);
  box-shadow: 0 12px 34px rgba(57, 170, 240, 0.16);
}

.hero-telegram:hover {
  border-color: #c7ebff;
  background: #b6e4ff;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 490px;
  min-width: 0;
  gap: 8px;
}

.actions .button {
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
  text-align: center;
}

.actions .button.primary {
  grid-column: 1 / -1;
  color: #06131b;
  border-color: var(--landing-sky);
  background: var(--landing-sky);
  box-shadow: 0 14px 38px rgba(66, 176, 244, 0.16);
}

.actions .button.primary:hover {
  border-color: #b6e4ff;
  background: #b6e4ff;
}

.channel-pill {
  border-color: rgba(143, 211, 255, 0.1);
  background: rgba(143, 211, 255, 0.035);
}

.preview-stage {
  border-color: rgba(143, 211, 255, 0.11);
  background: #080c11;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46), 0 0 70px rgba(58, 156, 219, 0.055);
}

.preview-stage::before {
  background:
    linear-gradient(rgba(143, 211, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 255, 0.038) 1px, transparent 1px);
  background-size: 24px 24px;
}

.preview-slot.agent {
  border-left-color: var(--landing-sky);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), inset 2px 0 0 rgba(143, 211, 255, 0.7);
}

.preview-slot.channel {
  border-left-color: #70d6c6;
}

.preview-send {
  color: #07131b;
  background: var(--landing-sky);
}

.card:hover {
  border-color: var(--landing-sky-line);
}

/* === Graph background breakout === */

/* === CTA card section === */
.cta-card-section {
  padding: 40px 0 24px;
}

.cta-card {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 11, 11, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.cta-card-inner {
  padding: 32px 36px 28px;
}

.cta-card h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}

.cta-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 520px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cta-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cta-field span {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.cta-field input,
.cta-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-input, #0a0b0d);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cta-field input:focus,
.cta-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cta-field.invalid input,
.cta-field.invalid textarea {
  border-color: #e85a5a;
}

.cta-hidden {
  display: none;
}

.cta-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cta-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.4;
  cursor: pointer;
  flex: 1;
  min-width: 200px;
}

.cta-consent input {
  margin-top: 2px;
  cursor: pointer;
}

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

.cta-consent.invalid {
  color: #e85a5a;
}

.cta-submit {
  padding: 11px 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--button-text);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 160ms ease;
}

.cta-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 154, 232, 0.35);
}

.cta-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.cta-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
}

.cta-status.success { color: #6cda8e; }
.cta-status.error { color: #e85a5a; }

@media (max-width: 620px) {
  .cta-card-inner { padding: 24px 20px; }
  .cta-form-row { grid-template-columns: 1fr; }
  .cta-form-actions { flex-direction: column; align-items: stretch; }
  .cta-submit { width: 100%; }
}

.hero-preview {
  position: relative;
  z-index: 5;
}

/* === Flow section (React Flow style) === */
.flow-section {
  padding-top: 56px;
}

.flow-blocks {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 88px;
  isolation: isolate;
}

.flow-block {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.flow-connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.flow-connectors.is-ready {
  opacity: 1;
}

.flow-connector-glow,
.flow-connector-line {
  fill: none;
  stroke-linecap: round;
}

.flow-connector-glow {
  stroke: rgba(97, 194, 255, 0.08);
  stroke-width: 9;
}

.flow-connector-line {
  stroke: var(--landing-sky-line);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: flow-connector-route 18s linear infinite;
}

.flow-connector-halo {
  fill: #070809;
  stroke: rgba(143, 211, 255, 0.14);
  stroke-width: 1;
}

.flow-connector-port {
  fill: #0d1115;
  stroke: var(--landing-sky);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 7px rgba(97, 194, 255, 0.24));
}

@keyframes flow-connector-route {
  to { stroke-dashoffset: -120; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-connector-line {
    animation: none;
  }
}

.flow-block-reverse {
  grid-template-columns: 1fr 1fr;
}

.flow-block-reverse .flow-block-text {
  order: 2;
}

.flow-block-reverse .flow-block-visual {
  order: 1;
}

.flow-block-text h3 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flow-block-text p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 420px;
}

.flow-block-visual {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 11, 11, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.flow-block-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* === Resources panel === */
.flow-block-resources {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 11, 11, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.resources-panel {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resources-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(21, 23, 26, 0.6);
  transition: border-color 160ms ease;
}

.resource-item:hover {
  border-color: rgba(143, 211, 255, 0.2);
}

.resource-accent {
  width: 3px;
  height: 32px;
  border-radius: 0 2px 2px 0;
  background: rgb(var(--rgb) / 0.68);
  flex-shrink: 0;
}

.resource-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.resource-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.resource-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* === Channels grid === */
.flow-block-channels {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 11, 11, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  padding: 24px 20px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(21, 23, 26, 0.6);
  transition: border-color 160ms ease;
}

.channel-card:hover {
  border-color: rgba(143, 211, 255, 0.2);
}

.channel-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.channel-card span {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

@media (max-width: 820px) {
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Blog carousel === */
.blog-carousel-section {
  padding: 56px 0 32px;
}

.blog-carousel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.blog-carousel-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.blog-carousel-all {
  font-size: 14px;
  font-weight: 650;
  color: var(--landing-sky);
  text-decoration: none;
  transition: opacity 200ms ease;
}

.blog-carousel-all:hover {
  opacity: 0.7;
}

.blog-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.blog-carousel-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.4);
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease;
}

.blog-carousel-card:hover {
  border-color: rgba(143, 211, 255, 0.2);
  transform: translateY(-2px);
}

.blog-carousel-date {
  font-size: 12px;
  color: var(--muted-2);
  display: block;
  margin-bottom: 8px;
}

.blog-carousel-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.blog-carousel-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-2);
  margin: 0;
}

@media (max-width: 620px) {
  .blog-carousel {
    grid-template-columns: 1fr;
  }
}

.flow-block-graph {
  position: relative;
  width: 100%;
  height: 200px;
  background: #07080a;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.flow-block-graph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(143,211,255,0.12) 1px, transparent 1.2px);
  background-size: 22px 22px;
  pointer-events: none;
}

.flow-mini-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.flow-mini-edges path {
  stroke: rgba(119, 177, 219, 0.28);
  stroke-width: 1.5;
  fill: none;
}

.flow-mini-nodes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 2;
}

.flow-mini-node {
  position: relative;
  width: 170px;
  height: 78px;
  padding: 11px 12px 11px 15px;
  border-radius: 9px;
  background: rgba(21, 23, 26, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.flow-mini-node .node-accent {
  position: absolute;
  top: 6px;
  left: 0;
  bottom: 6px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: rgb(var(--slot-rgb) / 0.68);
}

.flow-mini-node .node-id {
  position: absolute;
  top: 11px;
  right: 12px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 8px;
  font-weight: 650;
}

.flow-mini-node .node-title {
  color: #f6f6f7;
  font-weight: 780;
  font-size: 13px;
  line-height: 1.1;
  margin-bottom: 6px;
  padding-right: 32px;
  height: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.flow-mini-node .node-type-chip {
  display: inline-flex;
  align-items: center;
  height: 14px;
  border: 1px solid rgb(var(--slot-rgb) / 0.1);
  border-radius: 4px;
  background: rgb(var(--slot-rgb) / 0.1);
  color: rgb(var(--slot-rgb) / 0.62);
  padding: 0 5px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 820px) {
  .flow-blocks {
    gap: 56px;
  }

  .flow-connectors {
    display: none;
  }

  .flow-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-block-reverse .flow-block-text {
    order: 1;
  }

  .flow-block-reverse .flow-block-visual {
    order: 2;
  }
}

.hero-inner {
  position: relative;
  z-index: 10;
  align-self: end;
  max-width: 490px;
  padding: 0 0 4px;
}

.actions,
.hero-channels {
  position: relative;
  z-index: 10;
}

.hero-graph-breakout {
  --graph-origin-x: 73%;
  --graph-pan-x: 0px;
  --graph-pan-y: 0px;
  --graph-grid-major: 88px;
  --graph-grid-minor: 22px;
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  margin-left: -50vw;
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  background:
    radial-gradient(ellipse 40% 50% at var(--graph-origin-x) 48%, rgba(92,151,255,0.12) 0%, rgba(92,151,255,0.06) 40%, transparent 70%),
    #07080a;
}

.hero-graph-breakout.is-dragging {
  cursor: grabbing;
}

.hero-graph-breakout::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(119,119,122,0.55) 0.5px, transparent 0.8px);
  background-position:
    calc(var(--graph-origin-x) + var(--graph-pan-x)) calc(50% + var(--graph-pan-y));
  background-size:
    var(--graph-grid-minor) var(--graph-grid-minor);
  pointer-events: none;
  z-index: 0;
}

.hero-graph-breakout::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 82% at var(--graph-origin-x) 46%, transparent 0%, rgba(7,8,10,0.08) 72%, rgba(5,5,7,0.24) 100%);
  pointer-events: none;
  z-index: 3;
}

.graph-canvas-wrap {
  position: absolute;
  top: 50%;
  left: 73%;
  width: 1300px;
  height: 600px;
  margin-left: -650px;
  margin-top: -300px;
  z-index: 1;
  will-change: transform;
}

@media (max-width: 900px) {
  .hero-inner {
    max-width: min(620px, 78%);
  }

  .hero-graph-breakout {
    --graph-origin-x: 82%;
  }


  .graph-canvas-wrap {
    left: 82%;
    opacity: 0.52;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 38%, #000 66%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.2) 38%, #000 66%);
  }
}

@media (max-width: 620px) {
  .hero-inner {
    max-width: 100%;
  }

  .hero-graph-breakout {
    --graph-origin-x: 94%;
  }

  .hero-graph-breakout::before {
    opacity: 0.72;
  }


  .graph-canvas-wrap {
    left: 94%;
    opacity: 0.14;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, #000 78%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, #000 78%);
  }
}

.graph-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

.graph-edges path {
  stroke: rgba(119,177,219,0.34);
  stroke-width: 1.5;
  fill: none;
}

.graph-edges .graph-edge-pulse {
  stroke: rgba(143,211,255,0.94);
  stroke-width: 2;
  stroke-dasharray: 8 250;
  animation: edge-flow 5s linear infinite;
}

@keyframes edge-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -258; }
}

.graph-node {
  position: absolute;
  width: 228px;
  height: 98px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(20, 22, 26, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.graph-node:hover {
  border-color: rgb(var(--slot-rgb) / 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgb(var(--slot-rgb) / 0.08);
  transform: translateY(-1px);
}

.graph-node .node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(var(--slot-rgb) / 0.9);
  box-shadow: 0 0 8px rgb(var(--slot-rgb) / 0.3);
  flex-shrink: 0;
  margin-top: 4px;
}

.graph-node .node-accent-bar {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: rgb(var(--slot-rgb) / 0.7);
}

.graph-node .node-body {
  flex: 1;
  min-width: 0;
}

.graph-node .node-id {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

.graph-node .node-title {
  color: #f4f4f5;
  font-weight: 750;
  font-size: 15px;
  line-height: 1.15;
  margin-bottom: 6px;
  padding-right: 44px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.graph-node .node-type {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: rgb(var(--slot-rgb) / 0.7);
  line-height: 1;
}

.graph-node .node-type-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(var(--slot-rgb) / 0.6);
  flex-shrink: 0;
}

.graph-node-tool {
  width: 168px;
  height: 72px;
  padding: 10px 12px 10px 14px;
}

.graph-node-tool .node-title {
  font-size: 13px;
  margin-bottom: 5px;
  padding-right: 32px;
  height: 15px;
}

.graph-node-tool .node-id {
  top: 10px;
  right: 11px;
  font-size: 8px;
}

.graph-node-tool .node-accent {
  top: 5px;
  bottom: 5px;
}

.graph-node-tool .node-type-chip {
  height: 13px;
  font-size: 8px;
  padding: 0 5px;
}
