:root {
  --blue: #2f7df6;
  --blue-dark: #135bd7;
  --ink: #0d1424;
  --muted: #667085;
  --line: #dbe3ef;
  --soft: #f5f8fc;
  --green: #1c8b65;
  --amber: #f6a329;
  --rose: #e8617e;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 37, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 227, 239, 0.72);
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(38, 67, 116, 0.09);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #42c3a4);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(47, 125, 246, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-group,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #26344f;
  font-size: 15px;
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-weight: 750;
  box-shadow: 0 14px 32px rgba(47, 125, 246, 0.24);
}

.button:hover {
  background: var(--blue-dark);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}

.button-ghost {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: none;
}

.button-ghost:hover {
  background: var(--soft);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-shell,
.feature-section,
.cta-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr);
  gap: 38px;
  align-items: center;
  min-height: 650px;
  padding: 66px 0 54px;
}

.hero-copy {
  max-width: 600px;
}

.announcement,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 780;
}

.announcement {
  padding: 8px 12px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
}

.spark {
  width: 10px;
  height: 10px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(246, 163, 41, 0.16);
}

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

h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.15vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p,
.section-intro p,
.cta-section p {
  color: var(--muted);
  font-size: 19px;
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
}

.app-window,
.feature-card,
.widget-preview,
.knowledge-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.inbox-window {
  overflow: hidden;
  min-height: 520px;
  transform: rotate(-1.5deg);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  background: #f6f9fd;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-bar span:nth-child(1) {
  background: var(--rose);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: #30c789;
}

.inbox-layout {
  display: grid;
  grid-template-columns: 130px 190px 1fr;
  min-height: 478px;
}

.inbox-layout aside {
  padding: 20px 16px;
  color: #72809b;
  background: #f8fbff;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.mini-logo {
  width: 28px;
  height: 28px;
  margin-bottom: 26px;
  background: var(--blue);
  border-radius: 8px;
}

.active-pill {
  padding: 8px 10px;
  color: var(--blue-dark);
  background: #eaf2ff;
  border-radius: 8px;
}

.conversation-list {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}

.conversation {
  display: grid;
  gap: 4px;
  padding: 13px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.conversation span,
.message,
.reply-box,
.setting-row span,
.theme-row span,
.portal-list span {
  color: var(--muted);
  font-size: 13px;
}

.conversation.active {
  background: #f1f7ff;
  border-color: #cfe0ff;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(66, 195, 164, 0.18), transparent 32%),
    var(--white);
}

.message {
  max-width: 270px;
  padding: 12px 14px;
  background: #f2f5fa;
  border-radius: 14px;
}

.message.agent {
  align-self: flex-end;
  color: var(--white);
  background: var(--blue);
}

.reply-box {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.floating-card {
  position: absolute;
  right: 18px;
  bottom: 34px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(20, 37, 74, 0.16);
}

.floating-card small {
  display: block;
  color: var(--muted);
}

.icon-bolt,
.small-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.feature-section {
  padding: 86px 0;
  border-top: 1px solid #eef2f7;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
  gap: 46px;
  max-width: none;
  align-items: end;
}

h2 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.feature-card {
  min-height: 300px;
  padding: 24px;
}

.feature-card-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0)),
    var(--white);
}

.feature-card p,
.knowledge-panel p {
  color: var(--muted);
}

.chat-stack {
  display: grid;
  gap: 16px;
  padding: 36px;
  background: #f8fbff;
  border: 1px solid #e8eef6;
  border-radius: 8px;
}

.copilot-panel,
.language-card,
.portal-list,
.result-card,
.category-strip {
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #e8eef6;
  border-radius: 8px;
}

.copilot-panel span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  padding: 6px 10px;
  color: #28415f;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.language-card span {
  padding: 20px 8px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.widget-preview {
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 246, 0.13), transparent 36%),
    var(--white);
}

.widget-header {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.widget-header strong {
  font-size: 27px;
}

.widget-header span {
  color: var(--muted);
}

.search-box {
  margin-bottom: 16px;
  padding: 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.setting-row {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f7;
}

.widget-preview button {
  width: 100%;
  margin: 18px 0;
  padding: 13px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.theme-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-row i {
  width: 18px;
  height: 18px;
  background: var(--blue);
  border-radius: 50%;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.support-cards .feature-card:last-child {
  grid-column: 1 / -1;
  min-height: 220px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.knowledge-panel {
  padding: 26px;
  min-height: 360px;
}

.portals {
  grid-row: span 2;
}

.portal-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.portal-list button {
  justify-self: start;
  padding: 9px 13px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  font-weight: 780;
}

.portal-list p {
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-list em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.result-card {
  margin-top: 16px;
}

.result-card p {
  margin-bottom: 0;
}

.result-card.muted {
  opacity: 0.72;
}

.compact-panel {
  min-height: auto;
}

.category-strip {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  margin-bottom: 80px;
  padding: 46px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(13, 20, 36, 0.92), rgba(24, 93, 162, 0.88)),
    linear-gradient(90deg, #0d1424, #1d69c8);
  border-radius: 8px;
}

.cta-section h2 {
  max-width: 760px;
  margin-bottom: 12px;
}

.cta-section p,
.cta-section .eyebrow {
  color: #d8e8ff;
}

.cta-section .button {
  flex: 0 0 auto;
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-dark);
  box-shadow: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
  padding: 54px 0 30px;
  border-top: 1px solid #eef2f7;
}

.site-footer p {
  max-width: 330px;
  margin-top: 18px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links h4 {
  margin: 0 0 12px;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid #eef2f7;
  font-size: 14px;
}

.footer-bottom a {
  color: inherit;
}

.footer-bottom a:hover,
.footer-links a:hover {
  color: var(--blue-dark);
}

.legal-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-hero {
  max-width: 850px;
  padding: 92px 0 48px;
}

.legal-hero h1 {
  margin-bottom: 18px;
}

.legal-hero p {
  color: var(--muted);
  font-size: 20px;
}

.last-updated {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  color: #28415f;
  background: #f1f7ff;
  border: 1px solid #d7e6ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding-bottom: 90px;
}

.legal-summary {
  position: sticky;
  top: 112px;
  padding: 24px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-summary h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.legal-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-content {
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 58px rgba(20, 37, 74, 0.08);
}

.legal-content h2 {
  margin: 38px 0 12px;
  font-size: 26px;
  line-height: 1.22;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #4d5d76;
  font-size: 16px;
}

.legal-content ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  margin: 0 0 24px;
}

@media (max-width: 940px) {
  .site-header {
    border-radius: 18px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto 0;
    display: none;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav,
  .site-nav,
  .nav-group,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero,
  .section-intro-split,
  .support-layout,
  .legal-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }

  .hero {
    min-height: 0;
    padding-top: 58px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .inbox-layout {
    grid-template-columns: 110px 1fr;
  }

  .chat-panel {
    grid-column: 1 / -1;
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-shell,
  .feature-section,
  .cta-section,
  .legal-page,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

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

  .feature-grid,
  .support-cards,
  .knowledge-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .feature-card-large,
  .knowledge-panel {
    min-height: auto;
  }

  .portals {
    grid-row: auto;
  }

  .inbox-window {
    transform: none;
  }

  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .inbox-layout aside {
    display: none;
  }

  .conversation-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .floating-card {
    position: static;
    margin-top: 14px;
  }

  .cta-section {
    padding: 30px 22px;
  }

  .legal-hero {
    padding: 58px 0 32px;
  }

  .legal-content {
    padding: 28px 20px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }
}
