.home-main {
  overflow-x: clip;
  overflow-y: visible;
  background: transparent;
}

.site-shell {
  position: relative;
  z-index: 0;
  overflow-x: clip;
  background: var(--bg);
}

.site-shell::before,
.site-shell::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.site-shell::before {
  width: min(82vw, 1080px);
  aspect-ratio: 1;
  left: 50%;
  top: 590px;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background:
    radial-gradient(circle at 18% 26%, rgba(105, 227, 255, 0.92), transparent 30%),
    radial-gradient(circle at 78% 52%, rgba(23, 104, 255, 0.78), transparent 40%),
    radial-gradient(circle at 42% 84%, rgba(10, 99, 230, 0.64), transparent 42%);
  filter: blur(46px);
  opacity: 0.78;
  transform: translate(-50%, -50%);
  animation: homeHeroFluid 6.5s ease-in-out infinite alternate;
}

.site-shell::after {
  width: min(56vw, 700px);
  aspect-ratio: 1.15;
  left: 58%;
  top: 615px;
  border-radius: 62% 38% 48% 52% / 42% 58% 40% 60%;
  background:
    radial-gradient(circle at 24% 62%, rgba(45, 220, 255, 0.6), transparent 34%),
    radial-gradient(circle at 74% 34%, rgba(45, 90, 255, 0.58), transparent 42%);
  filter: blur(34px);
  opacity: 0.64;
  transform: translate(-50%, -50%) rotate(8deg);
  animation: homeHeroFluidAccent 5.2s ease-in-out infinite alternate;
}

.site-header,
.home-main {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 1000;
}

.site-header .site-header__inner {
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(14, 37, 69, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  z-index: 0;
  overflow: visible;
}

.hero + .section,
.hero ~ .section,
.hero ~ .logo-cloud {
  position: relative;
  z-index: 1;
}

.section-intro h2 {
  font-size: 40px;
  line-height: 56px;
}

.section--use-cases,
.logo-cloud,
.section--testimonials {
  padding-top: 120px;
}

.pixel-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.cta-shape-grid {
  display: block;
  position: absolute;
  z-index: 1;
  width: 1240px;
  min-width: 1240px;
  max-width: 1240px;
  height: 1080px;
  min-height: 1080px;
  max-height: 1080px;
  left: 50%;
  top: 50%;
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
}

[data-float-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--hover-lift, 0px), 0) translateY(56px);
  will-change: opacity, transform;
}

[data-float-reveal].is-visible {
  animation: floatRevealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--float-delay, 0ms);
}

.hero::before,
.hero::after {
  display: none;
}

.hero .hero-shell {
  z-index: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  animation: none;
}

.hero .hero-copy {
  z-index: 1;
}

.hero .hero-shell::before,
.hero .hero-shell::after {
  display: none;
}

.hero .hero-copy__meta {
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgb(255 255 255 / 20%);
}

.hero .hero-copy h1 {
  letter-spacing: 0.08em !important;
  line-height: 1.16;
}

.hero .hero-copy h1 span + span {
  margin-top: 10px;
}

.hero .hero-cta {
  width: auto;
  min-width: max-content;
  padding: 0 24px;
  gap: 12px;
  white-space: nowrap;
}

@keyframes homeHeroFluid {
  0% {
    border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
    transform: translate(-56%, -52%) scale(0.92) rotate(0deg);
  }

  45% {
    border-radius: 58% 42% 44% 56% / 42% 56% 44% 58%;
    transform: translate(-44%, -56%) scale(1.1) rotate(24deg);
  }

  100% {
    border-radius: 42% 58% 52% 48% / 56% 46% 54% 44%;
    transform: translate(-51%, -43%) scale(1.18) rotate(-18deg);
  }
}

@keyframes homeHeroFluidAccent {
  0% {
    border-radius: 62% 38% 48% 52% / 42% 58% 40% 60%;
    transform: translate(-58%, -48%) scale(0.94) rotate(8deg);
  }

  50% {
    border-radius: 38% 62% 58% 42% / 60% 38% 62% 40%;
    transform: translate(-45%, -56%) scale(1.12) rotate(-22deg);
  }

  100% {
    border-radius: 54% 46% 36% 64% / 44% 62% 38% 56%;
    transform: translate(-52%, -42%) scale(1.02) rotate(18deg);
  }
}

@keyframes floatRevealUp {
  from {
    opacity: 0;
    transform: translate3d(0, var(--hover-lift, 0px), 0) translateY(56px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, var(--hover-lift, 0px), 0) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }

  [data-float-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.review-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 24, 44, 0.06);
}

