:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --success: #10B981;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --bg-light: #F9FAFB;
  --bg-lighter: #FFFFFF;
  --border: #E5E7EB;
  --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);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-lighter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-sm);
  transition: background 200ms ease, box-shadow 200ms ease, padding 200ms ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  --icon-primary: #FFFFFF;
  --icon-secondary: rgba(255,255,255,0.8);
  width: 45px;
  height: 45px;
  margin-right: 0.75rem;
  border-radius: 999px;
  background: radial-gradient(140% 140% at 30% 20%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 30%, transparent 60%), var(--gradient-primary);
  box-shadow: 0 6px 14px rgba(124,58,237,0.25), inset 0 0 0 1px rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), inset 0 -4px 10px rgba(0,0,0,0.12);
  pointer-events: none;
}

.logo-icon svg { width: 60%; height: 60%; display: block; }
.logo-icon .icon-primary { fill: var(--icon-primary); }
.logo-icon .icon-secondary { fill: var(--icon-secondary); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin-left: 0.5rem;
  padding: 2px;
  background: rgba(0,0,0,0.04);
  border-radius: 999px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.active { background: white; box-shadow: var(--shadow-sm); color: var(--primary); }

.download-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Hero Section */
.hero {
  margin-top: 77px;
  padding: 6rem 0;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.15), transparent 60%), var(--gradient-primary);
  position: relative;
  overflow: hidden;
  min-height: 700px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(167,139,250,0.18), rgba(255,255,255,0.15), rgba(124,58,237,0.18), rgba(255,255,255,0.12), rgba(167,139,250,0.18));
  filter: blur(60px) saturate(120%);
  opacity: 0.7;
  animation: aurora 16s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 70%;
  background: radial-gradient(60% 80% at 60% 50%, rgba(255,255,255,0.18), transparent 60%), radial-gradient(60% 80% at 40% 60%, rgba(124,58,237,0.25), transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
  animation: float-slow 22s ease-in-out infinite reverse;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 650px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 800;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
}

.hero-content .subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* Glass hero card */
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.25);
}

.hero-card h1 { margin-top: 0; }

.hero-card .subtitle {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.3s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img {
  height: 50px;
  border-radius: 8px;
}

/* Screenshots Section */
.screenshots-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 650px;
}

.phone-carousel {
  position: relative;
  width: 550px;
  height: auto;
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 400ms ease;
}

.phone-frame {
  width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.1));
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.25);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: auto;
  display: block;
  max-width: 550px;
  border-radius: 28px;
}

.phone-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  pointer-events: none;
  mix-blend-mode: soft-light;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--bg-light);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 800;
}

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

/* Carousel (Screenshots) */
.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-viewport {
  overflow: visible; /* allow a peek of neighbors on wide screens */
  width: 100%;
  max-width: 1100px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 400ms ease;
  padding: 24px 0; /* space for focus ring and scale */
}

.carousel-slide {
  flex: 0 0 360px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 300ms ease, filter 300ms ease, box-shadow 300ms ease;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.12));
  outline: none;
}

.carousel-slide:focus-visible {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.45);
}

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

.carousel-slide.active {
  transform: scale(1.22);
  z-index: 2;
  filter: drop-shadow(0 40px 80px rgba(124, 58, 237, 0.25));
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-dark);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  z-index: 5;
}

.carousel-button:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: var(--shadow-xl);
}

.carousel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-button.prev { left: 8px; }
.carousel-button.next { right: 8px; }

/* Pagination dots */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #E5E7EB;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.carousel-dot:hover { transform: scale(1.2); }
.carousel-dot[aria-current="true"] {
  background: var(--primary);
  transform: scale(1.35);
}

/* Autoplay progress */
.carousel-progress {
  --autoplay-ms: 3500ms;
  width: 100%;
  max-width: 800px;
  height: 4px;
  border-radius: 999px;
  background: #EFEAFB;
  overflow: hidden;
  margin: 10px auto 4px;
}

