/* RESET */
*,
*:before,
*:after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #f5f7fb;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  color: #333;
  font-size: 1rem;
  line-height: 1.65;
  scroll-behavior: smooth;
}

/* Ensure media scales down on small screens */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 16px;
}

/* Base Styles */
h1, h2, h3 {
    font-family: 'Nunito Sans', sans-serif;
    color: #1a1a1a;
    line-height: 1.2;
}

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 60px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(34, 64, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.3s ease;
  /* Prevent horizontal overflow from long words/URLs */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Prevent long inline code/URLs from breaking layout */
section code, section a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Utility Class for Gradient Text */
.text-gradient {
    background: linear-gradient(90deg, #2240FF, #4a6bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 4px 12px rgba(34, 64, 255, 0.08);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin: 24px auto 40px auto;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.logo {
  font-size: 26px;
  font-weight: 900;
  font-family: 'Nunito Sans', sans-serif;
  color: #2240FF;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.logo:hover {
    transform: scale(1.02);
}
.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.menu a {
  text-decoration: none;
  color: #4c4c4c;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  border-bottom: 2px solid transparent;
}
.menu a:hover {
  color: #2240FF;
  border-bottom: 2px solid #2240FF;
}
.download-btn-nav {
    background: #2240FF;
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    border-radius: 28px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(34, 64, 255, 0.3);
    transition: all 0.3s ease;
    border-bottom: none !important;
}
.download-btn-nav:hover {
    background: #1c35cc;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(34, 64, 255, 0.4);
}
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #2240FF;
}
.hamburger.active {
    color: #1c35cc;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
  background: linear-gradient(125deg, #eff4fc 0%, #dbe1ff 100%);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(34, 64, 255, 0.1);
}

.hero-left {
  flex: 1;
  min-width: 0;
}
.hero-left h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 115%;
  color: #2240FF;
  margin-bottom: 16px;
  font-weight: 900;
}
.hero-subtext {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 40px;
}
.store-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start; 
}
.store-buttons a {
  display: inline-block;
  max-height: 54px;
  flex-shrink: 0;
}
.store-buttons img {
  height: 54px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(34, 64, 255, 0.15);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  object-fit: contain;
}
.store-buttons img:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 18px rgba(34, 64, 255, 0.25);
}
.hero-right {
  flex: 1;
  text-align: center;
  min-width: 0;
  animation: fadeInRight 0.8s ease-out;
}
.hero-right img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
  margin-top: -30px;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.1));
}

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

/* Features Section */
.features {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.features-left,
.features-right {
  flex: 1;
  min-width: 280px;
}
.features-left img {
  border-radius: 20px;
  max-width: 100%;
  box-shadow: 0 8px 25px rgba(34, 64, 255, 0.12);
  transition: transform 0.4s ease;
}
.features-left img:hover {
    transform: scale(1.01) translateY(-2px);
}
.features-right {
  background: #f7fafd;
  border-radius: 20px;
  box-shadow: none;
  padding: 35px;
}
.features-right h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: #2240FF;
  margin-bottom: 30px;
}
.features-right ol {
  padding-left: 20px;
  list-style: none;
}
.feature-item {
  position: relative;
  margin-bottom: 25px;
  line-height: 1.5;
  padding-left: 35px;
}
.feature-item::before {
    content: "✔️";
    position: absolute;
    left: 0;
    top: 0;
    color: #2240FF;
    font-size: 1.2rem;
}
.feature-item strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 5px;
}
.feature-item span {
    display: block;
    font-size: 1rem;
    color: #555;
}

/* Steps Section */
.steps-section {
  padding: 60px 32px;
  background: #f9fafb;
}
.steps-heading {
  margin-bottom: 50px;
  text-align: center;
}
.steps-heading h2 {
  font-size: clamp(28px, 5vw, 40px);
  color: #2240FF;
  margin-bottom: 12px;
}
.steps-subtext {
  font-size: 1.1rem;
  color: #666;
  margin: 0 auto;
  max-width: 550px;
}
.steps-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 280px;
  min-width: 250px;
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid transparent;
  transition: all 0.4s ease;
  margin-bottom: 16px;
}
.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(34, 64, 255, 0.15);
  border-bottom-color: #2240FF;
}
.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: #2240FF;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(34, 64, 255, 0.3);
}
.step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.step p {
  font-size: 16px;
  color: #555;
  text-align: center;
}

