/* ==========================================================================
   DESIGN SYSTEM & VARIABLES — IRMÃOS DO PIXEL
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #060608;
  --bg-card: #0f0f13;
  --bg-card-hover: #15151b;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #62626e;
  
  /* Brand Assinatura */
  --blue-pixel: #2856c9;
  --blue-pixel-glow: rgba(40, 86, 201, 0.45);
  --blue-pixel-dark: #1a3d99;
  --red-pixel: #8c0d0d;
  --red-pixel-glow: rgba(140, 13, 13, 0.45);
  --red-pixel-dark: #5c0808;

  /* Borders & Grid */
  --border-fine: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.18);
  
  /* Typography */
  --font-heading: 'Arimo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   UTILITIES & DECORATIONS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

/* Textures */
.pixel-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

.radial-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-pixel-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.15;
  filter: blur(40px);
  z-index: 1;
}

.radial-glow-red {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-pixel-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.12;
  filter: blur(40px);
  z-index: 1;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.title-large {
  font-size: clamp(2.25rem, 6vw, 4rem);
  text-transform: uppercase;
  color: var(--text-primary);
}

.title-section {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
}

.title-section span {
  color: var(--blue-pixel);
}

.title-card {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.text-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.text-sm {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Highlight styles */
.highlight-blue {
  color: var(--blue-pixel);
}

.highlight-red {
  color: var(--red-pixel);
  text-shadow: 0 0 10px rgba(140, 13, 13, 0.3);
}

/* ==========================================================================
   BUTTONS (Retos, Caixa Alta, Performance Style)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 18px 36px;
  border-radius: 0; /* Retangular rígido */
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red-pixel);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(140, 13, 13, 0.3);
}

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

.btn-primary:hover {
  background: var(--red-pixel-dark);
  box-shadow: 0 0 25px var(--red-pixel-glow);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--blue-pixel);
  box-shadow: 0 0 15px rgba(40, 86, 201, 0.15);
}

.btn-secondary:hover {
  background: var(--blue-pixel);
  box-shadow: 0 0 20px var(--blue-pixel-glow);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-fine);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background: rgba(6, 6, 8, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.logo span {
  color: var(--red-pixel);
  font-weight: 700;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-pixel);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  top: 6px;
  right: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 991px) {
  .nav-menu {
    display: none; /* Mobile menu handles this */
  }
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue-pixel);
  margin-bottom: 24px;
  border-left: 2px solid var(--red-pixel);
  padding-left: 10px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-desc {
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Widget / Dashboard SVG */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 460px;
  position: relative;
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-fine);
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #4caf50;
}

.dash-status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  animation: dashPulse 2s infinite;
}

@keyframes dashPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-fine);
}

.stat-item {
  background: var(--bg-card);
  padding: 20px;
  text-align: center;
}

.stat-val {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.stat-val.blue {
  color: var(--blue-pixel);
}

.stat-val.red {
  color: #ff5252;
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 4px;
}

.dashboard-graph {
  padding: 20px;
  position: relative;
  background: var(--bg-card);
  height: 220px;
}

@media (max-width: 991px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
}

/* ==========================================================================
   PAIN SECTION (Seção de Dor)
   ========================================================================== */

.pain-section {
  background: #08080b;
  position: relative;
  z-index: 2;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  padding: 40px 32px;
  transition: var(--transition-smooth);
  position: relative;
}

.pain-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-pixel);
  transition: var(--transition-smooth);
}

.pain-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.pain-card:hover::after {
  width: 100%;
}

.pain-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(140, 13, 13, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--red-pixel);
  border: 1px solid rgba(140, 13, 13, 0.2);
}

.pain-card:hover .pain-icon-wrapper {
  background: var(--red-pixel);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--red-pixel-glow);
}

.pain-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   METHOD SECTION (Seção de Método)
   ========================================================================== */

.method-section {
  position: relative;
  z-index: 2;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition-smooth);
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--blue-pixel);
  opacity: 0.3;
  transition: var(--transition-smooth);
}

.method-card:hover::before {
  opacity: 1;
  background: var(--blue-pixel);
  box-shadow: 0 0 10px var(--blue-pixel-glow);
}

.method-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.method-step {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-pixel);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.method-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AUTHORITY SECTION (Seção de Autoridade)
   ========================================================================== */

.authority-section {
  background: #050507;
  position: relative;
  z-index: 2;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.spec-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent var(--blue-pixel) transparent transparent;
  transition: var(--transition-smooth);
}

.spec-card:hover::after {
  border-width: 0 16px 16px 0;
}

.spec-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: scale(1.02);
}

.spec-num {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.spec-num.highlight {
  color: var(--blue-pixel);
  text-shadow: 0 0 15px rgba(40, 86, 201, 0.2);
}

.spec-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 991px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-align: center;
}

.final-cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-title {
  margin-bottom: 24px;
}

.final-cta-desc {
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #040405;
  border-top: 1px solid var(--border-fine);
  padding: 48px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--red-pixel);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   ANIMATIONS & SCROLL EFFECT
   ========================================================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Mobile Nav Styles */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}
