:root {
  --brand-primary: #2f7bff;
  --brand-secondary: #4fc3f7;
  --brand-accent: #2dd4bf;
  --brand-navy: #10233f;
  --text-main: #142033;
  --text-muted: #5f718a;
  --surface: #ffffff;
  --surface-soft: #f4f9ff;
  --surface-blue: #eaf5ff;
  --border: #dceafa;
  --shadow: 0 24px 70px rgba(47, 123, 255, 0.16);
  --radius: 8px;
  font-family: "Segoe UI", "Yu Gothic", "Meiryo", "Malgun Gothic", Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.5;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(220, 234, 250, 0.58);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 34px rgba(16, 35, 63, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--brand-navy);
  font-weight: 760;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--brand-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.language-switcher select {
  min-height: 38px;
  padding: 0 30px 0 10px;
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--brand-primary);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 720;
  box-shadow: 0 12px 28px rgba(47, 123, 255, 0.22);
}

.section {
  position: relative;
  padding: clamp(82px, 10vw, 132px) 0;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(840px, calc(100% - 40px));
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 128px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(244, 249, 255, 0.62) 100%),
    url("assets/flowing-gradient-waves.png") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(42px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  color: var(--brand-navy);
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  color: var(--brand-navy);
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--brand-navy);
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: #31435d;
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(105deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
  box-shadow: 0 18px 36px rgba(47, 123, 255, 0.24);
}

.button-secondary {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: rgba(47, 123, 255, 0.35);
  box-shadow: 0 14px 30px rgba(16, 35, 63, 0.08);
}

.product-visual {
  overflow: hidden;
  border: 1px solid rgba(190, 210, 232, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.visual-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 42px;
  padding: 0 8px 0 14px;
  color: #31435d;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  border-bottom: 1px solid rgba(190, 210, 232, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
}

.visual-app {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.visual-app img {
  width: 22px;
  height: 22px;
}

.visual-app span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-controls {
  display: flex;
  align-self: stretch;
  margin-right: -8px;
}

.window-controls span {
  position: relative;
  width: 46px;
  height: 100%;
}

.window-controls span::before,
.window-controls span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #4c617a;
  transform: translate(-50%, -50%);
}

.window-controls span:nth-child(1)::before {
  width: 12px;
  height: 1.5px;
}

.window-controls span:nth-child(2)::before {
  width: 11px;
  height: 9px;
  background: transparent;
  border: 1.5px solid #4c617a;
}

.window-controls span:nth-child(3)::before,
.window-controls span:nth-child(3)::after {
  width: 13px;
  height: 1.5px;
}

.window-controls span:nth-child(3)::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.window-controls span:nth-child(3)::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.window-controls span:hover {
  background: rgba(16, 35, 63, 0.06);
}

.window-controls span:nth-child(3):hover {
  background: #e81123;
}

.window-controls span:nth-child(3):hover::before,
.window-controls span:nth-child(3):hover::after {
  background: #ffffff;
}

.visual-body {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 18px;
  height: 450px;
  padding: 20px;
}

.visual-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  background: rgba(248, 251, 255, 0.92);
  border-top: 1px solid rgba(220, 234, 250, 0.86);
}

.visual-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  cursor: pointer;
  background: #b7cbe3;
  border: 0;
  border-radius: 999px;
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.visual-dots button:hover {
  transform: translateY(-1px);
  background: var(--brand-secondary);
}

.visual-dots button.is-active {
  width: 26px;
  background: linear-gradient(105deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
}

.visual-screen {
  display: none;
}

.visual-screen.is-active {
  display: grid;
  animation: screenFade 520ms ease both;
}

@keyframes screenFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.health-panel,
.insight-card,
.metric-list div,
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
}

.health-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(47, 123, 255, 0.1), rgba(45, 212, 191, 0.12)),
    #ffffff;
}

.panel-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.health-panel strong {
  color: var(--brand-primary);
  font-size: 4.8rem;
  line-height: 0.95;
}

.health-panel span:last-child {
  color: var(--text-muted);
  font-weight: 700;
}

.metric-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.metric-list div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px;
}

.metric-list p,
.metric-list strong {
  margin: 0;
}

.metric-list p {
  color: #31435d;
  font-weight: 700;
}

.metric-list strong {
  color: var(--brand-navy);
  font-size: 0.9rem;
}

.metric-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 0 5px rgba(47, 123, 255, 0.13);
}

.metric-dot.cyan {
  background: var(--brand-secondary);
  box-shadow: 0 0 0 5px rgba(79, 195, 247, 0.16);
}

.metric-dot.teal {
  background: var(--brand-accent);
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.16);
}

.insight-card {
  grid-column: 1 / -1;
  padding: 18px;
}

.insight-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.insight-card p {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.05rem;
  font-weight: 720;
}

.chat-screen {
  grid-template-columns: 0.68fr 1.18fr;
}

.agent-screen {
  grid-template-columns: 0.68fr 1.18fr;
}

.chat-sidebar,
.chat-panel,
.agent-sidebar,
.agent-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.chat-sidebar,
.agent-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(47, 123, 255, 0.11), rgba(79, 195, 247, 0.12), rgba(45, 212, 191, 0.1)),
    #ffffff;
}

.agent-sidebar {
  background:
    linear-gradient(160deg, rgba(45, 212, 191, 0.13), rgba(79, 195, 247, 0.11), rgba(47, 123, 255, 0.1)),
    #ffffff;
}

