:root {
  --os-purple: #5b59d6;
  --os-purple-dark: #4745c7;
  --os-purple-soft: #ece9fb;
  --os-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #dfdefd;
}

body {
  margin: 0;
  font-family: var(--os-font);
  font-size: 1rem;
  line-height: 1.5;
  color: black;
  background: #dfdefd;
}

body,
button,
input,
textarea,
select {
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Universal section size ---------- */
.section {
  padding: 6rem 7%;
}

/* === NAV BAR === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 54;
  height: 4.125rem;
  padding: 0.6875rem 5% 0;
  background: white;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 61.25rem;
  margin: 0 auto;
}

.site-header__logo {
  display: block;
  height: 2.25rem;
  margin-top: 0.0625rem;
}

.site-header__logo img {
  height: 2.25rem;
  width: auto;
}

.site-header__right {
  display: flex;
  align-items: flex-start;
  column-gap: 2.3rem;
}

/* --- menu --- */
.nav__list {
  display: flex;
  align-items: flex-start;
  column-gap: 2rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  height: 2.25rem;
  font-family: var(--os-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 2.25rem;
  color: black;
  background: none;
  border: 0;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__item:hover > .nav__link,
.nav__item:focus-within > .nav__link {
  color: var(--os-purple);
}

/* --- Solutions dropdown --- */
.nav__dropdown {
  position: absolute;
  top: 2.625rem;
  right: 0;
  display: none;
  width: max-content;
  padding: 0 7%;
  background: white;
  text-align: right;
}

.nav__item--has-menu:hover .nav__dropdown,
.nav__item--has-menu:focus-within .nav__dropdown,
.nav__item--has-menu.is-open .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.97rem;
  color: black;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__dropdown a:hover,
.nav__dropdown a:focus-visible,
.nav__dropdown a.is-current {
  color: var(--os-purple);
}

/* --- Book a Demo button --- */
.btn-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.25rem;
  height: 2.25rem;
  margin-top: 0.0625rem;
  font-family: var(--os-font);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--os-purple);
  border: 0.0625rem solid var(--os-purple);
  border-radius: 0.625rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-demo:hover,
.btn-demo:focus-visible {
  background: white;
  color: var(--os-purple);
}

/* --- hamburger (mobile only) --- */
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--os-purple);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto;
  fill: currentColor;
}

@media (max-width: 62em) {
  .site-header {
    padding-left: 5%;
    padding-right: 5%;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__right {
    position: absolute;
    top: 4.125rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    row-gap: 1rem;
    padding: 1rem 5% 1.5rem;
    background: white;
    box-shadow: 0 0.5rem 0.625rem rgba(0, 0, 0, 0.06);
  }

  .site-header.is-menu-open .site-header__right {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    row-gap: 0.25rem;
  }

  .nav__dropdown {
    position: static;
    padding: 0 0 0 5%;
    text-align: left;
  }

  .nav__item--has-menu:hover .nav__dropdown,
  .nav__item--has-menu:focus-within .nav__dropdown {
    display: none;
  }

  .nav__item--has-menu.is-open .nav__dropdown {
    display: block;
  }

  .btn-demo {
    width: 100%;
  }
}

/* ===HERO=== */
.hero {
  padding-top: 3rem;
  padding-bottom: 1rem;
  background: white;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 11rem;
  align-items: center;
  column-gap: 4rem;
  row-gap: 2.5rem;
  max-width: 61.25rem;
  margin: 0 auto;
}

.hero__inner > div:first-child {
  container-type: inline-size;
}

/* font-size in cqi keeps the title on one line at any column width; retune if the title text changes */
.hero__title {
  max-width: 100%;
  margin: 0;
  font-family: var(--os-font);
  font-size: min(5rem, 9.5cqi);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: var(--os-purple);
  white-space: nowrap;
}

.hero__text {
  max-width: 36em;
  margin: 1.5rem 0 0;
  font-family: var(--os-font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6875rem;
  letter-spacing: normal;
  color: black;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2rem;
  row-gap: 0.75rem;
  margin-top: 2rem;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--os-font);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6875rem;
  letter-spacing: normal;
  color: black;
  transition: color 0.2s ease;
}

.hero__link:hover,
.hero__link:focus-visible {
  color: var(--os-purple);
}

.hero__link svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.09rem;
}

.hero__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 12rem;
}

