:root {
  color-scheme: light;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1f2937;
  background: #f8fafc;
  --primary-color: #324d3c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  line-height: 1.6;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  display: grid;
  place-items: center start;
  height: 100vh;
  padding: 4rem 1.5rem;
  text-align: left;
  background-image: url("assets/Hero.png") !important;
  background-position: left center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  color: var(--primary-color);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 55%;
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero__subtitle {
  margin: 1.5rem auto 2rem;
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: 0 18px 45px rgba(67, 56, 202, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(67, 56, 202, 0.2);
}

main {
  padding: 0;
}

/* ── Alternating Image + Text Splits ─────────────────────────── */

/* Mobile: inset rounded card */
.split-block {
  width: calc(100% - 3rem);
  margin: 1.5rem auto;
  border-radius: 16px;
  overflow: hidden;
  color: #ffffff;
}

.split-block__inner {
  display: flex;
  flex-direction: column;
}

.split-block__media {
  order: 1;
}

.split-block__media img,
.split-block__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.split-block__text {
  padding: 2rem 1.5rem 2.5rem;
}

.split-block__text .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.split-block__text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.1;
}

.split-block__text p:last-child {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

/* Tablet: full-bleed, stacked, media inset */
@media (min-width: 600px) {
  .split-block {
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .split-block__inner {
    width: 100%;
    max-width: 680px;
    padding: 2.5rem 2rem;
  }

  .split-block__media {
    order: unset;
  }

  .split-block__media img,
  .split-block__media video {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .split-block__text {
    padding: 1.5rem 0 0;
  }
}

/* Desktop: side-by-side, full screen height */
@media (min-width: 900px) {
  .split-block {
    min-height: 100vh;
  }

  .split-block__inner {
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    padding: 4rem 2rem;
    align-items: center;
  }

  .split-block--reverse .split-block__inner {
    flex-direction: row-reverse;
  }

  .split-block__media {
    flex: 0 0 50%;
    padding: 0 2.5rem;
  }

  .split-block__media img,
  .split-block__media video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
  }

  .split-block__text {
    flex: 1;
    padding: 2rem 3rem;
  }
}

/* ── End Alternating Splits ──────────────────────────────────── */

.carousel-info {
  padding: 3rem 1.5rem 2rem;
}

.carousel-info__inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.carousel-info__inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
}

.carousel-info__inner p {
  margin: 0 auto;
  max-width: 720px;
  color: #475569;
}

#demo {
  width: 100%;
  margin: 0;
  padding: 0 1rem 2.5rem;
}

#owl-demo {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.25rem 0 2.25rem;
}

#owl-demo .owl-stage-outer {
  overflow: visible;
  padding: 0.75rem 0.25rem 1rem;
}

#owl-demo .owl-item {
  opacity: 0.65;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

#owl-demo .owl-item.active {
  opacity: 0.9;
}

#owl-demo .owl-item.active.center {
  opacity: 1;
  transform: scale(1.045);
  z-index: 2;
}

#owl-demo .item {
  background: #ffffff;
  padding: 0;
  margin: 5px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

#owl-demo .item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

#owl-demo .item .caption {
  padding: 1rem 1rem 1.15rem;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
}

#owl-demo .item .caption h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

#owl-demo .item .caption p {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: #475569;
}

#owl-demo .owl-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

#owl-demo .owl-nav button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#owl-demo .owl-nav button:hover,
#owl-demo .owl-nav button:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

#owl-demo .owl-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

#owl-demo .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  display: block;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#owl-demo .owl-dots .owl-dot.active span {
  width: 22px;
  border-radius: 999px;
  background: #ffffff;
}

#owl-demo .carousel-controls-wrap {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1rem auto 0;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#owl-demo .carousel-controls-wrap > .owl-prev,
#owl-demo .carousel-controls-wrap > .owl-next {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: none;
  padding: 0;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#owl-demo .carousel-controls-wrap > .owl-prev:hover,
#owl-demo .carousel-controls-wrap > .owl-prev:focus,
#owl-demo .carousel-controls-wrap > .owl-next:hover,
#owl-demo .carousel-controls-wrap > .owl-next:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

#owl-demo .carousel-controls-wrap > .owl-dots {
  margin: 0;
}

@media (max-width: 992px) {
  #owl-demo .owl-item.active.center {
    transform: scale(1.03);
  }
}

@media (max-width: 720px) {
  #owl-demo .owl-stage-outer {
    padding: 0.5rem 0 0.8rem;
  }

  #owl-demo .owl-item,
  #owl-demo .owl-item.active,
  #owl-demo .owl-item.active.center {
    opacity: 1;
    transform: none;
  }

  #owl-demo .carousel-controls-wrap {
    gap: 0.6rem;
    padding: 0.4rem 0.55rem;
  }
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.5rem 1.5rem 2rem;
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer__nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__nav a {
  color: #c7d2fe;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: #ffffff;
}

@media (max-width: 992px) {
  .hero {
    place-items: end center;
    min-height: 90vh;
    padding: 2rem 1rem 1.5rem;
    background-image:
      url("assets/Hero-mobile.png"), url("assets/Hero.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    color: #ffffff;
  }

  .hero__content {
    max-width: 90%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .hero__button {
    width: min(100%, 320px);
    display: inline-flex;
    margin: 0 auto;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .hero__button {
    display: none;
  }
}
