/* Vibrant Dark Premium Mobile-First Tokens */
:root {
  /* Dynamic Gradients */
  --bg-gradient: linear-gradient(145deg, #0f0c29, #302b63, #24243e);
  --accent-gradient: linear-gradient(135deg, #ff007f, #7928ca);
  --card-glass: rgba(255, 255, 255, 0.05);
  
  --clr-primary: #ff007f;
  --clr-text-main: #ffffff;
  --clr-text-muted: #a1a1aa;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-neon: 0 0 25px rgba(255, 0, 127, 0.6);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
  font-family: var(--font-family);
  color: var(--clr-text-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  /* Dark mode background for desktop edges */
  background-color: #050505; 
}

/* Mobile App Frame constraint */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-gradient);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

@media (min-width: 481px) {
  .app-container {
    margin: 2rem 0;
    border-radius: 40px;
    border: 8px solid #1a1a2e;
    min-height: 90vh;
  }
}

.content-wrapper {
  padding: 2rem 1.5rem 8rem 1.5rem; /* bottom padding for sticky CTA */
  flex: 1;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.center-text { text-align: center; }

/* Sections */
.section { padding: 3rem 0; }

.glass-card {
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s ease;
}

.glass-card:active {
  transform: scale(0.98);
}

.glass-card .icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-neon);
}

.glass-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.glass-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Feature tags */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
}

.feature-pill i {
  color: #a855f7;
  font-size: 1.25rem;
}

/* Sticky Action Bar */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
  background: linear-gradient(to top, #0f0c29 60%, transparent);
  z-index: 100;
}

@media (min-width: 481px) {
  .sticky-action-bar {
    position: absolute;
    bottom: 0;
    border-radius: 0 0 32px 32px;
  }
}

.btn-massive {
  display: block;
  width: 100%;
  background: var(--accent-gradient);
  color: white;
  text-align: center;
  padding: 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-neon);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse-glow 2s infinite;
  border: none;
}

/* Animations */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 15px rgba(255, 0, 127, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 127, 0.8); transform: scale(1.02); }
  100% { box-shadow: 0 0 15px rgba(255, 0, 127, 0.4); transform: scale(1); }
}

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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Premium Generated Image Styling */
.premium-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.hero-image-wrapper {
  margin: 2.5rem auto 1rem auto;
  position: relative;
  max-width: 90%;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 12, 41, 0) 50%, var(--bg-gradient) 100%);
  pointer-events: none;
}

/* Templates Carousel */
.carousel-section {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-container {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  padding-top: 1rem;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
}

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

.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.carousel-slide {
  flex: 0 0 75%;
  max-width: 280px;
  scroll-snap-align: center;
  border-radius: var(--radius-xl);
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 4px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  aspect-ratio: 9/16;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.carousel-slide:focus-within, .carousel-slide:hover, .carousel-slide.active-slide {
  transform: scale(1);
  border-color: rgba(255, 0, 127, 0.5);
}

.vertical-phone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* Used contain to ensure the full image frame is shown */
  object-position: center;
  display: block;
}

.clickable-img {
  cursor: pointer;
}

/* Image Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 10000; 
  padding-top: 80px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.85); /* Black w/ opacity */
  backdrop-filter: blur(8px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  animation: zoomIn 0.3s ease;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
  z-index: 10001;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--clr-primary);
  text-decoration: none;
}