.chat-sidebar strong,
.agent-sidebar strong {
  margin-bottom: 10px;
  color: var(--brand-navy);
  font-size: 2.2rem;
  line-height: 1;
}

.chat-sidebar p,
.agent-sidebar p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 650;
}

.chat-panel,
.agent-panel {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.agent-request {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.agent-request span {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-request p {
  margin: 0;
  color: #31435d;
  font-weight: 700;
}

.code-window {
  overflow: hidden;
  flex: 1;
  min-height: 0;
  border: 1px solid #c9d8e8;
  border-radius: var(--radius);
  background: #0f223d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 14px;
  color: #d8e9ff;
  background: #162c4d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 760;
}

.code-window-bar em {
  color: #8fcdf6;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.code-window pre {
  margin: 0;
  padding: 18px;
  overflow: hidden;
}

.code-window code {
  display: block;
  min-height: 186px;
  color: #dcf7ff;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.48;
  white-space: pre-wrap;
}

.code-window code::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--brand-accent);
  animation: cursorBlink 900ms steps(1) infinite;
}

.code-window code.is-complete::after {
  display: none;
}

.chat-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.chat-message span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-message p {
  margin: 0;
  color: #31435d;
  font-weight: 650;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}

.typing-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-secondary);
  animation: typingPulse 1s ease-in-out infinite;
}

.typing-indicator i:nth-child(2) {
  animation-delay: 160ms;
}

.typing-indicator i:nth-child(3) {
  animation-delay: 320ms;
}

.typing-indicator.is-hidden {
  display: none;
}

.typed-response {
  min-height: 78px;
}

.typed-response::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--brand-primary);
  animation: cursorBlink 900ms steps(1) infinite;
}

.typed-response.is-complete::after {
  display: none;
}

@keyframes typingPulse {
  0%,
  80%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.user-message {
  align-self: flex-end;
  color: #ffffff;
  background: var(--brand-primary);
}

.user-message span,
.user-message p {
  color: #ffffff;
}

.ai-message {
  color: var(--brand-navy);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.assessment-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.assessment-list div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.assessment-list p,
.assessment-list strong {
  margin: 0;
}

.assessment-list p {
  color: #31435d;
  font-weight: 700;
}

.assessment-list strong {
  color: var(--brand-navy);
  font-size: 0.86rem;
}

.shift {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.shift-lines {
  display: grid;
  gap: 12px;
  color: #31435d;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 650;
}

.shift-lines p {
  margin: 0;
}

.platform {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.feature {
  padding: 24px;
  min-height: 238px;
  box-shadow: 0 18px 46px rgba(16, 35, 63, 0.06);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--brand-primary);
  background: linear-gradient(145deg, rgba(47, 123, 255, 0.12), rgba(45, 212, 191, 0.13));
  border-radius: var(--radius);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 560;
}

.outcomes {
  overflow: hidden;
  background: #ffffff;
}

.outcomes::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(54vw, 720px);
  height: 100%;
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.07), rgba(45, 212, 191, 0.11));
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.74fr);
  gap: clamp(38px, 8vw, 104px);
  align-items: start;
}

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

.outcome-list p {
  position: relative;
  margin: 0;
  min-height: 58px;
  padding: 16px 18px 16px 50px;
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 760;
  box-shadow: 0 12px 30px rgba(16, 35, 63, 0.05);
}

.outcome-list p::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.12);
}

.closing {
  padding-top: 72px;
  background:
    linear-gradient(180deg, rgba(244, 249, 255, 0.88), rgba(255, 255, 255, 0.94)),
    url("assets/flowing-gradient-waves.png") center / cover no-repeat;
}

.closing-panel {
  padding: clamp(34px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(220, 234, 250, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.closing-logo {
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
}

.closing-panel h2 {
  max-width: 760px;
}

.closing-panel > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  color: #31435d;
  font-size: 1.18rem;
}

.site-footer {
  padding: 28px 0;
  color: var(--text-muted);
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 620;
  text-align: right;
}

.footer-inner p span {
  color: #31435d;
}

.footer-inner p a {
  color: var(--brand-primary);
  font-weight: 760;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

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

  .product-visual {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding-inline: 18px;
  }

  .brand span {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.84rem;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switcher span {
    display: none;
  }

  .language-switcher select {
    min-height: 38px;
    max-width: 92px;
    padding-inline: 9px;
    font-size: 0.82rem;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

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

  .visual-body {
    grid-template-columns: 1fr;
    height: 720px;
    padding: 14px;
  }

  .chat-screen,
  .agent-screen {
    grid-template-columns: 1fr;
  }

  .health-panel {
    min-height: 0;
  }

  .chat-sidebar,
  .agent-sidebar {
    min-height: 0;
  }

  .chat-sidebar strong,
  .agent-sidebar strong {
    font-size: 1.9rem;
  }

  .code-window-bar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 8px;
  }

  .code-window code {
    min-height: 210px;
    font-size: 0.78rem;
  }

  .health-panel strong {
    font-size: 4rem;
  }

  .metric-list div {
    grid-template-columns: 12px 1fr;
  }

  .metric-list strong {
    grid-column: 2;
  }

  .assessment-list div {
    grid-template-columns: 12px 1fr;
  }

  .assessment-list strong {
    grid-column: 2;
  }

  .insight-card {
    grid-column: auto;
  }

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

  .feature {
    min-height: auto;
  }

  .outcomes::before {
    width: 100%;
    clip-path: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
