/* ============================================================
   APARECIDINHO.COM — Portfolio Full Stack Developer
   Design: Dark Futuristic / PCB Circuit Board Theme
   Paleta: #050b14 bg | #00d4ff blue | #a855f7 purple | #00ff88 green
   Fonts: Inter (corpo) + JetBrains Mono (codigo)
============================================================ */

/* === RESET & VARIAVEIS ================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #050b14;
  --bg-card:   #0a1628;
  --bg-alt:    #07101f;
  --blue:      #00d4ff;
  --purple:    #a855f7;
  --green:     #00ff88;
  --cyan:      #06eefa;
  --pink:      #f472b6;
  --text:      #e2e8f0;
  --text-muted:#64748b;
  --border:    rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --glow-blue:   0 0 20px rgba(0,212,255,0.3);
  --glow-purple: 0 0 20px rgba(168,85,247,0.3);
  --glow-green:  0 0 20px rgba(0,255,136,0.3);

  --radius:    12px;
  --radius-lg: 18px;
  --transition: 0.3s ease;
  --container: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

/* === CANVAS BACKGROUND ================================== */
#circuit-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

/* === UTILITARIOS ======================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.text-glow-blue   { color: var(--blue);   text-shadow: 0 0 30px rgba(0,212,255,0.5); }
.text-glow-green  { color: var(--green);  text-shadow: 0 0 30px rgba(0,255,136,0.5); }
.text-glow-purple { color: var(--purple); text-shadow: 0 0 30px rgba(168,85,247,0.5); }
.text-center { text-align: center; }

/* === TIPOGRAFIA ========================================= */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
p { line-height: 1.7; color: var(--text-muted); }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* === BOTOES ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0,212,255,0.05);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.btn-icon { font-size: 12px; }

/* === NAV ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.logo:hover { color: var(--blue); }
.logo-bracket { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile a:last-child { border-bottom: none; }

/* === SECTIONS =========================================== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: transparent;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === HERO =============================================== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-desc {
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
.metric { text-align: center; }
.metric-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  display: block;
  font-family: 'JetBrains Mono', monospace;
}
.metric-unit { font-size: 20px; color: var(--blue); }
.metric-label { font-size: 12px; color: var(--text-muted); display: block; }
.metric-sep {
  width: 1px;
  height: 40px;
  background: var(--border-hover);
}

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

/* Terminal */
.terminal {
  background: rgba(10,22,40,0.95);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,255,0.06);
  position: relative;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }
.t-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
}
.t-line { display: block; }
.t-prompt { color: var(--green); margin-right: 8px; }
.t-cmd    { color: var(--blue); }
.t-out    { color: var(--text-muted); padding-left: 0; }
.t-key    { color: var(--purple); }
.t-val    { color: var(--green); }
.t-success{ color: var(--green); }
.cursor-blink {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--blue);
}
@keyframes blink { 50% { opacity: 0; } }

/* Float badges */
.hero-visual { position: relative; }
.hero-float-badge {
  position: absolute;
  background: rgba(10,22,40,0.9);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.float-1 { top: -12px; right: 20px; color: var(--blue); border-color: rgba(0,212,255,0.2); animation-delay: 0s; }
.float-2 { bottom: 40px; right: -10px; color: var(--purple); border-color: rgba(168,85,247,0.2); animation-delay: 1s; }
.float-3 { bottom: -10px; left: 20px; color: var(--green); border-color: rgba(0,255,136,0.2); animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scroll-anim 1.5s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* === SOBRE ============================================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.avatar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
}
.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 3s ease-in-out infinite;
}
.ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.ring-2 { width: 160px; height: 160px; animation-delay: 0.5s; border-color: rgba(168,85,247,0.06); }
.ring-3 { width: 200px; height: 200px; animation-delay: 1s; border-color: rgba(0,255,136,0.04); }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

.avatar-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(0,212,255,0.08);
  border: 2px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.avatar-placeholder svg path, .avatar-placeholder svg circle { stroke: var(--blue); }

