:root {
  --theme-color: #673AB7;
  --theme-color-hover: #542ea0;
  --white: #FFFFFF;
  --black: #000000;
  --grey: #9E9E9E;
  
  /* Dark Theme */
  --bg-dark: #0B120F;
  --surface-dark: #15221C;
  --primary-mint: #34E0A1;
  --text-primary: #FFFFFF;
  --text-secondary: #8B9E95;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(21, 34, 28, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

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

/* Accessibility Focus Indicator */
:focus-visible {
  outline: 2px solid var(--primary-mint);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Backgrounds */
.bg-dark { background-color: var(--bg-dark); }
.bg-surface { background-color: var(--surface-dark); }
.section-padding { padding: 100px 0; }

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1002;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-mint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--theme-color), var(--primary-mint));
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 224, 161, 0.3);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-mint);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--primary-mint);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--primary-mint);
  color: var(--bg-dark);
}

/* Hero Section */
.hero {
  padding: 150px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(103, 58, 183, 0.2) 0%, rgba(11, 18, 15, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, var(--primary-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
}

/* Trusted By */
.trusted-by {
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.trusted-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
  opacity: 0.7;
}

/* Page Headers & Content (for subpages) */
.page-header {
  padding: 160px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--white);
}

.page-content {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 24px;
  color: var(--white);
}

.page-content p, .page-content ul, .page-content li {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

/* General Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.section-title span {
  color: var(--primary-mint);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Product Preview / Screenshots */
.product-preview {
  text-align: center;
}
.preview-img-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(103, 58, 183, 0.2);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}
.preview-img-container img {
  width: 100%;
  display: block;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-dark);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bg-dark .feature-card {
  background: var(--surface-dark);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-mint);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(103, 58, 183, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-mint);
  font-size: 32px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

/* How It Works (Steps) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--theme-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
  border: 4px solid var(--surface-dark);
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
}

/* AI Workflow (Left/Right Layout) */
.workflow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.workflow-row.reverse {
  direction: rtl;
}
.workflow-row.reverse > * {
  direction: ltr;
}
.workflow-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.workflow-img img {
  width: 100%;
  display: block;
}
.workflow-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--white);
}
.workflow-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--surface-dark);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.bg-surface .testimonial-card {
  background: var(--bg-dark);
}

.stars {
  color: #FBBF24;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.quote {
  font-style: italic;
  color: var(--white);
  margin-bottom: 24px;
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--white);
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  font-size: 3rem;
  color: var(--primary-mint);
  margin-bottom: 10px;
}
.stat-item p {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Integrations */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.integration-item {
  background: var(--surface-dark);
  padding: 20px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}
.integration-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-mint);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-dark);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease;
}

.bg-dark .pricing-card {
  background: var(--surface-dark);
}

.pricing-card.popular {
  border-color: var(--primary-mint);
  position: relative;
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(103, 58, 183, 0.2);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-mint);
  color: var(--bg-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.price span {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary-mint);
  font-weight: bold;
}

/* Download App Section */
.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, rgba(103,58,183,0.1), rgba(52,224,161,0.05));
  padding: 60px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}
.download-text {
  flex: 1;
}
.download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.store-btn {
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.store-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-mint);
  color: var(--white);
}
.download-qr {
  flex-shrink: 0;
}
.qr-container {
  background: var(--white);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.qr-container img {
  width: 120px;
  height: 120px;
  display: block;
  margin-bottom: 10px;
  background: #eee; /* placeholder background if image is missing */
}
.qr-container p {
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--theme-color), rgba(11, 18, 15, 0.9));
  padding: 80px 40px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: -50px; /* Overlap footer */
  position: relative;
  z-index: 10;
}
.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--surface-dark);
  padding: 120px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-about p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

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

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul a {
  color: var(--text-secondary);
}

.footer-links ul a:hover {
  color: var(--primary-mint);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.bg-dark .faq-item {
  background: var(--surface-dark);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--white);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  padding: 0 24px 24px;
  max-height: 200px;
}

.faq-question span {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
  color: var(--primary-mint);
}

/* Contact Form */
.contact-form {
  background: var(--surface-dark);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-mint);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 40px;
  }
  .workflow-row {
    gap: 40px;
  }
  .download-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .download-text .section-title {
    text-align: center !important;
  }
  .download-buttons {
    justify-content: center;
  }
  .stats-grid {
    gap: 20px;
  }
  .stat-item h3 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .hero-content, .workflow-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  
  .workflow-row.reverse {
    direction: ltr;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  
  .logo {
    order: 1;
    flex: 1;
    justify-content: flex-end;
    padding-right: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    order: 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 280px;
    height: 100vh;
    background: var(--surface-dark);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 32px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    align-items: flex-start;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    /* Removed backdrop-filter to fix rendering bugs on some mobile browsers */
  }

  .nav-overlay.active {
    display: block;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner h2 {
    font-size: 2rem;
  }
}

@media (max-width: 414px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .workflow-text h3 {
    font-size: 1.5rem;
  }
  .price {
    font-size: 2.5rem;
  }
  .integration-item {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
