:root {
  --motion-fast: 160ms;
  --motion-med: 320ms;
  --motion-slow: 620ms;
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-spring: cubic-bezier(.16, 1, .3, 1);
  --profi-green: #b6ef3a;
  --profi-blue: #245d7f;
  --profi-ink: #101419;
}

html.profi-motion-off *,
html.profi-motion-off *::before,
html.profi-motion-off *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 1ms !important;
}

.motion-toggle {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding: 9px 12px;
  font-weight: 800;
  transition: transform var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease);
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  transform: translate3d(0, -1px, 0);
  background: rgba(255, 255, 255, .12);
}

.motion-toggle[aria-pressed="true"] {
  border-color: var(--profi-green);
  color: var(--profi-green);
}

.profi-hero-lab {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.profi-hero-lab span {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  padding: 14px;
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-weight: 800;
  transform: translate3d(0, 0, 0);
}

.profi-hero-lab b {
  display: block;
  color: #fff;
  font-size: 16px;
}

.profi-hero-lab span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent, rgba(182, 239, 58, .24), transparent);
  transform: translate3d(-120%, 0, 0);
  animation: profiScan 4.6s var(--motion-ease) infinite;
}

.profi-hero-lab span:nth-child(2)::after { animation-delay: .5s; }
.profi-hero-lab span:nth-child(3)::after { animation-delay: 1s; }
.profi-hero-lab span:nth-child(4)::after { animation-delay: 1.5s; }

.ad-preview {
  transform: translate3d(0, 0, 0);
  animation: profiHeroIn .7s var(--motion-spring) both;
}

.phone-frame {
  transition: transform var(--motion-med) var(--motion-spring), box-shadow var(--motion-med) var(--motion-ease);
  will-change: transform;
}

.phone-frame:hover,
.phone-frame:focus-within {
  transform: translate3d(0, -6px, 0) rotateX(2deg) rotateY(-2deg);
}

.profi-funnel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 56px 0;
}

.profi-funnel-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.profi-funnel h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.profi-steps {
  display: grid;
  gap: 10px;
}

.profi-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  text-align: left;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease);
}

.profi-step:hover,
.profi-step:focus-visible,
.profi-step[aria-selected="true"] {
  border-color: var(--profi-green);
  background: #f8fee9;
  transform: translate3d(0, -2px, 0);
}

.profi-step i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--profi-ink);
  color: var(--profi-green);
  font-style: normal;
  font-weight: 900;
}

.profi-step b {
  display: block;
  margin-bottom: 2px;
}

.profi-step span {
  color: var(--muted);
  font-size: 14px;
}

.profi-panel {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.profi-panel-stage {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 8px;
  background: var(--profi-ink);
  color: #fff;
  padding: 18px;
}

.profi-panel-stage svg {
  width: 100%;
  height: auto;
}

.profi-panel-copy {
  margin-top: 16px;
}

.profi-panel-copy p {
  color: var(--muted);
}

.lead-form {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: #fff;
}

.lead-form input:invalid:not(:placeholder-shown),
.lead-form textarea:invalid:not(:placeholder-shown),
.lead-form select:invalid:not(:placeholder-shown) {
  border-color: #c83232;
}

.lead-form.is-sent {
  animation: formPulse .56s var(--motion-spring);
}

.profi-toast {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 80;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16, 20, 25, .2);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(.98);
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.profi-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.profi-toast-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--profi-green);
}

.profi-toast svg path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawStroke .72s var(--motion-spring) forwards;
}

.sticky-contact {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(16, 20, 25, .94);
  box-shadow: 0 18px 60px rgba(16, 20, 25, .28);
  padding: 8px;
  color: #fff;
  backdrop-filter: blur(14px);
}

.sticky-contact a,
.sticky-contact button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: inherit;
  font-weight: 900;
}

.sticky-contact a {
  background: var(--profi-green);
  color: var(--profi-ink);
}

.sticky-contact button {
  background: rgba(255, 255, 255, .1);
}

.sticky-contact.is-collapsed a:not(:first-of-type) {
  display: none;
}

.sticky-contact {
  transition: transform var(--motion-med) var(--motion-spring), opacity var(--motion-fast) var(--motion-ease);
}

@keyframes profiScan {
  to { transform: translate3d(120%, 0, 0); }
}

@keyframes profiHeroIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes formPulse {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  45% { transform: translate3d(0, -3px, 0) scale(1.012); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 920px) {
  .motion-toggle {
    display: none;
  }

  .profi-hero-lab,
  .profi-funnel-grid {
    grid-template-columns: 1fr;
  }

  .profi-hero-lab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .profi-hero-lab {
    grid-template-columns: 1fr;
  }

  .profi-funnel {
    padding: 42px 0;
  }

  .sticky-contact {
    display: flex;
    left: 12px;
    right: 12px;
    justify-content: space-between;
  }

  body {
    padding-bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profi-hero-lab span::after,
  .ad-preview,
  .lead-form.is-sent,
  .profi-toast svg path {
    animation: none !important;
  }
}
