/* css/style.css */
:root {
  /* Colors */
  --primary: #0F62FE; /* IBM Blue-ish, trustworthy tech */
  --primary-hover: #0353e9;
  --secondary: #198038; /* Green for profit, growth, success */
  --secondary-hover: #13662b;
  
  --dark: #121619;
  --dark-gray: #393e41;
  --gray: #6F7275;
  --light-gray: #f2f4f8;
  --white: #ffffff;
  --bg-color: #F8F9FB; /* Sophisticated off-white */
  --border-glass: rgba(0, 0, 0, 0.05); /* Extremely subtle border */
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --tracking-tight: -0.04em; /* Premium tech tracking */
  --tracking-tighter: -0.06em;
  --line-height: 1.6; /* Default line height */
  
  /* Layout constraints */
  --max-width: 1200px;
  
  /* Borders & Shadows - Ultra Diffuse */
  --radius: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  --glass-bg: rgba(255, 255, 255, 0.75);
  
  /* Layout variables */
  --nav-height: 80px;
  --transition: 0.3s ease; /* Global transition variable */
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--dark);
  background-color: var(--bg-color);
  line-height: var(--line-height);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5em;
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 98, 254, 0.35); /* Glow effect */
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--light-gray);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
  font-weight: bold;
}
.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

.nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 250px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  padding: 8px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--dark-gray);
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--light-gray);
  color: var(--primary);
}

.dropdown-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
  margin-top: 4px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001; /* Above mobile menu */
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  margin-bottom: 5px;
  transition: all 0.3s;
}

.mobile-toggle span:last-child {
  margin-bottom: 0;
}

/* Hero Section - Full Width Photo */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?q=80&w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: calc(var(--nav-height) + 40px) 0 80px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-light .hero-subtitle {
  color: var(--dark-gray);
  margin-left: auto;
  margin-right: auto;
}

.hero-light .hero-content {
  color: var(--dark);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 500;
}

.trust-badge svg {
  color: var(--secondary);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

/* Trust badges on dark hero */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.trust-badge svg {
  color: #25D366;
}

/* Stats Strip (dark navy) */
.stats-strip {
  background-color: #0D1B4B;
  padding: 56px 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* Z-Pattern / Split Layout */
.split-section {
  padding: 80px 0;
}

.split-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-wrapper.reverse {
  direction: rtl;
}
.split-wrapper.reverse > * {
  direction: ltr;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.split-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(15, 98, 254, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  width: fit-content;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.split-content h2 {
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.split-content p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--dark-gray);
}

.feature-list-item .icon-check {
  width: 22px;
  height: 22px;
  background-color: rgba(25, 128, 56, 0.12);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Client logos bar */
.clients-bar {
  background-color: var(--bg-color);
  padding: 48px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.clients-bar-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.clients-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.client-logo-placeholder {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  color: #999;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all 0.2s;
}

.client-logo-placeholder:hover {
  opacity: 1;
  filter: none;
  color: var(--primary);
}

@media (max-width: 900px) {
  .split-wrapper, .split-wrapper.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-item-large {
  grid-column: span 8;
}

.bento-item-small {
  grid-column: span 4;
}

.bento-item-full {
  grid-column: span 12;
}

@media (max-width: 900px) {
  .bento-item-large, .bento-item-small {
    grid-column: span 12;
  }
}

/* Cards & Features */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-glass);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(15, 98, 254, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--gray);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  color: var(--white);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 24px;
}

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

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col p {
  color: #A0A0A0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #A0A0A0;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #A0A0A0;
  font-size: 0.875rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 450px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.modal-close:hover {
  color: var(--dark);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
  background-color: #fafafa;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

/* Select Control Customization */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23161616%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem top 50%;
  background-size: 0.65rem auto;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.reveal-on-scroll {
  opacity: 0; /* Will be set strictly via JS */
}

/* Pricing Tables */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 24px 0 8px;
  line-height: 1;
}

.price span.currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: -4px;
}

.price span.period {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin: 32px 0;
  border-top: 1px solid #eee;
  padding-top: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.pricing-feature svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 4px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--dark-gray);
  padding-right: 40px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .trust-badges {
    justify-content: center;
  }
  
  .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 24px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--light-gray);
    width: 100%;
    margin-top: 16px;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