.carousel-progress .bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.carousel-progress .bar.animating {
  animation: progress-fill var(var(--autoplay-ms)) linear forwards;
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-icon {
  --icon-primary: #FFFFFF;
  --icon-secondary: rgba(255, 255, 255, 0.7);
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 30%, transparent 60%), var(--gradient-primary);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25), inset 0 0 0 1px rgba(255,255,255,0.25);
  position: relative;
  transform: translateZ(0);
  transition: transform 200ms ease;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), inset 0 -6px 16px rgba(0,0,0,0.15);
  pointer-events: none;
}

.feature-icon svg {
  width: 60%;
  height: 60%;
  display: block;
}

.feature-icon .icon-primary { fill: var(--icon-primary); }
.feature-icon .icon-secondary { fill: var(--icon-secondary); }

.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.08);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Screenshots Gallery */
.screenshots {
  padding: 6rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9f7ff 100%);
  position: relative;
  overflow: hidden;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 20s ease-in-out infinite;
}

.screenshots::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-item {
  position: relative;
  flex: 0 0 auto;
  width: 250px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.12));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 30px;
  overflow: hidden;
}

.screenshot-item:hover {
  transform: translateY(-15px) scale(1.05);
  filter: drop-shadow(0 35px 70px rgba(124, 58, 237, 0.2));
  z-index: 10;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}

/* Add subtle animation delay for each item */
.screenshot-item:nth-child(1) { animation-delay: 0s; }
.screenshot-item:nth-child(2) { animation-delay: 0.1s; }
.screenshot-item:nth-child(3) { animation-delay: 0.2s; }
.screenshot-item:nth-child(4) { animation-delay: 0.3s; }
.screenshot-item:nth-child(5) { animation-delay: 0.4s; }

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

.screenshot-item {
  animation: screenshot-fade-in 0.8s ease-out backwards;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: var(--gradient-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-slow 18s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 800;
}

.cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Legal Pages Styling */
.legal-page {
  margin-top: 77px;
  padding: 4rem 0;
  min-height: calc(100vh - 77px);
  background: white;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 800;
}

.legal-content .last-updated {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 700;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
  color: var(--text-dark);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Support Page */
.support-page {
  margin-top: 77px;
  padding: 4rem 0;
  background: var(--bg-light);
  min-height: calc(100vh - 77px);
}

.support-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-section {
  margin-top: 3rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.7;
}

/* Add spacing and a subtle divider between Q&A pairs inside a single FAQ item */
.faq-answer p { margin: 0.75rem 0; }
.faq-answer p + p strong {
  display: block;               /* make the next question start on a new line */
  margin-top: 2rem;             /* increased space before the next question */
  padding-top: 1.5rem;          /* increased space after the divider */
  border-top: 1px solid var(--border); /* subtle divider line */
  color: var(--text-dark);
}

.contact-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-md);
}

.contact-section h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-method {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  text-align: center;
}

.contact-method h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-method p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-method a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-method a:hover {
  text-decoration: underline;
}

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

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

@keyframes float-slow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes aurora {
  0% { transform: translateY(-4%) rotate(0deg) scale(1); }
  50% { transform: translateY(2%) rotate(8deg) scale(1.05); }
  100% { transform: translateY(-3%) rotate(-6deg) scale(1.02); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .subtitle {
    font-size: 1.25rem;
  }

  .screenshots-showcase {
    margin-top: 2rem;
    min-height: 500px;
  }

  .carousel-viewport {
    max-width: 900px;
    overflow: hidden; /* keep tighter on tablets */
  }

  .carousel-slide {
    flex-basis: 320px;
  }

  .phone-carousel {
    width: 400px;
  }
  
  .phone-screen {
    max-width: 400px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .screenshots-grid {
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .screenshot-item {
    width: 220px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .screenshot-item {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .phone-carousel {
    width: 320px;
  }
  
  .phone-screen {
    max-width: 320px;
  }
  
  .screenshots-showcase {
    min-height: 420px;
  }

  .carousel-viewport {
    max-width: 100%;
    overflow: hidden; /* keep tight on small screens */
  }

  .carousel-slide {
    flex-basis: 280px;
  }
}
