/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Updated font family to use Geist fonts matching the original Next.js version */
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Color Variables */
:root {
  --primary: #2477d8;
  --secondary: #4caf50;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --popover: #f1f5f9;
  --border: #e2e8f0;
}

.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--primary) !important;
  color: white !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  height: 4.5rem;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
}

.logo {
  height: 2.5rem;
  width: 2.5rem;
  transition: transform 0.3s ease;
  object-fit: contain;
  background-color: white; /* Ensure logo is visible if transparent */
  border-radius: 4px;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  position: relative;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 500;
  color: white;
}

.nav-link.active::after {
  width: 100%;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 4.5rem;
  left: 0;
  right: 0;
  background-color: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.back-link:hover {
  transform: translateX(-4px);
  background-color: #1d4ed8; /* Slightly darker blue */
  box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

.mobile-nav-link {
  background: none;
  border: none;
  color: #0f172a;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, rgba(36, 119, 216, 0.08) 0%, rgba(36, 119, 216, 0.05) 100%);
  color: var(--primary);
  transform: translateX(4px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 1rem 6rem;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(36, 119, 216, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(69, 160, 73, 0.1) 100%);
  color: #4caf50;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.hero-description {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.hero-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
  transform: scale(1.05);
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--primary);
  transform: scale(1.05);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* App Preview Section */
.app-preview {
  padding: 5rem 1rem 6rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section-description {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.app-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.app-item:hover {
  transform: scale(1.05);
}

.app-image-container {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.app-item:hover .app-image-container {
  box-shadow: 0 16px 40px rgba(36, 119, 216, 0.12);
  transform: translateY(-4px);
  border-color: rgba(36, 119, 216, 0.15);
}

.app-image {
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.app-item:hover .app-image {
  transform: scale(1.1);
}

.app-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  transition: color 0.3s ease;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.app-item:hover .app-title {
  color: var(--primary);
}

.app-description {
  font-size: 1rem;
  color: #64748b;
  padding: 0 0.5rem;
  line-height: 1.6;
}

/* Features Section */
.features {
  padding: 5rem 1rem 6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
  border-color: rgba(36, 119, 216, 0.2);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.feature-description {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

/* Impact Section */
.impact {
  padding: 5rem 1rem 6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
  max-width: 64rem;
  margin: 0 auto;
}

.impact-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.impact-item:hover {
  transform: translateX(4px);
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary);
  margin-top: 0.25rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.impact-item:hover .check-icon {
  transform: scale(1.1);
}

/* Stats Section */
.stats {
  padding: 5rem 1rem 6rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat-item:hover .stat-number {
  transform: scale(1.05);
}

.stat-label {
  color: var(--muted-foreground);
}

/* CTA Section */
.cta {
  padding: 5rem 1rem 6rem;
  background: linear-gradient(135deg, #2477d8 0%, #1e5bb8 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 64rem;
  margin: 0 auto;
}

.cta-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.cta-note {
  font-size: 0.875rem;
  opacity: 0.75;
}

/* Footer */
.footer {
  padding: 4rem 1rem 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 3rem;
  width: 3rem;
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.footer-description {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9375rem;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  letter-spacing: -0.005em;
  display: inline-block;
  text-align: left;
  width: 100%;
}

button.footer-link {
  font-family: inherit;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 2rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 400;
  letter-spacing: -0.01em;
}


/* App Preview Section */
.app-preview {
  padding: 4rem 1rem;
  background-color: var(--background);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.app-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-image-container {
  /* Removed fixed aspect ratio to allow full image height */
  width: 100%;
  min-height: 15rem; /* Reserve space to prevent layout shift/collapse */
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: transparent; /* Changed from muted to transparent */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.app-image {
  width: 100%;
  height: auto; /* Allow natural height */
  display: block; /* Remove inline-block spacing */
  transition: transform 0.3s ease;
}

.app-item:hover .app-image {
  transform: scale(1.02); /* Reduced scale to be subtle */
}

.app-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.app-description {
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    padding: 3rem 1rem 4rem;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1.0625rem;
  }

  .app-preview,
  .features,
  .impact,
  .stats,
  .cta {
    padding: 3rem 1rem 4rem;
  }

  .how-we-work {
    padding: 3rem 0 4rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1.0625rem;
  }

  .footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .feature-card,
  .app-item,
  .impact-item {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .hero {
    padding: 4.5rem 1rem 5.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .app-preview,
  .features,
  .impact,
  .stats,
  .cta {
    padding: 4.5rem 1rem 5.5rem;
  }

  .how-we-work {
    padding: 4.5rem 0 5.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .features-grid {
    gap: 1.5rem;
  }

  .cta-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 5rem 1rem 6rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .app-preview,
  .features,
  .impact,
  .stats,
  .cta {
    padding: 5rem 1rem 6rem;
  }

  .how-we-work {
    padding: 5rem 0 6rem;
  }

  .section-title {
    font-size: 2.75rem;
  }

  .cta-title {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: span 1;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 3.75rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .cta-title {
    font-size: 3.25rem;
  }
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

#features,
#about,
#contact,
#how-we-work {
  scroll-margin-top: 4rem;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link,
  .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .instruction-header {
    min-height: 48px;
  }

  .footer-link {
    padding: 0.5rem 0;
  }
}

/* How We Work Section */
.how-we-work {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.instruction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.instruction-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  height: fit-content;
  overflow: visible;
}

.instruction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.instruction-card.active::before {
  transform: scaleX(1);
}

.instruction-card.active {
  border-color: rgba(36, 119, 216, 0.3);
  box-shadow: 0 12px 32px rgba(36, 119, 216, 0.12);
  background: white;
}

.instruction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  cursor: pointer;
  user-select: none;
}

.accordion-arrow {
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.instruction-card.active .accordion-arrow {
  transform: rotate(180deg);
}

.instruction-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.instruction-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, overflow 0s 0.3s;
}

.instruction-card.active .instruction-steps {
  overflow: visible;
  transition: max-height 0.3s ease, overflow 0s;
}

.instruction-card.active .instruction-steps {
  max-height: 1000px;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-top: 2px solid var(--popover);
  overflow: visible;
  transition: max-height 0.3s ease, overflow 0s;
}

.instruction-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.instruction-steps li:last-child {
  margin-bottom: 0.5rem;
}

.instruction-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.instruction-card.active .instruction-steps li::before {
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.instruction-steps li:hover {
  color: var(--foreground);
  transform: translateX(4px);
}

/* Responsive Grid */
@media (min-width: 640px) {
  .instruction-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .instruction-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .instruction-grid {
    gap: 1.5rem;
  }

  .instruction-card {
    padding: 1.25rem;
  }

  .instruction-title {
    font-size: 1rem;
  }

  .instruction-steps li {
    padding-left: 2.25rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .instruction-steps li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
  }

  .accordion-arrow {
    font-size: 0.875rem;
  }

  .instruction-card.active .instruction-steps {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}


/* Responsive Overhaul Updates */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    height: auto;
    padding: 1rem 0;
  }

  .logo-section {
    z-index: 101;
  }

  .hero {
    padding-top: 6rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-content {
      align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .app-preview {
      padding: 3rem 0;
  }
  
  .section-title {
      font-size: 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2.5rem 1rem 3.5rem;
  }

  .hero-title {
    font-size: 1.875rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .badge {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .section-description {
    font-size: 1rem;
  }

  .app-preview,
  .features,
  .impact,
  .stats,
  .cta {
    padding: 2.5rem 1rem 3.5rem;
  }

  .how-we-work {
    padding: 2.5rem 0 3.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .footer {
    padding: 2.5rem 1rem 2rem;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-link {
    font-size: 0.875rem;
  }

  .footer-bottom {
    font-size: 0.875rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-title {
    font-size: 1.125rem;
  }

  .feature-description {
    font-size: 0.9375rem;
  }

  .app-title {
    font-size: 1.125rem;
  }

  .app-description {
    font-size: 0.9375rem;
  }

  .instruction-card {
    padding: 1rem;
  }

  .instruction-title {
    font-size: 0.9375rem;
  }

  .instruction-steps li {
    font-size: 0.8125rem;
    padding-left: 2rem;
  }

  .instruction-steps li::before {
    width: 1.375rem;
    height: 1.375rem;
    font-size: 0.65rem;
  }

  .header {
    padding: 0.75rem 0;
  }

  .logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }
}
