:root {
  --bg-deep: #050505;
  --bg-surface: #0a0a0b;
  --accent-green: #00ff88;
  --accent-blue: #0066ff;
  --accent-glow-green: rgba(0, 255, 136, 0.5);
  --accent-glow-blue: rgba(0, 102, 255, 0.5);
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border-glow: rgba(255, 255, 255, 0.1);
  --radius-lg: 1rem;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND ANIMATIONS */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #0a0a0b 0%, #050505 100%);
  overflow: hidden;
}

.bg-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.bg-moving-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
  animation: moveGradient 20s infinite linear;
}

@keyframes moveGradient {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-10%, -10%); }
  100% { transform: translate(0, 0); }
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

/* STICKY HEADER */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
}

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-somar {
  height: 85px; /* Increased from 60px */
  width: auto;
  transition: transform 0.3s ease;
}

.logo-somar:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--accent-green);
}

.nav-socials {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-glow);
}

.nav-socials svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: var(--transition);
}

.nav-socials a:hover svg {
  fill: var(--accent-green);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
  padding: 8rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(to bottom right, #fff 50%, #666);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero-subtitle-container {
  height: 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--accent-green);
  font-weight: 500;
  display: block;
  opacity: 1;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* BUTTONS */
.btn {
  padding: 1rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow-green);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 25px var(--accent-glow-green);
}

.btn-outline {
  border: 1px solid var(--accent-blue);
  color: #fff;
  background: rgba(0, 102, 255, 0.05);
}

.btn-outline:hover {
  background: rgba(0, 102, 255, 0.15);
  box-shadow: 0 0 15px var(--accent-glow-blue);
  transform: translateY(-3px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--accent-blue);
  transform: translateX(5px);
}

/* IMPACT NUMBERS */
.numbers-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.number-item h3 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.number-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SOLUTIONS GRID */
.solutions-section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-green);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.card.featured {
  grid-column: 2;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(100, 0, 255, 0.1) 100%);
  border-color: var(--accent-blue);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
  animation: pulseFeatured 4s infinite alternate;
}

@keyframes pulseFeatured {
  0% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.1); }
  100% { box-shadow: 0 0 40px rgba(0, 102, 255, 0.3); border-color: #0088ff; }
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.4s ease;
}

.card:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.card h4 {
  font-size: 1.3rem;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
}

.card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-green);
}

/* PLANOS */
.planos-section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.plano-card {
  padding: 3rem 2rem;
}

.plano-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 1.5rem 0;
}

.plano-card .price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* FAQ ACCORDION */
.faq-section {
  padding: 6rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-glow);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  animation: pulseWhatsapp 2s infinite;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

@keyframes pulseWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* FOOTER */
footer {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border-glow);
  background: var(--bg-surface);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-logo {
  height: 80px; /* Increased from 60px */
  margin-bottom: 1.5rem;
}

.footer-links h5 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glow);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* BURGER MENU */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card.featured {
    grid-column: 1 / span 2;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex !important;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #050505;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    margin: 0;
    padding: 0;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-socials {
    display: none !important;
  }

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

  .card.featured {
    grid-column: 1;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding-top: 6rem;
  }

  /* BURGER ANIMATION */
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* SCROLL REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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