:root {
  --background: #06080d;
  --surface: #10141d;
  --surface-soft: #171c27;
  --border: #252c39;
  --text: #f4f6fa;
  --muted: #8b95a7;
  --primary: #4f7cff;
  --green: #27c992;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(79, 124, 255, .16),
      transparent 30%
    ),
    var(--background);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

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

.topbar {
  height: 72px;
  padding: 0 max(20px, calc((100% - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 8, 13, .86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background:
    linear-gradient(
      140deg,
      #765cff,
      #3478f6
    );
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: .12em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.login-button,
.back-link {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: #c7cfdd;
  font-size: 10px;
}

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

.hero {
  max-width: 780px;
  margin-bottom: 55px;
}

.eyebrow,
.demo-badge {
  color: #8cabff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero h1,
.industry-showcase h1 {
  margin: 14px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
}

.hero p,
.industry-showcase > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.search {
  max-width: 520px;
  margin-top: 25px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.search input {
  width: 100%;
  padding: 14px 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

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

.section-heading h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

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

.industry-card {
  min-height: 145px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  transition: .18s;
}

.industry-card:hover {
  border-color: #506997;
  background: var(--surface-soft);
  transform: translateY(-3px);
}

.industry-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #c7d6ff;
  background: #1e2d4c;
  font-size: 10px;
  font-weight: 900;
}

.industry-card strong {
  margin-top: auto;
  font-size: 12px;
}

.industry-card span:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.demo-page {
  width: min(1280px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0 60px;
}

.demo-layout {
  min-height: calc(100vh - 110px);
  margin-top: 22px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(390px, 470px);
  gap: 30px;
}

.industry-showcase {
  padding: clamp(30px, 5vw, 65px);
  border: 1px solid var(--border);
  border-radius: 23px;
  background:
    linear-gradient(
      145deg,
      rgba(79, 124, 255, .18),
      transparent 50%
    ),
    var(--surface);
}

.industry-large-icon {
  width: 68px;
  height: 68px;
  margin-top: 55px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: var(--primary);
  font-weight: 900;
}

.capabilities {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.capabilities article {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(8, 11, 17, .55);
}

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

.capabilities strong {
  font-size: 11px;
}

.capabilities span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.chat-card {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: #eef2f7;
}

.chat-header {
  min-height: 87px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  background:
    linear-gradient(
      135deg,
      #315fd4,
      #4f7cff
    );
}

.assistant-avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .16);
  font-size: 11px;
  font-weight: 900;
}

.chat-header strong,
.chat-header span {
  display: block;
}

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

.chat-header span {
  margin-top: 4px;
  font-size: 9px;
  opacity: .8;
}

.language-buttons {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.language-buttons button {
  width: 38px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.language-buttons button.active {
  color: #172033;
  background: white;
}

.messages {
  min-height: 0;
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.message {
  max-width: 82%;
  margin-bottom: 13px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #202636;
  background: white;
  box-shadow: 0 4px 18px rgba(25, 32, 48, .06);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message.user {
  margin-left: auto;
  color: white;
  background: #111827;
  border-bottom-right-radius: 4px;
}

.message.ai {
  border-bottom-left-radius: 4px;
}

.message.typing {
  color: #737d8f;
  font-style: italic;
}

.quick-replies {
  padding: 10px 15px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  border-top: 1px solid #d7dde7;
}

.quick-replies button {
  padding: 8px 11px;
  border: 1px solid #c9d1de;
  border-radius: 999px;
  color: #344054;
  background: white;
  cursor: pointer;
  font-size: 9px;
  white-space: nowrap;
}

.message-form {
  padding: 14px;
  display: flex;
  gap: 9px;
  border-top: 1px solid #d7dde7;
  background: white;
}

.message-form input {
  min-width: 0;
  flex: 1;
  padding: 13px;
  border: 1px solid #cbd4e1;
  border-radius: 11px;
  outline: 0;
}

.message-form button {
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: var(--primary);
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 980px) {
  .industry-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

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

  .chat-card {
    min-height: 650px;
  }
}

@media (max-width: 560px) {
  .industry-grid,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .industry-showcase {
    padding: 25px;
  }

  .chat-card {
    min-height: 620px;
  }
}
