/* CSS Variables */
:root {
  --background: #F0F4F8;
  --foreground: #1A1D1F;
  --card: #FFFFFF;
  --card-foreground: #1A1D1F;
  --popover: #FFFFFF;
  --popover-foreground: #1A1D1F;
  --primary: #2E5CB5;
  --primary-foreground: #FFFFFF;
  --secondary: #F1F5F9;
  --secondary-foreground: #1A1D1F;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --accent: #FFA62B;
  --accent-foreground: #FFFFFF;
  --destructive: #EF4444;
  --destructive-foreground: #FEFEFE;
  --border: #E2E8F0;
  --input: #F8FAFC;
  --ring: #2E5CB5;
  --radius: 0.5rem;
  --loading-bg: #f3f4f6;
  --loading-shimmer: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0F172A;
    --foreground: #F8FAFC;
    --card: #0F172A;
    --card-foreground: #F8FAFC;
    --popover: #0F172A;
    --popover-foreground: #F8FAFC;
    --primary: #3B82F6;
    --primary-foreground: #FFFFFF;
    --secondary: #1E293B;
    --secondary-foreground: #F8FAFC;
    --muted: #1E293B;
    --muted-foreground: #94A3B8;
    --accent: #F59E0B;
    --accent-foreground: #0F172A;
    --destructive: #7F1D1D;
    --destructive-foreground: #F8FAFC;
    --border: #334155;
    --input: #334155;
    --ring: #3B82F6;
    --loading-bg: #1e293b;
    --loading-shimmer: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Loading States */
.loading {
  background: var(--loading-bg);
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--loading-shimmer);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Image Loading States */
img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

img[src*="placeholder"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
}

.hero-img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.solution-image img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.solution-image img:hover {
  transform: scale(1.05);
}

/* Loading States */
.image-loading {
  opacity: 0.7;
  filter: blur(2px);
}

.image-loaded {
  opacity: 1;
  filter: none;
}

/* Error States */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

.error-state svg {
  width: 3rem;
  height: 3rem;
  color: var(--destructive);
  margin-bottom: 1rem;
}

.error-state h3 {
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-animate {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-section,
  .solutions-section,
  .pricing-section {
    page-break-inside: avoid;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Typography */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  height: 2.5rem;
}

.btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-outline {
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-lg {
  height: 3rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  background-color: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 4rem;
  max-width: 1400px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 1.5rem;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.nav-desktop {
  display: none;
  flex: 1;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-desktop a {
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--foreground);
}

.nav-mobile {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--foreground);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-cta {
  display: none;
  align-items: center;
  justify-content: flex-end;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--background);
  border-left: 1px solid var(--border);
  transition: right 0.3s ease;
  z-index: 100;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.mobile-nav-link {
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--foreground);
}

.mobile-cta {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .nav-mobile {
    display: none;
  }
  
  .nav-cta {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to bottom, var(--background), color-mix(in srgb, var(--secondary) 30%, transparent));
  padding: 5rem 0 3rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 7rem 0 4rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-image {
    justify-content: flex-end;
  }
}

.hero-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

/* Solutions Section */
.solutions-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .solutions-section {
    padding: 6rem 0;
  }
}

.solutions-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.solution-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.solution-image {
  position: relative;
  height: 12rem;
  width: 100%;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-icon {
  margin-bottom: 1rem;
}

.solution-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.solution-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.solution-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  flex: 1;
}

/* Customer Trust Section */
.customer-trust-section {
  padding: 4rem 0;
  background-color: var(--secondary);
}

@media (min-width: 768px) {
  .customer-trust-section {
    padding: 6rem 0;
  }
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .trust-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

/* AI Examples Section */
.ai-examples-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .ai-examples-section {
    padding: 6rem 0;
  }
}

.examples-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .examples-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.example-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.example-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.example-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.example-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.example-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.example-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.example-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.example-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background-color: var(--secondary);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
  background-color: var(--secondary);
}

@media (min-width: 768px) {
  .pricing-section {
    padding: 6rem 0;
  }
}

.pricing-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pricing-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(46, 92, 181, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--muted-foreground);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--foreground);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .faq-section {
    padding: 6rem 0;
  }
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--secondary);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: var(--secondary);
}

@media (min-width: 768px) {
  .contact-section {
    padding: 6rem 0;
  }
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--input);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 20%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-brand p {
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 20%, transparent);
  padding-top: 2rem;
  text-align: center;
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  font-size: 0.875rem;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    height: 2.75rem;
    padding: 0.625rem 1.5rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 5rem;
}

/* Responsive Images */
@media (max-width: 768px) {
  .hero-img {
    max-width: 100%;
    height: auto;
  }
  
  .solution-image img {
    max-width: 100%;
    height: auto;
  }
} 