@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --brand-font: "Science Gothic", Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  --body-font: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: #172027;
  --muted: #5d6973;
  --soft: #f4f7f9;
  --surface: #ffffff;
  --line: #dce4ea;
  --shadow: 0 18px 48px rgba(23, 32, 39, 0.1);
  color: var(--text);
  background: var(--soft);
  font-family: var(--body-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:has(body.template-landing) {
  background: #050914;
}

body {
  margin: 0;
}

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

.public-page {
  --accent: #1967d2;
  --accent-strong: #174ea6;
  --accent-soft: #e8f0fe;
  --accent-line: #bfd2f3;
  background:
    linear-gradient(90deg, rgba(25, 103, 210, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 103, 210, 0.04) 1px, transparent 1px),
    #f5f7f9;
  background-size: 44px 44px;
}

.template-profession {
  --accent: #1967d2;
  --accent-strong: #174ea6;
  --accent-soft: #eaf2ff;
  --accent-line: #bfd2f3;
}

.template-skill {
  --accent: #0f766e;
  --accent-strong: #0b5d56;
  --accent-soft: #e3f4f1;
  --accent-line: #b6ddd7;
}

.template-industry {
  --accent: #b42318;
  --accent-strong: #8f1d14;
  --accent-soft: #fff0ed;
  --accent-line: #f4c0b8;
}

.page {
  min-height: 100vh;
}

.nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 228, 234, 0.88);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
}

@supports (backdrop-filter: blur(16px)) {
  .nav {
    backdrop-filter: blur(16px);
  }
}

.brand-mark {
  align-items: baseline;
  color: #172027;
  display: inline-flex;
  font-family: var(--brand-font);
  font-variation-settings: "wdth" 120;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
}

.brand-lockup {
  align-items: start;
  color: #172027;
  display: inline-grid;
  gap: 3px;
  justify-items: start;
  line-height: 1;
}

.brand-name {
  color: #5d6973;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 .brand-mark {
  font-size: inherit;
  font-variation-settings: "wdth" 132;
}

.brand-mark-highlight {
  color: #1967d2;
}

.brand-mark-red-i {
  display: inline-block;
  margin-left: 0.03em;
  position: relative;
}

.brand-mark-red-i::after {
  clip-path: inset(0 0 68% 0);
  color: #d93025;
  content: "i";
  inset: 0;
  position: absolute;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #44515c;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
}

