/* =============================================
   OFM Landing — olciaberg.pl style
   ============================================= */

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

:root {
  --btn-color: #A94B4D;
  --btn-text: #ffffff;
  --text: #ffffff;
  --bg: #101010;
  --accent: #A94B4D;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

/* =============================================
   Background
   ============================================= */

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(16, 16, 16, 0.6) 70%,
    rgba(16, 16, 16, 1) 100%
  );
}

/* =============================================
   Page Layout
   ============================================= */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  max-width: 420px;
  margin: 0 auto;
}

/* =============================================
   Social Icons
   ============================================= */

.socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease-out both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.social-link svg {
  width: 26px;
  height: 26px;
}

.social-link:active {
  transform: scale(0.9);
  color: #ffffff;
}

/* =============================================
   Profile
   ============================================= */

.profile {
  text-align: center;
  margin-bottom: 2.5rem;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.profile-bio {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

/* =============================================
   Buttons
   ============================================= */

.buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-4px) rotate(-1deg); }
  30% { transform: translateX(4px) rotate(1deg); }
  45% { transform: translateX(-3px) rotate(-0.5deg); }
  60% { transform: translateX(3px) rotate(0.5deg); }
  75% { transform: translateX(-2px); }
  90% { transform: translateX(2px); }
}

.btn-pill {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 50px;
  background: var(--btn-color);
  color: var(--btn-text);
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  animation: shake 2s ease-in-out infinite;
}

.btn-pill:active {
  transform: scale(0.97);
  animation: none;
}

.btn-hold {
  animation: shake 2s ease-in-out infinite, holdPulse 2s ease-in-out infinite;
}

.btn-pill .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-pill .btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-pill .btn-text {
  flex: 1;
  text-align: center;
  padding-right: 20px;
}

/* =============================================
   Pulse Animation
   ============================================= */

@keyframes holdPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(169, 75, 77, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(169, 75, 77, 0);
  }
}

/* =============================================
   Footer
   ============================================= */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0.75rem;
  z-index: 1;
}

.footer-text {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.15);
}

/* =============================================
   Animations
   ============================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 360px) {
  .btn-pill {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
}

@media (min-width: 481px) {
  .page {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
