:root {
  --blue: #0f6df8;
  --blue-dark: #0757d8;
  --blue-soft: #eef5ff;
  --navy: #0f172a;
  --text: #182235;
  --muted: #5d687b;
  --line: #dfe7f2;
  --surface: #ffffff;
  --soft: #f6f9fd;
  --green: #22c55e;
  --teal: #168a8a;
  --orange: #f97316;
  --yellow: #eab308;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

.container,
.nav-shell {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 231, 242, 0.7);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-logo {
  display: block;
  width: 218px;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-links a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.nav-actions {
  justify-content: end;
  gap: 14px;
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: var(--blue);
  background: #ffffff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button-small {
  min-height: 42px;
  padding: 0 22px;
  font-size: 13px;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0874ff, #075be8);
  box-shadow: 0 12px 30px rgba(15, 109, 248, 0.22);
}

.button-outline {
  background: #ffffff;
}

.section {
  padding: 66px 0;
}

.hero {
  padding: 54px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(620px, 1.14fr);
  align-items: center;
  gap: 48px;
}

.hero-copy,
.workflow-window,
.workflow-main {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(42px, 4.35vw, 62px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 52px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.workflow-window {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 500px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
}

.workflow-image-card {
  width: 100%;
  aspect-ratio: 1.6;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.workflow-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.workflow-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #fbfcfe;
  color: #6b7485;
  font-size: 12px;
}

.n8n-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--navy);
  font-weight: 800;
}

.n8n-logo span {
  width: 24px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #f43f5e;
}

.workflow-sidebar ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-sidebar li {
  padding: 7px 9px;
  border-radius: 5px;
}

.workflow-sidebar .active {
  color: var(--blue);
  background: #eaf3ff;
  font-weight: 700;
}

.workspace-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: auto;
  border-radius: 50%;
  color: #ffffff;
  background: #6554c0;
  font-weight: 800;
}

.workflow-main {
  min-width: 0;
  overflow: hidden;
}

.workflow-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: #6b7485;
  font-size: 12px;
}

.workflow-toolbar strong {
  color: var(--navy);
  margin-right: 18px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-actions button {
  min-height: 31px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--navy);
}

.status {
  color: var(--green);
  font-weight: 700;
}

.switch {
  width: 31px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
}

