/* Apple-style full-bleed product panels */

.apple-landing {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.apple-scroll {
  margin: 0;
}

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.apple-panel {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background-color: #000;
  overflow: hidden;
}

/* Full-bleed: Bild füllt immer den Viewport (cover). Schmale Geräte: eigenes Asset per <picture> (siehe HTML). */
.apple-panel__picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.apple-panel__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.apple-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.75) 100%);
}

.apple-panel--github::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.82) 100%);
}

.apple-panel__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.apple-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.apple-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.72);
}

.apple-headline {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 0.15em 1.2em rgba(0, 0, 0, 0.45);
}

.apple-sub {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  color: rgba(245, 245, 247, 0.88);
  text-shadow: 0 0.1em 0.8em rgba(0, 0, 0, 0.4);
}

.apple-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #000;
  background: #f5f5f7;
  border-radius: 980px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.apple-cta:hover {
  transform: scale(1.03);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.apple-cta:active {
  transform: scale(0.98);
}

.apple-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 247, 0.45);
  z-index: 2;
  animation: apple-float 2.2s ease-in-out infinite;
}

@keyframes apple-float {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateX(-50%) translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apple-hint {
    animation: none;
  }

  .apple-reveal {
    transition-duration: 0.01ms;
  }
}

.apple-footer {
  padding: 2.75rem 1.5rem 3.25rem;
  text-align: center;
  scroll-snap-align: end;
  background: #000;
  min-height: auto;
}

.apple-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
}

.apple-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #f5f5f7;
  text-decoration: none;
  background: #000;
  border: 1px solid rgba(245, 245, 247, 0.35);
  border-radius: 980px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.apple-footer__btn:hover {
  background: rgba(245, 245, 247, 0.1);
  border-color: rgba(245, 245, 247, 0.55);
  color: #fff;
}

.apple-footer__btn:active {
  background: rgba(245, 245, 247, 0.16);
}

.apple-footer__btn:focus-visible {
  outline: 2px solid #f5f5f7;
  outline-offset: 3px;
}
