/* apps.melma.pl — MelmaDev Apps
   Mobile-first, no framework. Palette taken from the Spin & Guess light theme. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunito-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/nunito-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/nunito-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-extrabold.woff2") format("woff2");
}

:root {
  --sky: #a9def7;
  --sky-soft: #ddf1fc;
  --mint: #eaf7e6;
  --mint-strong: #7bc9a2;
  --card: #ffffff;
  --card-tint: #f1f7ea;
  --ink: #44506b;
  --ink-strong: #2f3a57;
  --ink-soft: #5e6b87;
  --rose: #e05a6e;
  --violet: #8e7cc3;
  --sunny: #ffd66b;
  --sunny-deep: #f6b93d;
  --blue: #7fb6e8;
  --coral: #f2788c;
  --label-ink: #3f3c58;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(68, 80, 107, 0.12);
  --shadow-sm: 0 4px 14px rgba(68, 80, 107, 0.10);
  --container: 1100px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Reserve the scrollbar track so short pages (no scrollbar) and long pages
     (scrollbar) keep the header and content at the same horizontal position. */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  /* Gradient fades into the solid mint colour; no `fixed` attachment (iOS
     ignores it and it forces full repaints while scrolling). */
  background-color: var(--mint);
  background-image: linear-gradient(180deg, var(--sky) 0, var(--sky-soft) 40rem, var(--mint) 90rem);
  background-repeat: no-repeat;
  min-height: 100vh;
}

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

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rose);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink-strong);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  padding: 1rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-strong);
}

.brand:hover {
  color: var(--ink-strong);
}

.brand__mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand__suffix {
  font-weight: 600;
  color: var(--ink-soft);
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.lang-switch__item {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.lang-switch__item.is-active {
  background: var(--ink-strong);
  color: #fff;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: var(--shadow-sm);
  min-height: 3.25rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--sunny) 0%, var(--sunny-deep) 100%);
  color: var(--label-ink);
}

.btn--primary:hover {
  color: var(--label-ink);
}

.btn--secondary {
  background: #fff;
  color: var(--ink-strong);
}

.btn--large {
  padding: 1.1rem 2rem;
  font-size: 1.15rem;
}

.btn__icon {
  width: 1.4em;
  height: 1.4em;
  flex: none;
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: 3rem 0;
}

.section__title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section__lead {
  text-align: center;
  max-width: 40rem;
  margin: -1rem auto 2rem;
  color: var(--ink-soft);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* Catalog (home) --------------------------------------------------------- */

.intro {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.intro__lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto;
}

.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.app-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  align-items: start;
}

.app-card__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.app-card__body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.app-card__platform {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--card-tint);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.6rem;
}

