:root {
  --ink: #101612;
  --ink-soft: #1a241f;
  --muted: #65726b;
  --paper: #f6f7f1;
  --paper-strong: #ffffff;
  --line: #dde2d7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --mint: #35e0a1;
  --mint-soft: #dffbec;
  --blue: #5d78ff;
  --amber: #ffbd5a;
  --coral: #ff6f61;
  --shadow: 0 22px 70px rgba(16, 22, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(246, 247, 241, 0.82);
  border-bottom: 1px solid rgba(16, 22, 18, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(16, 22, 18, 0.14);
}

.brand-name {
  line-height: 1;
}

.site-nav {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(16, 22, 18, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(16, 22, 18, 0.06);
}

.site-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--paper);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: #ffffff;
}

.nav-toggle.icon-button {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.icon-button.dark {
  border-color: transparent;
  background: var(--ink);
  color: #ffffff;
}

.icon-button svg,
.button svg,
.scenario-tab svg,
.problem-grid svg,
.bento-card svg,
.arch-node svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 0.86fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 76% 18%, rgba(53, 224, 161, 0.3), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(93, 120, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #f8faf4 0%, #edf4eb 46%, #f7f7ef 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 22, 18, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 22, 18, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero-copy-block,
.hero-product {
  position: relative;
  z-index: 1;
}

.hero-copy-block {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0c9b69;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: 5.75rem;
  line-height: 0.96;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: 4.25rem;
  line-height: 1;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy-block p {
  max-width: 630px;
  color: #3a463f;
  font-size: clamp(1.05rem, 1.5vw, 1.23rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(16, 22, 18, 0.18);
}

.button.primary.dark-text {
  background: var(--mint);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 22, 18, 0.14);
  color: var(--ink);
}

.button.secondary.light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
  max-width: 650px;
}

.hero-proof span {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(16, 22, 18, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.hero-proof strong {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
}

.hero-product {
  padding: 16px;
  border: 1px solid rgba(16, 22, 18, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.product-topbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.product-topbar strong {
  color: var(--mint);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  margin-top: 12px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.conversation-card,
.workflow-card {
  padding: 16px;
}

.decision-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
}

.workflow-card {
  grid-column: 1 / -1;
}

.card-heading,
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-heading strong,
.console-top strong {
  color: var(--ink);
}

.message {
  margin-bottom: 10px;
  padding: 13px 14px;
  border-radius: 8px;
  line-height: 1.45;
  font-weight: 650;
}

.message.customer {
  max-width: 86%;
  background: #f0f2eb;
  color: #38413b;
}

.message.agent {
  max-width: 82%;
  margin-left: auto;
  background: var(--mint);
  color: var(--ink);
}

.mini-data,
.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-data span,
.context-grid span {
  min-width: 0;
  padding: 11px;
  border-radius: 8px;
  background: #f5f6f0;
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-data b,
.context-grid b {
  display: block;
  color: var(--ink);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.context-grid em {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.decision-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f5f6f0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.decision-item.good {
  background: var(--mint-soft);
}

.flow-step {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f3f5ef;
  color: #4e5a53;
  font-weight: 800;
}

.flow-step.active {
  background: var(--ink);
  color: #ffffff;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.logo-strip span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: #6a746d;
  font-weight: 800;
}

.logo-strip span:last-child {
  border-right: 0;
}

.section {
  scroll-margin-top: 76px;
  padding: clamp(70px, 9vw, 130px) clamp(18px, 5vw, 72px);
}

.section-copy {
  max-width: 780px;
}

.section-copy.centered {
  margin-inline: auto;
  text-align: center;
}

.problem-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.problem-grid {
  display: grid;
  gap: 14px;
}

.problem-grid article,
.bento-card,
.calculator,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(16, 22, 18, 0.05);
}

.problem-grid article {
  min-height: 160px;
  padding: 22px;
}

.problem-grid svg,
.bento-card svg {
  width: 28px;
  height: 28px;
  color: #0c9b69;
}

.bento-section {
  background: #ffffff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.bento-card {
  min-height: 250px;
  padding: 24px;
}

.bento-card.large {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(53, 224, 161, 0.18), rgba(255, 255, 255, 0.9)),
    #ffffff;
}

.bento-card.wide {
  grid-column: span 2;
  min-height: 190px;
}

.workflow-section {
  background: var(--ink);
  color: #ffffff;
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.workflow-section .eyebrow {
  color: var(--mint);
}

.workflow-section p {
  color: rgba(255, 255, 255, 0.72);
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  max-width: 430px;
}

.scenario-tab {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  cursor: pointer;
}

.scenario-tab.active {
  background: var(--mint);
  color: var(--ink);
}

.workflow-console {
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.message-stack {
  min-height: 300px;
}

.workflow-console .message.system {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
}

.workflow-console .message.customer {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.workflow-console .message.ai {
  max-width: 86%;
  margin-left: auto;
  background: var(--mint);
  color: var(--ink);
}

.workflow-console .context-grid span {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
}

.workflow-console .context-grid b,
.workflow-console .context-grid em {
  color: #ffffff;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow-steps li {
  min-height: 72px;
  position: relative;
  display: grid;
  align-content: end;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--mint);
  font-size: 0.7rem;
}

.reply-bar {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 700;
}

.sprint-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 88px);
  background: #f2f5ed;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--mint);
  font-weight: 800;
}

.timeline strong {
  font-size: 1.08rem;
}

.timeline p {
  grid-column: 2;
  margin: -10px 0 0;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  background: #ffffff;
}

.calculator {
  padding: 24px;
}

.calculator label {
  display: block;
  margin-bottom: 18px;
  font-weight: 800;
}

.calculator input[type="range"] {
  width: 100%;
  accent-color: var(--mint);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.calc-results div {
  min-height: 118px;
  padding: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.calc-results span {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
}

.calc-results small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.faq-section {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin: 34px auto 0;
}

summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1100px) {
  .hero,
  .problem-section,
  .workflow-panel,
  .sprint-section,
  .calculator-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-product {
    width: min(100%, 820px);
  }

  h1 {
    font-size: 4.75rem;
  }

  h2 {
    font-size: 3.35rem;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .nav-toggle.icon-button {
    display: inline-grid;
  }

  .site-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 8px;
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
    justify-content: center;
  }

  .hero {
    padding: 46px 18px 52px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .hero-product {
    padding: 10px;
  }

  .product-grid,
  .mini-data,
  .context-grid,
  .workflow-steps,
  .calc-results {
    grid-template-columns: minmax(0, 1fr);
  }

  .decision-card,
  .workflow-card {
    display: none;
  }

  .message.customer,
  .message.agent {
    max-width: 100%;
  }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-strip span {
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
  }

  .section {
    padding: 64px 18px;
  }

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-card,
  .bento-card.large,
  .bento-card.wide {
    grid-column: auto;
    min-height: auto;
  }

  .scenario-tabs {
    grid-template-columns: repeat(4, 128px);
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .message-stack {
    min-height: 0;
  }

  .timeline li {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .timeline p {
    grid-column: 1 / -1;
    margin: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer .button {
    width: 100%;
  }
}
