/* ============================================================
   SCRIPTOR TECH — style.css
   Paleta: Preto profundo + Roxo gradiente
   Fontes: Orbitron | Rajdhani | Share Tech Mono
   ============================================================ */

/* ── VARIÁVEIS ─────────────────────────────────────────────── */
:root {
  --black: #0a0a0c;
  --dark: #0f0f14;
  --panel: #13131a;
  --purple-deep: #3d1f7a;
  --purple-mid: #5c2db5;
  --purple-main: #7b3fe4;
  --purple-bright: #9b5ff0;
  --purple-glow: #b87fff;
  --white: #f0f0f8;
  --white-dim: #a0a0c0;
  --accent: #c97fff;
  --line: rgba(123,63,228,0.25);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 2px; }

/* ── CURSOR ─────────────────────────────────────────────────── */
#cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--purple-bright); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--purple-glow); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}
nav.scrolled { padding: 14px 60px; }

.nav-logo {
  font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.2rem;
  letter-spacing: 0.15em; color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--purple-bright); }
/* Logo como botão — remove estilo nativo */
button.nav-logo {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}


.logo-icon {
  width: 36px; height: 36px;
  border: 2px solid var(--purple-bright);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s;
  flex-shrink: 0;
  font-size: 0;
  color: transparent;
}
.logo-icon::after {
  content: '<S>';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: var(--purple-bright);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.nav-logo:hover .logo-icon { transform: rotate(180deg); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white-dim); text-decoration: none;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--purple-bright);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: 'Orbitron', monospace; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--black); background: var(--purple-bright);
  padding: 10px 22px; text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: var(--purple-glow); transform: scale(1.04); }

/* ── MOBILE NAV ─────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--white); padding: 8px 12px; cursor: pointer;
  font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
}
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(10,10,12,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 700;
  color: var(--white); text-decoration: none; letter-spacing: 0.1em;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--purple-bright); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: 1px solid var(--line); color: var(--white);
  padding: 10px 14px; cursor: pointer; font-family: 'Share Tech Mono', monospace;
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(91,45,181,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(123,63,228,0.1) 0%, transparent 50%);
}

/* Grid animado de fundo */
.grid-lines {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.grid-lines::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,63,228,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,63,228,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

#code-canvas {
  position: absolute; inset: 0;
  opacity: 0.12; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1000px; padding: 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Share Tech Mono', monospace; font-size: 0.75rem;
  color: var(--purple-bright); letter-spacing: 0.2em;
  border: 1px solid var(--line); padding: 8px 20px;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease both;
}
.hero-tag::before { content: '<'; }
.hero-tag::after  { content: '/>'; }

.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-bright);
  animation: pulse 2s ease infinite;
}

h1 {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 12px;
  animation: fadeInUp 0.9s 0.2s ease both;
}
h1 .line1 { display: block; color: var(--white); }
h1 .line2 {
  display: block;
  background: linear-gradient(90deg, var(--purple-mid), var(--purple-bright), var(--purple-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem; font-weight: 400; color: var(--white-dim);
  max-width: 600px; margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.9s 0.35s ease both;
}
.hero-sub strong { color: var(--purple-glow); font-weight: 600; }

.hero-btns {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.5s ease both;
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--white-dim); font-size: 0.7rem; letter-spacing: 0.2em;
  font-family: 'Share Tech Mono', monospace;
  animation: float 3s ease infinite;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--purple-bright), transparent);
}

/* ── BOTÕES ─────────────────────────────────────────────────── */
.btn-primary {
  font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--black); background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
  padding: 16px 36px; text-decoration: none;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(123,63,228,0.4);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-glow));
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(123,63,228,0.7); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple-bright);
  padding: 15px 36px; text-decoration: none;
  border: 1px solid var(--purple-mid);
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btn-outline:hover {
  border-color: var(--purple-bright); color: var(--white);
  background: rgba(123,63,228,0.1);
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: flex; justify-content: center; gap: 0;
}
.stat {
  flex: 1; max-width: 220px;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 30px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--purple-main), var(--purple-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--white-dim); text-transform: uppercase; }

/* ── LAYOUT GENÉRICO ────────────────────────────────────────── */
section { padding: 120px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 60px; }

.section-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.72rem;
  color: var(--purple-bright); letter-spacing: 0.25em;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.section-tag::before { content: '//'; color: var(--purple-mid); }

h2 {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1; margin-bottom: 20px;
}
h2 em { font-style: normal; color: var(--purple-bright); }

