/* =========================================================================
   PENSE OFFGRID - DESIGN SYSTEM ULTRA-PREMIUM (OBSIDIAN & SOLAR AMBER)
   ========================================================================= */

:root {
  --orange: #FF7A00;
  --orange2: #FFA447;
  --orange-glow: rgba(255, 122, 0, 0.35);
  --orange-subtle: rgba(255, 122, 0, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 122, 0, 0.45);
  --muted: #8E95A5;
  --bg: #050608;
  --panel: #0B0D14;
  --card: rgba(14, 17, 24, 0.78);
  --card-hover: rgba(19, 23, 33, 0.94);
  --shell-pad: clamp(20px, 4vw, 48px);
  --green: #00F078;
  --yellow: #FFB800;
  --red: #FF453A;
  --blue: #00E5FF;
  --purple: #BF5AF2;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

[v-cloak] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #F3F4F7;
  background-color: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(255, 122, 0, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 92% 20%, rgba(0, 229, 255, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

/* Tipografia Universal */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Montserrat', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.font-body {
  font-family: 'Inter', sans-serif !important;
}

.font-mono-tech {
  font-family: var(--font-mono) !important;
}

/* Layout Wrappers Padronizados */
.shell, .wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* Brand e Menu Global */
.brand {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
}
.brand span {
  color: var(--orange);
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #B8BECB;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
}
.nav a:hover {
  border-color: var(--line-hover);
  background: var(--orange-subtle);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Glass Card Ultra-Premium (Acabamento de Instrumento Técnico) */
.glass-card, .glass {
  background: linear-gradient(145deg, rgba(16, 20, 28, 0.72) 0%, rgba(10, 12, 18, 0.9) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover, .glass:hover {
  border-color: var(--line-hover);
  background: linear-gradient(145deg, rgba(22, 27, 38, 0.82) 0%, rgba(12, 15, 22, 0.96) 100%);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.98), 0 0 30px -10px var(--orange-glow);
  transform: translateY(-2px);
}

/* CTAs e Botões (Sobrescreve botões com precisão mecânica) */
.cta, .btn, .btn-comprar, .bg-orange-500, .bg-orange-600, .whatsapp-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none !important;
  text-shadow: none !important;
  text-decoration: none;
}

.cta-primary, .primary, .btn-comprar, .bg-orange-500, .bg-orange-600, .whatsapp-cta-button {
  background: linear-gradient(135deg, #FF7A00 0%, #FF9E3B 100%) !important;
  color: #0E0700 !important;
  box-shadow: 0 12px 28px -6px rgba(255, 122, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.cta-primary:hover, .primary:hover, .btn-comprar:hover, .bg-orange-500:hover, .bg-orange-600:hover, .whatsapp-cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px -4px rgba(255, 122, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.cta-secondary, .ghost {
  border: 1px solid var(--line) !important;
  color: #E2E6EE !important;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px);
}

.cta-secondary:hover, .ghost:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 122, 0, 0.45) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* Badges e Status de Telemetria */
.badge, .info-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 25, 0.6);
  color: #D3D8E2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dot, .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.difficulty-badge, .level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.difficulty-iniciante, .green { background: rgba(0, 240, 120, 0.08); border: 1px solid rgba(0, 240, 120, 0.28); color: #79F5B4; }
.difficulty-intermediario, .yellow { background: rgba(255, 184, 0, 0.08); border: 1px solid rgba(255, 184, 0, 0.28); color: #FFD08A; }
.difficulty-avancado, .red { background: rgba(255, 69, 58, 0.08); border: 1px solid rgba(255, 69, 58, 0.28); color: #FFA39E; }
.difficulty-referencia, .orange { background: rgba(255, 122, 0, 0.12); border: 1px solid rgba(255, 122, 0, 0.4); color: #FFA447; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 5, 0.88);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.modal.active { display: flex; }
.modal-box {
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(20, 24, 34, 0.95), rgba(10, 12, 18, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
}
.close-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  display: grid;
  place-items: center;
}
.close-btn:hover { background: var(--orange-subtle); border-color: var(--orange); color: var(--orange); }

/* Scrollbars */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255, 122, 0, 0.45); }

/* Formulários */
.form-input, .form-select { 
  background-color: rgba(10, 13, 18, 0.7); 
  color: #E2E8F0; 
  border: 1px solid var(--line); 
  border-radius: 12px; 
  padding: 12px 16px; 
  width: 100%; 
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  font-family: 'Inter', sans-serif;
}
.form-input:focus, .form-select:focus { 
  outline: none; 
  border-color: var(--orange); 
  background-color: rgba(14, 18, 25, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.6); 
}
button:disabled { cursor: not-allowed; opacity: 0.5 !important; filter: grayscale(100%); transform: none !important; box-shadow: none !important; }

/* =========================================================================
   SISTEMA DE NAVEGAÇÃO GLOBAL UNIFICADO (PENSE OFFGRID OBSIDIAN & AMBER)
   ========================================================================= */

.tech-header {
  position: sticky;
  top: 0;
  z-index: 8000;
  width: 100%;
  background: rgba(5, 6, 8, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.85);
}

.tech-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}

.tech-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1A1F2C 0%, #0D1016 100%);
  border: 1px solid rgba(255, 122, 0, 0.4);
  display: grid;
  place-items: center;
  color: var(--orange);
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.2);
  flex-shrink: 0;
}

.tech-brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.1;
}
.tech-brand-text span { color: var(--orange); }

.tech-brand-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 240, 120, 0.06);
  border: 1px solid rgba(0, 240, 120, 0.28);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #79F5B4;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseLed 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseLed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.tech-nav-links {
  display: none;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

@media (min-width: 1160px) {
  .tech-nav-links {
    display: flex;
  }
}

.tech-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #B5BAC7;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.tech-link i {
  font-size: 11px;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.tech-link:hover {
  color: #FFFFFF !important;
  border-color: var(--line-hover);
  background: var(--orange-subtle);
  transform: translateY(-1px);
}
.tech-link:hover i {
  transform: scale(1.15);
}

.tech-link.active {
  border-color: rgba(255, 122, 0, 0.75) !important;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(255, 164, 71, 0.06)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px -2px rgba(255, 122, 0, 0.45);
  font-weight: 800;
}
.tech-link.active i {
  color: #FFA447;
}

.vip-link {
  border-color: rgba(255, 184, 0, 0.45) !important;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15), rgba(255, 122, 0, 0.05)) !important;
  color: #FFC078 !important;
}
.vip-link:hover {
  border-color: rgba(255, 184, 0, 0.8) !important;
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.35);
}

