@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Base & Design System */
:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Palette Colors */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-500: #14b8a6;
  --cyan-50: #ecfeff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --white: #ffffff;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --transition-all: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-all);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--emerald-600);
}

.logo span {
  font-size: 1.5rem;
}

.logo:hover {
  color: var(--emerald-700);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--gray-900);
}

.nav-link.active {
  color: var(--emerald-600);
  font-weight: 600;
}

.btn-play-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--emerald-600);
  color: var(--white) !important;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2);
}

.btn-play-store:hover {
  background-color: var(--emerald-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(5, 150, 105, 0.3);
}

.btn-play-store:active {
  transform: translateY(0);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-800);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--teal-50) 50%, var(--cyan-50) 100%);
  padding: 5rem 1rem;
  text-align: center;
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--emerald-100);
  color: var(--emerald-800);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--emerald-600);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gray-900);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-hero-primary:hover {
  background-color: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--emerald-600);
  color: var(--emerald-700) !important;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-hero-secondary:hover {
  background-color: var(--emerald-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Feature Section */
.features {
  padding: 4rem 1rem;
  background-color: var(--white);
}

.section-container {
  max-width: 1024px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-900);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--gray-50);
  border-radius: var(--radius-xl);
  transition: var(--transition-bounce);
}

.feature-card:hover {
  background-color: var(--emerald-50);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.feature-desc {
  color: var(--gray-600);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* Featured Apps / Apps List Section */
.apps-section {
  padding: 4rem 1rem;
  background-color: var(--gray-50);
}

.apps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.apps-header .section-title {
  margin-bottom: 0;
  text-align: left;
}

.link-all {
  color: var(--emerald-600);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link-all:hover {
  color: var(--emerald-700);
  transform: translateX(2px);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-all);
  box-shadow: var(--shadow-sm);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-banner {
  height: 10rem;
  background: linear-gradient(135deg, var(--emerald-100) 0%, var(--teal-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.app-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.app-desc {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.app-tag {
  background-color: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-md);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: var(--emerald-600);
  color: var(--white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-align: center;
}

.btn-card:hover {
  background-color: var(--emerald-700);
}

/* Call To Action (CTA) */
.cta {
  padding: 4rem 1rem;
  background-color: var(--emerald-600);
  color: var(--white);
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--emerald-100);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background-color: var(--white);
  color: var(--emerald-700) !important;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-cta:hover {
  background-color: var(--emerald-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer styling */
footer {
  border-top: 1px solid var(--gray-200);
  background-color: var(--white);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link:hover {
  color: var(--gray-800);
}

/* Apps Page Custom Header Banner */
.apps-page-hero {
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--teal-50) 100%);
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.apps-page-hero .hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.apps-page-hero .hero-desc {
  margin-bottom: 0;
  font-size: 1.125rem;
}

/* Contact Page Form styling */
.contact-container {
  max-width: 40rem;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

.contact-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  color: var(--gray-900);
  outline: none;
  transition: var(--transition-all);
}

.form-input:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 8rem;
}

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--emerald-600);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition-all);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background-color: var(--emerald-700);
}

/* Success State Screen */
.success-screen {
  text-align: center;
  padding: 2rem 0;
  display: none;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: float 2s ease-in-out infinite;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--emerald-600);
  margin-bottom: 1rem;
}

.success-message {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.btn-success-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

.btn-success-back:hover {
  background-color: var(--gray-200);
}

/* Dynamic CSS Transitions and Keyframes */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Mobile Drawer Overlay & Layout Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-desc {
    font-size: 1.125rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-all);
  }
  
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.5rem 0;
  }
  
  .btn-play-store {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
