/* Landing Page Styles - Enhanced Version */

/* ===== VARIABLES & BASE ===== */
:root {
  --landing-primary: #F01B42;
  --landing-primary-dark: #C31432;
  --landing-secondary: #6A82FB;
  --landing-accent: #FC5C7D;
  --landing-bg: #0A0A0B;
  --landing-bg-light: #1A1A1D;
  --landing-card: #16161A;
  --landing-text: #FFFFFF;
  --landing-text-muted: #A1A1A6;
  --landing-border: rgba(255, 255, 255, 0.1);
  --landing-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  --landing-gradient: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-accent) 100%);
  --landing-gradient-2: linear-gradient(135deg, var(--landing-secondary) 0%, var(--landing-primary) 100%);
}

.landing-page {
  background-color: var(--landing-bg);
  color: var(--landing-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--landing-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--landing-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.navbar {
  background: transparent;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
  z-index: 1000;
}

.navbar.navbar-scrolled {
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--landing-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
  color: var(--landing-text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--landing-text) !important;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--landing-gradient);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(240, 27, 66, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 27, 66, 0.4);
  background: var(--landing-gradient-2);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.gradient-1 {
  background: var(--landing-primary);
  top: -400px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.gradient-2 {
  background: var(--landing-secondary);
  bottom: -300px;
  left: -200px;
  animation: float 25s ease-in-out infinite reverse;
}

.gradient-3 {
  background: var(--landing-accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-30px, 30px); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(240, 27, 66, 0.1);
  border: 1px solid rgba(240, 27, 66, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  color: var(--landing-primary);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge i {
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.text-gradient {
  background: var(--landing-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--landing-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--landing-text);
  border: 1px solid var(--landing-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.8s backwards;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--landing-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  color: var(--landing-text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  animation: fadeIn 1s ease 0.6s backwards;
  z-index: 1;
}

.phone-mockup {
  position: relative;
  width: 350px;
  height: 700px;
  margin: 0 auto;
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border-radius: 40px;
  padding: 1rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-15deg);
  animation: heroPhone 20s ease-in-out infinite;
}

@keyframes heroPhone {
  0%, 100% { transform: perspective(1000px) rotateY(-15deg); }
  50% { transform: perspective(1000px) rotateY(15deg); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0A0A0B;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.demo-app {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.demo-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-avatar {
  width: 36px;
  height: 36px;
  background: var(--landing-gradient);
  border-radius: 50%;
}

/* Chart Section */
.demo-chart {
  background: var(--landing-card);
  padding: 1rem;
  border-radius: 16px;
  height: 200px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.chart-title {
  font-size: 0.875rem;
  color: var(--landing-text-muted);
  margin-bottom: 0.5rem;
}

.chart-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  gap: 8px;
}

.chart-bar {
  flex: 1;
  background: var(--landing-gradient);
  border-radius: 4px 4px 0 0;
  position: relative;
  animation: growBar 2s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes growBar {
  from { height: 0; }
  to { height: var(--height); }
}

/* AI Chat Section */
.demo-ai-chat {
  background: var(--landing-card);
  padding: 1rem;
  border-radius: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--landing-text-muted);
  font-size: 0.875rem;
}

.ai-icon {
  width: 24px;
  height: 24px;
  background: var(--landing-gradient-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.813rem;
  max-width: 80%;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--msg-delay);
}

.user-message {
  background: rgba(240, 27, 66, 0.2);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-message {
  background: rgba(106, 130, 251, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Analytics Section */
.demo-analytics {
  background: var(--landing-card);
  padding: 1rem;
  border-radius: 16px;
}

.analytics-title {
  font-size: 0.875rem;
  color: var(--landing-text-muted);
  margin-bottom: 0.75rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.analytics-item {
  text-align: center;
}

.analytics-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--landing-primary);
}

.analytics-label {
  font-size: 0.75rem;
  color: var(--landing-text-muted);
}

.floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: rgba(22, 22, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 10;
  pointer-events: auto;
}

.float-card-1 {
  top: 15%;
  right: 30px;
  animation: floatCard1 8s ease-in-out infinite;
}

.float-card-2 {
  bottom: 50%;
  left: 20px;
  animation: floatCard2 10s ease-in-out infinite;
}

.float-card-3 {
  bottom: 15%;
  right: 40px;
  animation: floatCard3 12s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  33% { transform: translate(-30px, -20px) rotate(5deg); }
  66% { transform: translate(20px, 10px) rotate(-3deg); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translate(0, 0) rotate(3deg); }
  33% { transform: translate(30px, -15px) rotate(-5deg); }
  66% { transform: translate(-20px, 20px) rotate(2deg); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  33% { transform: translate(-25px, 15px) rotate(4deg); }
  66% { transform: translate(15px, -25px) rotate(-4deg); }
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-value {
  color: var(--landing-text-muted);
  font-size: 0.875rem;
}

.floating-card {
  position: absolute;
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--landing-shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  top: 10%;
  right: -20%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20%;
  left: -30%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--landing-text-muted);
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(106, 130, 251, 0.1);
  border: 1px solid rgba(106, 130, 251, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  color: var(--landing-secondary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-description {
  font-size: 1.125rem;
  color: var(--landing-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--landing-bg-light);
}

.feature-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--landing-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--landing-primary);
  box-shadow: 0 10px 30px rgba(240, 27, 66, 0.2);
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--landing-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-description {
  color: var(--landing-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ===== HOW IT WORKS SECTION ===== */
.step-card {
  text-align: center;
  padding: 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--landing-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1.5rem;
}

.step-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--landing-text-muted);
}

/* ===== DEMO SECTION ===== */
.demo-section {
  background: var(--landing-bg-light);
}

.demo-features {
  margin: 2rem 0;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.demo-video {
  position: relative;
  background: var(--landing-card);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(240, 27, 66, 0.1), rgba(106, 130, 251, 0.1));
}

.video-placeholder:hover {
  background: linear-gradient(135deg, rgba(240, 27, 66, 0.2), rgba(106, 130, 251, 0.2));
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--landing-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
  transform: scale(1.1);
}

.video-text {
  color: var(--landing-text-muted);
  font-weight: 500;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--landing-shadow);
}

.testimonial-rating {
  color: #FFD700;
  margin-bottom: 1rem;
}

.testimonial-content {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--landing-gradient);
  border-radius: 50%;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-role {
  color: var(--landing-text-muted);
  font-size: 0.875rem;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  background: var(--landing-bg-light);
}

.pricing-card {
  background: var(--landing-card);
  border: 2px solid var(--landing-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--landing-primary);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--landing-gradient);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
}

.amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--landing-primary);
}

.period {
  font-size: 1.125rem;
  color: var(--landing-text-muted);
}

.pricing-description {
  color: var(--landing-text-muted);
  margin-bottom: 2rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features .feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pricing-features .feature i {
  color: var(--landing-primary);
  font-size: 1.125rem;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--landing-text-muted);
  margin-top: 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--landing-gradient);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--landing-bg);
  border-top: 1px solid var(--landing-border);
  padding: 3rem 0 1rem;
}

.footer-brand img {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--landing-text-muted);
  max-width: 300px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--landing-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--landing-text);
}

.footer-bottom {
  border-top: 1px solid var(--landing-border);
  padding-top: 2rem;
  margin-top: 2rem;
}

.copyright {
  color: var(--landing-text-muted);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--landing-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--landing-primary);
  color: white;
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== RIPPLE EFFECT ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== MOBILE HERO SECTION FIXES ===== */

/* Update the hero content grid for better mobile layout */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 2rem; /* Reduce top/bottom padding */
    min-height: auto; /* Don't force full viewport height */
  }

  .hero-content {
    grid-template-columns: 1fr; /* Stack content vertically */
    gap: 2rem; /* Reduce gap between sections */
    text-align: center;
  }

  .hero-text {
    order: 1; /* Text comes first */
    padding: 0 1rem; /* Add horizontal padding */
  }

  .hero-visual {
    order: 2; /* Visual comes second */
    margin-top: 2rem;
  }

  .hero-title {
    font-size: 2.5rem; /* Smaller title */
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem; /* Smaller description */
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 0.75rem; /* Smaller badge */
    padding: 0.375rem 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 0.75rem;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px; /* Limit button width */
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Phone mockup mobile adjustments */
  .phone-mockup {
    width: 280px; /* Smaller phone */
    height: 560px; /* Proportional height */
    transform: perspective(1000px) rotateY(-10deg); /* Keep 3D rotation but less pronounced */
    animation: heroPhoneMobile 15s ease-in-out infinite; /* Keep animation but simpler */
    margin: 0 auto;
  }

  /* Mobile phone animation - less intense than desktop */
  @keyframes heroPhoneMobile {
    0%, 100% { transform: perspective(1000px) rotateY(-10deg); }
    50% { transform: perspective(1000px) rotateY(10deg); }
  }

  /* Show floating cards on mobile but smaller and adjusted */
  .floating-cards {
    display: block !important; /* Override the display: none */
  }

  .float-card {
    padding: 0.75rem; /* Smaller padding */
    font-size: 0.75rem; /* Smaller text */
  }

  .float-card-1 {
    top: 10%;
    right: 10px; /* Closer to screen edge */
    animation: floatCardMobile1 6s ease-in-out infinite;
  }

  .float-card-2 {
    bottom: 40%;
    left: 10px; /* Closer to screen edge */
    animation: floatCardMobile2 8s ease-in-out infinite;
  }

  .float-card-3 {
    bottom: 10%;
    right: 15px; /* Closer to screen edge */
    animation: floatCardMobile3 7s ease-in-out infinite;
  }

  /* Mobile floating card animations - gentler movement */
  @keyframes floatCardMobile1 {
    0%, 100% { transform: translate(0, 0) rotate(-3deg); }
    33% { transform: translate(-15px, -10px) rotate(3deg); }
    66% { transform: translate(10px, 5px) rotate(-2deg); }
  }

  @keyframes floatCardMobile2 {
    0%, 100% { transform: translate(0, 0) rotate(2deg); }
    33% { transform: translate(15px, -8px) rotate(-3deg); }
    66% { transform: translate(-10px, 10px) rotate(1deg); }
  }

  @keyframes floatCardMobile3 {
    0%, 100% { transform: translate(0, 0) rotate(-1deg); }
    33% { transform: translate(-12px, 8px) rotate(2deg); }
    66% { transform: translate(8px, -12px) rotate(-2deg); }
  }

  .card-icon {
    font-size: 1.25rem; /* Smaller icons on mobile */
    margin-bottom: 0.25rem;
  }

  .card-title {
    font-size: 0.688rem;
    margin-bottom: 0.125rem;
  }

  .card-value {
    font-size: 0.625rem;
  }

  .phone-screen {
    border-radius: 25px; /* Adjust border radius proportionally */
  }

  .demo-app {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.875rem; /* Consistent spacing */
  }

  .demo-header {
    margin-bottom: 0.75rem;
    flex-shrink: 0; /* Don't shrink */
  }

  .demo-title {
    font-size: 1rem;
  }

  .demo-avatar {
    width: 28px;
    height: 28px;
  }

  /* Hide the weekly progress chart on mobile */
  .demo-chart {
    display: none;
  }

  /* AI Chat Section - well contained */
  .demo-ai-chat {
    background: var(--landing-card);
    padding: 0.75rem;
    border-radius: 16px;
    flex: 1; /* Take available space but don't overflow */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow shrinking */
    max-height: 200px; /* Prevent overflow */
  }

  .ai-chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--landing-text-muted);
    font-size: 0.813rem;
    flex-shrink: 0;
  }

  .ai-icon {
    width: 24px;
    height: 24px;
    background: var(--landing-gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0; /* Allow shrinking */
    overflow: hidden; /* Prevent overflow */
  }

  .chat-message {
    padding: 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    max-width: 80%;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: var(--msg-delay);
    flex-shrink: 0;
  }

  .user-message {
    background: rgba(240, 27, 66, 0.2);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
  }

  .ai-message {
    background: rgba(106, 130, 251, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }

  /* Analytics Section - compact and organized */
  .demo-analytics {
    background: var(--landing-card);
    padding: 0.75rem;
    border-radius: 16px;
    flex-shrink: 0; /* Don't shrink */
  }

  .analytics-title {
    font-size: 0.813rem;
    color: var(--landing-text-muted);
    margin-bottom: 0.625rem;
  }

  .analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  .analytics-item {
    text-align: center;
    padding: 0.375rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
  }

  .analytics-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--landing-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
  }

  .analytics-label {
    font-size: 0.688rem;
    color: var(--landing-text-muted);
  }

  /* Hide floating cards on mobile for cleaner look */
  /* Remove this - we want to show them now
  .floating-cards {
    display: none;
  }
  */

  /* Container padding adjustments */
  .container {
    padding: 0 1rem;
  }
}

/* Even smaller screens (phones in portrait) */
@media (max-width: 576px) {
  .hero {
    padding: 3rem 0 1.5rem;
  }

  .hero-title {
    font-size: 2rem; /* Even smaller title */
    line-height: 1.1;
  }

  .hero-description {
    font-size: 0.938rem;
    margin-bottom: 1.25rem;
  }

  .phone-mockup {
    width: 240px; /* Even smaller phone */
    height: 480px;
    transform: perspective(1000px) rotateY(-8deg); /* Keep animation but smaller */
    animation: heroPhoneMobile 15s ease-in-out infinite;
  }

  .demo-app {
    padding: 0.75rem;
    gap: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .demo-header {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
  }

  .demo-title {
    font-size: 0.938rem;
  }

  .demo-avatar {
    width: 26px;
    height: 26px;
  }

  /* Hide the weekly progress chart on mobile */
  .demo-chart {
    display: none;
  }

  /* AI Chat Section - better height management */
  .demo-ai-chat {
    background: var(--landing-card);
    padding: 0.625rem;
    border-radius: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 200px; /* Increased from 160px to accommodate full message */
  }

  .ai-chat-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    color: var(--landing-text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .ai-icon {
    width: 20px;
    height: 20px;
    background: var(--landing-gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    flex-shrink: 0;
  }

  .chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-height: 0;
    overflow: hidden;
  }

  .chat-message {
    padding: 0.5rem; /* Increased padding slightly */
    border-radius: 8px;
    font-size: 0.688rem;
    max-width: 85%; /* Increased from 75% to allow more text width */
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: var(--msg-delay);
    flex-shrink: 0;
    line-height: 1.4; /* Better line height for readability */
    word-wrap: break-word; /* Ensure long words wrap properly */
  }

  .user-message {
    background: rgba(240, 27, 66, 0.2);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
  }

  .ai-message {
    background: rgba(106, 130, 251, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
  }

  /* Analytics Section - compact */
  .demo-analytics {
    background: var(--landing-card);
    padding: 0.625rem;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .analytics-title {
    font-size: 0.75rem;
    color: var(--landing-text-muted);
    margin-bottom: 0.5rem;
  }

  .analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .analytics-item {
    text-align: center;
    padding: 0.25rem;
  }

  .analytics-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--landing-primary);
    line-height: 1.2;
    margin-bottom: 0.125rem;
  }

  .analytics-label {
    font-size: 0.625rem;
    color: var(--landing-text-muted);
  }

  /* Reduce container padding even more */
  .container {
    padding: 0 0.75rem;
  }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0 1rem;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr; /* Side by side in landscape */
    gap: 1.5rem;
    align-items: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-top: 0;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
    transform: perspective(1000px) rotateY(-5deg); /* Keep slight animation */
    animation: heroPhoneMobile 15s ease-in-out infinite;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .hero-cta {
    flex-direction: row;
    gap: 0.5rem;
  }

  .hero-cta .btn {
    width: auto;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

/* ===== GENERAL RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .floating-card {
    display: none;
  }

  .phone-mockup {
    max-width: 300px;
    height: 600px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-cta {
    text-align: center;
  }

  .hero-cta .btn {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
  }

  .hero-cta .btn.ms-3 {
    margin-left: 0 !important;
  }

  .phone-mockup {
    max-width: 250px;
    height: 500px;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .feature-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom .row {
    flex-direction: column-reverse;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] {
  pointer-events: auto;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient-secondary {
  background: var(--landing-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--landing-gradient);
}

.bg-gradient-2 {
  background: var(--landing-gradient-2);
}