/* ============================================
   ARCHTEC - Design System & Styles
   Consultoria TOTVS Protheus
   ============================================ */

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #0A2540;
  --color-primary-light: #1E3A5F;
  --color-accent: #0066FF;
  --color-accent-hover: #0052CC;
  --color-accent-light: rgba(0, 102, 255, 0.1);
  --color-success: #00C853;
  --color-warning: #FFB300;

  --color-bg-dark: #0A2540;
  --color-bg-light: #F5F7FA;
  --color-bg-white: #FFFFFF;

  --color-text-dark: #0A2540;
  --color-text-medium: #4A5568;
  --color-text-light: #718096;
  --color-text-white: #FFFFFF;

  --color-border: #E2E8F0;
  --color-border-light: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container */
  --container-max: 1440px;
  --container-narrow: 1100px;
  --container-padding: var(--space-8);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: #050E1A;
  /* Fundo mais escuro para maior contraste */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-dark);
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}

h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

h3 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
}

h4 {
  font-size: var(--text-xl);
}

p {
  color: var(--color-text-medium);
  margin-bottom: var(--space-4);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

/* Decorativo: Grade de Fundo Global */
.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Section */
.section {
  padding: var(--space-24) 0;
  position: relative;
  background-color: var(--color-bg-white);
}

.section-dark {
  background-color: var(--color-bg-dark);
  background-image: radial-gradient(circle at 50% 50%, #0F3460 0%, #050E1A 100%);
  color: var(--color-text-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-lg);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-white);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #00D4FF 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-white);
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: normal;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #0052CC 100%);
  color: var(--color-text-white);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-text-white);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #050E1A;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(10, 37, 64, 1) 0%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero h1 {
  color: var(--color-text-white);
  margin-bottom: var(--space-6);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-white);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MODULES / EXPERTISE SECTION
   ============================================ */
.modules {
  background: var(--color-bg-dark);
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modules-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.module-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.module-tag:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: var(--color-accent);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

.module-tag svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.card p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* Dark Card */
.card-dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.card-dark:hover {
  border-color: rgba(0, 102, 255, 0.5);
  box-shadow: var(--shadow-glow);
}

.card-dark h3 {
  color: var(--color-text-white);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Feature Card */
.feature-card {
  text-align: center;
  padding: var(--space-6);
}

.feature-card .card-icon {
  margin: 0 auto var(--space-4);
}

/* ============================================
   HIGHLIGHTS SECTION (Edge to Edge background with grid)
   ============================================ */
.highlights {
  padding: var(--space-12) 0;
  background: var(--color-bg-light);
  position: relative;
  z-index: 5;
}

@media (min-width: 1025px) {
  .highlights {
    padding: 0;
    margin-top: -60px;
  }
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

@media (min-width: 1025px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.highlights-grid .card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  background: #FFFFFF;
}

@media (min-width: 1025px) {
  .highlights-grid .card {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--color-border);
    padding: var(--space-12);
  }

  .highlights-grid .card:last-child {
    border-right: none;
  }
}

.highlights-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 1025px) {
  .highlights-grid .card:hover {
    transform: none;
    background: var(--color-bg-light);
    z-index: 1;
    box-shadow: inset 0 0 40px rgba(0, 102, 255, 0.05);
  }
}

/* ============================================
   ABOUT SECTION (Redesigned for Full Width Impact)
   ============================================ */
.about {
  padding: var(--space-24) 0;
  background: #FFFFFF;
  overflow: visible;
}

.about .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 1025px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content {
  padding: var(--space-12) var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .about-content {
    padding: var(--space-20) 5%;
    margin-left: auto;
    margin-right: 0;
  }
}

.about-visual {
  position: relative;
  height: auto;
  min-height: 300px;
}

@media (min-width: 1025px) {
  .about-visual {
    height: 100%;
    min-height: 500px;
  }
}

.about-image {
  height: 100%;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1025px) {
  .about-image img {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  }
}

.about-floating-card {
  position: relative;
  margin: var(--space-8) var(--space-6) 0;
  background: var(--color-bg-white);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 10;
  border: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .about-floating-card {
    display: none;
    /* Hide on mobile to prevent overlap */
  }
}

@media (min-width: 1025px) {
  .about-floating-card {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    transform: translateY(-50%) translateX(-20%);
    padding: var(--space-8);
    box-shadow: var(--shadow-2xl);
  }
}

.about-floating-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #00D4FF 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-floating-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.about-floating-text strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-text-dark);
}

.about-floating-text span {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0F3460 100%);
  padding: var(--space-24) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: rgba(0, 102, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #00D4FF 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.service-card h3 {
  color: var(--color-text-white);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.service-list {
  display: grid;
  gap: var(--space-3);
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

.service-list-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  min-width: 16px;
}

/* Specialists Grid */
.specialists-section {
  margin-top: var(--space-12);
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
}

.specialist-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: all var(--transition-base);
}

