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

:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --bg-dark: #0f172a;
  --bg-darker: #0a0f1d;
  --bg-card: #1e293b;
  --border-dark: rgba(148, 163, 184, 0.1);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-feature-settings: "ss01" on, "ss02" on, "ss03" on;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container Helper */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
  transition: background 0.3s ease, transform 0.3s ease;
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-100%);
}

.header.visible {
  transform: translateY(0);
}

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

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav ul li a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav ul li a:hover {
  color: var(--primary-light);
}

.nav ul li a::after {
  background: var(--primary);
}

/* Logo styles */
.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  min-height: 100vh;
  text-align: center;
  background: linear-gradient(45deg, var(--bg-darker), var(--bg-dark));
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  background: linear-gradient(to right, var(--text-primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  color: var(--primary);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.features-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 2rem;
}

.feature-item h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section */
.about {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  padding: 8rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas: 
    "mission values"
    "team team";
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

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

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-card h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.values-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.value-title {
  display: block;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-card.team-card {
  grid-area: team;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-card.team-card .about-icon {
  flex-shrink: 0;
}

.about-card.team-card p {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.faq-icon::before {
  width: 2px;
  height: 20px;
  left: 9px;
  top: 0;
}

.faq-icon::after {
  width: 20px;
  height: 2px;
  left: 0;
  top: 9px;
}

.faq-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem;
  transition: all 0.3s ease;
}

.faq-item.active {
  background: var(--bg-light);
}

.faq-item.active .faq-header h3 {
  color: var(--primary);
  font-weight: 600;
}

.faq-item.active .faq-icon::before {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.active .faq-content {
  height: auto;
  opacity: 1;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding-top: 1rem;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-content p {
  transform: translateY(0);
}

/* Contact Section */
.contact {
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  padding-top: 2rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--text-primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.contact-method svg {
  color: var(--primary);
}

.contact-method a {
  color: var(--primary-light);
  transition: color 0.2s ease;
}

.contact-method a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-dark);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.submit-button {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-dark);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.branding small {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-links ul li {
  list-style: none;
}

.footer-links ul li a {
  font-weight: 500;
  transition: color 0.2s;
}

/* Social Icons */
.socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.socials a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--primary);
}

.socials svg {
  width: 24px;
  height: 24px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 48px;
  }

  .hero-logo img {
    height: 80px;
  }

  .features-grid,
  .features-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-areas: 
      "mission"
      "values"
      "team";
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-methods {
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    border: 1px solid var(--border-dark);
  }

  .nav ul.show {
    display: flex;
  }
}

/* Animation classes */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Pricing Section */
.pricing {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.pricing .container {
  max-width: 800px;
}

.pricing p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto 3rem;
}

.pricing-cta {
  margin-top: 3rem;
}

.pricing .cta-button {
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
}

@media (max-width: 768px) {
  .pricing {
    padding: 4rem 0;
  }
  
  .pricing p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

/* Accessibility Improvements */
:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Mobile Apps (Download) Section Enhancements */
.mobile-apps {
  text-align: center;
  padding: 6rem 0;
  background: var(--bg-card);
}

.mobile-apps h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.mobile-apps p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.mobile-apps-links {
  display: inline-flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.mobile-apps-links a img {
  height: 60px;
  transition: transform 0.3s ease;
}

.mobile-apps-links a:hover img {
  transform: scale(1.05);
}

/* reCAPTCHA styling */
.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.g-recaptcha {
  display: inline-block;
}

/* Dark theme for reCAPTCHA */
.g-recaptcha iframe {
  border-radius: 8px;
  filter: invert(0.9) hue-rotate(180deg);
}

/* Fix reCAPTCHA on mobile */
@media screen and (max-width: 480px) {
  .recaptcha-wrapper {
    justify-content: flex-start;
  }
  
  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: left center;
  }
}

/* Legal Pages Styling */
.legal-content {
    padding: 120px 0 60px;
    background: var(--bg-dark);
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    text-align: left;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content section {
    margin: 2rem 0;
}

.legal-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.legal-content ul li {
    margin: 0.5rem 0;
} 