.section-desc { font-size: 1.05rem; color: var(--white-dim); max-width: 520px; line-height: 1.8; }

/* ── ABOUT ──────────────────────────────────────────────────── */
#about { background: var(--dark); }

.split-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about-visual {
  position: relative; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.about-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin 20s linear infinite;
}
.about-ring:nth-child(1) { width: 100%; height: 100%; animation-duration: 30s; }
.about-ring:nth-child(2) { width: 75%; height: 75%; animation-direction: reverse; animation-duration: 20s; }
.about-ring:nth-child(3) { width: 50%; height: 50%; animation-duration: 15s; }
.about-ring::after {
  content: ''; position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; background: var(--purple-bright); border-radius: 50%;
  transform: translateX(-50%);
}
.about-core {
  position: relative; z-index: 2;
  width: 160px; height: 160px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--white);
  clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
  box-shadow: 0 0 60px rgba(123,63,228,0.5);
}
.about-core-logo { font-size: 2rem; font-weight: 900; margin-bottom: 4px; }

.about-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line); background: rgba(123,63,228,0.04);
  transition: border-color 0.3s, background 0.3s;
}
.about-item:hover { border-color: var(--purple-mid); background: rgba(123,63,228,0.08); }
.about-item-icon {
  font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
  color: var(--purple-bright); min-width: 40px; padding-top: 2px;
}
.about-item-text { font-size: 0.95rem; color: var(--white-dim); line-height: 1.6; }
.about-item-text strong { color: var(--white); font-weight: 600; }

/* ── SERVICES ───────────────────────────────────────────────── */
#services { background: var(--black); }

.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.service-card {
  background: var(--panel);
  padding: 40px 36px;
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
  transform: scaleX(0); transition: transform 0.5s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--purple-mid); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured {
  background: linear-gradient(135deg, rgba(91,45,181,0.2), rgba(123,63,228,0.1));
  border-color: var(--purple-mid);
}
.service-card.featured::before { transform: scaleX(1); }

.service-num {
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: var(--purple-mid); letter-spacing: 0.2em; margin-bottom: 24px;
}
.service-icon-wrap {
  width: 52px; height: 52px;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 24px;
  transition: border-color 0.3s, background 0.3s;
}
.service-card:hover .service-icon-wrap {
  border-color: var(--purple-bright);
  background: rgba(123,63,228,0.15);
}
.service-title {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1rem;
  margin-bottom: 14px; letter-spacing: 0.05em;
}
.service-desc { font-size: 0.92rem; color: var(--white-dim); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.service-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.6rem;
  color: var(--purple-bright); border: 1px solid var(--line);
  padding: 4px 10px; letter-spacing: 0.1em;
}

/* ── PROCESS ────────────────────────────────────────────────── */
#process { background: var(--dark); }

