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

.container {
  width: min(1180px, 92%);
  margin-inline: auto
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800
}

h3 {
  font-size: 1.15rem;
  font-weight: 700
}

.tag {
  display: inline-block;
  background: #fff;
  color: var(--purple);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  border: 1px solid #e4dcff
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .92rem;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  border: 0
}

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 77, 141, .28)
}

.btn:hover {
  transform: translateY(-3px) scale(1.03)
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px
}

section {
  padding: 90px 0
}

/* ---------- HERO + 3D CUBE ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #faf7ff, #fff)
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px ;
}

.crumbs {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px
}

.crumbs a {
  color: var(--purple)
}

.page-hero p.lead {
  font-size: 1.08rem;
  margin: 20px 0 28px;
  max-width: 540px
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .7;
  animation: drift 12s ease-in-out infinite alternate
}

.blob.a {
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ffb3cf, transparent 70%)
}

.blob.b {
  left: -100px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #cdbcff, transparent 70%);
  animation-delay: -5s
}

@keyframes drift {
  to {
    transform: translate(30px, 24px) scale(1.08)
  }
}

.scene {
  position: relative;
  height: 380px;
  display: grid;
  place-items: center;
  perspective: 1000px
}

.cube-wrap {
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
}

.cube {
  --s: 150px;
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: spin 18s linear infinite
}

.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.6rem;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .35), 0 0 40px rgba(108, 60, 240, .25);
  backface-visibility: visible
}

.face:nth-child(1) {
  transform: translateZ(75px);
  background: linear-gradient(135deg, #8b5cf6, #c084fc)
}

.face:nth-child(2) {
  transform: rotateY(90deg) translateZ(75px);
  background: linear-gradient(135deg, #ff6fa5, #ff9acb)
}

.face:nth-child(3) {
  transform: rotateY(180deg) translateZ(75px);
  background: linear-gradient(135deg, #ff9a4d, #ffc27a)
}

.face:nth-child(4) {
  transform: rotateY(-90deg) translateZ(75px);
  background: linear-gradient(135deg, #34d3b0, #7ee8cf)
}

.face:nth-child(5) {
  transform: rotateX(90deg) translateZ(75px);
  background: linear-gradient(135deg, #7c5cff, #a78bfa)
}

.face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(75px);
  background: linear-gradient(135deg, #ff4d8d, #ff8a3d)
}

@keyframes spin {
  from {
    transform: rotateX(-22deg) rotateY(0)
  }

  to {
    transform: rotateX(-22deg) rotateY(360deg)
  }
}

.cube-shadow {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 160px;
  height: 26px;
  margin-left: -80px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(60, 30, 140, .35), transparent 70%);
  animation: pulse 4s ease-in-out infinite
}

@keyframes pulse {
  50% {
    transform: scale(.8);
    opacity: .6
  }
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, .2) 45%, rgba(108, 60, 240, .18));
  border: 1px solid rgba(108, 60, 240, .18);
  animation: rise linear infinite
}

.bubble:nth-child(1) {
  left: 6%;
  width: 26px;
  height: 26px;
  animation-duration: 9s;
  bottom: -30px
}

.bubble:nth-child(2) {
  left: 22%;
  width: 14px;
  height: 14px;
  animation-duration: 7s;
  animation-delay: -3s;
  bottom: -30px
}

.bubble:nth-child(3) {
  left: 48%;
  width: 34px;
  height: 34px;
  animation-duration: 11s;
  animation-delay: -6s;
  bottom: -40px
}

.bubble:nth-child(4) {
  left: 70%;
  width: 18px;
  height: 18px;
  animation-duration: 8s;
  animation-delay: -2s;
  bottom: -30px
}

.bubble:nth-child(5) {
  left: 90%;
  width: 30px;
  height: 30px;
  animation-duration: 10s;
  animation-delay: -5s;
  bottom: -40px
}

@keyframes rise {
  to {
    transform: translateY(-560px) translateX(24px)
  }
}

/* ---------- STORY: layered 3D visual ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.visual {
  position: relative;
  min-height: 440px;
  perspective: 1100px
}

.stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
}

.vbox {
  position: absolute;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  box-shadow: 0 24px 50px rgba(60, 30, 140, .2)
}

.vbox.one {
  inset: 0 18% 18% 0;
  background: linear-gradient(135deg, #d9ccff, #f3ecff);
  transform: translateZ(0)
}

.vbox.two {
  inset: 34% 0 0 34%;
  background: linear-gradient(135deg, #ffc9dc, #ffe6d3);
  border: 8px solid #fff;
  transform: translateZ(70px)
}

.vbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit
}

.badge {
  position: absolute;
  left: 16px;
  bottom: 30px;
  transform: translateZ(110px);
  background: var(--grad);
  color: #fff;
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 18px 34px rgba(255, 77, 141, .4);
  animation: bob 4s ease-in-out infinite
}

.badge b {
  font-size: 2rem;
  display: block;
  line-height: 1
}

.badge span {
  font-size: .8rem;
  font-weight: 600
}

@keyframes bob {
  50% {
    transform: translateZ(110px) translateY(-10px)
  }
}

.story p {
  margin-top: 18px
}

.ticks {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin: 26px 0 30px
}

.ticks li {
  display: flex;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: .93rem
}

.ticks li::before {
  content: "✓";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #efe8ff;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: .72rem
}

/* ---------- STATS ---------- */
.stats {
  background: #1E1646;
  padding: 56px 0;
  position: relative;
  overflow: hidden
}