.avatar-info {
  position: relative; z-index: 1;
  strong { display: block; font-size: 18px; color: var(--text); }
  span   { font-size: 13px; color: var(--text-muted); }
}

.avatar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--green);
  position: relative; z-index: 1;
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-badge 2s infinite;
}

.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.stack-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 1px;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s, transform 0.4s, box-shadow 0.4s;
}
/* Borda energetica giratoria */
.stack-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
  animation: spec-spin 3s linear infinite paused;
  pointer-events: none;
}
.stack-blue::before   { background: conic-gradient(from 0deg, transparent 0%, var(--blue)   20%, transparent 40%); }
.stack-purple::before { background: conic-gradient(from 0deg, transparent 0%, var(--purple) 20%, transparent 40%); }
.stack-cyan::before   { background: conic-gradient(from 0deg, transparent 0%, var(--cyan)   20%, transparent 40%); }

.stack-card:hover {
  background: transparent;
  transform: translateY(-3px);
}
.stack-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}
.stack-blue:hover   { box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,255,0.12); }
.stack-purple:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(168,85,247,0.12); }
.stack-cyan:hover   { box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(6,238,250,0.12); }

/* Conteudo interno */
.stack-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: calc(var(--radius) - 1px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}
.sc-icon { font-size: 20px; }
.stack-card strong { display: block; font-size: 13px; color: var(--text); }
.stack-card small  { font-size: 11px; color: var(--text-muted); }

.sobre-desc { margin-bottom: 16px; font-size: 15px; }

.diferenciais {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.diferencial {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dif-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.diferencial strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.diferencial span   { font-size: 12px; color: var(--text-muted); }

/* === SERVICOS =========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1px;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s, transform 0.4s, box-shadow 0.4s;
}
/* Borda energetica giratoria */
.service-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
  animation: spec-spin 3s linear infinite paused;
  pointer-events: none;
}
.service-blue::before   { background: conic-gradient(from 0deg, transparent 0%, var(--blue)   20%, transparent 40%); }
.service-purple::before { background: conic-gradient(from 0deg, transparent 0%, var(--purple) 20%, transparent 40%); }
.service-green::before  { background: conic-gradient(from 0deg, transparent 0%, var(--green)  20%, transparent 40%); }
.service-cyan::before   { background: conic-gradient(from 0deg, transparent 0%, var(--cyan)   20%, transparent 40%); }

.service-card:hover {
  background: transparent;
  transform: translateY(-6px);
}
.service-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}
.service-blue:hover   { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.15); }
.service-purple:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(168,85,247,0.15); }
.service-green:hover  { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,255,136,0.15); }
.service-cyan:hover   { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(6,238,250,0.15); }

/* Conteudo interno (cobre a borda animada) */
.service-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 32px 28px 24px;
  height: 100%;
}

.service-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  transition: opacity var(--transition);
}
.glow-purple { background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%); }
.glow-green  { background: radial-gradient(circle, rgba(0,255,136,0.12) 0%, transparent 70%); }
.glow-cyan   { background: radial-gradient(circle, rgba(6,238,250,0.12) 0%, transparent 70%); }

.service-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-icon-wrap { margin-bottom: 16px; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.icon-purple { background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.15); color: var(--purple); }
.icon-green  { background: rgba(0,255,136,0.1);  border-color: rgba(0,255,136,0.15);  color: var(--green); }
.icon-cyan   { background: rgba(6,238,250,0.1);  border-color: rgba(6,238,250,0.15);  color: var(--cyan); }

.service-card h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  margin-bottom: 24px;
}
.service-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 10px;
}

