:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-muted: #f7f5f0;
  --ink: #18261d;
  --muted: #5d6c61;
  --accent: #176d57;
  --accent-deep: #0f4738;
  --line: #dce4dc;
  --warm: #c7904c;
  --shadow: 0 10px 28px rgba(24, 38, 29, 0.05);
  --radius-large: 18px;
  --radius-medium: 14px;
  --radius-small: 10px;
  --container-width: 1140px;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  background: linear-gradient(180deg, #fcfbf8 0%, var(--bg) 100%);
}

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

.container {
  width: min(var(--container-width), calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(24, 38, 29, 0.08);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.brand-copy strong {
  color: var(--accent-deep);
  font-size: 15px;
}

.header-nav,
.footer-links,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-nav {
  justify-content: flex-end;
  gap: 10px;
}

.header-nav a:not(.button),
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.language-switch {
  position: relative;
}

.language-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(15, 71, 56, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-switch summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(15, 71, 56, 0.7);
  border-bottom: 1.5px solid rgba(15, 71, 56, 0.7);
  transform: rotate(45deg) translateY(-1px);
}

.language-switch[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.language-switch-label {
  color: var(--muted);
  font-weight: 600;
}

.language-switch-code {
  color: var(--accent-deep);
}

.language-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgba(24, 38, 29, 0.08);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-switch-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.language-switch-menu a:hover,
.language-switch-menu a[aria-current="page"] {
  background: rgba(23, 109, 87, 0.08);
  color: var(--accent-deep);
}

.header-nav a:not(.button):hover,
.footer-links a:hover {
  color: var(--accent-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  box-shadow: 0 8px 18px rgba(23, 109, 87, 0.12);
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(23, 109, 87, 0.14);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 12px;
}

.button-secondary {
  background: transparent;
  color: var(--accent-deep);
  border-color: rgba(15, 71, 56, 0.18);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(23, 109, 87, 0.08);
  box-shadow: none;
}

.hero-section {
  padding: 56px 0 24px;
}

.hero-shell {
  padding: 28px;
  border: 1px solid rgba(24, 38, 29, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #ffffff 100%);
  box-shadow: var(--shadow);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 36px;
  align-items: center;
}

.hero-main {
  display: grid;
  align-content: start;
  min-width: 0;
}

.eyebrow,
.value-index,
.highlight-item span {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(15, 71, 56, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(23, 109, 87, 0.12), rgba(199, 144, 76, 0.14));
  box-shadow: 0 10px 24px rgba(15, 71, 56, 0.08);
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: none;
}

.hero-main h1 {
  margin: 0;
  max-inline-size: none;
  color: var(--accent-deep);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-aside,
.info-card,
.value-card,
.screen-showcase,
.summary-card,
.faq-card,
.gap-card,
.coverage-card,
.scope-card,
.operations-loop,
.screen-card {
  border-radius: var(--radius-large);
  border: 1px solid rgba(24, 38, 29, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-aside {
  padding: 24px;
  min-width: 0;
}

.hero-plan {
  display: grid;
  gap: 18px;
}

.hero-step-list {
  display: grid;
  gap: 12px;
}

.hero-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.hero-step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(23, 109, 87, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.hero-step-copy {
  display: grid;
  gap: 4px;
}

.hero-step-copy strong {
  color: var(--accent-deep);
  font-weight: 700;
  line-height: 1.2;
}

.hero-step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-meta-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(24, 38, 29, 0.08);
  border-radius: var(--radius-medium);
  background: var(--surface-muted);
}

.hero-meta-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta-card strong {
  color: var(--accent-deep);
  font-size: 16px;
  line-height: 1.25;
}

.visual-figure {
  margin: 0;
}

.visual-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(24, 38, 29, 0.08);
  background: #fff;
}

.visual-note {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 28px;
  margin-top: 12px;
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.check-list li::before {
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.plain-list li::before {
  background: rgba(93, 108, 97, 0.2);
}

.section-block {
  padding: 56px 0;
}

.section-block[id] {
  scroll-margin-top: 96px;
}

.section-muted {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(24, 38, 29, 0.05);
  border-bottom: 1px solid rgba(24, 38, 29, 0.05);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: var(--accent-deep);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

html[lang="ja"] .section-heading h2 {
  text-wrap: balance;
}

.section-title-split span {
  display: inline;
}

.section-title-split {
  display: block;
}

.section-title-split span + span::before {
  content: " ";
}

.section-title-fixed-break span {
  display: block;
}

.section-title-fixed-break span + span::before {
  content: none;
}

.section-copy,
.info-card p,
.value-card p,
.screen-copy p,
.faq-card p,
.summary-card p {
  max-inline-size: none;
  margin: 12px 0 0;
  color: var(--muted);
}

.overview-copy {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.overview-copy p,
.section-footnote,
.gap-card p,
.coverage-card > p,
.scope-card > p,
.operations-loop > p,
.screen-card p,
.loop-item p,
.coverage-item p {
  margin: 0;
  color: var(--muted);
}

.section-footnote {
  max-inline-size: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(24, 38, 29, 0.08);
}

.gap-grid,
.coverage-grid,
.scope-layout,
.screen-grid,
.fit-grid {
  display: grid;
  gap: 18px;
}

.gap-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.gap-card,
.coverage-card,
.scope-card,
.screen-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.gap-list,
.coverage-list,
.screen-card-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.gap-list li,
.coverage-item,
.loop-item {
  padding: 16px;
  border: 1px solid rgba(24, 38, 29, 0.08);
  border-radius: var(--radius-medium);
  background: var(--surface-muted);
}

.gap-list strong,
.coverage-item-head strong,
.loop-item strong {
  color: var(--accent-deep);
  font-size: 16px;
  line-height: 1.3;
}

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

.gap-kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.gap-quote {
  background: linear-gradient(180deg, rgba(248, 251, 248, 0.96) 0%, #ffffff 100%);
}

.gap-quote h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

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

.coverage-card {
  gap: 14px;
}

.coverage-tip-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.coverage-list {
  display: grid;
  gap: 12px;
}

.coverage-item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.coverage-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coverage-item-head strong {
  font-size: 15px;
}

.coverage-item-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.coverage-item p {
  margin-top: 8px;
  font-size: 14px;
}

.coverage-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(23, 109, 87, 0.18);
  background: rgba(23, 109, 87, 0.1);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.coverage-marker-inline {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.coverage-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.coverage-status-supported {
  border-color: rgba(23, 109, 87, 0.18);
  background: rgba(23, 109, 87, 0.1);
  color: var(--accent-deep);
}

.coverage-status-out {
  border-color: rgba(93, 108, 97, 0.16);
  background: rgba(93, 108, 97, 0.08);
  color: var(--muted);
}

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

.scope-card-muted {
  background: linear-gradient(180deg, #ffffff 0%, #f7f5f0 100%);
}

.scope-note {
  margin: 0;
  font-size: 14px;
}

.operations-loop {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
  border-color: rgba(23, 109, 87, 0.14);
  background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 100%);
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.loop-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.loop-item p {
  font-size: 14px;
}

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

.screen-card {
  gap: 18px;
}

.screen-card-body {
  display: grid;
  gap: 12px;
}

.screen-card-points {
  display: grid;
  gap: 10px;
}

.screen-card-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 600;
}

.screen-card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.material-list {
  max-inline-size: none;
}

.card-grid,
.value-grid,
.faq-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

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

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.info-card,
.value-card,
.summary-card {
  padding: 22px;
}

.info-card h3,
.value-card h3,
.screen-overview-copy h3,
.screen-caption h3,
.faq-card h3,
.summary-card h3,
.gap-card h3,
.coverage-card h3,
.scope-card h3,
.operations-loop h3,
.screen-card h3 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 21px;
  line-height: 1.2;
  text-wrap: balance;
}

.summary-card {
  display: grid;
  align-content: start;
  gap: 2px;
}

.screen-showcase {
  display: grid;
  gap: 20px;
  max-inline-size: 920px;
  margin: 0 auto;
  padding: 24px;
  align-content: start;
}

.screen-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.screen-overview-copy {
  display: grid;
  gap: 6px;
}

.screen-overview-copy p,
.screen-caption p {
  margin: 0;
  color: var(--muted);
}

.screen-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-weight: 600;
}

.screen-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.screen-caption {
  display: grid;
  gap: 8px;
  max-inline-size: 760px;
  margin: 0 auto;
}

.screen-figure {
  max-inline-size: 760px;
  margin: 0 auto;
}

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

.faq-card {
  padding: 22px;
}

.faq-card h3 {
  font-size: 18px;
  line-height: 1.3;
}

.faq-card p {
  margin-top: 10px;
}

.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.value-index {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
}

.agentforce-chat-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.agentforce-chat-slot {
  height: min(62vh, 560px);
  min-height: min(62vh, 560px);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.88), rgba(255, 255, 255, 0.96));
}

.agentforce-chat-slot > .embedded-messaging,
.agentforce-chat-slot > #embedded-messaging {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.agentforce-chat-slot iframe.embeddedMessagingFrame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.agentforce-chat-fallback {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 112px;
  z-index: 145;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(440px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 120px));
  padding: 0;
  border: 1px solid rgba(15, 71, 56, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 48px rgba(24, 38, 29, 0.16),
    0 8px 24px rgba(24, 38, 29, 0.08);
  backdrop-filter: blur(14px);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 14px 0;
}

.chat-panel-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(24, 38, 29, 0.08);
  border-radius: 999px;
  background: rgba(247, 245, 240, 0.9);
  color: var(--accent-deep);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-panel-body {
  min-height: 0;
  padding: 10px 18px 18px;
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px 14px 16px;
  border: 1px solid rgba(15, 71, 56, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(135deg, #11503f 0%, #176d57 52%, #c7904c 130%);
  color: #fff;
  box-shadow:
    0 18px 34px rgba(15, 71, 56, 0.22),
    0 6px 18px rgba(15, 71, 56, 0.14);
  overflow: hidden;
  isolation: isolate;
  transform-origin: center;
  animation: chat-fab-float 3.8s ease-in-out infinite;
}

.chat-fab::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.chat-fab:hover,
.chat-fab:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 24px 42px rgba(15, 71, 56, 0.26),
    0 8px 20px rgba(15, 71, 56, 0.18);
}

.chat-fab-ping {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(23, 109, 87, 0.22);
  background: radial-gradient(circle, rgba(23, 109, 87, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: chat-fab-pulse 3.8s ease-out infinite;
}

.chat-fab-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.chat-fab-icon svg {
  width: 22px;
  height: 22px;
}

.chat-fab-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.chat-fab-copy strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.chat-fab-copy span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  border-top: 1px solid rgba(24, 38, 29, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .hero-layout,
  .card-grid,
  .value-grid,
  .summary-grid,
  .faq-grid,
  .screen-overview,
  .screen-points,
  .gap-grid,
  .coverage-grid,
  .scope-layout,
  .screen-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    min-height: auto;
    padding: 16px 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-main h1 {
    max-inline-size: none;
  }

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

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

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .container {
    width: min(var(--container-width), calc(100vw - 24px));
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 14px;
  }

  .brand-copy {
    font-size: 12px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .header-nav {
    width: calc(100% + 4px);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .header-nav a,
  .header-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-section {
    padding-top: 30px;
  }

  .hero-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-main h1 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.12;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-aside,
  .info-card,
  .value-card,
  .screen-showcase,
  .summary-card,
  .faq-card,
  .gap-card,
  .coverage-card,
  .scope-card,
  .operations-loop,
  .screen-card {
    border-radius: 16px;
  }

  .hero-aside,
  .info-card,
  .value-card,
  .screen-showcase,
  .summary-card,
  .faq-card,
  .gap-card,
  .coverage-card,
  .scope-card,
  .operations-loop,
  .screen-card {
    padding: 20px;
  }

  .section-block {
    padding: 42px 0;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.16;
  }

  .section-copy,
  .overview-copy p,
  .gap-card p,
  .coverage-card > p,
  .scope-card > p,
  .operations-loop > p,
  .screen-card p,
  .loop-item p,
  .coverage-item p {
    font-size: 15px;
  }

  .info-card h3,
  .value-card h3,
  .screen-overview-copy h3,
  .screen-caption h3,
  .faq-card h3,
  .summary-card h3,
  .gap-card h3,
  .coverage-card h3,
  .scope-card h3,
  .operations-loop h3,
  .screen-card h3 {
    font-size: 19px;
  }

  .coverage-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .coverage-item-meta {
    justify-content: flex-start;
  }

  .section-title-split span {
    display: block;
  }

  .section-title-split span + span::before {
    content: none;
  }

  .loop-grid {
    grid-template-columns: 1fr;
  }

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

  .screen-showcase {
    padding: 18px;
    gap: 16px;
  }

  .chat-fab {
    right: 16px;
    bottom: 16px;
    min-height: 64px;
    padding: 12px 16px 12px 14px;
    gap: 12px;
  }

  .chat-fab-icon {
    width: 40px;
    height: 40px;
  }

  .chat-panel {
    right: 16px;
    bottom: 92px;
    width: min(420px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 108px));
  }

  .chat-panel-header {
    padding: 12px 12px 0;
  }

  .chat-panel-body {
    padding: 10px 16px 16px;
  }

  .agentforce-chat-slot {
    height: min(56vh, 500px);
    min-height: min(56vh, 500px);
  }

}

@media (max-width: 520px) {
  .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .footer-links,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .header-nav {
    align-items: center;
    flex-direction: row;
  }

  .header-nav .button,
  .header-nav .button-small {
    width: auto;
  }

  .language-switch {
    width: 100%;
  }

  .language-switch summary {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .hero-main h1 {
    max-inline-size: none;
    font-size: clamp(27px, 8.6vw, 34px);
  }

  .hero-badge {
    font-size: 13px;
    padding: 8px 12px;
  }

  .hero-shell {
    padding: 16px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .section-block {
    padding: 36px 0;
  }

  .section-heading h2 {
    font-size: clamp(23px, 8vw, 30px);
  }

  .header-nav a:not(.button),
  .footer-links a {
    font-size: 12px;
  }

  .chat-fab {
    right: 12px;
    bottom: 12px;
    left: auto;
    min-height: 58px;
    padding: 10px 14px;
    gap: 10px;
    max-width: min(220px, calc(100vw - 24px));
  }

  .chat-panel {
    right: 12px;
    bottom: 84px;
    left: 12px;
    width: auto;
    max-height: min(74vh, 640px);
    border-radius: 22px;
  }

  .chat-panel-close {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .chat-panel-body {
    padding: 8px 14px 14px;
  }

  .agentforce-chat-slot {
    height: min(56vh, 460px);
    min-height: min(56vh, 460px);
  }

  .chat-fab-copy strong {
    font-size: 14px;
  }

  .chat-fab-copy span {
    display: none;
  }
}

@keyframes chat-fab-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  12% {
    transform: translateY(-4px) scale(1.01);
  }

  22% {
    transform: translateY(0) scale(1);
  }

  54% {
    transform: translateY(0) scale(1);
  }

  64% {
    transform: translateY(-6px) scale(1.015);
  }

  76% {
    transform: translateY(0) scale(1);
  }
}

@keyframes chat-fab-pulse {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: scale(0.92);
  }

  24% {
    opacity: 0.5;
    transform: scale(0.98);
  }

  44% {
    opacity: 0;
    transform: scale(1.12);
  }

  60% {
    opacity: 0.42;
    transform: scale(0.98);
  }

  82% {
    opacity: 0;
    transform: scale(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab,
  .chat-fab-ping {
    animation: none;
  }

  .chat-fab,
  .chat-fab:hover,
  .chat-fab:focus-visible {
    transform: none;
  }
}