.app-card__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-card__actions .btn {
  flex: 1 1 12rem;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: 1.5rem 0 3rem;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.hero__slogan {
  display: block;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.hero__desc {
  font-size: 1.1rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

.phone {
  width: min(280px, 70vw);
  margin: 0 auto;
  border-radius: 36px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 560 / 980;
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .phone {
    animation: float 6s ease-in-out infinite;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* How to play ------------------------------------------------------------ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--label-ink);
  background: var(--sunny);
}

.step:nth-child(2)::before {
  background: #cbb3e8;
}

.step:nth-child(3)::before {
  background: #a5e3e0;
}

.step:nth-child(4)::before {
  background: #c3e6a3;
}

.step h3 {
  margin-bottom: 0.25rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

/* Features --------------------------------------------------------------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
}

.feature__icon {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--card-tint);
}

.feature__icon img {
  width: 2.5rem;
  height: 2.5rem;
}

.feature h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Gallery ---------------------------------------------------------------- */

.gallery {
  list-style: none;
  margin: 0 calc(50% - 50vw);
  padding: 0.5rem calc(50vw - 50%) 1rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery__item {
  flex: 0 0 min(66vw, 260px);
  scroll-snap-align: center;
}

.gallery__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  aspect-ratio: 540 / 960;
}

.gallery__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__caption {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.gallery-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Fade the edges on the horizontal (mobile) gallery to signal more content. */
@media (max-width: 767px) {
  .gallery {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
  min-height: 10px;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(68, 80, 107, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.gallery-dots button.is-active {
  width: 26px;
  background: var(--sunny-deep);
}

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}

.lightbox::backdrop {
  background: rgba(47, 58, 87, 0.85);
}

.lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 3.5rem 1rem 1rem;
}

.lightbox__img {
  max-height: calc(100vh - 5rem);
  max-width: 100%;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.lightbox__btn {
  position: absolute;
  top: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink-strong);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.lightbox__btn--close {
  right: 0.75rem;
}

.lightbox__btn--prev,
.lightbox__btn--next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__btn--prev {
  left: 0.75rem;
}

.lightbox__btn--next {
  right: 0.75rem;
}

.lightbox__caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  padding: 0 4rem;
}

/* Trailer ---------------------------------------------------------------- */

.video {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink-strong);
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-strong);
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.video__poster:hover .video__play {
  transform: scale(1.04);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

/* Facts / trust ---------------------------------------------------------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.fact {
  padding: 1rem;
  text-align: center;
}

.fact__label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact__value {
  display: block;
  font-weight: 800;
  color: var(--ink-strong);
  font-size: 1.05rem;
}

/* CTA band --------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--card-tint) 100%);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.cta-band--final {
  background: linear-gradient(135deg, var(--sunny) 0%, #ffe8a3 100%);
}

.cta-band--final h2,
.cta-band--final p {
  color: var(--label-ink);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer__brand {
  margin: 0;
  font-weight: 700;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.site-footer__nav a {
  color: var(--ink-soft);
}

/* Back to top ------------------------------------------------------------ */

.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink-strong);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.to-top svg {
  width: 1.4rem;
  height: 1.4rem;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--rose);
}

@media (prefers-reduced-motion: no-preference) {
  .to-top {
    transform: translateY(1rem);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  }

  .to-top.is-visible {
    transform: none;
  }

  .to-top:hover {
    transform: translateY(-3px);
  }
}

/* Prose (privacy policy) ------------------------------------------------- */

.prose {
  max-width: 46rem;
  margin: 1rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.prose h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.3rem;
}

.prose a {
  word-break: break-word;
}

.prose__meta {
  color: var(--ink-soft);
}

.prose__notice {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--violet);
  background: var(--sky-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.prose__notice p {
  margin: 0;
}

.prose__copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sky-soft);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* 404 ---------------------------------------------------------------- */

.not-found {
  max-width: 34rem;
  margin: 2rem auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.not-found__code {
  font-size: clamp(4rem, 15vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--coral) 0%, var(--violet) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found p {
  color: var(--ink-soft);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Breakpoints ------------------------------------------------------------ */

@media (min-width: 600px) {
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  }

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

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

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .gallery {
    margin: 0;
    padding: 0.5rem 0 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }

  .gallery__item {
    flex: none;
  }

  .gallery-hint,
  .gallery-dots {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 2.5rem 0 4rem;
  }

  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .phone {
    width: 300px;
    transform: rotate(-3deg);
  }

  @media (prefers-reduced-motion: no-preference) {
    .phone {
      animation: float-tilt 6s ease-in-out infinite;
    }
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .step {
    padding: 4rem 1.5rem 1.5rem;
  }

  .step::before {
    left: 1.5rem;
    top: 1.5rem;
  }

  .facts {
    grid-template-columns: repeat(6, 1fr);
  }
}

@keyframes float-tilt {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-10px);
  }
}

/* Motion ----------------------------------------------------------------
   Reveal states only apply when JS runs (html.js), so nothing is hidden
   without JavaScript. With prefers-reduced-motion only opacity fades and
   shadow/colour hover feedback remain; transforms, the hero entrance, the
   CTA glow and the gallery auto-scroll (JS) are disabled. */

.js .reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transition-delay: 0s;
}

.card,
.gallery__button,
.feature__icon,
.step::before,
.hero__icon,
.app-card__icon {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.step:hover,
.feature:hover,
.fact:hover,
.app-card:hover,
.gallery__button:hover,
.gallery__button:focus-visible {
  box-shadow: var(--shadow);
}

.feature:hover .feature__icon {
  background: var(--sunny);
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js .reveal.is-visible {
    transform: none;
    transition-delay: 0s;
  }

  .js .hero__copy {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .js .hero__visual {
    animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .step:hover,
  .feature:hover,
  .fact:hover,
  .app-card:hover {
    transform: translateY(-5px);
  }

  .feature:hover .feature__icon {
    transform: scale(1.15) rotate(-8deg);
  }

  .step:hover::before {
    transform: scale(1.15) rotate(8deg);
  }

  .app-card:hover .app-card__icon {
    transform: rotate(-4deg) scale(1.05);
  }

  .gallery__button:hover,
  .gallery__button:focus-visible {
    transform: translateY(-4px) scale(1.02);
  }

  .hero__icon:hover {
    transform: rotate(-6deg) scale(1.05);
  }

  .btn--primary {
    position: relative;
    overflow: hidden;
  }

  .btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
  }

  .btn--primary:hover::after {
    transform: translateX(120%);
  }

  .hero .btn--primary {
    animation: glow 3s ease-in-out 1.2s infinite;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: var(--shadow-sm);
  }
  50% {
    box-shadow: 0 8px 28px rgba(246, 185, 61, 0.55);
  }
}