/* Download Section */
.download-section {
  padding: 60px 32px;
  background: linear-gradient(135deg, #2240FF 0%, #4a6bff 100%);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(34, 64, 255, 0.25);
}
.download-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.download-text {
  flex: 1 1 400px;
  min-width: 240px;
}
.download-text h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  margin-bottom: 20px;
  color: #fff;
}
.download-text p {
  font-size: 1.1rem;
  color: #e6e9ff;
  margin-bottom: 40px;
}
.download-image {
  flex: 1 1 340px;
  min-width: 220px;
  text-align: right;
  animation: slideInUp 0.7s ease-out;
}
.download-image img {
  max-width: 80%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}
.download-section .store-buttons {
    justify-content: flex-start;
}
.download-section .store-buttons img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* Contact Section */
.contact-section {
    text-align: center;
}
.contact-section h2 {
    font-size: clamp(24px, 4vw, 36px);
    color: #2240FF;
    margin-bottom: 15px;
}
.contact-section p {
    font-size: 1.1rem;
    color: #555;
}
.contact-section a {
    color: #2240FF;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.contact-section a:hover {
    color: #1c35cc;
    text-decoration: none;
}

/* Footer Section */
.footer {
  background: #f7fafd;
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 80px auto 40px auto;
  padding: 48px 32px 30px;
  box-shadow: 0 8px 32px rgba(34, 64, 255, 0.05);
  color: #2240FF;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
}

/* Flex container only for columns */
.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1 1 200px;
}
.footer-brand {
    flex: 1 1 300px;
}

.footer-logo {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #2240FF;
  text-decoration: none;
  display: inline-block;
}

.footer-tagline {
  font-size: 16px;
  color: #555;
  font-weight: 400;
  line-height: 1.5;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #1a1a1a;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s ease;
  padding: 5px 0;
  display: inline-block;
  width: fit-content;
}

.footer-column ul li a:hover {
  color: #2240FF;
}

.footer-bottom {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #777;
  border-top: 1px solid #e3e8ff;
  padding-top: 20px;
}

/* Responsive Queries */

/* Tablet/Desktop adjustments */
@media (max-width: 1000px) {
  section, .footer {
    padding: 40px 24px;
  }
}

/* Mobile View: Breakpoints and crucial fixes (<= 900px) */
@media (max-width: 900px) {
  .hero, .features, .download-container {
    flex-direction: column;
    gap: 40px;
    /* Ensure text alignment is consistent in columns */
    text-align: center;
  }
  .hero-left, .hero-right, .features-left, .features-right, .download-text,
  .download-image {
    width: 100%;
    min-width: 0;
  }
  
  /* ** FIX: Center all store buttons on mobile (Hero Section) ** */
  .store-buttons {
    justify-content: center;
  }

  /* ** FIX: Center Download Section text and buttons ** */
  .download-text {
      text-align: center;
  }
  .download-section .store-buttons {
      justify-content: center;
  }

  .hero-right img {
    max-width: 70%; 
    margin-top: 0;
  }
  
  /* ** FIX: Download image sizing (takes more space now) ** */
  .download-image {
    text-align: center;
  }
  .download-image img {
    max-width: 70%; /* Increased from 60% to 70% */
  }

  .features-left img {
      max-width: 80%;
      margin: 0 auto;
  }
  .features-right ol {
      padding-left: 0;
  }
  .feature-item {
      text-align: left;
      margin: 0 auto 25px; 
      max-width: 450px; 
  }
  .feature-item::before {
      left: 0;
      transform: none;
  }
}

/* Small Mobile View (<= 650px) */
@media (max-width: 650px) {
  
  body {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  section {
    padding: 30px 16px;
    margin-bottom: 40px;
  }

  .navbar {
    padding: 14px 16px;
  }
  .logo {
    font-size: 20px;
  }
  
  .hero-right img {
    max-width: 85%;
  }
  
  .download-image img {
    max-width: 85%; /* Increased from 80% to 85% */
  }

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

}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .footer-column {
    min-width: 100%;
    text-align: center;
  }
  .footer-column h4 {
    margin-bottom: 15px;
  }
  /* Mobile Menu Toggle */
  .menu {
    display: none;
    position: absolute;
    top: 75px;
    right: 10px;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(34, 64, 255, 0.15);
    z-index: 100;
    min-width: 200px;
  }
  .menu.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}