/* ---------- RESET & GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #8b0000;
  --primary-dark: #6b0000;
  --primary-light: #a52a2a;
  --primary-soft: rgba(139, 0, 0, 0.1);
  --secondary: #1a1a2e;
  --dark: #0a0a0a;
  --gray-dark: #1e1e1e;
  --gray: #666;
  --gray-light: #e0e0e0;
  --white: #ffffff;
  --white-soft: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --text-light: #999;
  --success: #28a745;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 1001;
  transition: width 0.05s linear;
}

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

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.highlight {
  color: var(--primary);
}

/* ---------- SECTION TITLES ---------- */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--gray-light);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

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

/* ---------- NAVIGATION - RESPONSIVA MELHORADA ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--primary);
  font-weight: 800;
}

.logo-badge {
  font-size: 0.55rem;
  background: rgba(139, 0, 0, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  color: var(--primary);
  font-family: "Inter", sans-serif;
}

/* Nav Links - Tamanho maior */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

.menu-mobile {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
}

.menu-mobile:hover {
  color: var(--primary);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(139, 0, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  z-index: 2;
}

.hero-badge {
  background: var(--primary-soft);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.hero h1 {
  margin-bottom: 0;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

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

.hero-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.hero-image {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.code-animation {
  display: flex;
  gap: 1rem;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

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

/* ---------- SOLUTIONS ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.solution-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}

.solution-card.premium {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #fff, #fffaf5);
}

.solution-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 0.2rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.solution-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.solution-card h3 {
  margin-bottom: 0.75rem;
}

.solution-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.solution-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.solution-features span {
  font-size: 0.75rem;
  background: var(--primary-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.solution-features i {
  font-size: 0.7rem;
  color: var(--primary);
}

.solution-price {
  text-align: center;
  padding: 1rem;
  background: var(--white-soft);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.price-from {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.price-installment {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.btn-solution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-solution:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- DIFFERENTIATORS ---------- */
.differentiators {
  background: var(--white-soft);
}

.diffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.diff-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.diff-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: var(--primary);
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-footer {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.portfolio-item {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.portfolio-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.portfolio-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-soft), #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-tag {
  font-size: 0.7rem;
  background: var(--primary-soft);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.portfolio-result {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- CONTACT ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  background: linear-gradient(135deg, #fff, var(--white-soft));
  border: 1px solid var(--gray-light);
  border-radius: 24px;
}

.contact-badge {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.2rem 1rem;
  border-radius: 50px;
  display: inline-block;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-item .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.contact-item .value {
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  padding: 3rem 0 1.5rem;
  color: var(--text-muted);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Orbitron", monospace;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

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

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

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

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--primary);
  width: 20px;
}

.footer-response {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.5rem;
  background: var(--primary-soft);
  border-radius: 50px;
  font-size: 0.8rem;
}

.footer-response i {
  color: var(--primary);
}

.footer-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
  font-size: 0.75rem;
}

/* ---------- MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  max-width: 400px;
  width: 90%;
  padding: 2rem;
  text-align: center;
  border-radius: 24px;
  animation: slideUp 0.3s ease;
}

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

.modal-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.close-modal {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- SCROLL REVEAL ---------- */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.5s ease;
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.glass-card {
  transition: var(--transition);
}

::selection {
  background: var(--primary);
  color: var(--white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}

@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.active { left: 0; }
  .nav-links a { font-size: 1.4rem; font-weight: 700; }
  .menu-mobile { display: block; }
  .container { padding: 0 1.5rem; }
  .logo-badge { display: none; }
  .logo-text { font-size: 0.85rem; }
  .solutions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { justify-content: center; }
  .nav-links a { font-size: 1.3rem; }
}