/**
 * Smart Meds Reminder - Landing Page Styles
 * Modern, responsive, and performance-optimized
 */

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */

:root {
  /* Colors */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #1d4ed8;
  --accent: #0ea5e9;
  
  --bg-white: #ffffff;
  --bg-gray-50: #f7fafc;
  --bg-gray-100: #f1f5f9;
  --bg-gray-900: #1a202c;
  
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --header-height: 70px;
  
  /* Animation */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

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

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

.outline-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.outline-btn:hover {
  background: var(--primary);
  color: white;
}

.ghost-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
}

.ghost-btn:hover {
  color: var(--text-primary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  height: var(--header-height);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: opacity var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-link:hover {
  opacity: 0.9;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.lang-btn {
  padding: 0.375rem 0.75rem;
  color: white;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

/* ============================================
   INSTALL BANNER
   ============================================ */

.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}

.banner.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.banner-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.banner-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(180deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-media {
  position: relative;
}

.phone-mockup {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.phone-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
  background: var(--bg-white);
}

.cmp-notice {
  width: 100%;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 3px solid var(--primary);
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  animation: slideInDown 0.5s ease-out;
}

.cmp-notice-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.98) 0%, rgba(5, 150, 105, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--primary-dark);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cmp-notice-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.cmp-notice-fixed .cmp-notice-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .cmp-notice-fixed .cmp-notice-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  
  .cmp-notice-fixed {
    padding: 1rem;
  }
}

.cmp-notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cmp-notice-fixed .cmp-notice-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
  .cmp-notice-fixed .cmp-notice-icon {
    display: none;
  }
}

.cmp-notice-text {
  flex: 1 1 100%;
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: center;
}

.cmp-notice-fixed .cmp-notice-text {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  text-align: left;
}

@media (max-width: 768px) {
  .cmp-notice-fixed .cmp-notice-text {
    text-align: center;
    font-size: 0.9rem;
  }
}

.cmp-notice-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cmp-notice-fixed .cmp-notice-buttons {
  width: auto;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .cmp-notice-fixed .cmp-notice-buttons {
    width: 100%;
    justify-content: center;
  }
}

.cmp-notice-button {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 150px;
}

.cmp-notice-fixed .cmp-notice-button {
  min-width: 120px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.cmp-notice-fixed .primary-btn {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.cmp-notice-fixed .primary-btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.cmp-notice-fixed .outline-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cmp-notice-fixed .outline-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cmp-notice-fixed .cmp-notice-button {
    flex: 1;
    min-width: auto;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0 1rem;
}

.feature-card {
  background: var(--bg-gray-50);
  padding: 2rem;
  border-radius: 1rem;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: white;
}

.feature-card.feature-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid var(--primary);
  position: relative;
}

.feature-card.feature-highlight::before {
  content: 'NEW';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */

.screens-section-full {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-gray-50) 50%, var(--bg-white) 100%);
  padding: 4rem 0;
  overflow: hidden;
}

.screens-section-full .section-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.screenshot-grid-full {
  display: flex;
  gap: 2rem;
  padding: 2rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  scrollbar-width: thin;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.screenshot-grid-full::-webkit-scrollbar {
  height: 10px;
}

.screenshot-grid-full::-webkit-scrollbar-track {
  background: var(--bg-gray-100);
  border-radius: 5px;
  margin: 0 2rem;
}

.screenshot-grid-full::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

.screenshot-grid-full::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
  transition: transform var(--transition-base);
}

.screenshot-item:hover {
  transform: translateY(-10px);
}

.screenshot-item img {
  width: 280px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  background: white;
}

.screenshot-item:hover img {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(1.02);
}

.screenshot-caption {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

/* ============================================
   TUTORIALS SECTION
   ============================================ */

.tutorials-section {
  background: var(--bg-white);
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tutorial-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.tutorial-card .placeholder-text {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { 
    opacity: 0.8;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.05);
  }
  100% { 
    opacity: 0.8;
    transform: scale(1);
  }
}

.coming-soon-icon {
  font-size: 1.5em;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: var(--bg-gray-100);
  border-radius: 0.5rem;
  -webkit-overflow-scrolling: touch; /* Dla lepszego scrollowania na iOS */
  max-width: 100vw;
  margin: 0;
  box-sizing: border-box;
}

/* Styl dla ładowania filmu na mobile */
.video-loading {
  position: relative;
}

.video-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

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

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray-100);
}