.service-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
.service-link:hover { color: #fff; }
.link-purple { color: var(--purple); }
.link-purple:hover { color: #fff; }
.link-green  { color: var(--green); }
.link-green:hover  { color: #fff; }
.link-cyan   { color: var(--cyan); }
.link-cyan:hover   { color: #fff; }

/* === ESPECIALIDADES ===================================== */
.spec-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Cartao base */
.spec-card {
  flex: 0 0 calc(33.333% - 14px);
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1px;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s, transform 0.4s, box-shadow 0.4s;
}
/* Borda energetica giratoria */
.spec-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
  animation: spec-spin 3s linear infinite paused;
  pointer-events: none;
}
@keyframes spec-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.spec-blue::before   { background: conic-gradient(from 0deg, transparent 0%, var(--blue)   20%, transparent 40%); }
.spec-purple::before { background: conic-gradient(from 0deg, transparent 0%, var(--purple) 20%, transparent 40%); }
.spec-cyan::before   { background: conic-gradient(from 0deg, transparent 0%, var(--cyan)   20%, transparent 40%); }
.spec-green::before  { background: conic-gradient(from 0deg, transparent 0%, var(--green)  20%, transparent 40%); }

.spec-card:hover {
  background: transparent;
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.spec-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}
.spec-blue:hover   { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,255,0.15); }
.spec-purple:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(168,85,247,0.15); }
.spec-cyan:hover   { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(6,238,250,0.15); }
.spec-green:hover  { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,255,136,0.15); }

/* Conteudo interno (cobre a borda animada) */
.spec-inner {
  position: relative;
  z-index: 1;
  background: rgba(8, 15, 28, 0.97);
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 28px 24px 24px;
  height: 100%;
}

.spec-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.spec-icon-blue   { background: rgba(0,212,255,0.1); color: var(--blue); }
.spec-icon-purple { background: rgba(168,85,247,0.1); color: var(--purple); }
.spec-icon-cyan   { background: rgba(6,238,250,0.1); color: var(--cyan); }
.spec-icon-green  { background: rgba(0,255,136,0.1); color: var(--green); }

.spec-title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
}
.spec-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spec-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* === BRIEFING FORM ===================================== */
.briefing-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

/* Header com progresso */
.bp-header {
  margin-bottom: 28px;
}

.bp-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 16px;
}
.bp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 100px;
  transition: width 0.5s ease;
  width: 0%;
}

.bp-steps {
  display: flex;
  justify-content: space-between;
}
.bp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex: 1;
}
.bp-step span {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}
.bp-step small {
  font-size: 10px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.bp-step.active span {
  background: rgba(0,212,255,0.15);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.bp-step.active small { color: var(--blue); }
.bp-step.done span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--bg);
}
.bp-step.done small { color: var(--text-muted); }

/* Secoes do form */
.bp-section { display: none; }
.bp-section.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bp-section-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.bp-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--blue);
}

/* Grid de 2 colunas */
.bp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Campo individual */
.bp-field {
  margin-bottom: 20px;
  position: relative;
}

.bp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.bp-req { color: var(--blue); }
.field-hint { font-weight: 400; color: var(--text-muted); font-size: 11px; margin-left: 4px; }

.bp-field input[type="text"],
.bp-field input[type="email"],
.bp-field input[type="tel"],
.bp-field input[type="url"],
.bp-field textarea,
.bp-field select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.bp-field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.bp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.bp-field select option { background: #0a1628; color: var(--text); }

.bp-field input:hover,
.bp-field textarea:hover,
.bp-field select:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}
.bp-field input:focus,
.bp-field textarea:focus,
.bp-field select:focus {
  border-color: var(--blue);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

/* Estado inválido */
.bp-field.invalid input,
.bp-field.invalid textarea,
.bp-field.invalid select {
  border-color: #ef4444;
  background: rgba(239,68,68,0.05);
}
.bp-field.invalid .bp-card {
  border-color: rgba(239,68,68,0.3) !important;
}

/* Mensagem de erro por campo */
.bp-field-error {
  display: none;
  font-size: 11px;
  color: #ef4444;
  margin-top: 5px;
  font-weight: 500;
}
.bp-field.invalid .bp-field-error { display: block; }

/* Radio cards */
.bp-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.bp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.bp-card:hover {
  border-color: rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.04);
}
.bp-card input[type="radio"] { display: none; }
.bp-card input[type="radio"]:checked ~ .bpc-icon,
.bp-card input[type="radio"]:checked ~ .bpc-text { color: var(--blue); }
.bp-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 12px rgba(0,212,255,0.1);
}
.bpc-icon { font-size: 22px; }
.bpc-text { font-size: 12px; font-weight: 600; color: var(--text-muted); transition: color var(--transition); }