.specialist-item:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.specialist-item svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.specialist-item span {
  display: block;
  color: var(--color-text-white);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ============================================
   DIFFERENTIALS SECTION
   ============================================ */
.differentials {
  padding: var(--space-24) 0;
  background: var(--color-bg-light);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.differential-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.differential-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.differential-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.differential-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.differential-content p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ============================================
   CONTENT / BLOG SECTION
   ============================================ */
.content-section {
  padding: var(--space-24) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.article-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.article-image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(0, 102, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
}

.article-image svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.article-content {
  padding: var(--space-6);
}

.article-category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.article-card:hover h3 {
  color: var(--color-accent);
}

.article-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
}

.article-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.article-link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0F3460 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(0, 102, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(0, 212, 255, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  position: relative;
  z-index: 1;
}

.contact-content h2 {
  color: var(--color-text-white);
  margin-bottom: var(--space-4);
}

.contact-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.contact-info {
  display: grid;
  gap: var(--space-5);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.contact-item-text span {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-1);
}

.contact-item-text a,
.contact-item-text strong {
  color: var(--color-text-white);
  font-size: var(--text-base);
}

.contact-item-text a:hover {
  color: var(--color-accent);
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: grid;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-white);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: var(--space-10);
}

.form-group select option {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #050E1A;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover svg {
  color: var(--color-text-white);
}

.footer-column h4 {
  color: var(--color-text-white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: grid;
  gap: var(--space-3);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation delays */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

/* Body lock when menu is open */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-visual {
    order: -1;
    min-height: auto;
  }

  .about-list-item {
    align-items: flex-start;
  }

  .about-list-icon {
    margin-top: 4px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-4);
  }

  .section {
    padding: var(--space-16) 0;
  }

  /* Header Mobile */
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0A2540;
    /* Solid HEX to avoid transparency leaks */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    /* Higher than header and WhatsApp bot */
    transition: all var(--transition-base);
    padding-top: 80px;
    /* Space for the header logo/toggle */
  }

  .nav-list.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: var(--text-xl);
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  /* Hero Mobile */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: var(--space-16);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .specialists-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Form Mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  /* WhatsApp Float */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float a {
    width: 54px;
    height: 54px;
  }

  /* Contact Form Mobile Refinement */
  .contact-form-wrapper {
    padding: var(--space-5) var(--space-4);
  }

  .contact-form .btn {
    font-size: var(--text-sm);
    line-height: 1.3;
    padding: var(--space-4) var(--space-3);
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .specialists-grid {
    grid-template-columns: 1fr;
  }

  .module-tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }
}

/* ============================================
   SERVICES SECTION (Immersive Overhaul)
   ============================================ */
.services {
  background: #050E1A;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .services {
    padding: var(--space-24) 0;
  }
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.service-card {
  height: 100%;
}

/* ============================================
   AI & AUTOMATION (Full Width Overhaul)
   ============================================ */
.ai-automation {
  background: #050E1A;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .ai-automation {
    padding: var(--space-32) 0;
    overflow: visible;
  }
}

.ai-automation .container {
  max-width: 100%;
  padding: 0;
}

.ai-automation .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1025px) {
  .ai-automation .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-visual-container {
  width: 100%;
  height: 300px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .ai-visual-container {
    height: 180px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.4) 0%, transparent 80%);
  }

  .ai-glow-icon {
    width: 60px;
    height: 60px;
  }

  .ai-automation .hero-badge {
    margin-bottom: var(--space-4);
    opacity: 1;
    background: rgba(0, 102, 255, 0.25);
    border: 1px solid var(--color-accent);
  }
}

@media (min-width: 1025px) {
  .ai-visual-container {
    height: 600px;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
  }
}

.ai-automation .about-content {
  padding: var(--space-12) var(--space-6);
  margin-left: 0;
}

@media (min-width: 1025px) {
  .ai-automation .about-content {
    padding: var(--space-20) 10% var(--space-20) 5%;
  }
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */
.article-page {
  padding-top: 120px;
  background: var(--color-bg-white);
}

.article-header {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F3460 100%);
  color: var(--color-text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-header .container {
  position: relative;
  z-index: 1;
}

.article-header h1 {
  color: var(--color-text-white);
  margin-bottom: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.post-content {
  max-width: 800px;
  margin: var(--space-12) auto;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-medium);
}

.post-content h2 {
  margin: var(--space-10) 0 var(--space-4);
  color: var(--color-primary);
}

.post-content h3 {
  margin: var(--space-8) 0 var(--space-3);
  color: var(--color-primary-light);
}

.post-content p {
  margin-bottom: var(--space-6);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.post-content li {
  margin-bottom: var(--space-2);
}

.post-content strong {
  color: var(--color-primary);
}

.article-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.cta-box {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(0, 212, 255, 0.05) 100%);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-accent);
  text-align: center;
}

.cta-box h3 {
  margin-bottom: var(--space-4);
}

/* Fix Hero Visual on Mobile */
.hero-visual {
  display: none;
}

@media (min-width: 1025px) {
  .hero-visual {
    display: block;
  }
}