html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #4d7cff;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #17202b;
  background:
    linear-gradient(140deg, rgba(77, 124, 255, 0.12), transparent 32%),
    linear-gradient(225deg, rgba(44, 201, 167, 0.13), transparent 30%),
    #f6f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

a {
  color: #244fc8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 32, 43, 0.1);
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(16px);
}

.brand-mark {
  color: #17202b;
  font-weight: 850;
}

.nav-links {
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  color: #3c4653;
  font-weight: 720;
}

.nav-link:hover {
  color: #244fc8;
}

.nav-pill {
  border: 1px solid rgba(36, 79, 200, 0.24);
  border-radius: 999px;
  padding-inline: 1rem !important;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(350px, 1.04fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: clamp(3rem, 8vw, 5.5rem) 0 2.5rem;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #244fc8;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: #111722;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 880;
  line-height: 0.92;
}

h2 {
  margin: 0;
  color: #111722;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 830;
  line-height: 1;
}

h3 {
  margin: 0;
  color: #17202b;
  font-size: 1.08rem;
  font-weight: 820;
}

p {
  color: #526071;
}

.hero-text {
  max-width: 620px;
  margin: 1.25rem 0 0;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border-width: 2px;
  cursor: pointer;
  font-weight: 820;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
  user-select: none;
}

.btn-primary {
  border-color: #244fc8;
  background: #244fc8;
  box-shadow: 0 10px 24px rgba(36, 79, 200, 0.24);
}

.btn-primary:hover {
  border-color: #163483;
  background: #163483;
  box-shadow: 0 16px 34px rgba(36, 79, 200, 0.36);
  transform: translateY(-2px);
}

.btn-primary:active {
  border-color: #0f275f;
  background: #0f275f;
  box-shadow: 0 6px 16px rgba(36, 79, 200, 0.28);
  transform: translateY(1px);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  cursor: progress;
  opacity: 0.78;
  transform: none;
}

.btn-quiet {
  border: 1px solid rgba(23, 32, 43, 0.16);
  color: #17202b;
  background: #ffffff;
}

.lab-visual {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 43, 0.12);
  border-radius: 8px;
  padding: 1.1rem;
  background: #101722;
  box-shadow: 0 28px 80px rgba(16, 23, 34, 0.22);
}

.lab-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  color: #e9f1ff;
}

.lab-topbar span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #2cc9a7;
  box-shadow: 0 0 0 7px rgba(44, 201, 167, 0.18);
}

.lab-topbar small {
  color: #9fb0c5;
  font-weight: 750;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.signal-grid span {
  min-height: 74px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(77, 124, 255, 0.7), rgba(44, 201, 167, 0.7)),
    #1b2534;
}

.signal-grid span:nth-child(2n) {
  opacity: 0.55;
}

.signal-grid span:nth-child(3n) {
  opacity: 0.28;
}

.model-card {
  display: grid;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 1rem;
  color: #e9f1ff;
  background: rgba(255, 255, 255, 0.08);
}

.model-card span,
.model-card small {
  color: #9fb0c5;
}

.model-card strong {
  font-size: 1.25rem;
}

.service-band,
.demo-band,
.contact-panel {
  margin-top: 1rem;
  border: 1px solid rgba(23, 32, 43, 0.1);
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 50px rgba(23, 32, 43, 0.07);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

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

.service-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(23, 32, 43, 0.1);
  border-radius: 8px;
  padding: 1rem;
  background: #ffffff;
}

.service-card p {
  margin: 0;
  line-height: 1.55;
}

.demo-band,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
}

.demo-band > div:first-child p,
.contact-panel > div:first-child p {
  margin-top: 1rem;
  line-height: 1.7;
}

.chat-panel {
  display: grid;
  gap: 0.75rem;
}

.chat-message {
  display: grid;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.chat-message span {
  color: #526071;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.chat-message p {
  margin: 0;
  line-height: 1.55;
}

.chat-user {
  background: #eef3ff;
}

.chat-assistant {
  background: #eefaf6;
}

.ai-form {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.spam-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ai-form label {
  display: grid;
  gap: 0.35rem;
  color: #334151;
  font-weight: 780;
}

.ai-form input,
.ai-form select,
.ai-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 43, 0.16);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  color: #17202b;
  background: #ffffff;
}

.ai-form span.field-validation-error {
  color: #a32731;
  font-size: 0.86rem;
  font-weight: 720;
}

.enquiry-submit {
  min-height: 58px;
  font-size: 1.05rem;
}

.submit-feedback {
  min-height: 1.35rem;
  margin: -0.25rem 0 0;
  color: #244fc8;
  font-weight: 760;
}

.form-message {
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font-weight: 780;
}

.form-message-success {
  color: #075f52;
  background: rgba(44, 201, 167, 0.16);
}

.form-message-warning {
  color: #754800;
  background: rgba(246, 180, 53, 0.18);
}

.form-message-error {
  color: #8a1f2a;
  background: rgba(184, 53, 61, 0.12);
}

.footer {
  padding: 1.5rem 0;
  color: #5f6b78;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 980px) {
  .hero,
  .demo-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .page-wrap {
    width: min(100% - 20px, 1140px);
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

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

  .btn {
    width: 100%;
  }

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

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