/* Checkboxes */
.bp-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bp-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.bp-check:hover { border-color: rgba(0,212,255,0.2); color: var(--text); }
.bp-check input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--blue); cursor: pointer; }
.bp-check:has(input:checked) {
  background: rgba(0,212,255,0.08);
  border-color: var(--blue);
  color: var(--blue);
}

/* Char counter */
.char-counter {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
  transition: color var(--transition);
}
.char-counter.warning { color: #ef4444; }
.char-counter.ok      { color: var(--green); }

/* Drop zone */
.drop-zone {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: rgba(255,255,255,0.02);
}
.drop-zone:hover,
.drop-zone.dz-over {
  border-color: var(--blue);
  background: rgba(0,212,255,0.04);
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
  display: none; /* controlado via JS click */
}
.dz-icon { font-size: 28px; margin-bottom: 8px; }
.dz-text { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.dz-link { color: var(--blue); font-weight: 600; cursor: pointer; }
.dz-hint { font-size: 11px; color: var(--text-muted); opacity: 0.7; }

.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.file-item small { color: var(--text-muted); opacity: 0.6; }
.file-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition);
}
.file-remove:hover { background: rgba(239,68,68,0.1); }

/* Navegacao */
.bp-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bp-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #ef4444;
  margin-top: 16px;
}

/* Tela de sucesso */
.bp-success-screen {
  text-align: center;
  padding: 64px 24px;
  animation: fadeUp 0.6s ease;
}
.bp-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0,255,136,0.1);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--green);
  margin: 0 auto 24px;
  box-shadow: 0 0 30px rgba(0,255,136,0.2);
}
.bp-success-screen h3 { font-size: 24px; color: var(--text); margin-bottom: 12px; }
.bp-success-screen p  { color: var(--text-muted); max-width: 440px; margin: 0 auto; }
.bp-success-screen strong { color: var(--green); }

/* WhatsApp alt */
.bp-whatsapp-alt {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.bp-whatsapp-alt p { font-size: 13px; margin-bottom: 12px; }

/* === FOOTER ============================================= */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo { display: inline-block; margin-bottom: 10px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--blue); color: var(--blue); background: rgba(0,212,255,0.06); }

.footer-nav h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }

.footer-contact h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition);
  word-break: break-all;
}
.footer-contact-link:hover { color: var(--blue); }
.footer-contact-link svg { flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--blue); text-decoration: none; }

/* Botao topo */
.back-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10,22,40,0.9);
  border: 1px solid var(--border-hover);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.back-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-top:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--glow-blue);
}

/* === RESPONSIVO ========================================= */
@media (max-width: 1024px) {
  .spec-card { flex: 0 0 calc(50% - 10px); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 80px 0 60px; min-height: auto; overflow: hidden; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }

  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .spec-card { flex: 0 0 100%; }

  .bp-grid-2 { grid-template-columns: 1fr; }
  .bp-card-group { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .back-top { bottom: 20px; right: 20px; }
  .diferenciais { grid-template-columns: 1fr; }
}

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

  .hero-metrics { gap: 16px; }
  .metric-num { font-size: 26px; }

  .stack-card {
    padding: 14px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .stack-card strong { font-size: 14px; }
  .stack-card small { font-size: 11px; line-height: 1.4; }
  .sc-icon { align-self: flex-start; }

  .bp-check-group { flex-direction: column; }
  .bp-card-group { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}