.process-steps {
  position: relative; margin-top: 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--purple-mid), var(--purple-mid), transparent);
}
.process-step { padding: 0 20px; text-align: center; }
.step-num-wrap {
  width: 56px; height: 56px; margin: 0 auto 24px;
  background: var(--panel); border: 1px solid var(--purple-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1rem;
  color: var(--purple-bright); position: relative;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.step-title {
  font-family: 'Orbitron', monospace; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.step-desc { font-size: 0.88rem; color: var(--white-dim); line-height: 1.6; }

/* ── PORTFOLIO ──────────────────────────────────────────────── */
#portfolio { background: var(--black); }

.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.portfolio-item {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  aspect-ratio: 16/10; cursor: pointer;
}
.portfolio-item:first-child { grid-column: span 2; aspect-ratio: 16/6; }

.portfolio-bg { position: absolute; inset: 0; transition: transform 0.6s ease; }
.portfolio-item:hover .portfolio-bg { transform: scale(1.04); }

.p1 { background: linear-gradient(135deg, #0f0a1f 0%, #1a0a3a 40%, #2d1060 100%); }
.p2 { background: linear-gradient(135deg, #0a1520 0%, #0a2535 50%, #0a3060 100%); }
.p3 { background: linear-gradient(135deg, #1a0a0a 0%, #3a1015 50%, #5a1520 100%); }

.portfolio-code {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: rgba(123,63,228,0.3); padding: 30px;
  overflow: hidden; line-height: 2; white-space: pre;
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,0.95) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px;
  transform: translateY(8px); transition: transform 0.4s;
}
.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }

.p-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.62rem;
  color: var(--purple-bright); letter-spacing: 0.2em; margin-bottom: 8px;
}
.p-title {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 8px;
}
.p-desc { font-size: 0.88rem; color: var(--white-dim); }

.p-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-bright); font-size: 0.8rem;
  transition: background 0.3s, border-color 0.3s;
}
.portfolio-item:hover .p-arrow { background: var(--purple-main); border-color: var(--purple-main); color: white; }

/* ── CARD OM5 — iframe live preview ─────────────────────────── */
.portfolio-item-om5 {
  cursor: pointer;
  overflow: hidden;
  /* Garante que o item fique na grid como os demais */
  position: relative;
}

/* ── Scaler: reduz o iframe (1280px) para caber no card ──────── */
.iframe-scaler {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none; /* clique passa para o card pai */
}

.iframe-scaler iframe {
  position: absolute;
  top: 0;
  left: 0;
  /* Tamanho real do desktop */
  width: 1280px;
  height: 900px;
  border: none;
  /* Escala proporcional: card ~550px wide → fator ≈ 0.43 */
  transform-origin: top left;
  transform: scale(var(--iframe-scale, 0.43));
  /* Scroll automático de cima a baixo em loop */
  animation: iframeScroll 12s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Rolagem: move o iframe verticalmente dentro do scaler */
@keyframes iframeScroll {
  0%   { top: 0; }
  100% { top: calc((900px * var(--iframe-scale, 0.43) - 100%) * -1); }
}

/* Pausa no hover para o usuário "ver" o conteúdo */
.portfolio-item-om5:hover .iframe-scaler iframe {
  animation-play-state: paused;
}

/* ── Overlay de gradiente (bordas) ───────────────────────────── */
.om5-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10,10,12,0.08) 0%,
      rgba(10,10,12,0.55) 85%,
      rgba(10,10,12,0.85) 100%),
    linear-gradient(to right,
      rgba(10,10,12,0.15) 0%,
      transparent 5%,
      transparent 95%,
      rgba(10,10,12,0.15) 100%);
  z-index: 2;
  transition: opacity 0.4s;
}
.portfolio-item-om5:hover .om5-overlay {
  opacity: 0.6;
}

/* ── Badge "Abrir Site" ──────────────────────────────────────── */
.open-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(123,63,228,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184,127,255,0.6);
  color: #f0f0f8;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 12px 26px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 30px rgba(123,63,228,0.6);
  white-space: nowrap;
}
.portfolio-item-om5:hover .open-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Barra "live" no topo do card ────────────────────────────── */
.portfolio-item-om5::before {
  content: '● om5telecom.com.br';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: rgba(13,13,18,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: var(--purple-bright);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  padding-left: 12px;
  z-index: 6;
  pointer-events: none;
}

/* ── Fallback elegante (quando iframe é bloqueado) ───────────── */
.om5-fallback {
  position: absolute;
  inset: 0;
  display: none; /* mostrado via JS se iframe falhar */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #050d1a 0%, #0a1a35 45%, #0d2650 100%);
  overflow: hidden;
  z-index: 1;
}
.om5-fallback.visible { display: flex; }

.om5-fb-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.om5-fb-logo {
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 40px rgba(123,63,228,0.7);
}
.om5-fb-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--purple-bright);
}
.om5-fb-url {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: rgba(160,160,192,0.6);
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* Ondas animadas no fallback */
.om5-wave {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(123,63,228,0.15);
  animation: waveExpand 4s ease-out infinite;
  pointer-events: none;
}
.om5-wave.w1 { width: 120px; height: 120px; animation-delay: 0s;    top: 50%; left: 50%; transform: translate(-50%,-50%); }
.om5-wave.w2 { width: 220px; height: 220px; animation-delay: 1.2s;  top: 50%; left: 50%; transform: translate(-50%,-50%); }
.om5-wave.w3 { width: 340px; height: 340px; animation-delay: 2.4s;  top: 50%; left: 50%; transform: translate(-50%,-50%); }

@keyframes waveExpand {
  0%   { opacity: 0.6; transform: translate(-50%,-50%) scale(0.8); }
  100% { opacity: 0;   transform: translate(-50%,-50%) scale(1.5); }
}

/* ── TECH STACK ─────────────────────────────────────────────── */
#tech { background: var(--dark); }

.tech-marquee-wrap { margin-top: 60px; overflow: hidden; position: relative; }
.tech-marquee-wrap::before,
.tech-marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.tech-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--dark), transparent); }
.tech-marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--dark), transparent); }

.tech-marquee {
  display: flex; gap: 20px; width: max-content;
  animation: marquee 25s linear infinite;
}
.tech-marquee-wrap:hover .tech-marquee { animation-play-state: paused; }

