/* Marketing Homepage Styles - WCAG Compliant */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #ddd6fe;
  --primary-very-light: #f5f3ff;
  --primary-contrast: #ffffff;
  --secondary: #111827;
  --secondary-light: #4b5563;
  --background: #f9fafb;
  --text: #111827;
  --text-light: #6b7280;
  --success: #10b981;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-800: #1f2937;
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  background-color: #ffffff;
}

.section {
  padding: 5rem 0;
}

.section-gray {
  background-color: var(--gray-50);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary);
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-contrast);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.text-white {
  color: white;
}

.text-gray {
  color: var(--text-light);
}

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

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Hero section */
.hero {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-align: center;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-white {
  background-color: white;
  color: var(--primary);
  border: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-white:hover, .btn-white:focus {
  background-color: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* QR Code Animation */
.qr-code-container {
  position: relative;
  width: 200px;
  height: 200px;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
  margin: 0 auto;
}

.qr-code {
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='120' height='120' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0H40V40H0V0ZM8 8H32V32H8V8Z' fill='black'/%3E%3Cpath d='M16 16H24V24H16V16Z' fill='black'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M80 0H120V40H80V0ZM88 8H112V32H88V8Z' fill='black'/%3E%3Cpath d='M96 16H104V24H96V16Z' fill='black'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 80H40V120H0V80ZM8 88H32V112H8V88Z' fill='black'/%3E%3Cpath d='M16 96H24V104H16V96Z' fill='black'/%3E%3Cpath d='M48 0H56V8H48V0Z' fill='black'/%3E%3Cpath d='M64 0H72V8H64V0Z' fill='black'/%3E%3Cpath d='M48 8H56V16H48V8Z' fill='black'/%3E%3Cpath d='M64 8H72V16H64V8Z' fill='black'/%3E%3Cpath d='M40 16H48V24H40V16Z' fill='black'/%3E%3Cpath d='M56 16H64V24H56V16Z' fill='black'/%3E%3Cpath d='M72 16H80V24H72V16Z' fill='black'/%3E%3Cpath d='M40 24H48V32H40V24Z' fill='black'/%3E%3Cpath d='M56 24H64V32H56V24Z' fill='black'/%3E%3Cpath d='M72 24H80V32H72V24Z' fill='black'/%3E%3Cpath d='M48 32H56V40H48V32Z' fill='black'/%3E%3Cpath d='M64 32H72V40H64V32Z' fill='black'/%3E%3Cpath d='M80 48H88V56H80V48Z' fill='black'/%3E%3Cpath d='M96 48H104V56H96V48Z' fill='black'/%3E%3Cpath d='M112 48H120V56H112V48Z' fill='black'/%3E%3Cpath d='M80 56H88V64H80V56Z' fill='black'/%3E%3Cpath d='M96 56H104V64H96V56Z' fill='black'/%3E%3Cpath d='M112 56H120V64H112V56Z' fill='black'/%3E%3Cpath d='M0 48H8V56H0V48Z' fill='black'/%3E%3Cpath d='M16 48H24V56H16V48Z' fill='black'/%3E%3Cpath d='M32 48H40V56H32V48Z' fill='black'/%3E%3Cpath d='M0 56H8V64H0V56Z' fill='black'/%3E%3Cpath d='M16 56H24V64H16V56Z' fill='black'/%3E%3Cpath d='M32 56H40V64H32V56Z' fill='black'/%3E%3Cpath d='M48 56H56V64H48V56Z' fill='black'/%3E%3Cpath d='M56 64H64V72H56V64Z' fill='black'/%3E%3Cpath d='M64 72H72V80H64V72Z' fill='black'/%3E%3Cpath d='M104 64H112V72H104V64Z' fill='black'/%3E%3Cpath d='M88 72H96V80H88V72Z' fill='black'/%3E%3Cpath d='M104 72H112V80H104V72Z' fill='black'/%3E%3Cpath d='M48 80H56V88H48V80Z' fill='black'/%3E%3Cpath d='M64 80H72V88H64V80Z' fill='black'/%3E%3Cpath d='M80 80H88V88H80V80Z' fill='black'/%3E%3Cpath d='M112 80H120V88H112V80Z' fill='black'/%3E%3Cpath d='M48 88H56V96H48V88Z' fill='black'/%3E%3Cpath d='M64 88H72V96H64V88Z' fill='black'/%3E%3Cpath d='M80 88H88V96H80V88Z' fill='black'/%3E%3Cpath d='M96 88H104V96H96V88Z' fill='black'/%3E%3Cpath d='M112 88H120V96H112V88Z' fill='black'/%3E%3Cpath d='M48 96H56V104H48V96Z' fill='black'/%3E%3Cpath d='M80 96H88V104H80V96Z' fill='black'/%3E%3Cpath d='M88 104H96V112H88V104Z' fill='black'/%3E%3Cpath d='M104 104H112V112H104V104Z' fill='black'/%3E%3Cpath d='M48 112H56V120H48V112Z' fill='black'/%3E%3Cpath d='M64 112H72V120H64V112Z' fill='black'/%3E%3Cpath d='M72 112H80V120H72V112Z' fill='black'/%3E%3Cpath d='M88 112H96V120H88V112Z' fill='black'/%3E%3Cpath d='M104 112H112V120H104V112Z' fill='black'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  position: relative;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  box-shadow: 0 0 8px var(--primary);
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0% { top: 15px; opacity: 0.8; }
  50% { opacity: 1; }
  100% { top: calc(100% - 15px); opacity: 0.8; }
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  color: white;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #9f7aea, var(--primary));
  box-shadow: 0 10px 15px -5px rgba(124, 58, 237, 0.4);
  margin-bottom: 1.5rem;
}

/* Use cases */
.use-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .use-cases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases {
    grid-template-columns: repeat(3, 1fr);
  }
}

.use-case-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.use-case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  color: white;
  border-radius: 1rem;
  background: linear-gradient(135deg, #9f7aea, var(--primary));
  box-shadow: 0 10px 15px -5px rgba(124, 58, 237, 0.4);
  margin-bottom: 1.5rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.benefit-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

/* How it works section */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 4rem;
  border-radius: 9999px;
  background-color: var(--primary-very-light);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 0.75rem;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta {
    padding: 3rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .cta-content {
    max-width: 60%;
  }
}

/* Helper classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-4xl {
  max-width: 56rem;
}

/* WCAG compliance improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
}