.review-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.review-card strong {
  display: block;
  font-size: 16px;
}

.review-card span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.use-case-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.section--use-cases .section-shell--scenes {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.use-cases-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 12px;
  margin-bottom: 24px;
}

.use-cases-intro > div {
  display: grid;
  gap: 12px;
}

.use-cases-intro h2 {
  max-width: none;
  white-space: nowrap;
}

.use-cases-intro p {
  max-width: 1240px;
  font-size: 16px;
  transform: none;
}

.logo-cloud__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 12px;
}

.logo-cloud__intro > div {
  display: grid;
  gap: 12px;
}

.logo-cloud__intro h2 {
  max-width: none;
  white-space: nowrap;
}

.logo-cloud__intro p {
  max-width: 1240px;
  transform: none;
}

.testimonials-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 12px;
}

.testimonials-intro > div {
  display: grid;
  gap: 12px;
}

.testimonials-intro h2 {
  max-width: none;
  white-space: nowrap;
}

.testimonials-intro p {
  max-width: 1240px;
  transform: none;
}

.use-case-card,
.testimonial-card {
  --hover-lift: 0px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 24, 44, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.use-case-card:hover,
.testimonial-card:hover {
  box-shadow: 0 24px 48px rgba(14, 37, 69, 0.14);
  border-color: rgba(10, 99, 230, 0.14);
}

.use-case-card,
.testimonial-card {
  padding: 24px;
}

.use-case-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  color: inherit;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(56, 142, 255, 0.22);
  background: radial-gradient(circle at top left, rgba(23, 104, 255, 0.035), transparent 24%), linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.96));
  border-color: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 31, 48, 0.07);
}

.use-case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle 190px at var(--mouse-x) var(--mouse-y),
      var(--spotlight-color),
      rgba(56, 142, 255, 0) 68%
    );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.use-case-card:hover::before {
  opacity: 1;
}

.use-case-card > * {
  position: relative;
  z-index: 1;
}

.use-case-card:focus-visible {
  outline: 2px solid rgba(10, 99, 230, 0.45);
  outline-offset: 3px;
}

.use-case-card__topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.use-case-card__index {
  color: rgba(16, 35, 62, 0.34);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.use-case-card__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(10, 99, 230, 0.66));
}

.use-case-card h3 {
  margin: 0;
  color: #0f2340;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0;
  font-weight: 600;
}

.use-case-card p {
  margin: 0;
  color: #50627c;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 20px;
}

.testimonials-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 12px;
  margin: 0 0 24px;
}

.testimonials-intro h2 {
  max-width: none;
  white-space: nowrap;
}

.testimonials-intro p {
  max-width: 1240px;
  font-size: 17px;
  transform: none;
}

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  padding: 24px 0 80px;
}

.testimonial-marquee::before,
.testimonial-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 120px;
  pointer-events: none;
}

.testimonial-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.96), transparent);
}

.testimonial-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 251, 255, 0.96), transparent);
}

.testimonial-track {
  --testimonial-gap: 18px;
  display: flex;
  gap: var(--testimonial-gap);
  width: max-content;
  animation: testimonialScroll 44s linear infinite;
}

.testimonial-loop {
  display: flex;
  gap: var(--testimonial-gap);
  padding: 0;
  flex: 0 0 auto;
}

.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
    width: 300px;
    height: 400px;
    min-height: 0;
    padding: 24px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgb(245 251 255 / 96%));
    box-shadow: 0 24px 58px rgba(17, 31, 48, 0.12);
    overflow: hidden;
}

.testimonial-card--quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 38%, rgba(189, 226, 255, 0.54), transparent 34%);
  pointer-events: none;
}

.testimonial-card--photo {
  padding: 0;
  color: #0f2340;
  background: linear-gradient(145deg, rgba(255, 252, 244, 0.98), rgba(236, 248, 255, 0.98));
}

.testimonial-card__photo-wrap {
  position: relative;
  height: 184px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 252, 244, 0.96), rgba(232, 247, 255, 0.96));
}

.testimonial-card__photo-wrap strong {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  color: #0f2340;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.testimonial-card__photo {
  position: absolute;
  right: -18px;
  bottom: 0;
  display: block;
  width: 210px;
  height: 184px;
  object-fit: cover;
  object-position: center top;
}

