/* =========================================================
   Contact / Request a demo
   The form markup and its HubSpot submission script are fixed;
   only the classes on the form controls are styled here.
   ========================================================= */

.ct {
  --ct-ink: #1a1a1c;
  --ct-muted: rgba(26, 26, 28, 0.62);
  --ct-faint: rgba(26, 26, 28, 0.44);
  --ct-line: rgba(26, 26, 28, 0.12);
  --ct-blue: #3c5294;
  --ct-cyan: #83e7ee;
  --ct-teal: #0e7490;
  --ct-dark: #131417;
  --ct-dark-ink: #f4f7fb;
  --ct-dark-muted: rgba(222, 230, 241, 0.72);
  --ct-dark-faint: rgba(222, 230, 241, 0.46);
  --ct-dark-line: rgba(255, 255, 255, 0.1);
  --ct-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ct :where(p, h1, h2) {
  margin: 0;
}

/* ---------- Hero shell ---------- */
.ct-hero-section {
  padding: 0 20px 20px;
}

@media (max-width: 767px) {
  .ct-hero-section {
    padding-inline: 0;
  }
}

.ct-hero {
  position: relative;
  max-width: 1880px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  padding: 116px 0 24px;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(60% 45% at 92% 8%, rgba(60, 82, 148, 0.42), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(131, 231, 238, 0.08), transparent 70%),
    var(--ct-dark);
  color: var(--ct-dark-ink);
}

.ct-hero__media {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: 640px;
  overflow: hidden;
}

.ct-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0.5;
  filter: saturate(0.75) contrast(1.05);
  transform-origin: 50% 40%;
  animation: ct-drift 26s ease-in-out infinite alternate;
}

.ct-hero__media::after {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(180deg, rgba(19, 20, 23, 0.7) 0%, rgba(19, 20, 23, 0.2) 30%, rgba(19, 20, 23, 0.6) 64%, var(--ct-dark) 100%),
    linear-gradient(90deg, rgba(19, 20, 23, 0.75) 0%, rgba(19, 20, 23, 0.2) 70%);
}

.ct-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 55% at 30% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 30% 30%, #000 0%, transparent 75%);
}

.ct-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "card"
    "help";
  gap: 40px;
}

/* ---------- Copy ---------- */
.ct-hero__copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 640px;
}

.ct-hero__eyebrow {
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-cyan);
}

.ct-hero__h1 {
  font-size: clamp(2.375rem, 1rem + 3vw, 3.875rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ct-dark-ink);
  text-wrap: balance;
}

.ct-hero__h1 span {
  display: block;
}

.ct-hero__h1 span + span {
  color: rgba(244, 247, 251, 0.58);
}

.ct-hero__lead {
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ct-dark-muted);
  text-wrap: pretty;
}

/* ---------- How we can help ---------- */
.ct-help {
  grid-area: help;
  align-self: start;
}

.ct-help__label {
  margin-bottom: 14px;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-dark-faint);
}

.ct-help__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-help__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--ct-dark-line);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.4s ease, background 0.4s ease;
}

.ct-help__item:hover {
  border-color: rgba(131, 231, 238, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.ct-help__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(131, 231, 238, 0.22);
  background: rgba(131, 231, 238, 0.06);
  color: var(--ct-cyan);
}

.ct-help__icon svg {
  width: 19px;
  height: 19px;
}

.ct-help__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ct-help__title {
  font-size: 0.9375rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ct-dark-ink);
}

.ct-help__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ct-dark-muted);
}

/* ---------- Form card ---------- */
.ct-card {
  grid-area: card;
  align-self: start;
  position: relative;
  padding: 26px 20px 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--ct-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 40px 80px -32px rgba(0, 0, 0, 0.6),
    0 12px 28px -12px rgba(0, 0, 0, 0.35);
}

.ct-card__head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.ct-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-blue);
}

.ct-card__tag span {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ct-teal);
}

.ct-card__tag span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ct-teal);
  animation: ct-ping 2.8s ease-out infinite;
}

