/* ===== CSS Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors - Enhanced */
  --primary-blue: #3b82f6; /* More vibrant blue */
  --primary-dark: #2563eb;
  --light-blue: #eff6ff;
  --dark-blue: #1e3a8a;
  --accent-purple: #8b5cf6;
  --white: #ffffff;
  --black: #0f172a;

  /* Grays */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-light: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(12px);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  transition: var(--transition-base);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  transition: var(--transition-fast);
  font-size: 15px;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: var(--transition-base);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

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

.btn-secondary {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mobile-hero-logo {
  display: none; /* Hidden on desktop */
}

.hero-text {
  z-index: 10;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--gray-900);
  letter-spacing: -1px;
}

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

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.phone-mockup {
  position: relative;
  width: 320px;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
}

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

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-blue);
  top: -200px;
  right: -100px;
  opacity: 0.15;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  bottom: -100px;
  left: -100px;
  opacity: 0.15;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-blue);
  top: 40%;
  left: 10%;
  opacity: 0.1;
}

/* ===== Features Section ===== */
.features {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-600);
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  padding: 40px 32px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--light-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-blue);
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.feature-description {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== How It Works Section ===== */
.how-it-works {
  padding: 120px 0;
  background: var(--gray-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--light-blue);
  transition: var(--transition-base);
}

.step-card:hover .step-number {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--white);
  transform: scale(1.1);
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.step-description {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Download Section ===== */
.download {
  padding: 120px 0;
  background: var(--gradient-primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.download-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
  line-height: 1.1;
}

.download-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition-base);
  max-width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: var(--gray-900);
}

.store-button svg {
  width: 32px;
  height: 32px;
}

.store-button div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-text {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-name {
  font-size: 18px;
  font-weight: 700;
}

.download-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.store-button.web-app {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.store-button.web-app:hover {
  background: rgba(255, 255, 255, 0.2);
}

.phone-mockup-large {
  position: relative;
  width: 360px;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 80px 0 32px;
  border-top: 1px solid var(--gray-800);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  margin-bottom: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-logo span {
  font-size: 24px;
  font-weight: 700;
}

.footer-tagline {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 360px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-column a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.footer-column a:hover {
  color: var(--primary-blue);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-4px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero {
    padding: 120px 0 80px;
  }

  /* Mobile Layout Fix: Logo First */
  .mobile-hero-logo {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

  /* Ensure App Preview is below text */
  .hero-image {
    order: 2; /* Explicitly place it after text */
    margin-top: 40px;
  }

  .phone-mockup {
    width: 260px;
    height: 520px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .download-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-buttons {
    align-items: center;
  }

  .phone-mockup-large {
    width: 280px;
    height: 560px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-description {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .download-title {
    font-size: 32px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat {
    flex: 1 1 40%;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ===== AI Showcase Section ===== */
.ai-showcase {
  padding: 120px 0;
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
}

.ai-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.ai-showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.ai-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ai-feature-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent-purple);
  margin-top: 2px;
}

.ai-feature-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.ai-feature-item p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

.ai-phone-mockup {
  position: relative;
  width: 360px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ai-screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gray-400);
  text-align: center;
  padding: 40px;
}

.ai-screenshot-placeholder svg {
  color: var(--accent-purple);
  opacity: 0.3;
}

.ai-screenshot-placeholder p {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-500);
}

.ai-screenshot-placeholder small {
  font-size: 14px;
  color: var(--gray-400);
}

/* ===== Team Section ===== */
.team-section {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-base);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar {
  width: 96px;
  height: 96px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary-blue);
  transition: var(--transition-base);
}

.team-card:hover .team-avatar {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1);
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.team-role {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.5;
}

.team-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--light-blue);
  color: var(--primary-blue);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Responsive Design for New Sections ===== */
@media (max-width: 1024px) {
  .ai-showcase-content {
    gap: 60px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ai-showcase {
    padding: 80px 0;
  }

  .ai-showcase-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .ai-phone-mockup {
    width: 280px;
    height: 560px;
  }

  .ai-features-list {
    text-align: left;
  }

  .team-section {
    padding: 80px 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
