/* Custom highlight for the 'Mac' text */
.bg-mac-highlight {
  position: relative;
  background: transparent;
}
.bg-mac-highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.25em; height: 0.5em;
  background: #fda4af;
  opacity: 0.9;
  border-radius: 0.125em;
  z-index: -1;
}

/* Button shadow for a soft, floating effect */
.btn-shadow {
  box-shadow: 0 8px 24px 0 rgba(41, 37, 36, 0.12);
}

/* Responsive tweaks for headline */
@media (min-width: 640px) {
  .headline {
    font-size: 3.75rem;
  }
} 

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  background: #101010;
  color: #f3f5f7;
  font-family: 'SF Pro', ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Header styles */
.sticky-blur {
  position: sticky;
  top: 2rem;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(16, 16, 16, 0.8);
  transition: box-shadow 0.2s;
  border-radius: 12px;
  background: #1b1b1b56;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  margin-left: 10rem;
  margin-right: 10rem;
}

.sticky-blur.shadow-lg {
  box-shadow: 0 2px 16px 0 rgba(12,10,9,0.08);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo styles */
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
}

.logo-img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 0.5rem;
}

.logo-svg-asset {
  display: flex;
  align-items: center;
  height: 30px;
}

.logo-svg-asset svg {
  height: 100%;
  width: auto;
  display: block;
}

.spottd-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 1rem;
  color: #f3f5f7;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Navigation styles */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  border-radius: 12px;
}

/* Make header buttons a bit more compact without affecting hero buttons */
.header-nav .btn-primary,
.header-nav .btn-secondary {
  padding: 10px 16px;
  font-size: 1rem;
  min-width: 120px;
}

.header-link {
  color: #f3f5f7;
}

.header-link:hover {
  color: #f3f5f7;
}

/* Button styles */
.btn-primary, .btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 140px;
  box-shadow: 0 0 0 1px transparent;
  width: fit-content;
  font-weight: 700;
  font-size: 1.15rem;
}

.btn-primary {
  background: #f3f5f7;
  color: #292524;
}

.btn-primary .apple-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  transform: translateX(0);
}

.btn-primary .apple-svg svg {
  width: 100%;
  height: 100%;
  fill: #101010;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-primary .btn-text {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  color: #101010;
  margin: 0;
  font-weight: 700;
}

.btn-primary .arrow-svg {
  position: absolute;
  right: 20px;
  top: 52%;
  transform: translateY(-50%) translateX(70px);
  width: 24px;
  height: 24px;
  opacity: 0;
  color: #101010;
  stroke: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform, opacity;
  pointer-events: none;
}

.btn-primary .arrow-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-primary:hover .apple-svg {
  transform: translateX(-70px);
  opacity: 0;
}

.btn-primary:hover .btn-text {
  transform: translateX(-35px);
}

.btn-primary:hover .arrow-svg {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.btn-secondary {
  background: #1b1b1b56;
  color: #f3f5f7;
}

.header-download {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  background: #181414;
  color: #f3f5f7;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.1s;
}

.header-download:hover {
  transform: scale(0.97);
  background: #8d85c5;
  color: #f3f5f7;
}

/* Main content styles */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 0 1rem;
}

/* Hero section styles */
.hero {
  text-align: center;
  margin-top: 3rem;
}

.headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

