/* ═══════════════════════════════
   iJuno — Design System v3
   ═══════════════════════════════ */

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

:root {
  --bg:      #080B12;
  --bg2:     #0D1220;
  --bg3:     #12182A;
  --surface: rgba(17,22,32,0.9);
  --accent:  #4F8EF7;
  --sand:    #C8A882;
  --green:   #3DD68C;
  --text:    #FFFFFF;
  --muted:   #6B7A99;
  --muted2:  #3D4560;
  --border:  rgba(79,142,247,0.12);
  --border2: rgba(255,255,255,0.05);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── GRID BG ── */
#grid-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 1;
}

/* ── SCANLINES ── */
body::after {
  content: ''; position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px);
  pointer-events: none; z-index: 9998;
}

/* ══ LOGO NAV ══ */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  line-height: 1;
  font-family: var(--font-head);
}
.logo-i {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
  margin-right: 0;
}
.logo-juno {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-right: 6px;
}
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sand);
  text-transform: uppercase;
  align-self: flex-end;
  margin-bottom: 3px;
  opacity: 0.65;
}

/* ══ LOGO FOOTER ══ */
.flogo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  margin-bottom: 0.85rem;
  font-family: var(--font-head);
}
.flogo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.flogo-i {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
  margin-right: 0;
}
.flogo-juno {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.flogo-tag {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--sand);
  text-transform: uppercase;
  opacity: 0.6;
}

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
nav::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.3), transparent);
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent) !important; color: var(--bg) !important;
  padding: 9px 22px; border-radius: 6px; font-weight: 700 !important;
  font-size: 0.78rem !important; letter-spacing: 0.04em !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.88 !important; transform: translateY(-1px) !important; }
.nav-cta.active { color: var(--bg) !important; }

/* Hamburger */
.ham {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px;
}
.ham span {
  display: block; height: 1.5px; background: var(--text); border-radius: 2px;
  width: 100%; transition: transform 0.3s, opacity 0.3s; transform-origin: center;
}
.ham span:nth-child(2) { width: 65%; margin-left: auto; }
.ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(8,11,18,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 999;
  padding: 1.5rem 5% 2rem; flex-direction: column;
  pointer-events: none; opacity: 0; transform: translateY(-8px);
  transition: transform 0.3s ease, opacity 0.3s ease; display: flex;
}
.mobile-menu.open { pointer-events: all; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 1rem 0; border-bottom: 1px solid var(--border2); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu a.mm-cta { border-bottom: none; color: var(--accent); font-weight: 700; margin-top: 0.5rem; }

/* ══ SECTION ══ */
section { padding: 100px 5%; position: relative; z-index: 1; }
.si { max-width: 1200px; margin: 0 auto; }

.slabel {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.slabel::before { content: '//'; color: var(--muted2); font-size: 0.7rem; }

h2 {
  font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1rem;
}
h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.03em; }
.sdesc { color: var(--muted); font-size: 1rem; max-width: 500px; line-height: 1.8; }

.hrline { height: 1px; background: linear-gradient(90deg, transparent, rgba(79,142,247,0.15), transparent); }

/* ══ BUTTONS ══ */
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg); padding: 13px 28px; border-radius: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  text-decoration: none; transition: box-shadow 0.3s, transform 0.2s;
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(79,142,247,0.35); }
.btn-p svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-g {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); padding: 13px 28px; border-radius: 6px;
  border: 1px solid var(--border2); font-family: var(--font-body); font-weight: 600;
  font-size: 0.9rem; text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.btn-g:hover { border-color: rgba(79,142,247,0.3); background: rgba(79,142,247,0.05); }
.btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ══ ORBS ══ */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.orb1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(79,142,247,0.09) 0%, transparent 70%); top: -200px; left: -150px; animation: o1 16s ease-in-out infinite alternate; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,168,130,0.07) 0%, transparent 70%); bottom: -100px; right: -100px; animation: o2 20s ease-in-out infinite alternate; }
@keyframes o1 { to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes o2 { to { transform: translate(-30px, -40px); } }
@keyframes blink { 50% { opacity: 0.15; } }
@keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gs { from { background-position: 0%; } to { background-position: 100%; } }

/* ══ PAGE HERO ══ */
.page-hero {
  padding: 150px 5% 90px; position: relative; z-index: 1; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; color: var(--accent);
  background: rgba(79,142,247,0.07); border: 1px solid rgba(79,142,247,0.2);
  padding: 6px 16px; border-radius: 4px; margin-bottom: 2rem;
  opacity: 0; animation: up 0.6s ease forwards 0.2s;
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
  animation: blink 1.8s ease infinite;
}
.page-hero h1 {
  font-family: var(--font-head); font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 1.25rem;
  opacity: 0; animation: up 0.7s ease forwards 0.4s;
}
.page-hero .sdesc { opacity: 0; animation: up 0.7s ease forwards 0.6s; font-size: 1.05rem; }
.h-grad {
  background: linear-gradient(110deg, var(--sand) 0%, #8BB8FF 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200%; animation: gs 5s ease infinite alternate;
}

/* ══ PILARES ══ */
.pilares-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.pilar {
  background: var(--bg2); padding: 2.8rem 2.2rem; position: relative;
  overflow: hidden; transition: background 0.3s;
}
.pilar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform 0.4s;
}
.pilar:hover { background: var(--bg3); }
.pilar:hover::before { transform: scaleX(1); }
.pilar-ico {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(79,142,247,0.07); border: 1px solid rgba(79,142,247,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  margin-bottom: 1.5rem; transition: box-shadow 0.3s;
}
.pilar:hover .pilar-ico { box-shadow: 0 0 18px rgba(79,142,247,0.2); }
.pilar h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--text); }
.pilar p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }
.pilar-num {
  position: absolute; bottom: 1.5rem; right: 1.8rem;
  font-family: var(--font-mono); font-size: 4rem; font-weight: 700;
  color: rgba(79,142,247,0.04); line-height: 1; user-select: none;
}

/* ══ CARDS GENÉRICOS ══ */
.card {
  background: var(--surface); border: 1px solid var(--border2); border-radius: 12px;
  padding: 2rem; backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.4), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: rgba(79,142,247,0.25); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

/* ══ SERVIÇOS ══ */
.serv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.serv-card {
  background: var(--surface); border: 1px solid var(--border2); border-radius: 12px;
  padding: 2.2rem 2rem; backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden;
}
.serv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  transform: scaleX(0); transition: transform 0.4s;
}
.serv-card:hover { border-color: rgba(200,168,130,0.3); transform: translateY(-4px); }
.serv-card:hover::before { transform: scaleX(1); }
.serv-ico { font-size: 1.8rem; margin-bottom: 1.25rem; display: block; }
.serv-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.serv-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.serv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.serv-tags span {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand);
  background: rgba(200,168,130,0.08); border: 1px solid rgba(200,168,130,0.18);
  padding: 3px 10px; border-radius: 3px;
}

/* ══ PORTFOLIO CARD ══ */
.pcard {
  background: var(--surface); border: 1px solid var(--border2); border-radius: 12px;
  padding: 2.5rem; backdrop-filter: blur(8px); position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.pcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.5), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.pcard:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-4px); }
