.ai-chat-page main {
  gap: 0;
}

.ai-chat-page section {
  padding: 88px 0;
}

.ai-chat-page section[id] {
  scroll-margin-top: 108px;
}

.ai-chat-page .section__header {
  max-width: 860px;
  align-items: flex-start;
  text-align: left;
}

.ai-chat-page .section__subtitle {
  max-width: 780px;
  color: var(--text-secondary);
}

.ai-chat-page .section__header--wide {
  max-width: 1040px;
}

.ai-hero {
  position: relative;
  overflow: hidden;
  padding-top: 76px !important;
  background:
    radial-gradient(circle at 83% 22%, rgba(37, 211, 102, 0.1), transparent 22%),
    radial-gradient(circle at 72% 38%, rgba(255, 84, 26, 0.17), transparent 35%),
    linear-gradient(180deg, #080808 0%, var(--bg-page) 100%);
}

.ai-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 88%);
  content: "";
  pointer-events: none;
}

.ai-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.75fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.ai-hero__copy {
  min-width: 0;
}

.ai-hero__title {
  max-width: 820px;
  margin-top: 24px;
  overflow-wrap: anywhere;
}

.ai-hero__lead {
  max-width: 760px;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.65;
}

.ai-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ai-hero__actions .btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.ai-hero__note {
  max-width: 720px;
  margin-top: 22px;
  color: var(--text-disabled);
  font-size: 15px;
  line-height: 1.55;
}

.conversation-demo {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 101, 50, 0.38);
  border-radius: 28px;
  background: rgba(14, 14, 14, 0.92);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.conversation-demo::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 84, 26, 0.1);
  filter: blur(28px);
  content: "";
  pointer-events: none;
}

.conversation-demo__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 24px;
  border-bottom: var(--border-thin);
  color: var(--text-disabled);
  font-size: 13px;
}

.conversation-demo__head > div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-primary);
  font-size: 15px;
}

.conversation-demo__status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.12);
}

.conversation-demo__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 450px;
  padding: 26px;
}

.chat-line {
  max-width: 84%;
  padding: 13px 15px;
  border: var(--border-thin);
  border-radius: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.chat-line--client {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: #1d1d1d;
}

.chat-line--ai {
  align-self: flex-start;
  border-color: rgba(255, 84, 26, 0.3);
  border-bottom-left-radius: 5px;
  background: rgba(255, 84, 26, 0.09);
  color: var(--text-primary);
}

.chat-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 2px;
}

.chat-choice span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 84, 26, 0.3);
  border-radius: 999px;
  color: var(--text-accent);
  font-size: 12px;
  font-weight: 600;
}

.handoff-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(37, 211, 102, 0.26);
  border-radius: 16px;
  background: rgba(37, 211, 102, 0.07);
}

.handoff-card span {
  color: #5bdb8a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.handoff-card strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.handoff-card small {
  color: var(--text-disabled);
  font-size: 12px;
}

.ai-trust {
  padding: 0 !important;
}

.ai-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ai-trust__grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
  padding: 28px 32px;
}

.ai-trust__grid > div + div {
  border-left: var(--border-thin);
}

.ai-trust strong {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: clamp(22px, 2vw, 28px);
}

.ai-trust span {
  max-width: 280px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.ai-card {
  min-height: 220px;
  padding: 26px;
  border: var(--border-card);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 84, 26, 0.055), var(--bg-card) 45%);
}

.ai-card > span,
.journey article > span,
.process-grid article > span {
  display: block;
  margin-bottom: 36px;
  color: var(--text-accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ai-card h3,
.journey h3,
.process-grid h3,
.faq-grid h3,
.cost-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
}

.ai-card p,
.journey p,
.process-grid p,
.faq-grid p,
.scenario-card p,
.cost-card p {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

#scenarios {
  background: #070707;
}

.scenario-groups {
  display: grid;
  gap: 22px;
  margin-top: 44px;
}

.scenario-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 0;
  border: var(--border-card);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}

