/* ====================
   ERP MATCHING INTELLIGENCE™ - PAGE STYLES
   Fully Responsive
   ==================== */

/* CSS Variables */
:root {
  --primary: #0c84c0;
  --primary-dark: #0c5e7a;
  --primary-light: #e1f0f7;
  --secondary: #10b981;
  --secondary-dark: #0d9c6e;
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.matching-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.matching-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path fill="white" d="M50,10 L60,40 L90,40 L65,60 L75,90 L50,70 L25,90 L35,60 L10,40 L40,40 Z"/></svg>') repeat;
  background-size: 50px;
  pointer-events: none;
}

.matching-hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.tm-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.byline {
  display: block;
  color: #a5f3fc;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-highlight {
  color: #a5f3fc;
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header h2 .tm {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-header p {
  color: var(--gray);
}

/* What Is Section */
.what-is {
  padding: 5rem 0;
  background: var(--white);
}

.what-is-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.what-is-text {
  flex: 1;
}

.what-is-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.pillar {
  background: var(--light);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.pillar i {
  color: var(--accent);
}

.result-badge {
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.result-badge i {
  font-size: 1.5rem;
  color: var(--accent);
}

.result-badge span {
  font-weight: 500;
  color: var(--dark);
}

.what-is-image {
  flex: 1;
  text-align: center;
}

.what-is-image img {
  max-width: 100%;
  border-radius: 1rem;
}

/* Why Traditional Fails */
.why-fails {
  padding: 5rem 0;
  background: var(--light);
}

.fails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.fail-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.fail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #ef4444;
}

.fail-card i {
  font-size: 2rem;
  color: #ef4444;
  margin-bottom: 1rem;
  display: block;
}

.fail-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.fail-card p {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
}

.solution-teaser {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 0.75rem;
  border-left: 4px solid var(--secondary);
}

.solution-teaser p {
  margin: 0;
  font-size: 0.95rem;
}

/* Methodology Steps */
.methodology {
  padding: 5rem 0;
  background: var(--white);
}

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 0.75rem;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.step-icon i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.step-deliverable {
  background: var(--white);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 500;
  text-align: center;
}

/* Beyond ERP */
.beyond-erp {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.beyond-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.beyond-text {
  flex: 1;
}

.beyond-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.eco-item {
  background: var(--white);
  padding: 0.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.eco-item i {
  color: var(--secondary);
}

.ecosystem-conclusion {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.beyond-image {
  flex: 1;
  text-align: center;
}

.beyond-image img {
  max-width: 100%;
  border-radius: 1rem;
}

/* Industries Covered */
.industries-covered {
  padding: 5rem 0;
  background: var(--white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.industry-card {
  background: var(--light);
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.industry-card i {
  font-size: 1.2rem;
  color: var(--primary);
}

.industry-card span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

/* Key Advantages */
.advantages {
  padding: 5rem 0;
  background: var(--light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.advantage-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.advantage-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.advantage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.advantage-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* Why Us */
.why-us {
  padding: 5rem 0;
  background: var(--white);
}

.why-us-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
  border-radius: 1rem;
  padding: 2rem;
  color: white;
}

.why-us-text {
  flex: 1;
}

.why-us-text .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.why-us-text h2 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.why-us-text p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.why-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.why-features div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.why-features i {
  color: var(--secondary);
}

.lobo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
}

.lobo-badge i {
  color: var(--accent);
}

.why-us-image {
  flex: 0.5;
  text-align: center;
}

.why-us-image img {
  max-width: 100%;
  border-radius: 1rem;
}

/* Future Section */
.future {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
}

.future-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.future-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.future-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.future-statement {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.future-statement i {
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0.5;
}

.future-statement i:first-child {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.future-statement i:last-child {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
}

.future-statement p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  margin: 0;
  padding: 0 2rem;
}

/* Final CTA */
.final-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: #94a3b8;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.trust-signals span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.trust-signals i {
  color: var(--secondary);
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================
   RESPONSIVE DESIGN
   ==================== */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-content {
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .what-is-content,
  .beyond-content,
  .why-us-card {
    flex-direction: column;
    text-align: center;
  }
  
  .pillars {
    grid-template-columns: 1fr;
  }
  
  .result-badge {
    justify-content: center;
  }
  
  .why-features {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .future-statement p {
    font-size: 1rem;
  }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
  .matching-hero {
    padding: 100px 0 60px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .methodology-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .why-features {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  .why-us-card {
    padding: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary,
  .cta-buttons .btn-whatsapp {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .trust-signals {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .future-statement i {
    display: none;
  }
  
  .future-statement p {
    padding: 0;
  }
}

/* Mobile Portrait (up to 576px) */
@media (max-width: 576px) {
  .matching-hero {
    padding: 80px 0 40px;
  }
  
  .hero-text h1 {
    font-size: 1.6rem;
  }
  
  .tm-badge {
    font-size: 0.7rem;
  }
  
  .byline {
    font-size: 0.7rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .section-header p {
    font-size: 0.85rem;
  }
  
  .what-is-text p {
    font-size: 0.95rem;
  }
  
  .pillar {
    font-size: 0.75rem;
  }
  
  .result-badge span {
    font-size: 0.85rem;
  }
  
  .fail-card {
    padding: 1rem;
  }
  
  .step-card h3 {
    font-size: 1rem;
  }
  
  .step-card p {
    font-size: 0.8rem;
  }
  
  .beyond-text h2 {
    font-size: 1.4rem;
  }
  
  .advantage-card h3 {
    font-size: 1rem;
  }
  
  .why-us-text h2 {
    font-size: 1.4rem;
  }
  
  .future-content h2 {
    font-size: 1.4rem;
  }
  
  .future-content p {
    font-size: 0.9rem;
  }
  
  .future-statement p {
    font-size: 0.9rem;
  }
  
  .cta-content h2 {
    font-size: 1.4rem;
  }
  
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra Small Devices */
@media (max-width: 380px) {
  .hero-text h1 {
    font-size: 1.4rem;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 1.2rem;
  }
  
  .pillar {
    font-size: 0.7rem;
  }
  
  .result-badge {
    flex-direction: column;
    text-align: center;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .whatsapp-float,
  #backToTop,
  .hero-buttons,
  .cta-buttons,
  .final-cta,
  .newsletter-widget {
    display: none !important;
  }
  
  .matching-hero {
    background: white;
    padding: 1rem 0;
    color: black;
  }
  
  .matching-hero .hero-text h1 {
    color: black;
  }
  
  .hero-description {
    color: #333;
  }
  
  .stat-number {
    color: var(--dark);
  }
  
  .step-card,
  .advantage-card,
  .fail-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
  
  .why-us-card {
    background: var(--light);
    color: black;
  }
  
  .why-us-text h2 {
    color: black;
  }
  
  .why-us-text p {
    color: #555;
  }
}