﻿:root {
  --bg-deep: #030704;
  --surface-card: #051408;
  --surface-plate: #081e0d;
  --border-subtle: rgba(42, 245, 102, 0.16);
  --border-gold: rgba(255, 213, 79, 0.35);

  --accent-green: #2af566;
  --accent-green-glow: rgba(42, 245, 102, 0.35);
  --accent-gold: #ffd54f;

  --text-pure: #ffffff;
  --text-high: #e2f5e7;
  --text-muted: #8ba891;
  --text-faint: #526b58;

  --spring-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --spring-glide: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-quick: 200ms;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-high);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Fundo */
.mesh-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb-primary {
  position: absolute;
  top: -12vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 820px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 110, 42, 0.45) 0%, rgba(3, 8, 4, 0) 70%);
  filter: blur(65px);
}

.grid-subtle {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
}

/* Barra de Navegação */
.nav-shell {
  position: sticky;
  top: 10px;
  z-index: 100;
  padding: 0 12px;
  max-width: 980px;
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(4, 14, 6, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.brand-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-symbol {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.5px;
  color: var(--text-pure);
  white-space: nowrap;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  transition: color var(--duration-quick) ease;
}

.nav-link-item:hover {
  color: var(--text-pure);
}

@media (max-width: 600px) {
  .nav-link-item {
    display: none;
  }
}

.btn-micro {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #030d04;
  background: linear-gradient(180deg, #ffd54f 0%, #d4af37 100%);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Estrutura Principal */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* Hero */
.hero-block {
  text-align: center;
  padding: 36px 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pre-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 245, 102, 0.06);
  border: 1px solid rgba(42, 245, 102, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge-accent {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-green);
}

.badge-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text-pure);
  margin-bottom: 16px;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-manifesto {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-trigger-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-spring-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #32fa6f 0%, #15b84a 100%);
  color: #020d04;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 0 #0c6a2a, 0 10px 20px rgba(42, 245, 102, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-spring-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  color: var(--text-high);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--duration-quick) ease;
}

.btn-spring-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   CONSOLA HARDWARE PRO (O NOVO MÓDULO REDESENHADO)
   ========================================================================== */
.console-section {
  padding: 10px 0 50px;
}

.console-frame {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, #07190b 0%, #030c05 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(42, 245, 102, 0.12);
  position: relative;
  overflow: hidden;
}

/* Topo da Consola */
.console-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.telemetry-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 245, 102, 0.08);
  border: 1px solid rgba(42, 245, 102, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--accent-green);
  font-weight: 600;
}

.telemetry-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-op 1.8s infinite;
}

.memory-spec-pill {
  color: var(--accent-gold);
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* Selector por Abas */
.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 20px;
}

.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--duration-quick) ease;
}

.mode-tab.active {
  background: var(--surface-plate);
  color: var(--text-pure);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-gold);
}

/* Palco Holográfico com Placa 3D */
.hologram-stage {
  position: relative;
  height: 200px;
  background: radial-gradient(circle at 50% 50%, rgba(14, 52, 23, 0.6) 0%, rgba(3, 10, 4, 0.8) 80%);
  border: 1px solid rgba(42, 245, 102, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.stage-grid-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(42, 245, 102, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(42, 245, 102, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.optical-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-green) 50%, transparent 100%);
  box-shadow: 0 0 10px var(--accent-green);
  opacity: 0.7;
  animation: scan-pass 3s ease-in-out infinite;
}

/* O Cartão Acrílico 3D */
.acrylic-tag-card {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 130px;
  background: linear-gradient(135deg, rgba(16, 50, 24, 0.85) 0%, rgba(6, 20, 10, 0.95) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(42, 245, 102, 0.25);
  transition: transform var(--duration-quick) var(--spring-bounce);
}

.acrylic-tag-card:hover {
  transform: translateY(-3px) scale(1.02);
}

.tag-chip-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.chip-notch {
  width: 14px;
  height: 10px;
  background: rgba(255, 213, 79, 0.3);
  border: 1px solid var(--accent-gold);
  border-radius: 3px;
}

.tag-brand-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tag-symbol-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
}

.tag-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
}

.tag-card-name {
  color: var(--text-pure);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tag-card-status {
  color: var(--accent-green);
  font-weight: 600;
}

/* Painel de Entrada de Dados */
.console-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.field-label {
  font-weight: 600;
  color: var(--text-high);
}

.link-utility {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--duration-quick) ease;
}

.link-utility:hover {
  opacity: 0.85;
}

.input-shell-pro {
  display: flex;
  align-items: center;
  background: #020703;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color var(--duration-quick) ease, box-shadow var(--duration-quick) ease;
}

.input-shell-pro:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(42, 245, 102, 0.15);
}

.input-addon-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-faint);
  user-select: none;
}

.input-addon-secure svg {
  color: var(--accent-green);
}

.input-shell-pro input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 10px;
  color: var(--text-pure);
  font-size: 0.95rem;
  font-family: inherit;
}

/* Botão Executar Principal */
.btn-execute-primary {
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #2df369 0%, #11a340 100%);
  color: #020c04;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 4px 0 #095221, 0 10px 24px rgba(42, 245, 102, 0.25);
  transform: translateY(0);
  transition: transform var(--duration-quick) var(--spring-bounce),
              box-shadow var(--duration-quick) ease;
  overflow: hidden;
}

.btn-execute-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #095221, 0 14px 28px rgba(42, 245, 102, 0.35);
}

.btn-execute-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #095221;
}

.btn-content-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.runtime-status-bar {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Conteúdo & Cards */
.content-section {
  padding: 60px 0 20px;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.sub-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.sub-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
}

.spec-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.spec-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-quick) ease, border-color var(--duration-quick) ease;
}

.spec-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 79, 0.35);
}

.spec-badge {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.spec-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.spec-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Modal iOS */
.drawer-underlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-quick) ease;
}

.drawer-underlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface-card);
  border-top: 1px solid var(--accent-gold);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 400ms var(--spring-glide);
}

.drawer-underlay.active .drawer-panel {
  transform: translateY(0);
}

.drawer-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 16px;
}

.drawer-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.drawer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-flat {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.footer-block {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 16px;
  margin-top: 40px;
}

.footer-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

.system-pills {
  font-family: 'JetBrains Mono', monospace;
}

/* Animações */
@keyframes pulse-op {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes scan-pass {
  0% { top: 0; opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* ==========================================================================
   SMART INSTALL BANNER (POPUP INTELIGENTE DE INSTALAÇÃO)
   ========================================================================== */
.install-banner-wrap {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 300;
  animation: slide-up-spring 0.5s var(--spring-bounce);
}

.install-card {
  position: relative;
  background: rgba(6, 20, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--accent-gold);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(42, 245, 102, 0.2);
}

.btn-close-banner {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.install-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.install-app-icon {
  width: 42px;
  height: 42px;
  background: #020a04;
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  padding: 6px;
  flex-shrink: 0;
}

.install-app-icon svg {
  width: 100%;
  height: 100%;
}

.install-meta h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: var(--text-pure);
  margin-bottom: 2px;
}

.install-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-install-action {
  width: 100%;
  background: linear-gradient(180deg, #2df369 0%, #11a340 100%);
  color: #020c04;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 3px 0 #095221;
}

.btn-install-action:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #095221;
}

.ios-steps-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-high);
}

.ios-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ios-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #020c04;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes slide-up-spring {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
