/* 2M Solutions - Modern Light Theme Design */
:root {
  --accent: #0b5bd7;
  --accent-light: #2b7ff0;
  --accent-dark: #0a3fa8;
  --accent-gradient: linear-gradient(135deg, #0b5bd7 0%, #2b7ff0 100%);
  --bg-light: #f8f9fb;
  --bg-lighter: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(11, 91, 215, 0.12);
  --border-light: rgba(11, 91, 215, 0.06);
  --shadow-light: rgba(15, 23, 42, 0.04);
  --shadow-medium: rgba(15, 23, 42, 0.08);
  --shadow-lg: rgba(15, 23, 42, 0.12);
  --success: #10b981;
  --success-light: #34d399;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 50%, #f8f9fb 100%);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 35%, rgba(11, 91, 215, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(43, 127, 240, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 35%);
  pointer-events: none;
  z-index: -1;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Header Styles */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 50;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 58px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}

.logo:hover {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(11, 91, 215, 0.2));
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 4px;
}

.main-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.site-header .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Menu Hamburger Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
  margin-bottom: 0;
  overflow: hidden;
}

.bg-anim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 91, 215, 0.04) 0%, rgba(43, 127, 240, 0.02) 100%);
  opacity: 0.8;
}

.bg-anim::before,
.bg-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, rgba(11, 91, 215, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 91, 215, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.bg-anim::before {
  animation: moveGrid 30s linear infinite;
}

.bg-anim::after {
  animation: moveGrid 40s linear infinite reverse;
  filter: blur(2px);
  opacity: 0.2;
}

@keyframes moveGrid {
  from { background-position: 0 0; }
  to { background-position: 80px 80px; }
}

.hero-copy {
  position: relative;
  z-index: 10;
  padding: 56px 32px;
  color: var(--text-primary);
  max-width: 760px;
}

.hero-copy h1 {
  font-size: 2.75rem;
  margin: 20px 0;
  line-height: 1.15;
  font-weight: 700;
  background: linear-gradient(135deg, #0b5bd7 0%, #2b7ff0 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  margin: 16px 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 16px 0 28px 0;
  line-height: 1.75;
  font-weight: 400;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0b5bd7 0%, #2b7ff0 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 4px 16px rgba(11, 91, 215, 0.25), 0 2px 8px rgba(11, 91, 215, 0.15);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 91, 215, 0.35), 0 4px 12px rgba(11, 91, 215, 0.2);
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--success);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--success);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-secondary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-wa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 11px 20px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  position: relative;
  overflow: hidden;
}

/* WhatsApp Floating Widget */
body > .btn-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  font-size: 15px;
  border-radius: 50px;
  margin: 0;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

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

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

.btn-wa:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Presentation Box Section */
.presentation-box {
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  border-left: none;
}

.presentation-inner {
  background: #ffffff;
  padding: 48px 32px;
  margin: 0;
}

.presentation-box h2 {
  margin-top: 0;
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.presentation-box h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.presentation-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.presentation-content p {
  margin: 0;
  text-align: justify;
}

/* Main Content */
main {
  padding: 48px 32px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 32px 0 20px 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 48px 0 20px 0;
  color: var(--text-primary);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-image-slice: 1;
  padding-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 0 14px 0;
  color: var(--accent);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 16px 0 10px 0;
  color: var(--accent);
}

p {
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 14px 0;
  font-size: 1.02rem;
}

/* Grid Layouts */
.services-grid,
.feature-grid,
.product-grid,
.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.service-box,
.feature-item,
.product-card,
.product-showcase-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.service-box::before,
.feature-item::before,
.product-card::before,
.product-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 91, 215, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-box:hover,
.feature-item:hover,
.product-card:hover,
.product-showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--bg-lighter);
  box-shadow: 0 12px 32px rgba(11, 91, 215, 0.15), 0 4px 16px rgba(11, 91, 215, 0.08);
}

.service-box:hover::before,
.feature-item:hover::before,
.product-card:hover::before,
.product-showcase-card:hover::before {
  opacity: 1;
}

.service-box h3,
.feature-item h4,
.product-card h3,
.product-showcase-card h3 {
  color: var(--accent);
  margin-top: 0;
}

.service-box {
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
  border-image-slice: 1;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(11, 91, 215, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--accent) 0%, var(--success) 100%);
  border-image-slice: 1;
  padding: 28px;
  margin: 28px 0;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(11, 91, 215, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.highlight-box h3 {
  margin-top: 0;
}

/* Lists */
ul, ol {
  color: var(--text-secondary);
  line-height: 1.85;
  padding-left: 24px;
}

ul li, ol li {
  margin: 14px 0;
  padding-left: 8px;
}

ul li::marker {
  color: var(--accent);
  font-size: 1.1em;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

main a:not(.btn-primary):not(.btn-secondary):not(.btn-wa) {
  background-image: linear-gradient(90deg, var(--accent-light), var(--accent-light));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}

main a:not(.btn-primary):not(.btn-secondary):not(.btn-wa):hover {
  background-size: 100% 2px;
}

/* Footer */
footer {
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 249, 251, 0.9) 100%);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  margin-top: 60px;
  box-shadow: 0 -4px 16px var(--shadow-light);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Product Image Container */
.product-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(11, 91, 215, 0.04) 0%, rgba(43, 127, 240, 0.02) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
}

.product-image:hover {
  background: linear-gradient(135deg, rgba(11, 91, 215, 0.06) 0%, rgba(43, 127, 240, 0.04) 100%);
  box-shadow: 0 4px 16px var(--shadow-light);
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.08));
}

.product-image:hover img {
  transform: scale(1.05);
}

/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Tech List */
.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.tech-item {
  background: rgba(11, 91, 215, 0.06);
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 900px) {
  .presentation-inner {
    padding: 32px 16px;
  }

  .presentation-box h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .presentation-content {
    font-size: 0.95rem;
  }

  .hero {
    height: 680px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .main-nav.active {
    max-height: 300px;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    margin: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-copy {
    padding: 36px 20px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .lead {
    font-size: 1rem;
  }

  .services-grid,
  .feature-grid,
  .product-grid,
  .products-showcase {
    grid-template-columns: 1fr;
  }

  main {
    padding: 36px 20px;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px;
  }

  .site-header .right {
    width: 100%;
    justify-content: center;
  }

  .hero {
    height: 720px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-copy {
    padding: 28px 16px;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .tagline {
    font-size: 0.92rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Botão WhatsApp flutuante no mobile */
  body > .btn-wa {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    z-index: 9999 !important;
    display: flex !important;
  }

  .service-box,
  .feature-item,
  .product-card,
  .product-showcase-card {
    padding: 22px;
  }

  main {
    padding: 28px 16px;
  }

  ul, ol {
    padding-left: 20px;
  }

  ul[style*="column-count"] {
    column-count: 1 !important;
  }
}

/* Smooth Animations */
* {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background-color: rgba(11, 91, 215, 0.2);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(11, 91, 215, 0.2);
  color: var(--text-primary);
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-wa:focus {
  outline: 3px solid rgba(11, 91, 215, 0.5);
  outline-offset: 2px;
}