.stats::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 60, 240, .55), transparent 70%)
}

.stat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center
}

.stat b {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.stat span {
  color: #cfc8f5;
  font-size: .92rem;
  font-weight: 500
}

/* ---------- CARDS WITH 3D TILT ---------- */
.lav {
  background: var(--lav)
}

.head {
  max-width: 620px;
  margin-bottom: 46px
}

.head p {
  margin-top: 14px
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(60, 30, 140, .07);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .15s ease-out, box-shadow .3s;
  will-change: transform
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 100% 0, var(--c, #e4dcff) 0 62px, transparent 63px);
  opacity: .85;
  pointer-events: none
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .65), transparent 60%);
  opacity: 0;
  transition: opacity .25s
}

.card.tilting {
  box-shadow: 0 30px 60px rgba(60, 30, 140, .18)
}

.card.tilting::after {
  opacity: 1
}

.ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--b, #efe8ff);
  margin-bottom: 18px;
  transform: translateZ(40px);
  box-shadow: 0 10px 18px rgba(60, 30, 140, .12)
}

.card h3 {
  transform: translateZ(26px)
}

.card p {
  font-size: .93rem;
  margin-top: 8px;
  transform: translateZ(14px)
}

.c1 {
  --c: #d9ccff;
  --b: #ece4ff
}

.c2 {
  --c: #ffc9dc;
  --b: #ffe3ed
}

.c3 {
  --c: #ffe0c4;
  --b: #fff0e0
}

.c4 {
  --c: #c4f1e6;
  --b: #e0faf3
}

.c5 {
  --c: #d9ccff;
  --b: #ece4ff
}

.c6 {
  --c: #ffc9dc;
  --b: #ffe3ed
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  perspective: 1200px
}

.member {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(60, 30, 140, .07);
  text-align: center;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .15s ease-out, box-shadow .3s
}

.member.tilting {
  box-shadow: 0 30px 60px rgba(60, 30, 140, .18)
}

.avatar {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #e4dcff, #ffe3ed)
}

.member:nth-child(2) .avatar {
  background: linear-gradient(135deg, #ffe3ed, #ffe9d6)
}

.member:nth-child(3) .avatar {
  background: linear-gradient(135deg, #d6f6ec, #e4dcff)
}

.member:nth-child(4) .avatar {
  background: linear-gradient(135deg, #ffe9d6, #e4dcff)
}

.member .info {
  padding: 20px
}

.member p {
  font-size: .85rem;
  color: var(--purple);
  font-weight: 600
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 44px
}

.trust span {
  background: #fff;
  border: 1px solid #e4dcff;
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 18px;
  border-radius: 99px
}

/* ---------- CTA ---------- */
.cta {
  border-radius: 28px;
  background: var(--grad);
  padding: 70px 30px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden
}

.cta::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  animation: drift 9s ease-in-out infinite alternate
}

.cta h2 {
  color: #fff;
  position: relative
}

.cta p {
  margin: 14px auto 28px;
  max-width: 520px;
  color: #fff;
  opacity: .92;
  position: relative
}

.cta .btn {
  background: #fff;
  color: var(--ink);
  position: relative
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:960px) {

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .scene {
    height: 320px
  }

  .cards3,
  .team-grid {
    grid-template-columns: 1fr 1fr
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 34px
  }
}

@media(max-width:720px) {
  .links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 22px;
    padding: 10px 24px;
    box-shadow: 0 14px 34px rgba(60, 30, 140, .14)
  }

  .links.open {
    display: flex
  }

  .links a {
    padding: 12px 0;
    border-bottom: 1px solid #f0ebff
  }

  .menu-btn {
    display: block
  }

  .nav .btn {
    display: none
  }

  section {
    padding: 64px 0
  }

  .cards3,
  .team-grid,
  .ticks {
    grid-template-columns: 1fr
  }

  .visual {
    min-height: 360px
  }
}

/* ---------- REDUCED MOTION ---------- */
@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }

  .js .reveal {
    opacity: 1;
    transform: none
  }

  .cube {
    transform: rotateX(-22deg) rotateY(-30deg)
  }
}