/* ============================================
   NIXCON - Design System
   Contabilidade Inteligente com Tecnologia Própria
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Colors — Nixcon Brand Palette */
  --color-bg-primary: #000F23;
  --color-bg-secondary: #242A36;
  --color-bg-surface: #1a2030;
  --color-bg-card: rgba(36, 42, 54, 0.6);
  --color-bg-glass: rgba(36, 42, 54, 0.4);

  --color-primary: #1A5CE0;
  --color-accent: #1A5CE0;
  --color-accent-glow: #4D8AFF;
  --color-accent-secondary: #1348B8;

  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #67757F;

  --color-border: rgba(26, 92, 224, 0.15);
  --color-border-hover: rgba(26, 92, 224, 0.35);

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

  /* Spacing */
  --section-padding: 72px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(26, 92, 224, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(26, 92, 224, 0.25);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --color-bg-primary: #f0f4f8;
  --color-bg-secondary: #ffffff;
  --color-bg-surface: #e2e8f0;
  --color-bg-card: rgba(255, 255, 255, 0.85);
  --color-bg-glass: rgba(255, 255, 255, 0.65);

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;

  --color-border: rgba(26, 92, 224, 0.12);
  --color-border-hover: rgba(26, 92, 224, 0.25);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 30px rgba(26, 92, 224, 0.06);
  --shadow-glow-strong: 0 0 60px rgba(26, 92, 224, 0.1);
}

/* Logo inversion for light theme */
[data-theme="light"] .logo img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(83%) saturate(2100%) hue-rotate(215deg) brightness(90%) contrast(90%);
}

/* Header bg for light theme */
[data-theme="light"] .header.scrolled {
  background: rgba(240, 244, 248, 0.92);
  border-bottom: 1px solid rgba(26, 92, 224, 0.08);
}

/* Hero gradient text for light theme */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1A5CE0, #4D8AFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero background for light theme */
[data-theme="light"] .hero {
  background: linear-gradient(180deg, #e8eef5, #f0f4f8 60%);
}

[data-theme="light"] .hero-orb-1 {
  background: radial-gradient(circle, rgba(26, 92, 224, 0.08), transparent 70%);
}

[data-theme="light"] .hero-orb-2 {
  background: radial-gradient(circle, rgba(77, 138, 255, 0.06), transparent 70%);
}

[data-theme="light"] .hero-grid {
  opacity: 0.03;
}

/* CTA section for light theme */
[data-theme="light"] .cta-wrapper {
  background: linear-gradient(135deg, #1A5CE0, #1348B8);
  color: #ffffff;
}

[data-theme="light"] .cta-wrapper .section-title,
[data-theme="light"] .cta-wrapper .section-subtitle,
[data-theme="light"] .cta-wrapper .section-label {
  color: #ffffff;
}

[data-theme="light"] .cta-wrapper .section-title .highlight {
  -webkit-text-fill-color: #ffffff;
  background: none;
}

[data-theme="light"] .cta-wrapper .btn-primary {
  background: #ffffff;
  color: #1A5CE0;
}

[data-theme="light"] .cta-wrapper .btn-secondary {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}

/* Metrics section for light theme */
[data-theme="light"] .metrics {
  background: linear-gradient(135deg, #1A5CE0, #1348B8);
}

[data-theme="light"] .metric-number,
[data-theme="light"] .metric-label {
  color: #ffffff;
}

/* Button text fix for light theme */
[data-theme="light"] .btn-primary {
  color: #ffffff;
}

/* Form inputs for light theme */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #94a3b8;
}

/* Footer for light theme */
[data-theme="light"] .footer {
  background: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .footer .logo img {
  filter: none;
}

[data-theme="light"] .footer h4 {
  color: #ffffff;
}

[data-theme="light"] .footer a {
  color: #94a3b8;
}

[data-theme="light"] .footer-bottom {
  border-color: rgba(255,255,255,0.1);
  color: #94a3b8;
}

/* WhatsApp float for light theme */
[data-theme="light"] .whatsapp-tooltip {
  background: #0f172a;
  color: #ffffff;
}

/* Mobile nav for light theme */
[data-theme="light"] .nav-links.active,
[data-theme="light"] .nav-links[style*="flex"] {
  background: rgba(240, 244, 248, 0.97);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Dark theme: show sun, hide moon */
.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }

/* Light theme: show moon, hide sun */
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* WhatsApp Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-card);
}

.whatsapp-float {
  position: relative;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Theme transition */
body,
body * {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

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

/* ---------- Section Defaults ---------- */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: var(--color-text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  color: var(--color-text-primary);
  box-shadow: 0 4px 20px rgba(26, 92, 224, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 92, 224, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-hover);
}

.btn-secondary:hover {
  background: var(--color-bg-glass);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(0, 15, 35, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links .nav-client-link {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.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);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: auto;
  padding: 100px 0 72px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Grid animated background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 92, 224, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 92, 224, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 92, 224, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(19, 72, 184, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  position: relative;
}

.hero-stat::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.hero-stat:first-child::before {
  display: none;
}

.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-image-wrapper img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-glow-strong);
  max-height: 440px;
  width: 100%;
  object-fit: contain;
}

.hero-image-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-accent), transparent, var(--color-accent-glow));
  opacity: 0.15;
  z-index: -1;
  filter: blur(2px);
}