.scenario-group__head {
  padding: 28px;
  border-right: var(--border-thin);
  background: linear-gradient(145deg, rgba(255, 84, 26, 0.09), transparent 72%);
}

.scenario-group__head span {
  display: block;
  margin-bottom: 44px;
  color: var(--text-accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.scenario-group__head h3 {
  max-width: 210px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
}

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

.scenario-card {
  min-height: 180px;
  padding: 26px;
}

.scenario-card:nth-child(even) {
  border-left: var(--border-thin);
}

.scenario-card:nth-child(n + 3) {
  border-top: var(--border-thin);
}

.scenario-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
}

#how-it-works,
#pricing,
#faq {
  background: #070707;
}

#pricing {
  padding-bottom: 60px;
}

#process {
  padding-top: 60px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 44px;
  border: var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.journey article {
  position: relative;
  min-height: 230px;
  padding: 26px 22px;
  background: var(--bg-card);
}

.journey article + article {
  border-left: var(--border-thin);
}

.journey article:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 48px;
  right: -11px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: var(--border-thin);
  border-radius: 50%;
  background: #111;
  color: var(--text-accent);
  content: "›";
}

.channels-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.channel-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 18px 20px;
  border: var(--border-card);
  border-radius: 18px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
}

.channel-chip--featured {
  grid-column: 1 / -1;
  border-color: rgba(37, 211, 102, 0.32);
  background: rgba(37, 211, 102, 0.055);
  color: var(--text-primary);
}

.channel-chip img {
  flex: 0 0 auto;
}

.channel-chip__letter {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 84, 26, 0.35);
  border-radius: 9px;
  color: var(--text-accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.cost-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 30px;
  border: var(--border-card);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}

.cost-card--primary {
  border-color: rgba(255, 84, 26, 0.5);
  background:
    radial-gradient(circle at 75% 8%, rgba(255, 84, 26, 0.17), transparent 31%),
    var(--bg-card);
}

.cost-card__label {
  color: var(--text-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cost-card__price {
  margin: 28px 0 22px;
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.cost-card__price small {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
}

.cost-card ul {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.cost-card li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cost-card li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text-accent);
  font-weight: 700;
}

.text-link::after {
  content: "↗";
}

.technology-cost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  margin-top: 18px;
  padding: 30px;
  border: var(--border-card);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 84, 26, 0.12), transparent 26%),
    #101010;
}