.hero__icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.hero__icon {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 10rem;
  object-fit: contain;
  transform-origin: 50% 100%;
  animation: icon-bounce 3.2s ease-in-out infinite;
}

.hero__icon-wrap::after {
  content: "";
  width: 90%;
  height: 1.25rem;
  margin-top: 1.25rem;
  background: radial-gradient(ellipse at center, rgba(91, 89, 214, 0.28) 0%, rgba(91, 89, 214, 0) 70%);
  border-radius: 50%;
  animation: icon-shadow 3.2s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0) scale(1.03, 0.97); }
  50%      { transform: translateY(-1.5rem) scale(1, 1); }
}

@keyframes icon-shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.65); opacity: 0.55; }
}

/* ===TESTIMONIAL CARD GRID=== */
.stories {
  background-color: white;
  background-image:
    linear-gradient(
      to bottom,
      white 0%,
      rgba(255, 255, 255, 0.85) 4rem,
      rgba(255, 255, 255, 0.6) 9rem,
      rgba(255, 255, 255, 0.35) 14rem,
      rgba(255, 255, 255, 0.14) 19rem,
      rgba(255, 255, 255, 0) 24rem
    ),
    linear-gradient(
      to top,
      #dfdefd 0%,
      rgba(223, 222, 253, 0.92) 5rem,
      rgba(223, 222, 253, 0.74) 10rem,
      rgba(223, 222, 253, 0.52) 16rem,
      rgba(223, 222, 253, 0.3) 22rem,
      rgba(223, 222, 253, 0.12) 28rem,
      rgba(223, 222, 253, 0) 34rem
    ),
    linear-gradient(
      to top right,
      rgba(205, 118, 182, 0.5) 0%,    /* #cd76b6 */
      rgba(164, 107, 217, 0.5) 50%,   /* #a46bd9 */
      rgba(91, 89, 214, 0.5) 100%     /* #5b59d6 */
    );
}

.stories__grid {
  display: flex;
  align-items: flex-start;
  column-gap: 1.75rem;
  max-width: 72rem;
  margin: 0 auto;
}

.stories__col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  row-gap: 1.75rem;
  min-width: 0;
}

