:root{
  --bg:#0B1020; --bg2:#0E1630;
  --text:#E9EEFF; --muted:#AAB6E8;
  --brand:#6C7CFF; --brand2:#21D4FD;
  --ok:#44E3A0; --danger:#FF5D5D;
  --stroke: rgba(255,255,255,.10);
  --shadow: 0 14px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  line-height:1.55;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(108,124,255,.35), transparent 50%),
    radial-gradient(900px 500px at 85% 15%, rgba(33,212,253,.22), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1120px, 92%); margin:0 auto; }

/* NAV */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.55);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{ display:flex; align-items:center; gap:12px; font-weight:800; }
.logo{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  display:grid; place-items:center;
  color:#09102A; font-weight:900;
  box-shadow: 0 10px 30px rgba(108,124,255,.25);
}
.brand-title{ font-size:14px; opacity:.9; }
.brand-subtitle{ font-size:12px; color:var(--muted); font-weight:800; }

.menu{ display:flex; gap:18px; color:var(--muted); font-weight:700; font-size:14px; }
.menu a:hover{ color: var(--text); }

.nav-cta{ display:flex; gap:10px; }

/* Buttons */
.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  cursor:pointer;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}
.btn-primary{
  border:none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color:#09102A;
  box-shadow: 0 18px 55px rgba(108,124,255,.25);
}

/* Pills */
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}
.dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(68,227,160,.15);
}

/* HERO */
.hero{ padding:68px 0 34px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:stretch;
}
.h1{
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  margin: 14px 0;
  letter-spacing: -.6px;
}
.lead{
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 56ch;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }

/* Cards / Layout */
section{ padding: 58px 0; }
.section-title{ font-size: 28px; margin: 0 0 10px; letter-spacing:-.4px; }
.section-subtitle{ margin:0 0 24px; color:var(--muted); max-width:72ch; }

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }

.card{
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(15,26,58,.55);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h3{ margin:0 0 8px; font-size:18px; letter-spacing:-.2px; }
.card p{ margin:0; color: var(--muted); }

.card-soft{ background: rgba(255,255,255,.04); }

.hero-card{
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height: 360px;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-60px -60px auto auto;
  width:240px; height:240px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(33,212,253,.35), transparent 55%);
  pointer-events:none;
}

.mini-title{ margin:0; font-weight:900; letter-spacing:.2px; }
.mini{ margin:6px 0 0; color:var(--muted); font-weight:600; }

.kpis{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
.kpi{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:14px 12px;
  background: rgba(15,26,58,.55);
}
.kpi strong{ display:block; font-size:18px; margin-bottom:2px; }
.kpi span{ color:var(--muted); font-size:12px; font-weight:800; }

.badge-list{ display:flex; flex-wrap:wrap; gap:10px; }
.badge{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

/* PORTFÓLIO */
.portfolio-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }
.thumb{
  border:1px solid var(--stroke);
  border-radius:16px;
  overflow:hidden;
  height:220px;
  background: rgba(255,255,255,.03);
  position:relative;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.92;
}
.thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,16,32,.05), rgba(11,16,32,.35));
  pointer-events:none;
}
.tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.tag{
  font-size:12px;
  font-weight:900;
  color: var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.bullets{
  margin:12px 0 0;
  padding-left:18px;
  color: var(--muted);
  font-weight: 600;
}
.bullets li{ margin:6px 0; }

.actions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }

/* CONTATO */
.contact-wrap{ display:grid; grid-template-columns: 1.05fr .95fr; gap:18px; }
form{ display:grid; gap:12px; margin-top:8px; }
.field{ display:grid; gap:6px; }
label{ font-weight:900; font-size:13px; }
input, textarea{
  width:100%;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  padding:12px 12px;
  color: var(--text);
  outline:none;
  font: inherit;
}
textarea{ min-height:120px; resize: vertical; }
.hint{ color: var(--muted); font-size:12px; margin-top:6px; }
.muted{ color: var(--muted); font-weight:600; }

/* FOOTER */
footer{
  padding: 26px 0 40px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}
.footer-inner{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.small{ font-size:12px; }
.footer-strong{ color: var(--text); font-weight:900; }

/* Helpers */
.hidden{ display:none; }
.hidden-input{ display:none; }
.m0{ margin:0; }
.mb10{ margin-bottom:10px; }
.mb8{ margin-bottom:8px; }
.mt-14{ margin-top:14px; }
.mt-8{ margin-top:8px; }
.mt-16{ margin-top:16px; }

/* Responsive */
@media (max-width: 920px){
  .menu{ display:none; }
  .hero-grid, .contact-wrap{ grid-template-columns: 1fr; }
  .grid-3, .grid-2, .portfolio-grid{ grid-template-columns: 1fr; }
  .kpis{ grid-template-columns: 1fr; }
}


/* =========================
   PARTICLE BACKGROUND
   ========================= */

.particle-bg{
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  isolation: isolate; /* melhora o mix-blend-mode */
}

/* garante que todo o conteúdo fique por cima */
body > *:not(.particle-bg){
  position: relative;
  z-index: 1;
}

.particle{
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform: translate3d(var(--x1), var(--fromY), 0);
  animation: particle-float var(--dur) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.particle .circle{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  mix-blend-mode: screen;

  /* brilho mais forte e visível */
  background-image: radial-gradient(
    rgba(33, 212, 253, 1),
    rgba(108, 124, 255, 0.95) 14%,
    rgba(33, 212, 253, 0) 62%
  );

  filter: blur(0.2px); /* glow leve */
  animation:
    particle-fade 1.2s ease-in-out infinite,
    particle-scale 3.2s ease-in-out infinite;
  animation-delay: var(--innerDelay);
  will-change: transform, opacity;
}

@keyframes particle-float{
  from { transform: translate3d(var(--x1), var(--fromY), 0); }
  to   { transform: translate3d(var(--x2), var(--toY), 0); }
}

@keyframes particle-fade{
  0%   { opacity: 1; }
  50%  { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes particle-scale{
  0%   { transform: scale3d(0.4, 0.4, 1); }
  50%  { transform: scale3d(2.2, 2.2, 1); }
  100% { transform: scale3d(0.4, 0.4, 1); }
}

/* Acessibilidade/performance */
@media (prefers-reduced-motion: reduce){
  .particle-bg{ display:none; }
}


/* =========================
   PORTFÓLIO - CARROSSEL
   ========================= */

.portfolio-carousel{
  position: relative;
  margin-top: 18px;
}

.carousel-viewport{
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
}

.carousel-track{
  display: flex;
  gap: 18px;
  padding: 2px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* esconde scrollbar */
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }

/* Cada card vira um "slide" */
.carousel-track > .card{
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 18px) / 2); /* 2 por vez no desktop */
}

/* Mobile: 1 por vez */
@media (max-width: 920px){
  .carousel-track > .card{
    flex: 0 0 100%;
  }
}

/* Botões */
.carousel-btn{
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(11,16,32,.75);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.carousel-btn:hover{
  transform: translateY(-50%) scale(1.02);
  background: rgba(11,16,32,.85);
}
.carousel-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
}
.carousel-btn.prev{ left: -10px; }
.carousel-btn.next{ right: -10px; }

/* Em telas menores, botões ficam dentro */
@media (max-width: 920px){
  .carousel-btn.prev{ left: 8px; }
  .carousel-btn.next{ right: 8px; }
}

/* Dots */
.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.carousel-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  opacity: .8;
}
.carousel-dot.active{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  opacity: 1;
  transform: scale(1.15);
}
