/* ===== BASE ===== */
* { font-family: 'Inter', sans-serif; }
:root {
  --brand: #991B1B;
  --brand-dark: #7F1D1D;
  --blue: #1E3A5F;
  --blue-dark: #172554;
  --txt-primary: #0F172A;
  --txt-secondary: #334155;
  --txt-muted: #64748B;
  --red-accent: #991B1B;
}
.font-display { font-family: 'DM Serif Display', serif; letter-spacing: -0.01em; }
.font-body { font-family: 'Inter', sans-serif; letter-spacing: -0.01em; }
.font-mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
html { scroll-behavior: smooth; }
body { background: #F8FAFC; color: #0F172A; overflow-x: hidden; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; line-height: 1.2; }
.text-display { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
.text-subtitle { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, #1E3A5F, #991B1B);
  transform-origin: left; transform: scaleX(0);
}

/* ===== NAVBAR ===== */
.navbar-scrolled {
  background: rgba(240,242,245,0.88) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.navbar-scrolled .navbar-brand { color: #0F172A !important; }
.navbar-scrolled .navbar-link { color: #334155 !important; }
.navbar-scrolled .navbar-link:hover { color: #0F172A !important; }
.navbar-scrolled .navbar-hamburger { color: #0F172A !important; }

/* ===== GLASS CARD ===== */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.65) 50%, rgba(245,247,250,0.75) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
}
.glass:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 12px 48px rgba(37,99,235,0.08), inset 0 1px 0 rgba(255,255,255,1);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #DC2626, #2563EB);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== MAGNETIC BUTTON ===== */
.btn-magnetic {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

/* ===== CARD TILT ===== */
.tilt-card { transform-style: preserve-3d; perspective: 1000px; }
.tilt-card-inner {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}
.tilt-card:hover .tilt-card-inner {
  transform: rotateY(-2deg) rotateX(2deg) translateZ(10px);
}

/* ===== ACCORDION ===== */
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion-content.open { max-height: 600px; }

/* ===== MODAL ===== */
.modal-backdrop {
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-content {
  transform: scale(0.95) translateY(20px); transition: transform 0.3s ease;
}
.modal-backdrop.active .modal-content { transform: scale(1) translateY(0); }

/* ===== HERO ===== */
.mesh-bg {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #172554 70%, #0F172A 100%);
  position: relative;
}
.blue-column {
  position: absolute;
  background: linear-gradient(180deg, rgba(30,58,95,0.2) 0%, rgba(30,58,95,0.35) 50%, rgba(30,58,95,0.15) 100%);
  border-radius: 16px;
}
.red-accent {
  position: absolute;
  background: linear-gradient(135deg, rgba(153,27,27,0.15) 0%, rgba(153,27,27,0.25) 100%);
  border-radius: 50%;
}
.art-shape { position: absolute; pointer-events: none; }
.parallax-layer { will-change: transform; }

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-line {
  position: absolute; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.4), transparent);
}
.geo-line-v {
  position: absolute; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(220,38,38,0.3), transparent);
}

/* ===== CORNER ACCENT ===== */
.corner-accent { position: relative; }
.corner-accent::before, .corner-accent::after {
  content: ''; position: absolute; width: 60px; height: 60px; pointer-events: none; transition: all 0.4s ease;
}
.corner-accent::before { top: -1px; left: -1px; border-top: 2px solid rgba(37,99,235,0.25); border-left: 2px solid rgba(37,99,235,0.25); }
.corner-accent::after { bottom: -1px; right: -1px; border-bottom: 2px solid rgba(220,38,38,0.25); border-right: 2px solid rgba(220,38,38,0.25); }
.corner-accent:hover::before, .corner-accent:hover::after { width: 80px; height: 80px; }

/* ===== PATTERNS ===== */
.dot-grid {
  background-image: radial-gradient(circle, rgba(37,99,235,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.diagonal-lines {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 24px, rgba(37,99,235,0.03) 24px, rgba(37,99,235,0.03) 25px);
}
.subject-tag {
  background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.1);
}
.section-texture {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.015) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* ===== STAT NUMBER ===== */
.stat-number { font-variant-numeric: tabular-nums; }

/* ===== WHATSAPP PULSE ===== */
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
}
.wa-pulse { animation: wa-pulse 2s ease infinite; }

/* ===== FLOATING ===== */
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } }
.animate-float { animation: float 8s ease-in-out infinite; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .chat-window {
    bottom: 0; right: 0; width: 100%; max-width: 100%;
    height: 100%; max-height: 100%; border-radius: 0;
  }
}