/* Floating elements around hero image */
.hero-float-card {
  position: absolute;
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: var(--shadow-card);
}

.hero-float-card svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.hero-float-card.card-1 {
  top: 20px;
  right: -30px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 60px;
  left: -40px;
  animation-delay: -2s;
}

.hero-float-card.card-3 {
  bottom: -10px;
  right: 20px;
  animation-delay: -4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--color-bg-secondary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(26, 92, 224, 0.1), rgba(26, 92, 224, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(26, 92, 224, 0.2), rgba(26, 92, 224, 0.1));
  box-shadow: 0 0 25px rgba(26, 92, 224, 0.15);
}

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

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* ============================================
   TECHNOLOGY / ECOSYSTEM SECTION
   ============================================ */
.technology {
  position: relative;
  overflow: hidden;
}

.technology-header {
  text-align: center;
  margin-bottom: 80px;
}

.technology-header .section-subtitle {
  margin: 0 auto;
}

.tech-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.tech-showcase.reverse {
  direction: rtl;
}

.tech-showcase.reverse > * {
  direction: ltr;
}

.tech-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.tech-content p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tech-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(26, 92, 224, 0.15), rgba(26, 92, 224, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.tech-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.tech-feature-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.tech-image {
  position: relative;
}

.tech-image img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.tech-image-glow {
  position: absolute;
  inset: 10px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(26, 92, 224, 0.08), transparent 60%);
  z-index: -1;
}

/* ============================================
   METRICS SECTION
   ============================================ */
.metrics {
  background: linear-gradient(135deg, var(--color-primary), var(--color-bg-surface));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.metrics::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 92, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 92, 224, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

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

.metric-item {
  position: relative;
}

.metric-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

.metric-item:last-child::after {
  display: none;
}

.metric-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent-glow);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================
   DIFFERENTIALS SECTION
   ============================================ */
.differentials {
  background: var(--color-bg-secondary);
}

.differentials-header {
  text-align: center;
  margin-bottom: 64px;
}