.technology-cost__label,
.technology-cost__price > span {
  color: var(--text-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.technology-cost h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

.technology-cost p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.technology-cost__price {
  min-width: 245px;
  padding-left: 30px;
  border-left: var(--border-thin);
}

.technology-cost__price strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  white-space: nowrap;
}

.technology-cost__price strong small {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.technology-cost__price em {
  display: block;
  margin-top: 8px;
  color: var(--text-disabled);
  font-size: 12px;
  font-style: normal;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.process-grid article {
  min-height: 250px;
  padding: 26px;
  border: var(--border-card);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.faq-grid article {
  min-height: 170px;
  padding: 26px;
  border: var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.ai-cta {
  padding-top: 32px !important;
}

.ai-cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgba(255, 84, 26, 0.48);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 84, 26, 0.2), transparent 34%),
    linear-gradient(145deg, #17100d, #0e0e0e 58%);
}

.ai-cta__title {
  max-width: 820px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.ai-cta__panel p {
  max-width: 760px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.ai-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 250px;
}

.ai-cta__actions .btn {
  text-align: center;
  white-space: normal;
}

.ai-cta__actions .btn img {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .ai-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
    gap: 36px;
  }

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

  .journey article + article {
    border-left: 0;
  }

  .journey article {
    border-bottom: var(--border-thin);
  }

  .journey article:nth-child(3n + 2),
  .journey article:nth-child(3n + 3) {
    border-left: var(--border-thin);
  }

  .journey article::after {
    display: none !important;
  }

  .cost-card {
    min-height: 0;
    padding: 26px;
  }

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

  .cost-grid .cost-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .ai-chat-page section {
    padding: 72px 0;
  }

  .ai-hero {
    padding-top: 58px !important;
  }

  .ai-hero__grid,
  .channels-layout,
  .ai-cta__panel,
  .technology-cost {
    grid-template-columns: 1fr;
  }

  .technology-cost {
    gap: 24px;
  }

  .technology-cost__price {
    padding-top: 24px;
    padding-left: 0;
    border-top: var(--border-thin);
    border-left: 0;
  }

  .scenario-group {
    grid-template-columns: 1fr;
  }

  .scenario-group__head {
    border-right: 0;
    border-bottom: var(--border-thin);
  }

  .scenario-group__head span {
    margin-bottom: 20px;
  }

  .scenario-group__head h3 {
    max-width: none;
  }

  .conversation-demo {
    max-width: 640px;
  }

  .ai-trust__grid,
  .capability-grid,
  .cost-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-trust__grid > div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: var(--border-thin);
    border-left: 0;
  }

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

  .cost-card--primary {
    grid-column: auto;
  }

  .cost-grid .cost-card:last-child {
    grid-column: 1 / -1;
  }

  .ai-cta__actions {
    flex-direction: row;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .ai-chat-page {
    overflow-x: hidden;
  }

  .ai-chat-page section {
    padding: 58px 0;
  }

  .ai-hero {
    padding-top: 40px !important;
  }

  .ai-hero__grid {
    gap: 32px;
  }

  .ai-hero__lead {
    font-size: 17px;
    line-height: 1.58;
  }

  .ai-hero__actions,
  .ai-cta__actions {
    flex-direction: column;
  }

  .ai-hero__actions .btn,
  .ai-cta__actions .btn {
    width: 100%;
  }

  .conversation-demo__head {
    padding: 0 18px;
  }

  .conversation-demo__body {
    min-height: 420px;
    padding: 18px;
  }

  .chat-line {
    max-width: 92%;
  }

  .ai-trust__grid,
  .capability-grid,
  .journey,
  .scenario-grid,
  .channel-grid,
  .cost-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .ai-trust__grid > div,
  .ai-trust__grid > div + div,
  .ai-trust__grid > div:nth-child(3) {
    grid-column: auto;
    min-height: 0;
    border-top: var(--border-thin);
    border-left: 0;
  }

  .ai-trust__grid > div:first-child {
    border-top: 0;
  }

  .journey article,
  .journey article:nth-child(3n + 2),
  .journey article:nth-child(3n + 3) {
    min-height: 0;
    border-right: 0;
    border-bottom: var(--border-thin);
    border-left: 0;
  }

  .journey article:last-child {
    border-bottom: 0;
  }

  .scenario-card,
  .scenario-card:nth-child(even),
  .scenario-card:nth-child(n + 3) {
    min-height: 0;
    border-top: var(--border-thin);
    border-left: 0;
  }

  .scenario-card:first-child {
    border-top: 0;
  }

  .platform-plan__head {
    flex-direction: column;
  }

  .platform-plan__head em {
    max-width: none;
    text-align: left;
  }

  .cost-card--primary {
    grid-column: auto;
  }

  .cost-grid .cost-card:last-child {
    grid-column: auto;
  }

  .ai-card,
  .process-grid article,
  .faq-grid article {
    min-height: 0;
  }

  .ai-card > span,
  .journey article > span,
  .process-grid article > span {
    margin-bottom: 24px;
  }

  .cost-card {
    padding: 24px;
  }

  .ai-cta__panel {
    gap: 28px;
    padding: 28px 22px;
  }

  .ai-chat-page .header__logo img {
    width: 178px;
    height: auto;
  }

  .ai-chat-page .header__actions {
    gap: 10px;
  }

  .ai-chat-page .header__actions > .btn--primary {
    display: none;
  }
}
