/* Main CSS - loaded async after critical CSS */

/* Base */
body {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
}

/* Accessibility - focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 2px solid #020076;
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #020076;
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #1a1a2e;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: #020076;
  color: #fff;
  border-color: #020076;
}
.btn-primary:hover {
  background: #030099;
  border-color: #030099;
}
.btn-secondary {
  background: #fff;
  color: #020076;
  border-color: #020076;
}
.btn-secondary:hover {
  background: #020076;
  color: #fff;
}
.btn-white {
  background: #fff;
  color: #020076;
  border-color: #fff;
}
.btn-white:hover {
  background: #f0f0f0;
  color: #020076;
}

/* Hero Buttons - both white on dark background */
.hero-buttons .btn {
  background: #fff;
  color: #020076;
  border-color: #fff;
  margin-right: 15px;
}
.hero-buttons .btn:hover {
  background: #f0f0f0;
  color: #020076;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, rgba(150, 105, 97, 0.67) 0%, rgba(2, 0, 76, 0.84) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 20px 0 15px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  max-width: 600px;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 1.3rem;
  max-width: 550px;
  margin-bottom: 15px;
  opacity: 0.95;
}
.hero-subheading {
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 30px;
  opacity: 0.9;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.hero-image {
  max-width: 450px;
  flex-shrink: 0;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

/* Hero Mockups */
.hero-mockups {
  position: absolute;
  top: 20px;
  right: 0;
}
.hero-dashboard {
  max-width: 550px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.hero-phone-img {
  position: absolute;
  bottom: -80px;
  right: 20px;
  max-width: 160px;
  height: auto;
  z-index: 10;
}
.hero-content {
  max-width: 500px;
}

/* Hero Small - for inner pages */
.hero-small {
  padding: 15px 0 10px;
}
.hero-small h1 {
  font-size: 2.2rem;
  max-width: 100%;
  text-align: center;
}
.hero-small .hero-tagline {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Logo Carousel - CSS only infinite scroll */
.section-logos {
  padding: 40px 0;
  background: #f8f9fa;
  overflow: hidden;
}
.logo-carousel {
  overflow: hidden;
  position: relative;
}
.logo-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.logo-track img {
  height: 50px;
  width: auto;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Pause on hover */
.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

/* Stats Section */
.section-stats {
  background: #020076;
  color: #fff;
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-number {
    font-size: 2.2rem;
  }
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-alt {
  background: #f8f9fa;
}
.section-dark {
  background: #1a1a2e;
  color: #fff;
}
.section-dark h2 {
  color: #fff;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  margin-bottom: 15px;
}
.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.card-icon {
  width: 60px;
  height: 60px;
  background: #020076;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}
.feature h3 {
  color: #020076;
  margin-bottom: 10px;
}
.feature p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Options/Pricing Cards */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
.option-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}
.option-featured {
  border: 3px solid #020076;
}
.option-badge {
  position: absolute;
  top: 15px;
  right: -35px;
  background: #020076;
  color: #fff;
  padding: 5px 40px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
}
.option-header {
  background: linear-gradient(135deg, #020076, #4a4a9e);
  color: #fff;
  padding: 25px;
  text-align: center;
}
.option-header h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.option-price {
  font-size: 1.1rem;
}
.option-price strong {
  font-size: 2rem;
}
.option-body {
  padding: 30px;
}
.option-body p {
  color: #666;
  margin-bottom: 20px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: #333;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #020076;
  font-weight: bold;
}
.option-note {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin: 15px 0;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}
.option-body .btn {
  display: block;
  width: 100%;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.testimonial-stars {
  color: #f5a623;
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.testimonial::before {
  content: '"';
  font-size: 60px;
  color: #020076;
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-weight: 600;
  color: #020076;
}
.testimonial-company {
  font-size: 14px;
  color: #666;
}

/* Testimonials Page Grid */
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.testimonial-logo {
  max-height: 40px;
  width: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

/* Reports Grid */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.reports-column h3 {
  color: #020076;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.report-item {
  margin-bottom: 15px;
}
.report-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #333;
}
.report-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}
.report-icon {
  font-size: 1.5rem;
}
.report-name {
  font-weight: 500;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  text-align: center;
}
.step {
  position: relative;
}
.step-number {
  width: 50px;
  height: 50px;
  background: #020076;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 15px;
}
.step h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.step p {
  font-size: 0.9rem;
  color: #666;
}

/* Pricing Table */
.pricing-table {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 25px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.pricing-row:last-child {
  border-bottom: none;
}
.pricing-header {
  background: #020076;
  color: #fff;
  font-weight: 600;
}
.pricing-project {
  flex: 1;
}
.pricing-cost {
  font-weight: 600;
  color: #020076;
}
.pricing-header .pricing-cost {
  color: #fff;
}
.pricing-extras {
  max-width: 600px;
  margin: 30px auto 0;
  text-align: center;
  color: #666;
}
.pricing-extras p {
  margin-bottom: 5px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #020076, #4a4a9e);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta h2 {
  color: #fff;
  margin-bottom: 15px;
}
.cta p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}
.cta .hero-buttons {
  justify-content: center;
}
.cta .btn-white {
  background: #fff;
  color: #020076;
  border-color: #fff;
}
.cta .btn-white:hover {
  background: #f0f0f0;
}
.cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.cta .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-content h2 {
  margin-bottom: 20px;
}
.two-col-content ul {
  list-style: none;
  padding: 0;
}
.two-col-content li {
  padding: 8px 0 8px 30px;
  position: relative;
}
.two-col-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #020076;
  font-weight: bold;
}
.two-col-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Page content */
.page-header {
  background: linear-gradient(135deg, #020076, #4a4a9e);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  margin-bottom: 15px;
}
.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
/* Content Wrapper - for markdown content */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.content-wrapper h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #020076;
}
.content-wrapper h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #020076;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.content-wrapper h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #333;
}
.content-wrapper p {
  margin-bottom: 15px;
  line-height: 1.8;
}
.content-wrapper ul, .content-wrapper ol {
  margin-bottom: 20px;
  padding-left: 25px;
}
.content-wrapper li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.content-wrapper blockquote {
  background: #f8f9fa;
  border-left: 4px solid #020076;
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}
.content-wrapper blockquote p {
  margin-bottom: 0;
}
.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}
.content-wrapper a {
  color: #020076;
  text-decoration: underline;
}
.content-wrapper a:hover {
  color: #4a4a9e;
}
.content-wrapper strong {
  color: #333;
}
.content-wrapper hr {
  border: none;
  border-top: 2px solid #f0f0f0;
  margin: 40px 0;
}

/* Legacy page-content class */
.page-content {
  padding: 60px 0;
}
.page-content h2 {
  margin-top: 40px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #020076;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.pricing-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
}
.pricing-card.featured {
  border: 2px solid #020076;
  transform: scale(1.05);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #020076;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.pricing-card h3 {
  margin-bottom: 10px;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: #020076;
  margin: 20px 0;
}
.pricing-price span {
  font-size: 1rem;
  color: #666;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
}
.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-content {
  padding: 25px;
}
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.blog-card h3 a {
  color: #1a1a2e;
}
.blog-card h3 a:hover {
  color: #020076;
}
.blog-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .options-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .testimonials-page-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-content { max-width: 100%; }
  .hero-image { display: none; }
  .hero-buttons { justify-content: center; }
  .section { padding: 60px 0; }
  .pricing-card.featured { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-number { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .testimonials-page-grid { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.contact-card h3 {
  color: #020076;
  margin-bottom: 15px;
}
.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-value a {
  color: #020076;
  text-decoration: none;
}
.contact-value a:hover {
  text-decoration: underline;
}
.contact-note {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