.yt-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.yt-placeholder:hover img {
  filter: brightness(0.7);
}

.yt-placeholder button {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.yt-placeholder button svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  margin-left: 4px;
}

.yt-placeholder:hover button {
  background: var(--primary);
  transform: scale(1.1);
}

.yt-placeholder:hover button svg {
  fill: white;
}

.video-wrapper.tutorial-placeholder {
  background: linear-gradient(135deg, var(--bg-gray-100) 0%, var(--bg-gray-50) 100%);
  border-radius: 0.5rem;
  overflow: hidden;
}

.placeholder-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.95) 50%);
}

.placeholder-content svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.placeholder-content p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--primary);
  animation: pulse 2s infinite;
  max-width: 80%;
}

.placeholder-content .tutorial-link {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.placeholder-content .tutorial-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.tutorial-content {
  padding: 1.5rem;
}

.tutorial-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.tutorial-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tutorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.tutorial-link:hover {
  gap: 0.75rem;
}

.youtube-channel-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 1rem;
  color: white;
}

.cta-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.youtube-channel-cta .btn {
  background: white;
  color: var(--primary);
  border: none;
}

.youtube-channel-cta .btn:hover {
  transform: scale(1.05);
}

/* ============================================
   INSTALL SECTION
   ============================================ */

.install-section {
  background: linear-gradient(180deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
}

.install-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.install-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.install-description {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.install-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.install-card .primary-btn {
  background: white;
  color: var(--primary);
}

.install-card .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.install-card .outline-btn {
  border-color: white;
  color: white;
}

.install-card .outline-btn:hover {
  background: white;
  color: var(--primary);
}

.install-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.install-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-gray-900);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: white;
}

.footer-download-link {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.footer-download-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
}

.footer-download-link:hover {
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.separator {
  opacity: 0.3;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-media {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .logo-text {
    display: inline;
  }
  
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary-dark);
    padding: 1rem;
    gap: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .banner-actions {
    justify-content: center;
  }
  
  .hero {
    padding: 3rem 0 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshot-grid-full {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .screenshot-item img {
    width: 220px;
    max-height: 440px;
  }
  
  .screenshot-caption {
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .install-card {
    padding: 2rem 1.5rem;
  }
  
  .install-title {
    font-size: 1.75rem;
  }
  
  .install-buttons {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cta-row {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .screenshot-grid-full {
    padding: 0.5rem;
    gap: 1rem;
  }
  
  .screenshot-item img {
    width: 180px;
    max-height: 360px;
  }
  
  .screenshot-caption {
    font-size: 0.875rem;
    margin-top: 0.75rem;
  }
}

@media (min-width: 1440px) {
  .screenshot-grid-full {
    gap: 3rem;
    padding: 3rem;
  }
  
  .screenshot-item img {
    width: 320px;
    max-height: 640px;
  }
  
  .screenshot-caption {
    font-size: 1.25rem;
    margin-top: 2rem;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed */
}

/* Print styles */
@media print {
  .banner,
  .site-header,
  .mobile-menu-btn,
  .install-section,
  .site-footer {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
  
  .hero,
  .section {
    padding: 1rem 0;
  }
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */

.lightbox {
  display: none !important; /* Hidden by default - IMPORTANT to override any other styles */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw; /* Prevent overflow */
  max-height: 100vh;
  z-index: 10000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden; /* Prevent any overflow */
}

.lightbox.active {
  display: flex !important; /* Show when active */
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  max-width: 600px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2rem;
  font-weight: bold;
  color: #1a202c;
  transition: all 0.2s ease;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

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

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

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

/* Mobile responsive */
@media (max-width: 768px) {
  .lightbox-container {
    padding: 1rem;
  }
  
  .lightbox-img {
    max-height: 70vh;
  }
  
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-caption {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}