.story {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1.25rem rgba(91, 89, 214, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.75rem rgba(91, 89, 214, 0.14);
}

.story__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.story__text {
  white-space: pre-line;   /* keep line breaks typed in the sheet cell */
  font-family: var(--os-font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: black;
}

.story__text strong {
  font-weight: 700;
}

.story__text + .story__text {
  margin-top: 1rem;
}

.story__author {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-top: 1.5rem;
}

.story__photo,
.story__avatar {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

.story__photo {
  display: block;
  object-fit: cover;
  object-position: center top;
  background: var(--os-purple-soft);
}

.story__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: var(--os-purple-dark);
}

.story__tile--1 { background-image: linear-gradient(135deg, #3d3b8f 0%, #5b59d6 100%); }
.story__tile--2 { background-image: linear-gradient(135deg, #2e2c78 0%, #7a63d9 100%); }
.story__tile--3 { background-image: linear-gradient(135deg, #4b49c0 0%, #8f74e0 100%); }
.story__tile--4 { background-image: linear-gradient(135deg, #34327f 0%, #4f8fd6 100%); }
.story__tile--5 { background-image: linear-gradient(135deg, #43318f 0%, #b06ad0 100%); }
.story__tile--6 { background-image: linear-gradient(135deg, #302e85 0%, #5b59d6 60%, #6fa8e6 100%); }

.story__initials {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
}

.story__meta {
  display: flex;
  flex-direction: column;
  row-gap: 0.15rem;
  min-width: 0;
}

.story__name {
  font-family: var(--os-font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--os-purple);
}

.story__role {
  font-family: var(--os-font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #4a4a5a;
}

.story--skeleton .story__avatar,
.story--skeleton .skel {
  background: linear-gradient(90deg, #efedf8 25%, #f8f7fd 50%, #efedf8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.story--skeleton .story__meta {
  flex: 1;
}

.skel {
  height: 0.875rem;
  margin-top: 0.625rem;
  border-radius: 0.25rem;
}

.story__body > .skel:first-child,
.story__meta > .skel:first-child {
  margin-top: 0;
}

.skel--short {
  width: 40%;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.stories__message {
  flex: 1 1 100%;
  padding: 3rem 5%;
  text-align: center;
  font-size: 1rem;
  color: black;
  background: var(--os-purple-soft);
  border-radius: 0.5rem;
}

.stories__message a {
  font-weight: 700;
  color: var(--os-purple);
}

/* ===SHARE TESTIMONIAL CARD=== */
.share-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 48rem;
  margin: 4.5rem auto 0;
  padding: 3.25rem 2.5rem;
  text-align: center;
  background: white;
  border: 0.0625rem solid rgba(91, 89, 214, 0.16);
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2.5rem rgba(91, 89, 214, 0.12);
}

.share-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--os-purple);
  background: var(--os-purple-soft);
  border-radius: 50%;
}

.share-card__badge svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.share-card__title {
  font-family: var(--os-font);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--os-purple);
}

.share-card__text {
  max-width: 32em;
  margin-top: 0.75rem;
  font-family: var(--os-font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: #4a4a5a;
}

.share-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.625rem;
  margin-top: 1.75rem;
  padding: 0.9375rem 1.875rem;
  font-family: var(--os-font);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  color: white;
  background: var(--os-purple);
  border: 0.0625rem solid var(--os-purple);
  border-radius: 0.75rem;
  box-shadow: 0 0.375rem 1.25rem rgba(91, 89, 214, 0.28);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.share-card__btn:hover,
.share-card__btn:focus-visible {
  background: var(--os-purple-dark);
  border-color: var(--os-purple-dark);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(91, 89, 214, 0.36);
}

.share-card__btn svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.11rem;
  transition: transform 0.2s ease;
}

.share-card__btn:hover svg,
.share-card__btn:focus-visible svg {
  transform: translateX(0.2rem);
}

/* ---------- responsive ---------- */
@media (max-width: 62em) {
  .hero__title {
    max-width: 100%;
  }

  .stories__grid {
    column-gap: 1.5rem;
  }

  .stories__col {
    row-gap: 1.5rem;
  }
}

@media (max-width: 40em) {

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

  .hero__media {
    display: none;
  }

  .stories__col {
    row-gap: 1.25rem;
  }

  .story {
    padding: 1.5rem;
  }

  .share-card {
    margin-top: 3rem;
    padding: 2.25rem 1.5rem;
  }
}

/* ===FOOTER=== */
.site-footer {
  position: relative;
  overflow: hidden;
  min-height: 50 rem;
  background-color: whte;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34rem;
  background: linear-gradient(
    to bottom,
    #dfdefd 0%,
    rgba(223, 222, 253, 0.92) 5rem,
    rgba(223, 222, 253, 0.74) 10rem,
    rgba(223, 222, 253, 0.52) 16rem,
    rgba(223, 222, 253, 0.3) 22rem,
    rgba(223, 222, 253, 0.12) 28rem,
    rgba(223, 222, 253, 0) 34rem
  );
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  max-width: 61.25rem;
  margin: 0 auto;
}

.site-footer__content {
  padding: 5.75rem 3% 20rem 3%;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 32.3% 16.95% 18.6% 15.65% 16.5%;
  padding: 04.55% 2rem 4.55%;
}

.footer-col__title {
  margin: 0 0 1.2rem;
  font-family: "League Spartan", var(--os-font);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.75rem;
  color: var(--os-purple-dark);
}

.footer-col__split {
  display: grid;
  grid-template-columns: 47.8% 52.2%;
}

.footer-col__list li {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 2.1rem;
  color: black;
}

.footer-col__list a {
  color: inherit;
  transition: color 0.2s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--os-purple);
}

.site-footer__wordmark {
  display: block;
  width: 100%;
  max-width: 57.5rem;
  height: auto;
  margin: 0.5rem 0 0 0.2%;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -2rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25rem;
  color: black;
}

.site-footer__social {
  display: flex;
  column-gap: 0.75rem;
}

.site-footer__social a {
  display: block;
}

.site-footer__social img {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 56em) {

  .site-footer__cols {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2rem;
    padding: 0 3%;
  }

  .footer-col--solutions {
    grid-column: span 2;
  }

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

  .site-footer__wordmark {
    margin-top: 2.5rem;
  }

  .site-footer__bottom {
    flex-wrap: wrap;
    row-gap: 1rem;
    margin-top: 1.5rem;
  }

  .site-footer__content {
    padding-bottom: 20rem;
  }
}

@media (max-width: 40em) {

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

  .footer-col--solutions {
    grid-column: 1 / -1;
  }

  .site-footer__content {
    padding-bottom: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
