/* Home épurée : bouton 3D et origine du projet. */
.hero-tutorial-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
}

.home-founder-story {
  position: relative;
  z-index: 6;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  width: min(1040px, calc(100% - clamp(24px, 4vw, 48px)));
  margin-top: clamp(34px, 5vw, 60px);
  padding: clamp(52px, 6vw, 76px) clamp(34px, 6vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72),
    rgba(245, 248, 255, 0.48) 52%,
    rgba(255, 255, 255, 0.62)
  );
  box-shadow:
    0 24px 68px rgba(38, 50, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(91, 105, 181, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(142%);
  backdrop-filter: blur(20px) saturate(142%);
  text-align: center;
}

.home-founder-story::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 27px;
  pointer-events: none;
}

.home-founder-story::after {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96), transparent);
  pointer-events: none;
}

.home-founder-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.home-founder-story h3 {
  max-width: 720px;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  text-wrap: balance;
}

.home-founder-story p {
  max-width: 740px;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
}

.cta-button.cta-button-3d {
  --cta-rotate-x: 0deg;
  --cta-rotate-y: 0deg;
  --cta-light-x: 34%;
  --cta-light-y: 18%;
  position: relative;
  display: block;
  width: min(360px, calc(100vw - 56px));
  min-height: 74px;
  margin: 5px 0 9px;
  border: 0;
  border-radius: 17px;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  perspective: 1000px;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  -webkit-tap-highlight-color: transparent;
}

.cta-button.cta-button-3d:hover,
.cta-button.cta-button-3d:active {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.cta-button.cta-button-3d:focus-visible {
  outline: 3px solid rgba(77, 87, 255, 0.32);
  outline-offset: 7px;
}

.cta-button-3d__float,
.cta-button-3d__tilt,
.cta-button-3d__face,
.cta-button-3d__depth,
.cta-button-3d__shadow {
  position: absolute;
  pointer-events: none;
}

.cta-button-3d__float {
  inset: 0;
  transform-style: preserve-3d;
  animation: lcdcCtaFloat 5.4s ease-in-out infinite;
}

.cta-button-3d__tilt {
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--cta-rotate-x)) rotateY(var(--cta-rotate-y));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.cta-button-3d__shadow {
  z-index: 0;
  left: 11%;
  right: 11%;
  bottom: -12px;
  height: 30px;
  border-radius: 50%;
  background: rgba(57, 55, 222, 0.3);
  filter: blur(14px);
  opacity: 0.72;
  transform: translateZ(-28px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cta-button-3d__depth {
  z-index: 1;
  inset: 5px 3px -8px;
  border: 1px solid rgba(32, 35, 160, 0.34);
  border-radius: 17px;
  background: linear-gradient(180deg, #3d43dc 0%, #3029bd 100%);
  box-shadow:
    0 12px 24px rgba(36, 38, 160, 0.2),
    inset 0 -2px 0 rgba(18, 24, 120, 0.28);
  transform: translate3d(0, 5px, -10px);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta-button-3d__face {
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 17px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at var(--cta-light-x) var(--cta-light-y),
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.12) 22%,
      transparent 44%
    ),
    linear-gradient(135deg, #7082ff 0%, #5360ff 42%, #4339e9 100%);
  box-shadow:
    0 18px 34px rgba(64, 68, 228, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(34, 35, 170, 0.24);
  transform: translate3d(0, 0, 12px);
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease,
    filter 180ms ease;
  will-change: transform;
}

.cta-button-3d__face::after {
  content: "";
  position: absolute;
  top: -65%;
  left: -22%;
  width: 42%;
  height: 230%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(18deg) translateX(-180%);
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta-button-3d__label {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 760;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(29, 31, 131, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .cta-button.cta-button-3d:hover .cta-button-3d__face {
    box-shadow:
      0 24px 42px rgba(64, 68, 228, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.52),
      inset 0 -1px 0 rgba(34, 35, 170, 0.22);
    transform: translate3d(0, -3px, 18px);
    filter: saturate(1.05);
  }

  .cta-button.cta-button-3d:hover .cta-button-3d__face::after {
    transform: rotate(18deg) translateX(430%);
  }

  .cta-button.cta-button-3d:hover .cta-button-3d__shadow {
    opacity: 0.88;
    transform: translateZ(-28px) scale(1.02);
  }
}

.cta-button.cta-button-3d.is-pressed .cta-button-3d__face {
  box-shadow:
    0 10px 20px rgba(64, 68, 228, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translate3d(0, 5px, 5px);
  filter: brightness(0.98);
}

.cta-button.cta-button-3d.is-pressed .cta-button-3d__depth {
  transform: translate3d(0, 2px, -6px);
}

.cta-button.cta-button-3d.is-pressed .cta-button-3d__shadow {
  opacity: 0.48;
  transform: translateZ(-28px) scale(0.82);
}

@keyframes lcdcCtaFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 780px) {
  .home-founder-story {
    width: min(680px, calc(100% - 24px));
    padding: 42px 30px 46px;
    border-radius: 24px;
  }

  .home-founder-story::before {
    border-radius: 23px;
  }
}

@media (max-width: 620px) {
  .home-founder-story {
    width: calc(100% - 20px);
    padding: 36px 20px 40px;
    border-radius: 20px;
  }

  .home-founder-story::before {
    border-radius: 19px;
  }

  .home-founder-story h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 560px) {
  .cta-button.cta-button-3d {
    min-height: 68px;
    margin-bottom: 7px;
    border-radius: 15px;
  }

  .cta-button-3d__face,
  .cta-button-3d__depth {
    border-radius: 15px;
  }

  .cta-button-3d__label {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-button-3d__float {
    animation: none !important;
  }

  .cta-button-3d__tilt {
    transform: none !important;
    transition: none;
  }

  .cta-button-3d__face::after {
    display: none;
  }
}