.pcard:hover::after { opacity: 1; }
.pbadge {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  background: rgba(79,142,247,0.08); border: 1px solid rgba(79,142,247,0.18);
  padding: 4px 12px; border-radius: 4px; display: inline-block; margin-bottom: 1.5rem;
}
.pname { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.75rem; }
.pname em { font-style: normal; color: var(--accent); }
.pdesc { font-size: 0.875rem; color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.pfeats { display: flex; flex-direction: column; }
.pfeat {
  display: flex; align-items: center; gap: 12px; font-size: 0.82rem;
  color: var(--muted); padding: 9px 0; border-top: 1px solid var(--border2); transition: color 0.2s;
}
.pcard:hover .pfeat { color: var(--text); }
.pfeat-arr { color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; flex-shrink: 0; }

/* ══ FOOTER ══ */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3.5rem 5%; position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; }
.ftagline { font-size: 0.82rem; color: var(--muted2); line-height: 1.6; max-width: 220px; }
.fcol-title {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 1.25rem;
}
.fcol-links { display: flex; flex-direction: column; gap: 0.7rem; }
.fcol-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.fcol-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--border2); display: flex;
  justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.fcopy { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted2); letter-spacing: 0.04em; }

/* ══ CTA SECTION ══ */
.cta-sec { text-align: center; position: relative; overflow: hidden; }
.cta-sec::before {
  content: ''; position: absolute; width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(79,142,247,0.06) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
  display: block;
}
.cta-sec h2 { max-width: 600px; margin: 0 auto 1.25rem; }
.cta-sec .sdesc { margin: 0 auto 2.5rem; text-align: center; }
.cta-sec .btns { justify-content: center; }

/* ══ SCROLL REVEAL ══ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.visible { opacity: 1 !important; transform: none !important; } }
/* Fallback: se JS não rodar, mostrar tudo após 1s via animation */
.reveal { animation: revealFallback 0s 1s forwards; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .serv-grid { grid-template-columns: 1fr 1fr; }
  .pilares-grid { grid-template-columns: 1fr 1fr; }
  .pilares-grid .pilar:last-child { grid-column: 1 / -1; }
  section { padding: 80px 5%; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .ham { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  section { padding: 64px 5%; }
  h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .serv-grid, .pilares-grid { grid-template-columns: 1fr; }
  .pilares-grid .pilar:last-child { grid-column: auto; }
  .btns { flex-direction: column; }
  .btn-p, .btn-g { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══ WHATSAPP FLUTUANTE ══ */
/* ══ WHATSAPP FLUTUANTE ══ */
.wpp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 13px 22px 13px 16px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: wppIn 0.5s ease forwards 1.5s;
  line-height: 1;
}
.wpp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
.wpp-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M16 2C8.27 2 2 8.27 2 16c0 2.45.64 4.75 1.76 6.75L2 30l7.5-1.73A13.92 13.92 0 0016 30c7.73 0 14-6.27 14-14S23.73 2 16 2zm0 25.5a11.45 11.45 0 01-5.83-1.6l-.42-.25-4.33 1 1.02-4.22-.27-.43A11.43 11.43 0 014.5 16C4.5 9.6 9.6 4.5 16 4.5S27.5 9.6 27.5 16 22.4 27.5 16 27.5zm6.27-8.57c-.34-.17-2.03-1-2.34-1.12-.32-.11-.54-.17-.77.17-.23.34-.88 1.12-1.08 1.35-.2.23-.4.26-.74.09-.34-.17-1.45-.53-2.76-1.7-1.02-.91-1.71-2.03-1.91-2.37-.2-.34-.02-.52.15-.69.15-.15.34-.4.51-.6.17-.2.23-.34.34-.57.11-.23.06-.43-.03-.6-.09-.17-.77-1.86-1.06-2.55-.28-.67-.56-.58-.77-.59h-.65c-.23 0-.6.09-.91.43-.31.34-1.2 1.17-1.2 2.86s1.23 3.32 1.4 3.55c.17.23 2.42 3.7 5.87 5.19.82.35 1.46.56 1.96.72.82.26 1.57.22 2.16.13.66-.1 2.03-.83 2.32-1.63.29-.8.29-1.49.2-1.63-.08-.14-.31-.23-.65-.4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.wpp-label { white-space: nowrap; }
@keyframes wppIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .wpp-label { display: none; }
  .wpp-float { padding: 15px; border-radius: 50%; gap: 0; }
  .wpp-icon { width: 28px; height: 28px; }
}