/* ==========================================================================
   Global variables
   ========================================================================== */
:root {
  --clr-navy-900: #10184f;
  --clr-blue-500: #3b6ff0;
  --clr-text-primary: #1b2559;
  --clr-divider: #d7dae1;
  --clr-header-border: #e9eaee;
  --clr-mobile-header-bg: #ced3dc;
  --clr-modal-bg: #132a72;
  --clr-cta-gradient-start: #0d2b6b;
  --clr-cta-gradient-end: #1954d1;
  --clr-form-border: rgba(13, 43, 107, 0.6);
  --clr-final-cta-text: #f3ecfe;

  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  /* font-family: var(--font-base); */
  margin: 0;
  background-color: #ffffff;
}

@font-face {
  font-family: "Aspekta";
  src: url("../fonts/webfonts/Aspekta-350.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aspekta";
  src: url("../fonts/webfonts/Aspekta-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  src: url("../fonts/webfonts/Aspekta-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  src: url("../fonts/webfonts/Aspekta-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Aspekta", sans-serif !important;
}

/* ==========================================================================
   Page-wide decorative background patches
   Fixed to the viewport (not the page), so they stay put on screen while
   every section scrolls over them. Sections with an opaque/dark background
   (video card, quote banner, final CTA) naturally cover them — that's the
   point: section content always renders above the patches.
   `filter: blur()` (not `backdrop-filter`) softens the shape's own edge into
   a diffused glow — backdrop-filter only blurs what's behind it, which does
   nothing over a flat background and leaves a hard circle edge.
   ========================================================================== */
.bg-patch {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  background-color: #1e49b733;
  filter: blur(160px);
  -webkit-filter: blur(160px);
  pointer-events: none;
}

.bg-patch--top-left {
  top: -8vh;
  left: -10vw;
  width: clamp(320px, 34vw, 560px);
  height: clamp(320px, 34vw, 560px);
}

.bg-patch--bottom-right {
  bottom: -15vh;
  right: -8vw;
  width: clamp(340px, 36vw, 600px);
  height: clamp(340px, 36vw, 600px);
}

a {
  outline-offset: 2px;
}

/* ==========================================================================
   Shared section layout
   ========================================================================== */
/* Horizontal padding steps up at each breakpoint and settles at a fixed
   120px on desktop (1440px+), matching the Figma spec exactly at that size
   while staying proportional and readable below it. */
.section-container {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 375px) {
  .section-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 425px) {
  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .section-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1440px) {
  .section-container {
    padding-left: 7.5rem;
    padding-right: 7.5rem;
  }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--clr-header-border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  padding: 0.75rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand logos */
.brand-group {
  gap: 0.75rem;
}

.brand-logo {
  /* height: 34px; */
  width: auto;
  display: block;
}

/* .brand-logo--ethosh {
  height: 18px;
} */

.brand-divider {
  display: inline-block;
  width: 1px;
  height: 24px;
  background-color: var(--clr-divider);
}

/* Desktop nav actions */
.header-actions {
  gap: 1.5rem;
}

.nav-link-login {
  color: var(--clr-text-primary);
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link-login:hover,
.nav-link-login:focus {
  color: var(--clr-blue-500);
}

.btn-request-demo {
  background: linear-gradient(90deg, var(--clr-navy-900) 0%, var(--clr-blue-500) 100%);
  color: #ffffff;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.55rem 1.4rem;
  border-radius: 0.5rem;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.btn-request-demo:hover,
.btn-request-demo:focus {
  color: #ffffff;
  opacity: 0.9;
}

/* Hamburger toggler */
.custom-toggler {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  width: 26px;
}

.custom-toggler:focus {
  box-shadow: none;
  outline: none;
}

.toggler-icon {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--clr-text-primary);
  border-radius: 2px;
}

/* ==========================================================================
   Mobile / Tablet offcanvas menu
   ========================================================================== */
.mobile-menu {
  background-color: #ffffff;
}

.mobile-menu-header {
  background-color: var(--clr-mobile-header-bg);
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  justify-content: space-between;
}

.btn-close-custom {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--clr-text-primary);
  padding: 0;
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
  gap: 1.5rem;
}

.mobile-login-link {
  color: var(--clr-text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.btn-request-demo--mobile {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.6rem;
}

/* Force the offcanvas to cover the full viewport below the md breakpoint,
   matching the full-screen mobile menu shown in the design. */
@media (max-width: 767.98px) {
  .mobile-menu {
    width: 100vw !important;
    max-width: 100%;
  }
}

/* ==========================================================================
   Request a Demo modal
   ========================================================================== */
.demo-modal-dialog {
  max-width: 600px;
}

.demo-modal-content {
  background-color: var(--clr-modal-bg);
  border: none;
  border-radius: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
}

.btn-close-demo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  transition: background-color 0.2s ease;
}

.btn-close-demo:hover,
.btn-close-demo:focus {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.demo-modal-body {
  padding: 0;
  text-align: center;
}

.demo-modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.demo-modal-logo span {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 700;
  color: #ffffff;
}

.demo-modal-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 500;
  color: #eef1fb;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.demo-input-group {
  max-width: 520px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 5px;
}

.demo-input-group .form-control {
  border: none;
  background: transparent;
  padding: 0.65rem 0 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--clr-text-primary);
}

.demo-input-group .form-control:focus {
  box-shadow: none;
  outline: none;
}

.demo-input-group .btn-get-in-touch {
  background-color: var(--clr-blue-500);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.6rem;
  white-space: nowrap;
}

.demo-input-group .btn-get-in-touch:hover,
.demo-input-group .btn-get-in-touch:focus {
  color: #ffffff;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .demo-input-group .form-control {
    padding: 0.6rem 0 0.6rem 1rem;
    font-size: 0.85rem;
    min-width: 0;
  }

  .demo-input-group .btn-get-in-touch {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Hero / Banner section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: clamp(2.5rem, 6vw, 6rem);
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 100%;
}

.hero-heading-1 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3rem);
  font-weight: 400;
  color: #000000;
  line-height: 1.15;
  margin: 0;
}

.hero-heading-2 {
  font-size: clamp(2rem, 1.3rem + 4vw, 4rem);
  font-weight: 600;
  color: #000000;
  line-height: 1.05;
  margin: 0.5rem 0 0;
}


/* From tablet-landscape/laptop widths up, keep each heading on a single
   line (per design) by tying font-size purely to viewport width so the
   text-to-container ratio — and therefore the line length — stays constant. */
@media (min-width: 992px) {
  .hero-heading-1 {
    font-size: 3vw;
    white-space: nowrap;
  }

  .hero-heading-2 {
    font-size: 4vw;
    white-space: nowrap;
  }
}

.hero-description {
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
  margin: 1.5rem 0 0;
  max-width: 620px;
}

.hero-form {
  margin-top: 2rem;
}

/* Reusable bordered form-container + gradient CTA pattern used across the site */
.form-cta-group {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 521px;
  border: 1px solid var(--clr-form-border);
  border-radius: 12px;
  padding: 5px;
  background-color: #ffffff;
  margin-top: 1rem;
}

.form-cta-group .form-control {
  border: none;
  background: transparent;
  padding: 0.6rem 0 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--clr-text-primary);
  min-width: 0;
}

.form-cta-group .form-control:focus {
  box-shadow: none;
  outline: none;
}

.btn-cta-gradient {
  background: linear-gradient(90deg, var(--clr-cta-gradient-start) 0%, var(--clr-cta-gradient-end) 100%);
  color: #ffffff;
  font-weight:400;
  font-size: 0.9rem;
  border: none;
  border-radius: 5.61px;
  padding: 0.6rem 1.4rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.btn-cta-gradient:hover,
.btn-cta-gradient:focus {
  color: #ffffff;
  opacity: 0.9;
}

/* ==========================================================================
   Video showcase section
   ========================================================================== */
.video-showcase-section {
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 6rem);
}

.video-showcase-frame {
  border: 12px solid #0b0e33;
  border-radius: 31.37px;
  overflow: hidden;
  background-color: #0b0e33;
  line-height: 0;
}

.video-showcase-video {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Feature carousel section
   ========================================================================== */
.carousel-section {
  background: linear-gradient(160deg, #eef1fc 0%, #ffffff 55%);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.carousel-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-brand {
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.4rem);
  font-weight: 700;
  color: var(--clr-text-primary);
}

.carousel-counter {
  display: flex;
  align-items: baseline;
}

.carousel-counter-current {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  font-weight: 700;
  color: var(--clr-text-primary);
}

.carousel-counter-total {
  font-size: 1rem;
  font-weight: 500;
  color: #9aa0b4;
}

.carousel-body {
  position: relative;
}

.carousel-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.carousel-slide.is-leaving {
  opacity: 0;
}

.carousel-media {
  width: 100%;
  max-width: 560px;
}

.carousel-media-image {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-content {
  width: 100%;
  text-align: center;
}

.feature-badge {
  display: inline-block;
  background-color: #e7e9fb;
  color: var(--clr-text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.carousel-heading {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1.2;
  margin: 1rem 0 0;
}

.carousel-bullets {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.carousel-bullets li {
  font-size: 1.05rem;
  color: var(--clr-text-primary);
  padding-left: 1.25rem;
  position: relative;
}

.carousel-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background-color: var(--clr-blue-500);
}

.carousel-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.carousel-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.progress-segment {
  position: relative;
  flex: 1;
  height: 4px;
  min-width: 0;
  border: none;
  border-radius: 999px;
  background-color: #d7dae1;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.progress-segment-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: var(--clr-text-primary);
  transform: scaleX(0);
  transform-origin: left;
}

.progress-segment.active .progress-segment-fill {
  animation: progress-segment-fill-in var(--progress-duration, 3.5s) linear forwards;
}

@keyframes progress-segment-fill-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-segment.active .progress-segment-fill {
    animation: none;
    transform: scaleX(1);
  }
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Both arrows share one neutral look; whichever was clicked last (or drove
   the latest autoplay tick) gets `.active` for the dark, filled styling —
   see setActiveNavButton() in main.js. */
.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid var(--clr-divider);
  color: var(--clr-text-primary);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-btn.active {
  background-color: var(--clr-text-primary);
  border-color: var(--clr-text-primary);
  color: #ffffff;
}

.nav-btn:hover,
.nav-btn:focus {
  opacity: 0.85;
}

@media (min-width: 992px) {
  .carousel-slide {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .carousel-media {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .carousel-content {
    flex: 0 0 42%;
    max-width: 42%;
    text-align: left;
  }

  .carousel-bullets {
    align-items: flex-start;
  }
}

/* ==========================================================================
   Quote / CTA banner section
   ========================================================================== */
.quote-banner-section {
  /* min-height: 60vh; */
  display: flex;
  align-items: center;
  justify-content: center;
    background: linear-gradient(90deg, var(--clr-cta-gradient-start) 0%, var(--clr-cta-gradient-end) 100%);
  padding-top: clamp(3rem, 8vw, 6rem);
  /* padding-bottom: clamp(3rem, 8vw, 6rem);
  margin-bottom: clamp(1rem, 3vw, 2rem); */
  text-align: center;
  padding: 6rem 0;
}

.quote-banner-text {
  font-size: 1.5rem;
  font-weight: 200;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 auto;
  text-align: left;
  font-family: "Aspekta", sans-serif !important;
}

.quote-banner-emphasis {
  font-weight: 400;
}

/* ==========================================================================
   Final CTA section
   ========================================================================== */
.final-cta-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-cta-gradient-start);
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.final-cta-logo {
  display: flex;
    align-items: center;
    justify-content: right;
    gap: 1rem;
    /* margin-bottom: 1.5rem; */
}

.final-cta-logo svg {
  width: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  height: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  flex-shrink: 0;
}

.final-cta-heading {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
}
.final-cta-logo img{
  width: 8%;
}
.final-cta-text {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--clr-final-cta-text);
  /* max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.5; */
  text-align: right;
   font-family: "Aspekta", sans-serif;
}

.final-cta-form {
  display: flex;
  justify-content: right;
  margin: 0;
}

/* ==========================================================================
   Lead-form success toast
   ========================================================================== */
.lead-success-toast {
  background: linear-gradient(90deg, var(--clr-cta-gradient-start) 0%, var(--clr-cta-gradient-end) 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.6rem;
  box-shadow: 0 12px 32px rgba(13, 43, 107, 0.3);
}

.lead-success-toast .toast-body {
  font-weight: 500;
  font-size: 0.95rem;
}
