:root {
  --ink: #181818;
  --muted: #62655e;
  --paper: #f7f8f4;
  --white: #fff;
  --line: #dfe2d8;
  --lime: #e1f966;
  --soft: #edf0e7;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/24px "Manrope",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
p {
  margin: 0 0 16px;
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  text-wrap: balance;
  margin: 0 0 24px;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 60px;
  line-height: 1;
  max-width: 680px;
  background: linear-gradient(90deg, #000, #666);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
h2 {
  font-size: 48px;
  line-height: 1;
  max-width: 800px;
}
h3 {
  font-size: 24px;
  line-height: 32px;
}
h4 {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.02em;
}
small {
  font-size: 12px;
  line-height: 16px;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
summary {
  transition:
    color 0.3s var(--curve),
    background-color 0.3s var(--curve),
    border-color 0.3s var(--curve),
    transform 0.5s var(--curve);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #658000;
  outline-offset: 4px;
}
.container {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding: 96px 0;
}
section[id],
article[id] {
  scroll-margin-top: 112px;
}
.section-muted {
  background: var(--soft);
}
.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}
.section-heading p {
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 0;
}
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(1280px, calc(100% - 48px));
  margin: 16px auto 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--lime);
  border-radius: 8px;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.brand small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.top-nav a:hover,
.top-nav a[aria-current] {
  color: var(--ink);
}
.top-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 8px;
}
.header-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}
.header-cta:hover {
  background: #313131;
}
.menu-toggle {
  display: none;
}
.hero {
  padding: 80px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-text {
  font-size: 18px;
  line-height: 28px;
  max-width: 680px;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 8px 12px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.button-primary {
  background: var(--lime);
  color: var(--ink);
}
.button-primary:hover {
  background: #d6ef46;
  transform: translateY(-2px);
}
.button:active,
.header-cta:active {
  transform: scale(0.98);
}
.hero-note {
  max-width: 400px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  margin: 16px 0 32px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  line-height: 20px;
}
.hero-proof p {
  margin: 0;
  color: var(--muted);
}
.hero-proof a {
  color: var(--ink);
  font-weight: 600;
}
.hero-proof a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.assistant-map {
  min-width: 0;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
  box-shadow: 0 24px 48px #18181812;
  overflow: hidden;
}
.map-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #eee;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 24px;
}
.role-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #272727;
  border-radius: 8px;
  margin-bottom: 24px;
}
.role-picker button {
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #c5c8c0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.role-picker button:hover {
  color: var(--white);
  background: #313131;
}
.role-picker button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}
.prompt-box {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 16px;
  background: #272727;
  border: 1px solid #41433c;
  border-radius: 12px;
  min-height: 96px;
}
.role-prompt {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  max-width: 360px;
}
.workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  gap: 8px;
}
.flow-node {
  padding: 8px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  color: #ced1c9;
}
.flow-ai {
  border: 1px solid #6e7941;
  border-radius: 8px;
  background: #272727;
  color: var(--lime);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}