.testimonial-card--photo .testimonial-card__body {
  position: relative;
  flex: 1;
  padding: 18px 22px 88px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(15, 23, 36, 0.22));
  backdrop-filter: blur(16px);
}

.testimonial-card--photo .testimonial-card__tags {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}

.testimonial-card--photo .testimonial-card__tags span {
  color: #fff;
  background: transparent;
  padding: 0;
  font-weight: 800;
}

.testimonial-card--photo .testimonial-card__tags span + span {
  margin-top: 6px;
}

.testimonial-card--photo .testimonial-card__tags span + span::before {
  content: none;
}

.testimonial-card__body,
.testimonial-card__head,
.testimonial-card__tags {
  position: relative;
  z-index: 1;
}

.testimonial-card__body {
  display: block;
  flex: 1;
  min-height: 0;
  position: relative;
}

.testimonial-card__body p {
  margin: 0;
  color: #0f2340;
  font-size: 13px;
  line-height: 1.62;
  font-weight: 500;
}

.testimonial-card__tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
}

.testimonial-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    color: #10233e;
    background: linear-gradient(90deg, rgba(210, 248, 247, 0.8), rgba(223, 238, 255, 0.88));
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
}

.testimonial-card__image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__head {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 40px;
}

.testimonial-card__avatar {
    display: block;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(17, 31, 48, 0.08);
    overflow: hidden;
    object-fit: cover;
    object-position: center top;
}

.testimonial-card strong {
  order: 0;
  margin-top: 0;
  color: #0f2340;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.testimonial-card p {
  order: 0;
  margin: 0;
  color: #50627c;
  font-size: 16px;
  line-height: 1.8;
}

.testimonial-card .testimonial-card__body p {
    color: #4c5f7b;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    flex: 0 0 auto;
}

.testimonial-card--quote .testimonial-card__body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

.testimonial-card--photo .testimonial-card__body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  margin-top: 38px;
}

@keyframes testimonialScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1200px) {
  .use-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-shell::before {
    width: min(73.8vw, 612px);
    top: 340px;
    filter: blur(clamp(23.4px, 3.96vw, 36px));
  }

  .site-shell::after {
    width: min(52.2vw, 432px);
    left: 62%;
    top: 385px;
    filter: blur(clamp(18px, 3.06vw, 27px));
  }

  .use-cases-intro,
  .testimonials-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .use-cases-intro h2,
  .use-cases-intro p,
  .testimonials-intro h2,
  .testimonials-intro p {
    max-width: none;
  }

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

@media (max-width: 640px) {
  .site-shell::before {
    width: min(86.4vw, 486px);
    top: 320px;
    filter: blur(clamp(20px, 4.3vw, 27px));
  }

  .site-shell::after {
    width: min(63vw, 342px);
    top: 360px;
    filter: blur(clamp(14px, 3.4vw, 20px));
  }

  .hero .hero-shell {
    overflow: visible;
    border: 0;
  }

  .section--use-cases,
  .logo-cloud,
  .section--testimonials {
    padding-top: 64px;
  }

  .hero .hero-copy h1 {
    font-size: 42px;
  }

  .hero .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
  }

  .hero .hero-cta {
    flex: 0 1 auto;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding: 0 24px 0 24px;
    gap: 12px;
  }

  .hero .hero-cta__icon {
    width: 24px;
    height: 24px;
  }

  .hero .hero-cta__icon img,
  .hero .hero-cta__icon svg {
    width: 17px;
    height: 17px;
  }

  .home-main .section-intro h2 {
    font-size: 32px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .section--use-cases .section-shell--scenes,
  .section--testimonials .section-shell--testimonials {
    border-radius: 28px;
  }

  .section--use-cases .section-shell--scenes {
    padding: 0;
    border-radius: 0;
  }

  .section--testimonials .section-shell--testimonials {
    padding: 0;
  }

  .testimonials-intro {
    margin: 0;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .use-case-card {
    padding: 24px;
  }

  .testimonial-marquee {
    margin: 0;
  }

  .testimonial-marquee::before,
  .testimonial-marquee::after {
    width: 42px;
  }

  .testimonial-track {
    --testimonial-gap: 14px;
    animation-duration: 52s;
  }

  .testimonial-card {
    flex-basis: min(82vw, 300px);
    width: min(82vw, 300px);
    height: min(calc(82vw * 4 / 3), 400px);
    min-height: 0;
    padding: 24px;
  }

  .testimonial-card--photo {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    animation: none;
  }
}

.footer-meta__line--friend-links {
  display: flex;
}