.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 28px; background: var(--panel);
  border: 1px solid var(--line); min-width: 110px;
  transition: border-color 0.3s, background 0.3s;
}
.tech-item:hover { border-color: var(--purple-bright); background: rgba(123,63,228,0.08); }
.tech-item-icon { font-size: 1.8rem; }
.tech-item-name {
  font-family: 'Share Tech Mono', monospace; font-size: 0.62rem;
  color: var(--white-dim); letter-spacing: 0.1em;
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
#testimonials { background: var(--black); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }

.testi-card {
  background: var(--panel); border: 1px solid var(--line);
  padding: 32px; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.testi-card:hover { border-color: var(--purple-mid); transform: translateY(-4px); }
.testi-card::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-family: 'Orbitron', monospace; font-size: 5rem; font-weight: 900;
  color: var(--purple-deep); line-height: 1;
}

.testi-stars { color: var(--purple-bright); font-size: 0.8rem; margin-bottom: 16px; letter-spacing: 2px; }
.testi-text  { font-size: 0.95rem; color: var(--white-dim); line-height: 1.8; margin-bottom: 24px; }

.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.8rem;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.testi-name { font-weight: 700; font-size: 0.95rem; }
.testi-role { font-size: 0.78rem; color: var(--purple-bright); }

/* ── CTA SECTION ────────────────────────────────────────────── */
#cta {
  background: var(--dark);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(123,63,228,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.cta-inner p { font-size: 1.1rem; color: var(--white-dim); margin-bottom: 40px; line-height: 1.7; }
.cta-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ────────────────────────────────────────────────── */
#contact { background: var(--black); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 60px; }

.contact-info h3 { font-family: 'Orbitron', monospace; font-size: 1.3rem; margin-bottom: 20px; }
.contact-info p  { font-size: 1rem; color: var(--white-dim); line-height: 1.8; margin-bottom: 40px; }

.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--line);
  text-decoration: none; color: var(--white-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.contact-link:hover { border-color: var(--purple-bright); color: var(--white); background: rgba(123,63,228,0.06); }
.contact-link-icon { font-size: 1.1rem; }
.contact-link-label { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; color: var(--purple-bright); }
.contact-link-text  { font-size: 0.92rem; }

/* Formulário */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group   { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: var(--purple-bright); letter-spacing: 0.2em;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--panel); border: 1px solid var(--line);
  color: var(--white); padding: 14px 18px;
  font-family: 'Rajdhani', sans-serif; font-size: 1rem;
  outline: none; transition: border-color 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 2px rgba(123,63,228,0.1);
}
.form-group select option { background: var(--panel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
  font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--black);
  background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
  border: none; padding: 18px 36px; cursor: pointer;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(123,63,228,0.3);
  position: relative; overflow: hidden;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(123,63,228,0.6); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--dark); border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand p { font-size: 0.92rem; color: var(--white-dim); line-height: 1.7; margin-top: 16px; }

.footer-col h4 {
  font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--white); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.88rem; color: var(--white-dim); text-decoration: none;
  transition: color 0.3s; display: flex; align-items: center; gap: 8px;
}
.footer-col a::before { content: '›'; color: var(--purple-bright); }
.footer-col a:hover   { color: var(--purple-bright); }

.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--white-dim); }
.footer-bottom span { color: var(--purple-bright); }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; text-decoration: none; color: var(--white-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.social-link:hover { border-color: var(--purple-bright); color: var(--purple-bright); background: rgba(123,63,228,0.1); }

/* ── PARTICLES ──────────────────────────────────────────────── */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--purple-bright); border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0;
}

/* ── NOTIFICATION ───────────────────────────────────────────── */
.notification {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  background: var(--panel); border: 1px solid var(--purple-mid);
  padding: 16px 24px; max-width: 320px;
  display: flex; align-items: center; gap: 14px;
  transform: translateX(120%); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 30px rgba(123,63,228,0.3);
}
.notification.show { transform: translateX(0); }
.notif-icon { font-size: 1.3rem; }
.notif-text { font-size: 0.9rem; color: var(--white-dim); line-height: 1.5; }
.notif-text strong { color: var(--white); display: block; }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(8px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes gridShift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(60px, 60px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.3; transform: scale(0.5); }
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) translateX(var(--drift, 50px)); opacity: 0; }
}

