:root {
  --bg-app: #F7F6F2;
  --bg-sidebar: #F0EFE9;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --accent-orange: #F59E0B;
  --accent-orange-hover: #D97706;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.logo-img {
  width: 40px;
  height: 40px;
  background-color: var(--accent-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Hero Section */
.hero {
  padding: 4rem 5% 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Download Button */
.btn-primary {
  background-color: var(--accent-orange);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

/* App Store Carousel */
.app-preview-container {
  padding: 0 5% 5rem;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 50px; /* Space for the navigation arrows */
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding: 10px 0; /* space for box-shadows */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.carousel-slide {
  flex: 0 0 70%; /* Smaller proportion relative to page */
  max-width: 700px;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.05);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: transform 0.2s;
}

.carousel-slide:hover {
  transform: scale(1.02);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-main);
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: #f9fafb;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: white;
  color: black;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.2s;
  color: var(--text-main);
}

.lightbox-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-btn.prev {
  left: -70px;
}

.lightbox-btn.next {
  right: -70px;
}