.differentials-header .section-subtitle {
  margin: 0 auto;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.differential-card {
  padding: 36px 28px;
  text-align: center;
}

.differential-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26, 92, 224, 0.12), rgba(26, 92, 224, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

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

.differential-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.differential-card p {
  font-size: 0.87rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================
   SPECIALTIES SECTION
   ============================================ */
.specialties-header {
  text-align: center;
  margin-bottom: 64px;
}

.specialties-header .section-subtitle {
  margin: 0 auto;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.specialty-card {
  padding: 32px 20px;
  text-align: center;
  cursor: default;
}

.specialty-card .specialty-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(26, 92, 224, 0.1), rgba(26, 92, 224, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

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

.specialty-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.specialty-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 36px 28px;
}

.testimonial-quote {
  font-size: 2.4rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.testimonial-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-wrapper {
  background: linear-gradient(135deg, var(--color-primary), var(--color-bg-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(26, 92, 224, 0.08), transparent 40%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content .section-title {
  margin-bottom: 16px;
}

.cta-content .section-subtitle {
  margin: 0 auto 36px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: var(--color-bg-secondary);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  padding-top: 20px;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-info .section-subtitle {
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(26, 92, 224, 0.12), rgba(26, 92, 224, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contact-detail-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

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

.contact-form {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 92, 224, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-primary);
  padding: 60px 0 0;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .footer-crc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(26, 92, 224, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(26, 92, 224, 0.1);
  border-color: var(--color-accent);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

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

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: whatsappPulse 3s ease-in-out infinite;
}

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

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

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ============================================
   ANIMATIONS (Intersection Observer)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tech-showcase.reverse {
    direction: ltr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .metric-item:nth-child(2)::after {
    display: none;
  }

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

  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .testimonials-slider .testimonial-card:last-child {
    display: none;
  }

  .contact .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 400px;
  }

  .hero-float-card.card-1 {
    right: 0;
  }

  .hero-float-card.card-2 {
    left: 0;
  }
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog {
  background: var(--color-bg-secondary);
}

.blog-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ============================================
   SOLUTIONS / PRODUCTS SECTION
   ============================================ */
.solutions {
  background: var(--color-bg-primary);
}

.solutions-header {
  text-align: center;
  margin-bottom: 56px;
}

.solutions-header .section-subtitle {
  margin: 0 auto;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.solution-card {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
  text-align: center;
}

.solution-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.solution-card .solution-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.solution-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.solution-card .solution-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.solution-card:hover .solution-link { gap: 8px; }

.solution-card .solution-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 900;
  font-family: var(--font-family);
}

.chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(26, 92, 224, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: absolute;
  bottom: 0;
  right: 0;
}

.chat-toggle-btn:hover { transform: scale(1.08); }
.chat-toggle-btn svg { width: 26px; height: 26px; }

.chat-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  height: 440px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.open { display: flex; }

.chat-panel-header {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  padding: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-panel-header .chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.chat-panel-header .chat-info h4 { font-size: 0.9rem; font-weight: 700; }
.chat-panel-header .chat-info span { font-size: 0.72rem; opacity: 0.8; }

.chat-panel-header .chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-panel-header .chat-close:hover { opacity: 1; }
.chat-panel-header .chat-close svg { width: 18px; height: 18px; }

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--color-accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  color: var(--color-text-primary);
  outline: none;
}

.chat-input-area input:focus { border-color: var(--color-accent); }

.chat-input-area button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--color-accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-input-area button:hover { background: var(--color-accent-secondary); }
.chat-input-area button svg { width: 18px; height: 18px; }

.blog-header .section-subtitle {
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.blog-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-bg-surface), var(--color-bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}

.blog-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  opacity: 0.4;
}

.blog-card-content {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  background: rgba(26, 92, 224, 0.1);
  padding: 3px 10px;
  border-radius: 50px;
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.blog-card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-content p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.blog-card-link:hover {
  gap: 10px;
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
}

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

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.blog-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* Footer admin link */
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-link {
  opacity: 0.4;
  font-size: 0.8rem;
  transition: opacity var(--transition-fast);
}

.admin-link:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* Blog Page */
.blog-page-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: var(--color-bg-primary);
  text-align: center;
}

.blog-page-hero .section-subtitle {
  margin: 0 auto;
}

.blog-page-content {
  background: var(--color-bg-secondary);
  padding: 60px 0 120px;
}

.blog-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--color-bg-glass);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================
   PRODUCT DETAILS MODAL
   ============================================ */
.product-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.product-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.product-detail-content {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-glow-strong);
}

.product-detail-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-detail-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.product-detail-body p { margin-bottom: 12px; }
.product-detail-body ul { padding-left: 20px; margin-bottom: 12px; }
.product-detail-body li { margin-bottom: 6px; }

.product-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.product-detail-close:hover { color: var(--color-text-primary); }

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

  .testimonials-slider {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-slider .testimonial-card:last-child {
    display: none;
  }

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

  .hero-float-card {
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .hero-image-wrapper {
    max-width: 340px;
  }

  .hero-image-wrapper img {
    max-height: 340px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .nav-client-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .nav-links .nav-client-link::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta.mobile-show {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-image-wrapper img {
    max-height: 280px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-description {
    margin: 0 auto 28px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero-stat::before {
    display: none;
  }

  .hero-float-card {
    display: none;
  }

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

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

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

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

  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .testimonials-slider .testimonial-card:last-child {
    display: block;
  }

  .blog-grid,
  .blog-page-grid {
    grid-template-columns: 1fr;
  }

  .blog-filters {
    justify-content: center;
  }

  .cta-wrapper {
    padding: 48px 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .metric-item::after {
    display: none;
  }
}
