/* ==========================================================================
   SoftFire - Reak Dark Edition (Official Logo Palette: Electric Blue & Aqua Teal)
   Design System, Floating Canvas, Ambient Glows, FAQ Accordion, AI Visuals
   ========================================================================== */

:root {
  --bg-main: #06080d;
  --bg-surface: #0c1018;
  --bg-surface-elevated: #111622;
  --bg-surface-glass: rgba(12, 16, 24, 0.78);
  --bg-surface-hover: #161e30;
  
  /* Brand Colors from Logo (Azul e Verde Água) */
  --brand-blue: #0067e8;
  --brand-blue-deep: #004bb0;
  --brand-aqua: #00e5b3;
  --brand-cyan: #00c2e7;
  --brand-mint: #00f3cb;
  
  --primary-color: #0067e8;
  --accent-color: #00e5b3;
  
  --primary-glow: rgba(0, 103, 232, 0.4);
  --accent-glow: rgba(0, 229, 179, 0.4);
  --cyan-glow: rgba(0, 194, 231, 0.35);

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #0067e8 0%, #00a8e8 50%, #00e5b3 100%);
  --tech-gradient: linear-gradient(135deg, #0052cc 0%, #00c2e7 50%, #00f3cb 100%);
  --aqua-gradient: linear-gradient(135deg, #00c2e7 0%, #00e5b3 100%);
  --dark-card-gradient: linear-gradient(135deg, rgba(17, 22, 34, 0.95) 0%, rgba(12, 16, 24, 0.98) 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 229, 179, 0.45);
  --border-glass: rgba(255, 255, 255, 0.12);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
}

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

/* Neural Network Interactive Canvas */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #192033;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

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

.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #00c2e7 65%, #00e5b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #ffffff 30%, #0067e8 80%, #00c2e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-highlight {
  color: var(--brand-aqua);
}

.text-highlight-blue {
  color: var(--brand-blue);
}

/* ==========================================================================
   Atmospheric Glows & Ambient Background
   ========================================================================== */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.38;
}

.glow-blue {
  background: radial-gradient(circle, rgba(0, 103, 232, 0.45) 0%, rgba(0, 103, 232, 0) 70%);
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.glow-aqua {
  background: radial-gradient(circle, rgba(0, 229, 179, 0.4) 0%, rgba(0, 229, 179, 0) 70%);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.glow-cyan {
  background: radial-gradient(circle, rgba(0, 194, 231, 0.35) 0%, rgba(0, 194, 231, 0) 70%);
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(1.1); }
  100% { transform: translate(30px, -40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.08); }
  100% { transform: translate(40px, 50px) scale(0.92); }
}

/* Subtle Grid Background Pattern */
.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 54px 54px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

/* Container */
.site-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Custom Cursor & Follower
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--brand-aqua);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out, background-color 0.2s ease;
  box-shadow: 0 0 10px var(--brand-aqua);
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 229, 179, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-hover {
  width: 54px;
  height: 54px;
  border-color: var(--brand-aqua);
  background-color: rgba(0, 229, 179, 0.08);
  backdrop-filter: blur(2px);
}

@media (max-width: 991px) {
  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 10000;
  width: 0%;
  box-shadow: 0 0 14px var(--brand-aqua);
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  padding: 0.85rem 0;
  background: rgba(6, 8, 13, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.header-logo img {
  height: 36px;
  width: auto;
  transition: var(--transition-fast);
}

.header-logo:hover img {
  transform: scale(1.03);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: rgba(12, 16, 24, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  padding: 0.38rem 1.35rem;
  border-radius: var(--radius-pill);
}

.nav-link-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #ffffff;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-contact-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.header-contact-link:hover {
  color: #fff;
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}

.header-contact-link i {
  color: var(--brand-aqua);
  font-size: 0.88rem;
}

/* Button Styles */
.btn-primary-reak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.4rem;
  background: var(--primary-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0, 103, 232, 0.35);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary-reak span {
  white-space: nowrap;
}

.btn-primary-reak::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary-reak:hover::before {
  left: 100%;
}

.btn-primary-reak:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 179, 0.4);
  color: #fff;
}

