@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&family=Oxanium:wght@600;700;800;900&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --bg-dark: #07090e;
  --bg-card: rgba(17, 22, 34, 0.65);
  --bg-card-hover: rgba(22, 28, 45, 0.85);
  --bg-nav: rgba(7, 9, 14, 0.8);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(59, 130, 246, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-blue: #3b82f6;
  --color-purple: #8b5cf6;
  --color-emerald: #10b981;
  --color-rose: #f43f5e;
  
  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  --gradient-card-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  
  --font-sans: 'Outfit', 'Inter', -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px 0 rgba(59, 130, 246, 0.2);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

li {
  list-style: none;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* --- HEADER / NAVBAR --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Oxanium', 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo .text-gradient {
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-brand);
  background-size: 200% auto;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.4);
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px -10px rgba(59, 130, 246, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 20px;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 10rem 0 6rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.hero-content {
  position: relative;
  z-index: 10;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #60a5fa;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-stack-bg {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  width: 95%;
  max-width: 460px;
  opacity: 0.09;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.logo-stack-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-screen-mockup {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 420px;
  transform: rotate3d(1, -1, 0, 10deg) scale(0.95);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0% { transform: rotate3d(1, -1, 0, 10deg) scale(0.95) translateY(0px); }
  50% { transform: rotate3d(1, -1, 0, 10deg) scale(0.95) translateY(-15px); }
  100% { transform: rotate3d(1, -1, 0, 10deg) scale(0.95) translateY(0px); }
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

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

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.dots span:first-child { background: var(--color-rose); }
.dots span:nth-child(2) { background: #eab308; }
.dots span:last-child { background: var(--color-emerald); }

.mockup-body {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #38bdf8;
}

.mockup-line {
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

/* --- SECTIONS COMMON --- */
section {
  position: relative;
  padding: 6rem 0;
  z-index: 10;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--gradient-card-glow);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 40px -15px rgba(59, 130, 246, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #60a5fa;
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.25);
}

.portfolio-img {
  position: relative;
  height: 13rem;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.portfolio-img svg {
  width: 4rem;
  height: 4rem;
  color: rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-img svg {
  transform: scale(1.1);
  color: rgba(59, 130, 246, 0.4);
}

.portfolio-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-item-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  top: -75px;
  right: -75px;
}

.portfolio-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.portfolio-item:hover .portfolio-content h3 {
  color: var(--color-blue);
}

.portfolio-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
}

.portfolio-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tech-list span {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* --- DIFFERENTIALS SECTION --- */
.diff-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.diff-content h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diff-item {
  display: flex;
  gap: 1.25rem;
}

.diff-check {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-emerald);
  flex-shrink: 0;
}

.diff-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.diff-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.diff-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.diff-visual-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 320px;
  position: relative;
  z-index: 10;
}

.diff-num {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.diff-visual-badge h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.diff-visual-badge p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- FAQ SECTION --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(17, 22, 34, 0.85);
}

.faq-item.active .faq-question {
  color: var(--color-blue);
}

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

.faq-item.active .faq-answer {
  max-height: 200px; /* valor suficientemente grande para acomodar o texto */
  padding: 1.5rem;
  border-top-color: rgba(255, 255, 255, 0.05);
}

/* --- CTA SECTION --- */
.cta {
  padding: 8rem 0;
}

.cta-box {
  position: relative;
  background: radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 50%, rgba(17, 22, 34, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-box h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* --- FOOTER --- */
footer {
  background-color: #040508;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .logo {
  color: var(--text-primary);
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.25rem; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-container { gap: 2rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; z-index: 1100; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links.active ~ .menu-toggle span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-links.active ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-links.active ~ .menu-toggle span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero { padding: 8rem 0 4rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero-visual { order: -1; }
  
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  
  .diff-container { grid-template-columns: 1fr; gap: 3rem; }
  .diff-visual { order: -1; }
  
  .cta-box { padding: 4rem 1.5rem; }
  .cta-box h2 { font-size: 2.25rem; }
  
  .footer-grid { flex-direction: column; gap: 2rem; text-align: center; }
  .footer-links { flex-direction: column; gap: 1rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