.tech-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Quando o botão de conta estiver dentro do header */
.tech-header-actions #pab-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  box-shadow: 0 4px 14px -4px rgba(255, 122, 0, 0.6) !important;
}

.tech-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-mobile-toggle:hover {
  background: var(--orange-subtle);
  border-color: var(--line-hover);
  color: var(--orange);
}

@media (min-width: 1160px) {
  .tech-mobile-toggle {
    display: none;
  }
}

/* ==================== DRAWER MOBILE ==================== */
.tech-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 4, 6, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none !important;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 1159px) {
  .tech-mobile-drawer.open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1160px) {
  .tech-mobile-drawer,
  #mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

.mobile-drawer-inner {
  width: min(380px, 86vw);
  height: 100%;
  background: #080A10;
  border-left: 1px solid var(--line-hover);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9);
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-mobile-drawer.open .mobile-drawer-inner {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all 0.2s ease;
}
.mobile-drawer-close:hover {
  color: #fff;
  background: rgba(255, 122, 0, 0.2);
  border-color: var(--orange);
}

.mobile-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 240, 120, 0.05);
  border: 1px solid rgba(0, 240, 120, 0.2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #79F5B4;
  margin-bottom: 18px;
}

.mobile-nav-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: #E2E8F0;
  transition: all 0.2s ease;
}

.mobile-nav-item i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 122, 0, 0.1);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

.mobile-nav-item div {
  display: flex;
  flex-direction: column;
}

.mobile-nav-item div b {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.mobile-nav-item div span {
  font-size: 10.5px;
  color: var(--muted);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.6);
  transform: translateX(4px);
}
.mobile-nav-item.active div b {
  color: #FFF;
}
.mobile-nav-item.active i {
  background: var(--orange);
  color: #0E0700;
}

.mobile-vip {
  border-color: rgba(255, 184, 0, 0.4) !important;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 122, 0, 0.03)) !important;
}

/* ==================== BOTÃO VOLTAR AO TOPO ==================== */
#pense-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 7500;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 17, 24, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 122, 0, 0.4);
  color: var(--orange);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8), 0 0 15px -3px rgba(255, 122, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#pense-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#pense-back-to-top:hover {
  background: var(--orange);
  color: #0E0700;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -5px rgba(255, 122, 0, 0.6);
}

/* ==================== BREADCRUMBS & QUICK CHIPS ==================== */
.breadcrumb-tech {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.breadcrumb-tech a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.breadcrumb-tech a:hover {
  color: #FFF;
}
.breadcrumb-tech .sep {
  color: rgba(255, 255, 255, 0.2);
}
.breadcrumb-tech .current {
  color: var(--orange);
  font-weight: 700;
}

.quick-jump-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #D1D5DB;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jump-chip:hover {
  border-color: rgba(255, 122, 0, 0.5);
  background: rgba(255, 122, 0, 0.1);
  color: #FFF;
  transform: translateY(-1px);
}

/* Ajustes finos de responsividade mobile para o cabeçalho */
@media (max-width: 640px) {
  .tech-header-inner {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }
  .brand-logo-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .brand-logo-icon svg {
    width: 17px !important;
    height: 17px !important;
  }
  .tech-brand-text {
    font-size: 15px !important;
  }
  .tech-brand-sub {
    display: none !important;
  }
  .tech-header-actions {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .tech-header-actions #pab-btn {
    padding: 7px 11px !important;
    font-size: 10px !important;
    letter-spacing: .02em !important;
  }
  .tech-mobile-toggle {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 640px) {
  .pab-extra {
    display: none !important;
  }
}