.nav-link:hover {
  background: #f3f6f8;
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

.nav-link.is-disabled {
  cursor: default;
  pointer-events: none;
}

.template-landing [aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

.language-link {
  color: #71808c;
}

.button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
}

.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.secondary {
  background: #ffffff;
  border: 1px solid #c9d4dc;
  color: #26323b;
}

.secondary:hover {
  border-color: #aebbc6;
}

.hero,
.catalog-hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.hero::before,
.catalog-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero > *,
.catalog-hero > * {
  position: relative;
  z-index: 1;
}

.hero {
  align-items: center;
  background:
    linear-gradient(135deg, #f8fbff 0%, #eaf2ff 46%, #eef8f1 100%);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  min-height: 600px;
  padding: 72px clamp(18px, 5vw, 72px);
}

.catalog-hero {
  align-items: start;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 58%, #f7fafc 100%);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  padding: 58px clamp(18px, 5vw, 72px) 66px;
}

.template-skill .catalog-hero {
  background: linear-gradient(135deg, #e3f4f1 0%, #f9fffd 56%, #f2f7fb 100%);
}

.template-profession .catalog-hero {
  background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 56%, #f2f7fb 100%);
}

.template-industry .catalog-hero {
  background: linear-gradient(135deg, #fff0ed 0%, #fffaf8 54%, #f3f7fb 100%);
}

.hero h1 {
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.96;
  margin: 0 0 18px;
}

.hero h2,
.catalog-hero h1 {
  color: var(--text);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  margin: 0 0 18px;
  max-width: 840px;
}

.hero h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.hero p,
.catalog-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
  margin: 0;
  max-width: 700px;
}

.eyebrow {
  align-items: center;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--accent);
  content: "";
  display: inline-block;
  height: 2px;
  width: 26px;
}

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

.hero-card,
.catalog-summary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 26px;
}

.hero-card {
  border-top: 4px solid #57b26a;
}

.catalog-summary {
  border-top: 4px solid var(--accent);
}

.catalog-summary h2,
.hero-card h2 {
  font-size: 21px;
  margin: 0;
}

.catalog-icon {
  align-items: center;
  background:
    linear-gradient(135deg, #172027 0%, #24333d 100%);
  border: 1px solid rgba(23, 32, 39, 0.2);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 96px;
}

.template-profession .catalog-icon {
  background: linear-gradient(135deg, #174ea6 0%, #1967d2 100%);
}

.template-skill .catalog-icon {
  background: linear-gradient(135deg, #0b5d56 0%, #0f766e 100%);
}

.template-industry .catalog-icon {
  background: linear-gradient(135deg, #8f1d14 0%, #b42318 100%);
}

.catalog-icon::before,
.catalog-icon::after {
  background: rgba(255, 255, 255, 0.58);
  content: "";
  height: 7px;
  position: absolute;
  right: 10px;
  width: 20px;
}

.catalog-icon::before {
  top: 14px;
}

.catalog-icon::after {
  bottom: 14px;
}

.catalog-icon span {
  font-size: 31px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.persona-card {
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 230px;
}

.persona-panel {
  align-content: start;
  justify-items: start;
}

.persona-photo {
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid var(--persona-line, var(--accent-line));
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 39, 0.12);
  display: block;
  height: 88px;
  object-fit: cover;
  object-position: center;
  width: 88px;
}

.persona-photo.large {
  height: 148px;
  width: 148px;
}

.persona-photo.tiny {
  height: 54px;
  width: 54px;
}

.persona-nora {
  --persona-accent: #1967d2;
  --persona-line: #b8cef6;
}

.persona-mira {
  --persona-accent: #0f766e;
  --persona-line: #a9d8d3;
}

.persona-ada {
  --persona-accent: #6d5dfc;
  --persona-line: #c9c2ff;
}

.persona-leo {
  --persona-accent: #b42318;
  --persona-line: #efb0a8;
}

.persona-anna {
  --persona-accent: #b42318;
  --persona-line: #efb0a8;
}

.persona-ava {
  --persona-accent: #7c3aed;
  --persona-line: #d8c8ff;
}

.persona-zara {
  --persona-accent: #d97706;
  --persona-line: #f5c989;
}

.persona-marta {
  --persona-accent: #7a5f3d;
  --persona-line: #d9c5a5;
}

.persona-ken {
  --persona-accent: #0f766e;
  --persona-line: #a9d8d3;
}

.persona-iris {
  --persona-accent: #6d5dfc;
  --persona-line: #c9c2ff;
}

.persona-finn {
  --persona-accent: #b45309;
  --persona-line: #f1c27d;
}

.persona-ruby {
  --persona-accent: #d93025;
  --persona-line: #efb0a8;
}

.persona-meta {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.persona-name {
  color: var(--persona-accent, var(--accent-strong));
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.persona-trait {
  border-left: 3px solid var(--persona-line, var(--accent-line));
  color: #3d4a53;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  padding-left: 10px;
}

.hero-card.persona-panel {
  border-top-color: var(--persona-accent, #0f766e);
}

.hero-card .persona-name,
.catalog-summary .persona-name {
  font-size: 17px;
}

.persona-mini {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.persona-mini strong {
  display: block;
}

.breadcrumb {
  align-items: center;
  color: #66737e;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  gap: 9px;
  margin-bottom: 26px;
}

.breadcrumb a {
  color: var(--accent-strong);
}

.breadcrumb span:last-child {
  color: #2b3740;
}

.section {
  padding: 58px clamp(18px, 5vw, 72px);
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 24px;
}

.section-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
  margin: -8px 0 28px;
  max-width: 860px;
}

.industry-band {
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid var(--line);
}

.template-landing #skills {
  background: linear-gradient(135deg, #172027 0%, #20313a 100%);
  color: #ffffff;
}

.template-landing #skills .eyebrow,
.template-landing #skills h2 {
  color: #ffffff;
}

.template-landing #skills .section-lead {
  color: rgba(255, 255, 255, 0.76);
}

.template-landing #skills .industry-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.catalog-grid,
.workflow-grid,
.detail-grid,
.related-grid {
  display: grid;
  gap: 16px;
}

.catalog-grid,
.workflow-grid,
.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.catalog-card,
.workflow-card,
.detail-card,
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
}

.catalog-card,
.workflow-card {
  padding: 20px;
}

.catalog-card-media,
.catalog-summary-media {
  background: #e8eef4;
  border-radius: 8px;
  overflow: hidden;
}

.catalog-card-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 4px;
}

.catalog-summary-media {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.catalog-card-photo,
.catalog-summary-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detail-card {
  border-top: 3px solid var(--accent);
  padding: 24px;
}

.related-card {
  padding: 18px;
}

.catalog-card,
.related-card {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.catalog-card:hover,
.related-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 14px 32px rgba(23, 32, 39, 0.09);
  transform: translateY(-2px);
}

.catalog-card h3,
.workflow-card h3,
.detail-card h2,
.detail-card h3,
.related-card strong {
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
}

.detail-card h2,
.detail-card h3 {
  margin-bottom: 12px;
}

.catalog-card p,
.workflow-card p,
.detail-card ul,
.related-card span {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.detail-card ul {
  padding-left: 20px;
}

.detail-card li + li {
  margin-top: 8px;
}

.related-card span {
  font-size: 13px;
  font-weight: 800;
}

.tag-list,
.industry-chip-row {
  display: flex;
  flex-wrap: wrap;
}

.tag-list {
  gap: 6px;
  margin-top: 8px;
}

.industry-chip-row {
  gap: 10px;
}

.tag,
.industry-chip {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tag {
  padding: 6px 8px;
}

.industry-chip {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #34424d;
  display: inline-flex;
  font-size: 14px;
  padding: 10px 13px;
}

.industry-chip:hover {
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

.skill-tag {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
}

.industry-tag {
  background: #e8f5ed;
  border: 1px solid #bddfc9;
  color: #137333;
}

.template-industry .industry-tag {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

.template-redirect {
  --accent: #1967d2;
  --accent-strong: #174ea6;
  --accent-soft: #eaf2ff;
  --accent-line: #bfd2f3;
}

.redirect-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: clamp(72px, 14vh, 140px) auto;
  max-width: 720px;
  padding: clamp(28px, 5vw, 48px);
}

.redirect-panel h1 {
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 18px;
}

.redirect-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
  margin: 0 0 24px;
}

.footer {
  color: #6c7882;
  font-size: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
}

.template-landing {
  --accent: #4ea1ff;
  --accent-strong: #9cc8ff;
  --accent-soft: #101f35;
  --accent-line: rgba(112, 170, 255, 0.34);
  background: #050914;
  overscroll-behavior-y: none;
}

.template-landing .page {
  background: #050914;
  min-height: 100svh;
}

.template-landing .nav {
  background: rgba(5, 11, 22, 0.9);
  border-bottom-color: transparent;
}

.template-landing .brand-mark,
.template-landing .nav-link {
  color: #eef6ff;
}

.template-landing .brand-name {
  color: rgba(238, 246, 255, 0.62);
}

.template-landing .nav-link {
  border-color: transparent;
}

.template-landing .nav-link:hover {
  background: rgba(78, 161, 255, 0.14);
  border-color: rgba(128, 175, 242, 0.28);
}

.template-landing .nav .button.secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.template-landing .nav-link:not(.language-link) {
  display: none;
}

.template-landing .footer {
  display: none;
}

.landing-chat-hero {
  align-items: center;
  background:
    radial-gradient(circle at 50% 16%, rgba(78, 161, 255, 0.12), transparent 36%),
    radial-gradient(circle at 76% 82%, rgba(217, 48, 37, 0.08), transparent 34%),
    linear-gradient(180deg, #060b15 0%, #07111f 56%, #050914 100%);
  border-bottom: 0;
  color: #f6fbff;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 920px);
  align-content: center;
  justify-content: center;
  justify-items: center;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  padding: 24px clamp(18px, 5vw, 72px) 34px;
  position: relative;
  --landing-stage-lift: 0px;
}

.landing-chat-hero::before {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025), transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.landing-chat-hero > * {
  position: relative;
  z-index: 1;
}

.landing-hero-copy {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.landing-hero-copy .eyebrow {
  color: #9cc8ff;
  margin: 0;
}

.landing-hero-copy .eyebrow::before {
  background: #d93025;
}

.landing-hero-copy h1 {
  color: #ffffff;
  font-size: 64px;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.landing-hero-copy p:not(.eyebrow) {
  color: rgba(238, 246, 255, 0.76);
  font-size: 17px;
  line-height: 1.62;
  margin: 0;
}

.landing-stage {
  display: grid;
  min-height: 326px;
  position: relative;
  transform: translateY(var(--landing-stage-lift));
  transition: transform 420ms ease;
  width: min(100%, 920px);
}

.landing-stage-panel {
  align-content: center;
  display: none;
  gap: 14px;
  justify-items: center;
  min-height: 326px;
  width: 100%;
}

.landing-stage-panel.active {
  display: grid;
}

.landing-agent-portrait-wrap {
  isolation: isolate;
  position: relative;
}

.landing-agent-portrait-wrap::before,
.landing-agent-portrait-wrap::after {
  content: none;
}

.landing-agent-portrait-wrap::after {
  content: none;
}

.landing-agent-photo {
  aspect-ratio: 1;
  background: #f6fbff;
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.34),
    0 0 60px rgba(78, 161, 255, 0.12);
  display: block;
  max-width: min(244px, 54vw);
  object-fit: cover;
  width: 100%;
}

.landing-agent-meta {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.landing-agent-meta span,
.landing-stage-heading span,
.landing-signal-card span,
.landing-employee-profile span,
.landing-process-flow span {
  color: #9cc8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-agent-meta span {
  display: none;
}

.landing-agent-meta strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.landing-agent-meta p {
  color: rgba(238, 246, 255, 0.58);
  font-size: 16px;
  margin: 0;
}

.landing-stage-heading {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.landing-stage-heading strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.12;
}

.landing-card-rail {
  display: grid;
  gap: 12px;
  grid-auto-columns: minmax(170px, 210px);
  grid-auto-flow: column;
  max-width: min(100%, 620px);
  overflow-x: auto;
  padding: 12px 4px 18px;
  scrollbar-color: rgba(156, 200, 255, 0.5) transparent;
}

.landing-signal-card,
.landing-process-flow article,
.landing-explain-flow article,
.landing-employee-profile {
  background: rgba(255, 255, 255, 0.055);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.landing-signal-card {
  align-content: start;
  color: #ffffff;
  display: grid;
  gap: 8px;
  min-height: 226px;
  padding: 14px;
}

.landing-signal-card img {
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  display: block;
  height: 78px;
  object-fit: cover;
  width: 78px;
}

.landing-signal-card img + span {
  min-height: 13px;
}

.landing-signal-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.18;
}

.landing-signal-card img ~ strong {
  min-height: 40px;
}

.landing-signal-card p {
  color: rgba(238, 246, 255, 0.68);
  font-size: 13px;
  line-height: 1.42;
  margin: 0;
}

.landing-signal-card.persona-leo,
.landing-signal-card.persona-anna {
  background: rgba(255, 255, 255, 0.07);
}

.landing-signal-card.industry-signal,
.landing-signal-card.skill-signal {
  min-height: 192px;
}

.landing-signal-card.industry-signal {
  min-height: 268px;
}

.landing-signal-card img.landing-industry-photo {
  aspect-ratio: 16 / 10;
  display: block;
  height: 96px;
  object-fit: cover;
  width: 100%;
}

.landing-signal-card.industry-signal span,
.landing-signal-card.skill-signal span {
  color: #d93025;
}

.landing-employee-profile {
  align-items: center;
  color: #ffffff;
  display: grid;
  gap: 20px;
  grid-template-columns: 180px minmax(0, 1fr);
  max-width: 620px;
  padding: 18px;
}

.landing-employee-profile img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 180px;
}

.landing-employee-profile strong {
  display: block;
  font-size: 26px;
  line-height: 1.08;
  margin: 8px 0;
}

.landing-employee-profile p {
  color: rgba(238, 246, 255, 0.72);
  line-height: 1.5;
  margin: 0;
}

.landing-skill-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.landing-skill-line a,
.landing-skill-line span {
  background: rgba(78, 161, 255, 0.13);
  border: 1px solid rgba(156, 200, 255, 0.28);
  border-radius: 999px;
  color: #eaf4ff;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 9px;
}

.landing-explain-flow,
.landing-process-flow {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

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

.landing-explain-flow article,
.landing-process-flow article {
  color: #ffffff;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px;
}

.landing-explain-flow span,
.landing-process-flow span {
  align-items: center;
  background: rgba(217, 48, 37, 0.22);
  border: 1px solid rgba(217, 48, 37, 0.34);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  letter-spacing: 0;
  width: 30px;
}

.landing-explain-flow strong,
.landing-explain-flow p,
.landing-process-flow strong,
.landing-process-flow p {
  grid-column: 2;
}

.landing-explain-flow p,
.landing-process-flow p {
  color: rgba(238, 246, 255, 0.68);
  line-height: 1.5;
  margin: 0;
}

.landing-chat-console {
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  width: min(100%, 700px);
}

.landing-chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 226px;
  min-height: 92px;
  overflow-y: auto;
  padding: 4px;
}

.landing-message {
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  max-width: min(78%, 600px);
  padding: 11px 14px;
  width: fit-content;
}

.landing-message strong {
  font-weight: 800;
}

.landing-message.agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #eef6ff;
  border-bottom-left-radius: 7px;
  text-align: left;
}

.landing-message.agent.typing::after {
  animation: landingTypingCursor 0.9s steps(2, start) infinite;
  content: "";
  border-right: 2px solid rgba(238, 246, 255, 0.7);
  margin-left: 2px;
}

.landing-message.agent.thinking {
  background: transparent;
  color: rgba(220, 236, 255, 0.36);
  display: inline-flex;
  font-size: 12px;
  gap: 1px;
  padding: 2px 4px;
}

.landing-thinking-label {
  font-weight: 650;
}

.landing-thinking-dots {
  animation: landingThinkingDots 1.1s steps(4, end) infinite;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: 0;
}

@keyframes landingTypingCursor {
  50% {
    opacity: 0;
  }
}

@keyframes landingThinkingDots {
  to {
    width: 1.1em;
  }
}

.landing-message.visitor {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-bottom-right-radius: 7px;
  color: #111827;
}

.landing-chat-form {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 40px;
  min-height: 52px;
  padding: 6px 6px 6px 18px;
}

.landing-chat-form input {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #111827;
  font-size: 16px;
  min-height: 38px;
  outline: none;
  padding: 0;
}

.landing-chat-form input::placeholder {
  color: rgba(17, 24, 39, 0.52);
}

.landing-chat-form input:focus {
  box-shadow: none;
}

.landing-chat-form button {
  align-items: center;
  background: #050914;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.landing-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
  padding: 0 10px;
}

.landing-quick-questions button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(238, 246, 255, 0.34);
  cursor: pointer;
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.28;
  min-height: 28px;
  padding: 5px 4px;
  text-align: center;
}

.landing-quick-questions button:hover {
  background: transparent;
  color: rgba(238, 246, 255, 0.72);
}

.landing-runtime-unavailable {
  background: rgba(219, 232, 249, 0.84);
  border: 1px solid rgba(132, 171, 219, 0.32);
  border-radius: 20px;
  box-shadow: 0 22px 68px rgba(4, 16, 35, 0.22);
  color: #193553;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px;
  text-align: center;
}

.landing-runtime-unavailable[hidden] {
  display: none;
}

.landing-runtime-unavailable:focus {
  outline: none;
}

.landing-runtime-unavailable span {
  color: #3f76ad;
  font-size: 12px;
  font-weight: 800;
}

.landing-runtime-unavailable strong {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.15;
}

.landing-runtime-unavailable p {
  color: rgba(31, 57, 84, 0.72);
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}

.landing-runtime-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 4px;
}

.landing-runtime-actions a,
.landing-runtime-actions button {
  align-items: center;
  background: rgba(77, 132, 194, 0.16);
  border: 0;
  border-radius: 999px;
  color: #2e639a;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: 9px 14px;
}

.landing-runtime-actions a.primary {
  background: #2e639a;
  color: #eef6ff;
}

.landing-chat-console.runtime-unavailable .landing-chat-log,
.landing-chat-console.runtime-unavailable .landing-chat-form,
.landing-chat-console.runtime-unavailable .landing-quick-questions {
  display: none;
}

@media (max-width: 860px) {
  .nav,
  .hero,
  .catalog-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .catalog-hero {
    min-height: auto;
    padding-block: 42px;
  }

  .hero-card,
  .catalog-summary {
    max-width: 520px;
  }

  .landing-chat-hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 96px);
    padding-block: 28px;
  }

  .landing-hero-copy {
    max-width: none;
  }

  .landing-hero-copy h1 {
    font-size: 48px;
  }

  .landing-stage,
  .landing-stage-panel {
    min-height: 300px;
  }

  .landing-chat-console {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .nav-link {
    padding-inline: 8px;
  }

  .button {
    width: 100%;
  }

  .nav .button {
    width: auto;
  }

  .landing-hero-copy h1 {
    font-size: 38px;
  }

  .landing-agent-photo {
    max-width: min(210px, 64vw);
  }

  .landing-stage,
  .landing-stage-panel {
    min-height: 258px;
  }

  .landing-employee-profile {
    grid-template-columns: 1fr;
  }

  .landing-explain-flow {
    grid-template-columns: 1fr;
  }

  .landing-employee-profile img {
    width: 150px;
  }

  .landing-card-rail {
    grid-auto-columns: minmax(158px, 78vw);
  }

  .landing-chat-form {
    grid-template-columns: minmax(0, 1fr) 38px;
    min-height: 50px;
    padding: 6px 6px 6px 16px;
  }

  .landing-chat-form button {
    height: 38px;
    width: 38px;
  }
}
