:root {
  --bg: #f7fafc;
  --paper: #ffffff;
  --ink: #071d3a;
  --muted: #526477;
  --line: #d9e1e8;
  --navy: #003767;
  --teal: #008e93;
  --teal-dark: #006a75;
  --soft: #eaf4f4;
  --shadow: 0 18px 45px rgba(0, 42, 81, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 78px;
  padding: 14px clamp(22px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-symbol {
  position: relative;
  width: 44px;
  height: 44px;
}

.brand-symbol::before,
.brand-symbol::after {
  position: absolute;
  inset: 7px 18px;
  content: "";
  background: var(--teal);
  border-radius: 999px;
}

.brand-symbol::after {
  transform: rotate(90deg);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
}

.brand-text small {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

nav {
  display: flex;
  gap: clamp(18px, 4vw, 64px);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

nav a:hover {
  color: var(--teal-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  background: var(--navy);
  color: white;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  gap: 0;
  align-items: center;
  min-height: 520px;
  padding: 0;
  background: #fff;
}

.visual-hero {
  position: relative;
  overflow: hidden;
}

.visual-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 170px;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, #fff 20%, rgba(255,255,255,0));
}

.hero-copy {
  z-index: 1;
  padding: clamp(56px, 7vw, 100px) clamp(24px, 4vw, 58px) 44px;
}

.hero h1,
.page h1 {
  margin: 0 0 22px;
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero p,
.page > p {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

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

.button,
.scenario-panel button {
  min-height: 44px;
  min-width: 180px;
  padding: 11px 24px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary,
.scenario-panel button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.button.secondary:hover {
  border-color: var(--navy);
}

.hero-image,
.hero-panel {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  align-self: stretch;
}

.hero-image img,
.hero-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 6vw, 78px);
}

.feature-strip div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip strong,
.feature-strip small {
  display: block;
}

.feature-strip strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.feature-strip small {
  color: var(--muted);
  font-size: 12px;
}

.icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border: 2px solid var(--teal);
  border-radius: 8px;
}

.section,
.page {
  padding: 56px clamp(24px, 5vw, 72px);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--paper);
}

.section h2,
.page h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
}

.network-section,
.demo-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.network-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
}

.network-grid article,
.demo-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}

.network-grid h3,
.demo-grid h3 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 17px;
}

.diagram {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: center;
  min-height: 82px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.diagram span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid #c8d6e4;
  border-radius: 6px;
}

.diagram i {
  display: block;
  height: 2px;
  background: var(--teal);
}

.text-link {
  display: table;
  margin: 22px auto 0;
  color: var(--navy);
  font-weight: 800;
  border-bottom: 1px solid var(--navy);
}

.flow,
.architecture {
  display: grid;
  gap: 14px;
}

.flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.flow div,
.architecture div,
.detail-list article,
.grid-three article {
  min-height: 112px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow div {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy);
  font-weight: 750;
}

.flow span {
  display: none;
}

.grid-three,
.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-three h3,
.detail-list h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.grid-three p,
.detail-list p {
  margin: 0;
  color: var(--muted);
}

.page {
  min-height: calc(100vh - 72px);
  background: linear-gradient(180deg, #fff, var(--bg));
}

.architecture {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.architecture strong,
.architecture span {
  display: block;
}

.architecture strong {
  color: var(--navy);
  font-size: 19px;
}

.architecture span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.embed-code {
  overflow: auto;
  margin-top: 28px;
  padding: 22px;
  color: #d8f4ee;
  background: #102132;
  border-radius: 8px;
  line-height: 1.5;
}

.scenario-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.faq-chat-launcher {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 50;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  box-shadow: 0 16px 28px rgba(0, 42, 81, 0.28);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}

.faq-chat {
  position: fixed;
  right: 30px;
  bottom: 116px;
  z-index: 50;
  display: none;
  flex-direction: column;
  width: min(392px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 136px));
  max-height: calc(100dvh - 136px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.faq-chat.is-open {
  display: flex;
}

.faq-chat__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: white;
  background: var(--navy);
}

.faq-chat__close {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.faq-chat__header strong,
.faq-chat__header span {
  display: block;
}

.faq-chat__header span {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

.faq-chat__status {
  flex: 0 0 auto;
  padding: 8px 16px;
  color: var(--navy);
  background: #eef7f8;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.faq-chat__status.offline {
  color: #7f4a00;
  background: #fff6df;
}

.faq-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
}

.faq-chat__quick {
  flex: 0 0 auto;
  display: grid;
  gap: 0;
  margin: 0 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-chat__quick strong,
.faq-chat__quick button {
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.faq-chat__quick button {
  cursor: pointer;
  font-weight: 700;
}

.faq-chat__quick button:last-child {
  border-bottom: 0;
}

.faq-chat.has-conversation .faq-chat__quick {
  display: none;
}

.faq-chat__note {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 16px 14px;
  color: #7a8794;
  font-size: 11px;
}

.faq-msg {
  max-width: 88%;
  margin: 0 0 12px;
  padding: 11px 12px;
  white-space: pre-wrap;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.faq-msg.bot {
  background: white;
  border: 1px solid var(--line);
}

.faq-msg.user {
  margin-left: auto;
  background: var(--teal);
  color: white;
}

.faq-chat__form {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: white;
}

.faq-chat__form textarea {
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.faq-chat__form button {
  min-width: 68px;
  border: 0;
  border-radius: 7px;
  background: var(--teal);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.faq-chat__form button:disabled,
.faq-chat__form textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .site-header,
  nav,
  .actions {
    align-items: flex-start;
  }

  .site-header {
    position: static;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .grid-three,
  .detail-list,
  .architecture,
  .flow,
  .feature-strip,
  .network-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image img {
    min-height: 300px;
  }

  .faq-chat {
    right: 12px;
    bottom: 96px;
    width: calc(100vw - 24px);
    height: min(620px, calc(100dvh - 116px));
    max-height: calc(100dvh - 116px);
  }

  .faq-chat-launcher {
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
  }

  .faq-chat__form textarea {
    font-size: 16px;
  }

  .header-cta {
    display: none;
  }

  .feature-strip div {
    border-right: 0;
  }
}