.ct-card__title {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ct-ink);
  text-wrap: balance;
}

.ct-card__sub {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ct-muted);
}

.ct-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ct-faint);
}

.ct-card__foot svg {
  flex: none;
  width: 15px;
  height: 15px;
}

/* ---------- Form controls ---------- */
.ct-form {
  display: grid;
  gap: 16px;
}

.ct-row {
  display: grid;
  gap: 16px;
}

.ct-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.ct-label {
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ct-ink);
}

.ct-req {
  color: var(--ct-blue);
}

.ct-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ct-line);
  border-radius: 12px;
  background: #f7f8fa;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ct-ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ct-input::placeholder {
  color: rgba(26, 26, 28, 0.36);
}

.ct-input:hover {
  border-color: rgba(26, 26, 28, 0.22);
}

.ct-input:focus {
  outline: none;
  border-color: var(--ct-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(60, 82, 148, 0.14);
}

@media (max-width: 767px) {
  .ct-input {
    font-size: 1rem;
  }
}

.ct-input--area {
  height: auto;
  min-height: 116px;
  padding: 13px 16px;
  line-height: 1.5;
  resize: none;
}

.ct-actions {
  padding-top: 6px;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ct-ink);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s var(--ct-ease);
}

.ct-submit:hover {
  background: var(--ct-blue);
}

.ct-submit:focus-visible {
  outline: 2px solid var(--ct-blue);
  outline-offset: 3px;
}

.ct-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.ct-submit__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ct-ease);
}

.ct-submit:hover .ct-submit__icon {
  transform: translateX(3px);
}

.ct-error {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  color: #b42318;
}

/* Confirmation markup written by the submission script */
.ct-form > .space-y-3 {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 0 12px;
}

.ct-form > .space-y-3::before {
  content: "";
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7490' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 24px no-repeat,
    rgba(14, 116, 144, 0.1);
}

.ct-form > .space-y-3 p {
  margin: 0;
}

.ct-form > .space-y-3 p:first-child {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ct-ink);
}

.ct-form > .space-y-3 p + p {
  font-size: 0.9375rem;
  color: var(--ct-muted);
}

.ct-form:has(> .space-y-3) + .ct-card__foot {
  display: none;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .ct-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-card {
    padding: 34px 32px 26px;
    border-radius: 24px;
  }
}

@media (min-width: 768px) {
  .ct-hero {
    padding: 132px 0 40px;
  }

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

@media (min-width: 1024px) {
  .ct-hero {
    padding: 156px 0 64px;
  }

  .ct-hero__media {
    height: 100%;
  }

  .ct-hero__media::after {
    background:
      linear-gradient(180deg, rgba(19, 20, 23, 0.72) 0%, rgba(19, 20, 23, 0) 26%, rgba(19, 20, 23, 0) 62%, var(--ct-dark) 100%),
      linear-gradient(90deg, rgba(19, 20, 23, 0.82) 0%, rgba(19, 20, 23, 0.45) 46%, rgba(19, 20, 23, 0.82) 72%, rgba(19, 20, 23, 0.92) 100%);
  }

  .ct-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "copy card"
      "help card";
    column-gap: clamp(48px, 6vw, 120px);
    row-gap: 48px;
  }

  .ct-hero__copy {
    padding-top: 12px;
  }

  .ct-card {
    padding: 40px 40px 28px;
  }
}

@media (min-width: 1280px) {
  .ct-hero {
    border-radius: 0 0 32px 32px;
  }

  .ct-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  }
}

@keyframes ct-drift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translateX(-1.2%); }
}

@keyframes ct-ping {
  0% { opacity: 0.6; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.8); }
}

@media (prefers-reduced-motion: reduce) {
  .ct-hero__media img,
  .ct-card__tag span::after {
    animation: none;
  }

  .ct-help__item,
  .ct-input,
  .ct-submit,
  .ct-submit__icon {
    transition: none;
  }
}

@media (max-width: 767px) {
  .ct-hero {
    border-radius: 0;
  }
}