/* Feature section styles */
.feature-section {
  width: 100%;
  max-width: 80rem;
  margin: 0rem auto 2rem auto;
  padding-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  justify-items: center;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0 0 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure all Lottie icons render pure white */
.feature-icon lottie-player,
.bottom-icon lottie-player {
  filter: brightness(0) invert(1) !important;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
  line-height: 1.4;
  color: #f3f5f7;
}


.wallpaper-img {
  display: block;
  margin: 2rem auto 0 auto;
  max-width: 50rem;
  width: min(90vw, 700px);
  height: auto;
}

/* Footer icon styles */
.bottom-icons {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.bottom-icon-group {
  display: flex;
  gap: 1.5rem;
  background: #1b1b1b56;
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
}

.bottom-icon {
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-icon:hover {
  opacity: 1;
}

.bottom-icon svg {
  stroke: #fff !important;
  fill: #fff !important;
}

/* Utility classes */
.bg-mac-highlight {
  position: relative;
  background: transparent;
}

.bg-mac-highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.25em; height: 0.5em;
  background: #fda4af;
  opacity: 0.9;
  border-radius: 0.125em;
  z-index: -1;
}

.btn-shadow {
  box-shadow: 0 8px 24px 0 rgba(41, 37, 36, 0.12);
}

.mac-highlight {
  position: relative;
  display: inline-block;
}

.mac-highlight .apple-logo {
  position: relative;
  z-index: 1;
}

.mac-highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.1em; height: 0.6em;
  background: #fda4af;
  opacity: 0.7;
  border-radius: 0.2em;
  z-index: 0;
}

/* Animation styles */
.check-svg, .check-svg svg {
  transform-origin: 50% 50%;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mail animation styles */
.mail-svg svg {
  width: 28px;
  height: 28px;
  color: #f3f5f7;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: block;
  transform-origin: center;
}

.btn-secondary:hover .mail-svg svg {
  transform: translateY(-3px) scale(1.1) rotate(-8deg);
}

/* Responsive styles */
@media (min-width: 640px) {
  .headline {
    font-size: 4rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
}

/* Adjust navbar width for large-but-not-full screens */
@media (max-width: 1200px) {
  .sticky-blur {
    margin-left: 8rem;
    margin-right: 8rem;
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 32px;
  }
  .wallpaper-img { width: min(94vw, 640px); margin: 2.5rem auto 0 auto; }
  .sticky-blur {
    margin-left: 6rem;
    margin-right: 6rem;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 60px 0;
    column-gap: 0;
  } 
  .wallpaper-img { width: min(96vw, 560px); margin: 2rem auto 0 auto; }
  .sticky-blur {
    margin-left: 1rem;
    margin-right: 1rem;
    top: 0.6rem;
    margin-top: 0.6rem;
  }

.logo-svg-asset {
  height: 24px;
}
}

/* Bottom button container */
.flex.justify-center.mt-12 {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.flex.justify-center.mt-12 .btn-primary {
  background: #f3f5f7;
  color: #292524;
  box-shadow: 0 8px 18px 0 rgba(205, 205, 205, 0.18), 0 0px 8px 0 rgba(255, 255, 255, 0.1);
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: #1b1b1b;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 90%;
  width: 400px;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f3f5f7;
}

.modal-content p {
  font-size: 1.1rem;
  color: #f3f5f7;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.modal-close {
  background: #f3f5f7;
  color: #101010;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  transform: scale(0.98);
  background: #e5e7eb;
}

/* Add blur to main content when modal is active */
body.modal-active main {
  filter: blur(8px);
  pointer-events: none;
  transition: filter 0.3s ease;
}

/* Header contact button styles */
.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #f3f5f7;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: none;
  padding: 0 8px;
  transition: color 0.2s;
}
.header-contact-btn .mail-svg {
  background: #1b1b1b56;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.header-contact-btn .mail-svg svg {
  width: 28px;
  height: 28px;
  color: #f3f5f7;
  display: block;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.header-contact-text {
  display: inline;
}

/* Hide/show buttons for mobile/desktop */
@media (max-width: 700px) {
  .header-coming-soon-btn { display: none !important; }
  .header-contact-text { display: none !important; }
  .header { padding: 0.6rem; }
  .header-contact-btn { padding: 0; }
  .header-contact-btn .mail-svg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .header-contact-btn .mail-svg svg {
    width: 24px;
    height: 24px;
  }
  .hero-contact-btn { display: none !important; }
  .hero-coming-soon-btn { display: inline-flex !important; }
}
@media (min-width: 701px) {
  .header-contact-btn .mail-svg {
    width: 24px;
    height: 24px;
  }
  .hero-contact-btn { display: inline-flex !important; }
  .hero-coming-soon-btn { display: inline-flex !important; }
}

.header-contact-btn:hover .mail-svg svg {
  transform: translateY(-3px) scale(1.1) rotate(-8deg) !important;
}