.workflow-canvas {
  position: relative;
  min-height: 438px;
  overflow: hidden;
  background-image: radial-gradient(#dbe2ed 1px, transparent 1px);
  background-size: 18px 18px;
}

.workflow-svg {
  width: 100%;
  height: 438px;
}

.wire {
  fill: none;
  stroke: #8a95a8;
  stroke-width: 2.5;
}

.wire.dashed {
  stroke-dasharray: 7 6;
}

.node-sm rect,
.agent-node rect {
  fill: #ffffff;
  stroke: #8f9aad;
  stroke-width: 2;
  filter: url(#nodeShadow);
}

.node-sm text,
.round-node text {
  text-anchor: middle;
  fill: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.agent-node text:first-of-type {
  fill: var(--navy);
  font-size: 17px;
  font-weight: 800;
  text-anchor: middle;
}

.agent-node text:nth-of-type(2) {
  fill: #687286;
  font-size: 11px;
  text-anchor: middle;
}

.agent-node circle {
  fill: #8a95a8;
}

.node-bg {
  fill: #eaf1ff;
}

.node-bg.green {
  fill: #e8fbf0;
}

.node-bg.blue {
  fill: #eaf1ff;
}

.node-bg.sheets {
  fill: #e7f9ee;
}

.node-icon {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-node circle {
  fill: #f4f7fb;
  stroke: #8f9aad;
  stroke-width: 2;
}

.play-button {
  position: absolute;
  left: 22px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.play-button::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 12px auto;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #10b981;
}

.zoom-controls {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: flex;
  gap: 7px;
}

.zoom-controls span {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.section-heading h2,
.faq-contact h2 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.catalog {
  padding-top: 28px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.automation-card {
  min-height: 390px;
  padding: 40px 25px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.automation-icon-img {
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 auto 42px;
  object-fit: contain;
  border-radius: 24px;
}

.automation-card h3 {
  min-height: 56px;
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.automation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.how-it-works {
  padding-top: 8px;
  padding-bottom: 46px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  max-width: 950px;
  margin: 0 auto;
}

.step-line {
  position: absolute;
  top: 18px;
  left: 12%;
  right: 12%;
  border-top: 1px dashed #a8c8ff;
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.step-icon,
.trust-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 32px;
  font-weight: 800;
}

.step-icon-img {
  display: block;
  width: 116px;
  height: 116px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.step h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 17px;
}

.step p {
  max-width: 190px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.pricing {
  padding-top: 34px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-note {
  position: relative;
  max-width: 1060px;
  margin: 34px auto 0;
  padding: 18px 22px 18px 26px;
  border: 1px solid #bfd7ff;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 109, 248, 0.08);
  font-size: 15px;
  line-height: 1.65;
}

.pricing-note strong {
  color: var(--blue);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 46px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 18px 46px rgba(15, 109, 248, 0.13);
  animation: featuredBeat 2.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes featuredBeat {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 46px rgba(15, 109, 248, 0.13);
  }

  12% {
    transform: scale(1.018);
    box-shadow: 0 24px 62px rgba(15, 109, 248, 0.24);
  }

  24% {
    transform: scale(1);
    box-shadow: 0 18px 46px rgba(15, 109, 248, 0.13);
  }

  36% {
    transform: scale(1.012);
    box-shadow: 0 22px 56px rgba(15, 109, 248, 0.2);
  }

  48% {
    transform: scale(1);
    box-shadow: 0 18px 46px rgba(15, 109, 248, 0.13);
  }
}

.featured-ribbon {
  position: absolute;
  top: 0;
  left: -2px;
  right: -2px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 7px 7px 0 0;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.price-card h3 {
  margin: 0 0 16px;
  padding-top: 2px;
  color: var(--navy);
  text-align: center;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.price-card.featured h3 {
  padding-top: 28px;
}

.price {
  margin-bottom: 22px;
  color: var(--blue);
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.price-card p {
  min-height: 52px;
  margin: 0 0 34px;
  color: var(--navy);
  text-align: center;
  font-size: 14px;
}

.price-card ul {
  display: grid;
  gap: 13px;
  margin: 0 0 36px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.price-card li {
  color: var(--text);
  font-size: 14px;
}

.price-card li::before,
.trust-panel li::before {
  content: "\2713";
  margin-right: 12px;
  color: var(--blue);
  font-weight: 800;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
  min-height: 42px;
  font-size: 13px;
}

.trust-band {
  padding-top: 12px;
}

.trust-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 42px 60px;
  border-radius: 12px;
  background: linear-gradient(90deg, #eef6ff, #f8fbff);
}

.trust-panel article {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 22px;
  align-items: center;
}

.trust-panel article + article {
  padding-left: 60px;
  border-left: 1px solid #ced9ea;
}

.trust-icon {
  width: 88px;
  height: 88px;
  margin: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f6df8, #075be8);
}

.trust-icon-img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.trust-panel h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.trust-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-panel li,
.trust-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.trust-panel a,
.contact-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
}

.faq-contact {
  padding-top: 12px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 86px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  color: var(--navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
}

details[open] summary::after {
  transform: rotate(225deg);
}

details p {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  padding-left: 44px;
  border-left: 1px solid var(--line);
}

.contact-card p,
.contact-card span {
  display: block;
  max-width: 390px;
  color: var(--muted);
  font-size: 16px;
}

.site-footer {
  padding: 24px 0 34px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-footer .brand {
  font-size: 27px;
}

.footer-links {
  display: flex;
  gap: 42px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    justify-self: end;
    display: grid;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
  }

  .nav-toggle span {
    height: 2px;
    background: var(--navy);
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-shell.menu-open .nav-links,
  .nav-shell.menu-open .nav-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-bottom: 20px;
  }

  .hero-grid,
  .faq-grid,
  .trust-panel {
    grid-template-columns: 1fr;
  }

  .workflow-window {
    grid-template-columns: 1fr;
  }

  .workflow-image-card {
    max-width: 760px;
    margin: 0 auto;
  }

  .workflow-sidebar {
    display: none;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    gap: 24px;
  }

  .trust-panel article + article,
  .contact-card {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-shell {
    width: calc(100% - 48px);
    max-width: 1280px;
  }

  .brand {
    font-size: 23px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-grid {
    display: block;
    gap: 34px;
  }

  .hero-copy {
    width: min(100%, calc(100vw - 48px));
    margin-bottom: 34px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 33px;
  }

  .hero-copy p {
    max-width: 100%;
    margin-bottom: 30px;
    font-size: 16px;
  }

  .hero-actions,
  .nav-actions {
    flex-direction: column;
  }

  .button {
    max-width: 100%;
    width: 100%;
  }

  .workflow-window {
    min-height: auto;
  }

  .workflow-image-card img {
    width: 100%;
    max-width: 100%;
    transform: none;
    object-position: center center;
  }

  .workflow-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .workflow-canvas {
    min-height: 300px;
  }

  .workflow-svg {
    width: 720px;
    max-width: none;
    height: 300px;
    transform: translateX(-145px);
  }

  .catalog-grid,
  .steps,
  .pricing-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .automation-card {
    min-height: 0;
  }

  .steps {
    gap: 42px;
  }

  .step-line {
    display: none;
  }

  .price-card {
    padding: 38px 28px 28px;
  }

  .trust-panel {
    padding: 34px 24px;
  }

  .trust-panel article {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .site-footer p,
  .site-footer .brand {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card.featured {
    animation: none;
  }
}