.btn-secondary-reak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-secondary-reak:hover {
  background: rgba(0, 229, 179, 0.08);
  border-color: var(--brand-aqua);
  transform: translateY(-2px);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 1.3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Offcanvas Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #0c1018;
  border-left: 1px solid var(--border-light);
  z-index: 10002;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-close:hover {
  color: #fff;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.drawer-nav a:hover {
  color: var(--brand-aqua);
  transform: translateX(6px);
}

.drawer-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.drawer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.drawer-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-muted);
}

.drawer-socials a:hover {
  color: #fff;
  border-color: var(--brand-aqua);
  background: var(--accent-glow);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9.5rem 0 5rem;
  overflow: hidden;
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.25rem;
  background: rgba(0, 103, 232, 0.12);
  border: 1px solid rgba(0, 229, 179, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-aqua);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--brand-aqua);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 229, 179, 0.7);
  animation: pulse-badge-aqua 2s infinite;
}

@keyframes pulse-badge-aqua {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 229, 179, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 229, 179, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 229, 179, 0);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

/* AI Automation Terminal Widget in Hero */
.ai-terminal-widget {
  background: rgba(12, 16, 24, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 103, 232, 0.15);
  position: relative;
  overflow: hidden;
}

.ai-terminal-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.dot-red { background: #ef4444; }
.terminal-dot.dot-yellow { background: #eab308; }
.terminal-dot.dot-green { background: #22c55e; }

.terminal-status-badge {
  font-size: 0.75rem;
  color: var(--brand-aqua);
  background: rgba(0, 229, 179, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 229, 179, 0.3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terminal-row {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-row-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-row-info i {
  color: var(--brand-aqua);
  font-size: 1.1rem;
}

.terminal-row-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.terminal-row-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-aqua);
}

/* Stats Pill Bar */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: rgba(12, 16, 24, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.stat-number .stat-plus {
  color: var(--brand-aqua);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   Infinite Marquee (Ticker Ribbon)
   ========================================================================== */
.marquee-section {
  position: relative;
  padding: 1.75rem 0;
  background: #080b11;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee-item .marquee-highlight {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.marquee-item i {
  color: var(--brand-aqua);
  font-size: 0.85rem;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-wrapper {
  padding: 7.5rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-aqua);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ==========================================================================
   Interactive About / "Por que a SoftFire?" Tabs
   ========================================================================== */
.tabs-nav {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  gap: 0.35rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 103, 232, 0.4);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
}

.tab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
}

.tab-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tab-card-body h3 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}

.tab-card-body p {
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
}

.metric-box:hover {
  background: rgba(0, 229, 179, 0.05);
  border-color: var(--border-active);
  transform: translateY(-3px);
}

.metric-box .metric-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-box .metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(0, 229, 179, 0.1);
  border-color: var(--brand-aqua);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Selected Works / Cases de Sucesso
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 179, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 103, 232, 0.2);
}

.project-thumb-box {
  height: 260px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1420;
}

.project-bg-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem;
}

.project-bg-art.art-kiddu {
  background: linear-gradient(135deg, #051226 0%, #004bb0 60%, #00c2e7 100%);
}

.project-bg-art.art-pedeagua {
  background: linear-gradient(135deg, #031a22 0%, #0891b2 60%, #00e5b3 100%);
}

.project-bg-art.art-gravaessa {
  background: linear-gradient(135deg, #09172e 0%, #0067e8 50%, #00f3cb 100%);
}

.project-bg-art.art-blockmine {
  background: linear-gradient(135deg, #060e18 0%, #1e293b 60%, #00e5b3 100%);
}

.art-badge {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.art-sub {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

.project-badge-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid var(--border-light);
  z-index: 2;
}

.project-content {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-aqua);
}

.project-title {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--brand-aqua);
}

.project-desc {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.65;
}

.project-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-top: auto;
}

.project-footer-link i {
  color: var(--brand-aqua);
  transition: transform 0.3s ease;
}

.project-card:hover .project-footer-link i {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Services Grid (Soluções de IA, Automação & Software)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.35rem 2rem;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(0, 229, 179, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.service-card:hover .service-num {
  color: var(--brand-aqua);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(0, 103, 232, 0.12);
  border: 1px solid rgba(0, 229, 179, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.45rem;
  color: var(--brand-aqua);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: var(--transition-fast);
}

.service-cta-btn i {
  color: var(--brand-aqua);
  transition: transform 0.2s ease;
}

.service-card:hover .service-cta-btn i {
  transform: translateX(4px);
}

/* ==========================================================================
   FAQ Accordion (Perguntas Frequentes - Reak Dark Style)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(0, 229, 179, 0.3);
}

.faq-item.active {
  border-color: var(--brand-aqua);
  background: var(--bg-surface-elevated);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-aqua);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary-gradient);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.5rem;
}

.faq-answer p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ==========================================================================
   Impact Banner / Infinite Possibilities
   ========================================================================== */
.impact-banner {
  background: linear-gradient(135deg, rgba(12, 16, 24, 0.95), rgba(6, 8, 13, 0.95));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.impact-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 179, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.impact-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 103, 232, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.impact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.impact-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.impact-text p {
  font-size: 1.15rem;
  color: #e2e8f0;
}

/* ==========================================================================
   Contact Section & Form (#contactdiv)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition-fast);
}

.contact-info-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 103, 232, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-aqua);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card-text h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.contact-card-text p,
.contact-card-text a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.contact-card-text a:hover {
  color: var(--brand-aqua);
}

/* Contact Form Box */
.contact-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.reak-form-control {
  width: 100%;
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #fff;
  transition: var(--transition-fast);
}

.reak-form-control:focus {
  outline: none;
  border-color: var(--brand-aqua);
  background: rgba(6, 8, 13, 0.9);
  box-shadow: 0 0 0 4px rgba(0, 229, 179, 0.15);
}

.reak-form-control:focus + .form-input-icon {
  color: var(--brand-aqua);
}

.reak-form-control::placeholder {
  color: var(--text-dim);
}

textarea.reak-form-control {
  padding-top: 1rem;
  min-height: 120px;
  resize: vertical;
}

.turnstile-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: flex-start;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.form-alert.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-alert.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--primary-gradient);
  border-color: var(--brand-aqua);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-list a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--brand-aqua);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* ==========================================================================
   WhatsApp Floating Button & Scroll to Top
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition-normal);
  animation: pulse-whatsapp 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
  background: #20ba59;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-normal);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-gradient);
  border-color: var(--brand-aqua);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .header-nav {
    gap: 1rem;
    padding: 0.35rem 1rem;
  }

  .header-contact-link span {
    display: none;
  }

  .header-contact-link {
    padding: 0.45rem 0.65rem;
  }

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

  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ai-terminal-widget {
    max-width: 600px;
  }
}

@media (max-width: 991px) {
  .header-nav, .header-actions .header-contact-link {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .tab-card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .impact-banner {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-form-box {
    padding: 1.75rem;
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats-strip {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

/* Database-backed portfolio, shared by the home and full gallery. */
.projects-gallery { padding-top: 170px; }
.gallery-back { display: inline-flex; margin-bottom: 2.5rem; }
.gallery-summary { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-light); color: var(--text-muted); }
.projects-gallery-action { display: flex; justify-content: center; margin-top: 3rem; text-align: center; }
.projects-empty { grid-column: 1 / -1; padding: 3rem 1.5rem; text-align: center; color: var(--text-muted); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.project-reference-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.project-art-overlay { justify-content: flex-end; align-items: flex-start; background: linear-gradient(180deg, rgba(6,8,13,.12), rgba(6,8,13,.92)); }
.project-art-overlay .art-sub { font-size: .75rem; line-height: 1.6; }
.project-badge-pill { max-width: calc(100% - 2.5rem); }
.project-card:hover .project-reference-image { transform: scale(1.04); }
.project-card:focus-within { border-color: var(--brand-aqua); }
.project-footer-link:focus-visible, .gallery-back:focus-visible { outline: 2px solid var(--brand-aqua); outline-offset: 5px; }
.project-card.project-reveal-pending { opacity: 0; transform: translateY(24px); }
@media (max-width: 767px) {
  .projects-gallery { padding-top: 130px; }
  .project-art-overlay .art-badge { font-size: 2.2rem; }
  .project-badge-pill { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card, .project-reference-image, .project-footer-link i { transition: none; }
  .project-card.project-reveal-pending { opacity: 1; transform: none; }
  .project-card:hover, .project-card:hover .project-reference-image { transform: none; }
  .custom-cursor, .custom-cursor-follower { display: none; }
}