/* ── RESPONSIVO ─────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════
   MOBILE — 900px (tablet)
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .container { padding: 0 20px; }
  section { padding: 80px 0; }

  /* Layout grids */
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:first-child { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-steps::before { display: none; }
  .services-header, .portfolio-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Stats */
  .stats-bar { flex-wrap: wrap; padding: 0; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--line); padding: 20px; }

  /* Hero */
  .hero-content { padding: 0 20px; }
  .hero-scroll { display: none; }

  /* About visual menor */
  .about-visual { width: 260px; height: 260px; margin: 0 auto; }

  /* Form */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Tipografia */
  h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}

/* ═══════════════════════════════════════════════════
   MOBILE — 600px (smartphones)
═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Base */
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none !important; }
  section { padding: 64px 0; }
  .container { padding: 0 16px; }

  /* Nav */
  nav { padding: 14px 16px; }
  .nav-logo { font-size: 0.95rem; gap: 8px; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-icon::after { font-size: 0.7rem; }

  /* Mobile nav links maiores para toque */
  .mobile-nav a { font-size: 1.6rem; }
  .mobile-nav { gap: 28px; }

  /* Hero */
  #hero { min-height: 100svh; padding-top: 80px; }
  .hero-content { padding: 0 16px; }
  h1 { font-size: clamp(2rem, 11vw, 3rem); letter-spacing: -0.02em; }
  .hero-tag { font-size: 0.65rem; padding: 6px 14px; margin-bottom: 24px; }
  .hero-sub { font-size: 1rem; margin-bottom: 32px; }
  .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; justify-content: center; }
  .hero-scroll { display: none; }

  /* Stats — 2x2 grid */
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .stat { min-width: unset; width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: 20px 10px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.65rem; }

  /* About */
  .about-visual { display: none; }
  .split-layout { gap: 24px; }
  .about-item { padding: 12px 14px; }
  .about-item-text { font-size: 0.9rem; }

  /* Services — 1 coluna */
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .service-card { padding: 28px 24px; }
  .service-icon-wrap { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 16px; }
  .service-title { font-size: 1rem; margin-bottom: 8px; }
  .service-desc { font-size: 0.88rem; }

  /* Process — 1 coluna */
  .process-steps { grid-template-columns: 1fr; gap: 16px; }
  .process-step { padding: 24px 20px; }
  .step-num-wrap { font-size: 2rem; margin-bottom: 10px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; }
  .portfolio-item { aspect-ratio: 16/10; }
  .portfolio-item:first-child { grid-column: span 1; aspect-ratio: 16/10; }
  .p-title { font-size: 0.95rem; }
  .portfolio-overlay { padding: 20px; }

  /* Tech marquee */
  .tech-item { padding: 14px 20px; }
  .tech-item-icon { font-size: 1.4rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testi-card { padding: 24px 20px; }
  .testi-text { font-size: 0.9rem; }

  /* CTA */
  #cta .cta-inner { padding: 40px 20px; border-radius: 0; }
  .cta-btns { flex-direction: column; align-items: center; gap: 12px; }
  .cta-btns .btn-primary, .cta-btns .btn-outline { width: 100%; max-width: 280px; text-align: center; }

  /* Contact */
  #contact .contact-info h3 { font-size: 1.3rem; }
  .contact-link { padding: 14px 16px; gap: 12px; }
  .contact-link-icon { width: 36px; height: 36px; font-size: 0.9rem; }
  .contact-form { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-group label { font-size: 0.65rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 12px 14px; font-size: 0.95rem; }
  .btn-submit { padding: 16px; font-size: 0.8rem; letter-spacing: 0.1em; }
  .btn-whatsapp { gap: 10px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col h4 { font-size: 0.75rem; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .social-links { justify-content: center; }

  /* WhatsApp flutuante */
  .wa-float {
    display: flex !important;
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE — 380px (telas muito pequenas)
═══════════════════════════════════════════════════ */
@media (max-width: 380px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .hero-tag { display: none; }
  .nav-logo { font-size: 0.8rem; }
}
/* ── BOTÃO WHATSAPP ─────────────────────────────────────────── */
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff !important;
  font-family: 'Orbitron', monospace; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 18px 32px; border: none; width: 100%; cursor: pointer;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(37,211,102,0.55);
}

.form-note {
  margin-top: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem; color: var(--white-dim);
  letter-spacing: 0.1em; text-align: center;
  opacity: 0.6;
}

/* ── BOTÃO WHATSAPP FLUTUANTE (mobile) ──────────────────────── */
.wa-float {
  display: none;
  position: fixed; bottom: 24px; right: 20px; z-index: 500;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  animation: waPulse 2.5s ease infinite;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 36px rgba(37,211,102,0.8); }
}