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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  overflow-x: hidden;
  background: #ffffff;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.logo-image {
  height: 37px !important;
  width: auto !important;
  max-height: 37px !important;
  max-width: none !important;
  /* ensures consistent sizing regardless of navbar height */
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding-top: 150px;
  position: relative;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
}

.cta-button {
  display: inline-block;
  transition: transform 0.3s ease;
}

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

.cta-button img {
  height: 60px;
  width: auto;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  color: #64748b;
  font-size: 0.875rem;
}

.stat strong {
  color: #2563eb;
  font-weight: 700;
}

/* Phone Showcase */
.phone-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  /* iPhone 15 Pro Max mockup - exact pixel sizing */
  width: 260px;
  height: 564px; /* calculated: 260 * (932/430) = 564px */
  border: 6px solid #1a1a1a;
  border-radius: 40px;
  background: #000;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.phone-screen {
  width: 248px; /* 260px - (6px border × 2) */
  height: 552px; /* 564px - (6px border × 2) */
  border-radius: 34px; /* slightly smaller than frame radius */
  overflow: hidden;
  position: relative;
}

.screenshot-container {
  width: 248px;
  height: 552px;
  position: relative;
  overflow: hidden;
}

.screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 248px;
  height: 552px;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

.screenshot.active {
  opacity: 1;
}

.app-screenshot {
  width: 248px !important;
  height: 552px !important;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Process Section */
.process {
  padding: 120px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: #64748b;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  justify-items: center;
}

.step {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-visual {
  position: relative;
  margin-bottom: 32px;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 2rem;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.step-content p {
  color: #64748b;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: #f8fafc;
}

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

.feature-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
  padding: 120px 0;
  background: white;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.use-case {
  text-align: center;
  padding: 40px 20px;
}

.use-case-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #16a34a 0%, #22d3ee 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin: 0 auto 24px;
}

.use-case h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.use-case p {
  color: #64748b;
}

/* Final CTA */
.final-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 40px;
}

.cta-button.large img {
  height: 80px;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.875rem;
}

.cta-features i {
  color: #16a34a;
}

/* Footer */
.footer {
  background: #0f172a;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 32px;
  justify-content: flex-end;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #334155;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .phone-frame {
    width: 195px;
    height: 423px; /* calculated: 195 * (932/430) = 423px */
  }

  .phone-frame {
    border-radius: 30px; /* smaller radius for mobile */
  }

  .phone-screen {
    width: 183px; /* 195px - (6px border × 2) */
    height: 411px; /* 423px - (6px border × 2) */
    border-radius: 24px; /* smaller radius for mobile screen */
  }

  .screenshot-container {
    width: 183px;
    height: 411px;
  }

  .screenshot {
    width: 183px;
    height: 411px;
  }

  .app-screenshot {
    width: 183px !important;
    height: 411px !important;
    border-radius: 24px; /* smaller radius for mobile screenshots */
  }

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

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

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-features {
    gap: 20px;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }

  .nav-brand .logo {
    font-size: 1.25rem;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .phone-frame {
    width: 165px;
    height: 358px; /* calculated: 165 * (932/430) = 358px */
    border-radius: 25px; /* even smaller radius for small phones */
  }

  .phone-screen {
    width: 153px; /* 165px - (6px border × 2) */
    height: 346px; /* 358px - (6px border × 2) */
    border-radius: 19px; /* smaller radius for small phone screen */
  }

  .screenshot-container {
    width: 153px;
    height: 346px;
  }

  .screenshot {
    width: 153px;
    height: 346px;
  }

  .app-screenshot {
    width: 153px !important;
    height: 346px !important;
    border-radius: 19px; /* smaller radius for small phone screenshots */
  }
}