.flow-connector {
  width: 32px;
  height: 1px;
  background: #53574c;
  position: relative;
  overflow: visible;
}
.flow-connector i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: 0;
  opacity: 0;
}
.role-output {
  border: 1px solid #41433c;
  border-radius: 12px;
  padding: 16px;
  background: #1f1f1f;
  min-height: 224px;
}
.role-output-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.system-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.system-cloud span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  line-height: 16px;
  color: #d2d5cc;
  padding: 8px;
  background: #272727;
  border-radius: 4px;
}
.role-output-tools {
  font-size: 12px;
  line-height: 16px;
  margin: 16px 0 0;
  color: #b9bdb4;
}
.map-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9bdb4;
  font-size: 12px;
  line-height: 16px;
  padding-top: 16px;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.package-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.package-card h3 {
  font-size: 30px;
  line-height: 36px;
}
.package-card p {
  color: var(--muted);
  margin-bottom: 24px;
}
.package-card .text-link {
  margin-top: auto;
}
.package-card.is-featured {
  background: var(--lime);
  border-color: var(--lime);
}
.package-card.is-featured p {
  color: #424a29;
}
.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: #627000;
}
.proof-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-strip > p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.proof-strip > p span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  font-weight: 400;
}
.proof-strip > a {
  display: grid;
  gap: 8px;
}
.proof-strip > a strong {
  font-size: 36px;
  line-height: 40px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.proof-strip > a span {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.proof-strip > a:hover strong {
  color: #627000;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  min-width: 0;
  padding: 8px;
  background: var(--white);
  border-radius: 16px;
}
.feature-visual {
  height: 224px;
  padding: 24px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.task-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
}
.feature-copy {
  padding: 24px 16px 16px;
}
.feature-copy h3 {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 16px;
}
.feature-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}
.visual-code {
  background: #1f1f1f;
  color: #fff;
  border-color: #313131;
}
.code-line {
  font-size: 12px;
  line-height: 20px;
  padding: 8px;
  background: #272727;
  border-radius: 4px;
}
.code-line > span {
  margin-right: 12px;
  color: #b0b4a8;
}
.doc-sources {
  display: flex;
  gap: 8px;
}
.doc-sources > span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
  line-height: 16px;
}
.doc-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #edf0e7;
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
}
.doc-result strong {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.doc-result small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.visual-note {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  margin: 24px 0 0;
}
#cases .section-heading {
  max-width: 900px;
}
.pattern-intro {
  display: flex;
  align-items: start;
  gap: 32px;
  padding: 24px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pattern-intro > strong {
  font-size: 14px;
  line-height: 20px;
  width: 200px;
  flex-shrink: 0;
}
.pattern-intro p {
  max-width: 800px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin: 0;
}
.case-grid {
  display: grid;
  gap: 16px;
}
.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  row-gap: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
  align-items: start;
}
.case-meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.case-status {
  font-size: 12px;
  line-height: 16px;
  padding: 4px 8px;
  background: var(--soft);
  border-radius: 4px;
}
.case-card h3 {
  grid-column: 1;
  font-size: 24px;
  line-height: 32px;
  max-width: 520px;
  margin: 0;
}
.case-result {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 24px;
  background: var(--paper);
  border-radius: 8px;
}
.case-result > strong {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  font-weight: 500;
}
.case-result p {
  font-size: 14px;
  line-height: 20px;
  margin: 8px 0 0;
}
.case-card details {
  grid-column: 1 / -1;
}
.case-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  list-style: none;
}
.case-card summary::-webkit-details-marker {
  display: none;
}
.case-card summary::after {
  content: "+";
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
}
.case-card details[open] > summary::after {
  content: "−";
}
.case-details {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
}
.case-details dt {
  font-weight: 600;
}
.case-details dd {
  margin: 0;
  color: var(--muted);
}
.series-heading {
  margin: 32px 0 16px;
}
.case-examples {
  padding-left: 24px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.case-examples > li {
  padding-left: 8px;
  font-size: 14px;
  line-height: 20px;
}
.case-examples p {
  margin: 8px 0 0;
}
.case-examples h4 {
  margin: 0 0 8px;
}
.example-check {
  color: var(--muted);
}
.case-footnote {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
  max-width: 900px;
  margin: 24px 0;
}
.case-footnote + .button {
  background: var(--ink);
  color: var(--white);
}
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.infra-card {
  padding: 24px;
  border: 1px solid #41433c;
  border-radius: 16px;
  background: #1f1f1f;
  min-width: 0;
}
.infra-card h3 {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.infra-card p {
  font-size: 14px;
  line-height: 20px;
  color: #b9bdb4;
  margin: 0;
}
.section-dark .section-heading p {
  color: #b9bdb4;
}
.infra-delivery {
  padding: 32px;
  background: #272727;
  border-radius: 16px;
  margin-top: 24px;
}
.infra-delivery h3 {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 16px;
}
.infra-delivery p {
  max-width: 900px;
  color: #c5c8c0;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.steps article {
  min-width: 0;
}
.steps article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--lime);
  border-radius: 50%;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 24px;
}
.steps h3 {
  margin-bottom: 16px;
}
.steps p {
  color: var(--muted);
  margin: 0;
}
.pricing-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  max-width: 800px;
  margin: 32px 0 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.faq-layout h2 {
  font-size: 36px;
  line-height: 40px;
}
.faq-list {
  display: grid;
  gap: 8px;
}
.faq-list details {
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-list details[open] > summary::after {
  content: "−";
}
.faq-list p {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin: 16px 0 0;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 96px;
  align-items: center;
}
.demo-grid h2 {
  font-size: 60px;
  line-height: 1;
}
.demo-grid > div > p {
  color: #c5c8c0;
  max-width: 560px;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 32px;
}
.demo-panel {
  padding: 32px;
  border: 1px solid #41433c;
  background: #1f1f1f;
  border-radius: 16px;
}
.demo-panel h3 {
  font-size: 30px;
  line-height: 36px;
}
.demo-panel p {
  color: #c5c8c0;
  font-size: 14px;
  line-height: 20px;
}
.demo-panel .text-link {
  color: var(--lime);
}
.site-footer {
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.footer-links {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes travel {
  0%,
  12% {
    opacity: 0;
    transform: translateX(0);
  }
  20% {
    opacity: 1;
  }
  42% {
    opacity: 0;
    transform: translateX(24px);
  }
  100% {
    opacity: 0;
    transform: translateX(24px);
  }
}
@keyframes row-check {
  0%,
  20% {
    opacity: 0.45;
    transform: translateX(-4px);
  }
  35%,
  85% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0.45;
    transform: translateX(-4px);
  }
}
@keyframes result-in {
  0%,
  25% {
    opacity: 0.4;
    transform: translateY(8px);
  }
  45%,
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.4;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: settle 0.7s var(--curve) both;
  }
  .hero-copy > *,
  .assistant-map {
    animation: settle 0.7s var(--curve) both;
  }
  .hero-copy > h1 {
    animation-delay: 0.12s;
  }
  .hero-copy > .hero-text {
    animation-delay: 0.18s;
  }
  .hero-actions {
    animation-delay: 0.24s;
  }
  .hero-note {
    animation-delay: 0.3s;
  }
  .hero-proof {
    animation-delay: 0.36s;
  }
  .assistant-map {
    animation-delay: 0.42s;
  }
  .js-motion .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 0.7s var(--curve),
      transform 0.7s var(--curve);
  }
  .js-motion .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .assistant-map.is-playing .flow-connector i {
    animation: travel 6s var(--curve) infinite;
  }
  .assistant-map.is-playing .flow-connector:nth-of-type(4) i {
    animation-delay: 1s;
  }
  .feature-card.is-playing .task-row {
    animation: row-check 6s var(--curve) infinite;
  }
  .feature-card.is-playing .task-row:nth-child(3) {
    animation-delay: 0.7s;
  }
  .feature-card.is-playing .task-row:nth-child(4) {
    animation-delay: 1.4s;
  }
  .feature-card.is-playing .code-line {
    animation: row-check 6s var(--curve) infinite;
  }
  .feature-card.is-playing .code-line:nth-child(3) {
    animation-delay: 0.8s;
  }
  .feature-card.is-playing .code-line:nth-child(4) {
    animation-delay: 1.6s;
  }
  .feature-card.is-playing .doc-result {
    animation: result-in 6s var(--curve) infinite;
  }
  .feature-card.is-playing .doc-sources span {
    animation: row-check 6s var(--curve) infinite;
  }
  .feature-card.is-playing .doc-sources span:nth-child(2) {
    animation-delay: 0.6s;
  }
  .feature-card.is-playing .doc-sources span:nth-child(3) {
    animation-delay: 1.2s;
  }
  .is-paused * {
    animation-play-state: paused !important;
  }
}
@media (min-width: 1600px) {
  h1 {
    font-size: 72px;
    line-height: 1;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .site-header {
    gap: 24px;
  }
  .top-nav {
    gap: 16px;
    font-size: 12px;
    line-height: 16px;
  }
  .hero-grid {
    gap: 32px;
  }
  h1 {
    font-size: 48px;
    line-height: 1;
  }
  .package-card {
    padding: 24px;
  }
  .package-card h3 {
    font-size: 24px;
    line-height: 32px;
  }
  .case-card {
    column-gap: 32px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .demo-grid {
    gap: 48px;
  }
  .demo-grid h2 {
    font-size: 48px;
    line-height: 1;
  }
  .faq-layout {
    gap: 32px;
  }
  .role-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .container {
    width: calc(100% - 48px);
  }
  .section {
    padding: 64px 0;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-text {
    max-width: 560px;
  }
  .hero-proof {
    margin-top: 24px;
  }
  .hero h1 {
    font-size: 60px;
    line-height: 1;
  }
  .assistant-map {
    max-width: 680px;
    width: 100%;
  }
  .role-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .role-output {
    min-height: 0;
  }
  .system-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .package-grid {
    grid-template-columns: 1fr;
  }
  .package-card {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 24px;
    padding: 24px;
  }
  .package-card h3 {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 16px;
    font-size: 30px;
    line-height: 36px;
  }
  .package-card h3 br {
    display: none;
  }
  .package-card p,
  .package-card > .text-link {
    grid-column: 1;
  }
  .proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
  }
  .proof-strip > p {
    grid-column: 1 / -1;
  }
  .proof-strip > p span {
    display: inline;
    margin-left: 16px;
  }
  .infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-card {
    padding: 24px;
  }
  .case-meta {
    grid-column: 1 / -1;
  }
  .case-card h3 {
    grid-row: 2;
    grid-column: 1;
  }
  .case-result {
    grid-row: 2;
    grid-column: 2;
    padding: 16px;
  }
  .case-status {
    display: none;
  }
  .steps {
    gap: 24px;
  }
  .steps h3 {
    font-size: 20px;
    line-height: 28px;
  }
  .steps p {
    font-size: 14px;
    line-height: 20px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .faq-layout .section-heading {
    margin-bottom: 0;
  }
  .demo-grid {
    gap: 32px;
    grid-template-columns: 1fr;
  }
  .demo-panel {
    max-width: 600px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer-caption {
    display: none;
  }
  .pattern-intro {
    display: block;
  }
  .pattern-intro > strong {
    display: block;
    width: auto;
    margin-bottom: 12px;
  }
  .case-examples {
    grid-template-columns: 1fr;
  }
  .case-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .case-details dt:not(:first-child) {
    margin-top: 16px;
  }
}
@media (max-width: 700px) {
  .site-header {
    top: 8px;
    margin-top: 8px;
    width: calc(100% - 24px);
    padding: 8px 12px;
    gap: 16px;
    isolation: isolate;
  }
  .site-header .brand {
    font-size: 18px;
    line-height: 28px;
  }
  .brand small {
    font-size: 12px;
    line-height: 16px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .header-cta {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 16px;
    min-height: 40px;
    gap: 8px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    z-index: 32;
  }
  .menu-toggle span {
    width: 16px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.5s var(--curve);
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .top-nav {
    display: none;
    position: fixed;
    top: -8px;
    left: -12px;
    right: -12px;
    height: 100dvh;
    padding: 112px 32px 48px;
    background: rgba(247, 248, 244, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    z-index: -1;
    overflow: auto;
    font-size: 30px;
    line-height: 36px;
  }
  .top-nav.is-open {
    display: flex;
  }
  .top-nav.is-open a {
    animation: settle 0.5s var(--curve) both;
  }
  .top-nav.is-open a:nth-child(2) {
    animation-delay: 60ms;
  }
  .top-nav.is-open a:nth-child(3) {
    animation-delay: 120ms;
  }
  .top-nav.is-open a:nth-child(4) {
    animation-delay: 180ms;
  }
  .top-nav.is-open a:nth-child(5) {
    animation-delay: 240ms;
  }
  .menu-open {
    overflow: hidden;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  h2 {
    font-size: 36px;
    line-height: 40px;
  }
  .hero h1 {
    font-size: 48px;
    line-height: 1;
  }
  .hero-text {
    font-size: 18px;
    line-height: 28px;
  }
  .hero-note {
    max-width: 360px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card:last-child {
    grid-column: auto;
    display: block;
  }
  .feature-visual {
    height: 224px;
  }
  .feature-copy {
    padding: 24px 16px;
  }
  .feature-copy h3 br {
    display: none;
  }
  .system-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assistant-map {
    padding: 16px;
    border-radius: 16px;
  }
  .role-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-topline {
    margin-bottom: 16px;
  }
  .workflow {
    gap: 4px;
  }
  .flow-connector {
    width: 24px;
  }
  .flow-node {
    padding: 8px 4px;
  }
  .role-picker {
    margin-bottom: 16px;
  }
  .prompt-box {
    min-height: 96px;
  }
  .case-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case-card h3,
  .case-result,
  .case-meta,
  .case-card details {
    grid-column: 1;
    grid-row: auto;
  }
  .case-card h3 {
    font-size: 24px;
    line-height: 32px;
  }
  .case-result {
    padding: 16px;
  }
  .case-card summary {
    padding-top: 0;
  }
  .case-details {
    padding: 16px;
  }
  .infra-grid {
    grid-template-columns: 1fr;
  }
  .infra-card {
    padding: 24px;
  }
  .infra-delivery {
    padding: 24px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps article {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
  }
  .steps article > span {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .steps h3 {
    grid-column: 2;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 8px;
  }
  .steps p {
    grid-column: 2;
  }
  .demo-grid h2 {
    font-size: 48px;
    line-height: 1;
  }
  .demo-panel {
    padding: 24px;
  }
  .demo-grid > div > p {
    font-size: 16px;
    line-height: 24px;
  }
  .demo-panel h3 {
    font-size: 30px;
    line-height: 36px;
  }
  .footer-inner {
    gap: 24px;
  }
  .footer-links {
    width: 100%;
    gap: 24px;
    font-size: 12px;
    line-height: 16px;
  }
  .faq-list details {
    padding: 16px;
  }
  .section-heading p {
    font-size: 16px;
    line-height: 24px;
  }
  .proof-strip {
    gap: 16px;
  }
  .proof-strip > a strong {
    font-size: 30px;
    line-height: 36px;
  }
  .proof-strip > a span {
    font-size: 12px;
    line-height: 16px;
  }
  .proof-strip > p span {
    display: block;
    margin: 8px 0 0;
  }
  .proof-strip > a br {
    display: none;
  }
  .package-card {
    column-gap: 16px;
  }
  .package-card h3 {
    font-size: 24px;
    line-height: 32px;
  }
  .package-card p {
    font-size: 14px;
    line-height: 20px;
  }
  .section {
    padding: 64px 0;
  }
  section[id],
  article[id] {
    scroll-margin-top: 96px;
  }
}
@media (max-width: 374px) {
  .container {
    width: calc(100% - 32px);
  }
  .site-header {
    gap: 8px;
  }
  .header-cta {
    font-size: 12px;
    line-height: 16px;
    gap: 4px;
    padding: 8px;
  }
  .site-header .brand {
    gap: 8px;
  }
  .site-header .brand small {
    display: none;
  }
  .site-header .brand-mark {
    width: 32px;
    height: 32px;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 40px;
  }
  .map-topline {
    flex-wrap: wrap;
  }
  .flow-node {
    font-size: 12px;
    line-height: 16px;
  }
  .flow-connector {
    width: 16px;
  }
  .hero-text {
    font-size: 16px;
    line-height: 24px;
  }
  .package-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  h2 {
    font-size: 30px;
    line-height: 36px;
  }
  .case-card {
    padding: 16px;
  }
  .role-output {
    padding: 12px;
  }
  .system-cloud {
    gap: 4px;
  }
  .system-cloud span {
    padding: 8px 4px;
  }
  .demo-grid h2 {
    font-size: 36px;
    line-height: 40px;
  }
  .proof-strip {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
}
/* Keep Russian labels readable without relying on page overflow detection. */
.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
  max-width: 640px;
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: 36px;
    line-height: 40px;
  }
  .proof-strip {
    grid-template-columns: 1fr;
  }
  .proof-strip > a {
    grid-template-columns: 64px 1fr;
    align-items: center;
  }
  .proof-strip > a br {
    display: initial;
  }
  .feature-copy h3 {
    font-size: 20px;
    line-height: 28px;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .feature-copy h3 br {
    display: initial;
  }
}
@media (max-width: 374px) {
  .hero h1 {
    font-size: 30px;
    line-height: 36px;
  }
}
.flow-connector {
  height: 8px;
  background: transparent;
  overflow: hidden;
}
.flow-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 1px;
  background: #53574c;
}
.flow-connector i {
  top: 0;
}
