:root{
  --blue:#1d4bf0;
  --purple:#de00cf;

  --bg:#ffffff;
  --text:#0b0b14;
  --muted:#5d6475;
  --card: rgba(255,255,255,0.65);
  --border: rgba(12, 12, 28, 0.10);
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);

  --nav: rgba(255,255,255,0.55);
  --glass: blur(16px);

  --radius: 22px;
  --radius-sm: 16px;

  --glow: 0 0 22px rgba(30,144,255,0.35), 0 0 34px rgba(123,47,247,0.25);
}

[data-theme="dark"]{
  --bg:#0F0F1A;
  --text:#eef0ff;
  --muted:#b3b8cc;
  --card: rgba(18, 19, 33, 0.52);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 20px 55px rgba(0,0,0,0.35);

  --nav: rgba(16, 16, 28, 0.55);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

/* Background premium */
.bg-wrap{
  position:fixed;
  inset:0;
  z-index:-2;
  background: radial-gradient(1200px 800px at 10% 10%, rgba(30,144,255,0.20), transparent 60%),
              radial-gradient(900px 700px at 90% 30%, rgba(123,47,247,0.18), transparent 55%),
              radial-gradient(800px 600px at 40% 90%, rgba(30,144,255,0.14), transparent 60%);
  filter: saturate(1.1);
}

.noise{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:0.10;
  background-image:url("https://www.google.com/imgres?q=imagem%20i.a.&imgurl=https%3A%2F%2Ffiles.tecnoblog.net%2Fwp-content%2Fuploads%2F2023%2F06%2Fia-4.png&imgrefurl=https%3A%2F%2Ftecnoblog.net%2Fresponde%2Fo-que-e-inteligencia-artificial%2F&docid=BiT_J-3AxgfTxM&tbnid=O1XdE43EdLEeMM&vet=12ahUKEwig97u_qOuSAxWZqpUCHVfCM3EQnPAOegQIERAB..i&w=1920&h=1080&hcb=2&ved=2ahUKEwig97u_qOuSAxWZqpUCHVfCM3EQnPAOegQIERAB");
  mix-blend-mode: overlay;
}

.container{
  width:min(1180px, calc(100% - 44px));
  margin:0 auto;
}

/* Navbar */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  background: var(--nav);
  border-bottom: 1px solid var(--border);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
  font-weight:800;
  letter-spacing:-0.02em;
}

.logo{
  width:40px;
  height:40px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: var(--glow);
  position:relative;
  overflow:hidden;
}
.logo:after{
  content:"";
  position:absolute;
  inset:-30%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), transparent 45%);
  transform: rotate(18deg);
}

.brand small{
  display:block;
  font-weight:600;
  color:var(--muted);
  letter-spacing:0;
  margin-top:2px;
  font-size:12px;
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  transition: 220ms ease;
}
.nav-links a:hover{
  color:var(--text);
  background: rgba(30,144,255,0.10);
}

.nav-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.10);
  color:var(--text);
  font-weight:700;
  border-radius: 16px;
  padding: 11px 14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  cursor:pointer;
  transition: 220ms ease;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary{
  border:none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color:white;
  box-shadow: var(--glow);
}
.btn-primary:hover{ filter: brightness(1.03); transform: translateY(-1px); }

.icon{
  width:18px; height:18px;
  display:inline-block;
}

/* Toggle Dark/Light */
.theme-toggle{
  width:54px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.10);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  position:relative;
  cursor:pointer;
  transition: 250ms ease;
  display:flex;
  align-items:center;
  padding: 4px;
}

.toggle-dot{
  width:26px;
  height:26px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: var(--glow);
  position:absolute;
  left:4px;
  transition: 260ms cubic-bezier(.2,.8,.2,1);
}

[data-theme="dark"] .toggle-dot{
  left:24px;
}

.toggle-icons{
  width:100%;
  display:flex;
  justify-content:space-between;
  padding: 0 8px;
  color: var(--muted);
  font-size:12px;
  user-select:none;
}

/* Hero */
.hero{
  padding: 72px 0 40px;
  position:relative;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items:center;
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  font-weight:700;
  color: var(--muted);
  box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

.dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: var(--glow);
}

h1{
  margin: 18px 0 10px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.03;
  letter-spacing:-0.04em;
}

.grad{
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 56ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  margin-top: 22px;
  flex-wrap:wrap;
}

/* ✅ HERO IMAGE (no lugar do card com X) */
.hero-media{
  position:relative;
  border-radius: calc(var(--radius) + 6px);
  border:1px solid var(--border);
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
  padding: 12px;
  overflow:hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  min-height: 360px;
}

.hero-media-frame{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  height: 100%;
}

.hero-media-frame img{
  width:100%;
  height: 380px;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}

/* brilho decorativo */
.hero-media-glow{
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(30,144,255,0.35), transparent 40%),
              radial-gradient(circle at 75% 55%, rgba(222,0,207,0.28), transparent 42%);
  filter: blur(26px);
  opacity:0.65;
  pointer-events:none;
}

/* little pill in hero */
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.chip{
  border:1px solid var(--border);
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight:700;
  color: var(--muted);
  font-size: 12px;
}

/* Sections */
section{
  padding: 56px 0;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom: 22px;
}

h2{
  margin:0;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing:-0.03em;
}

.section-sub{
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
  font-weight: 500;
}

.grid{
  display:grid;
  gap: 16px;
}

.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

.card{
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: var(--card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
  padding: 18px;
  position:relative;
  overflow:hidden;
  transform-style: preserve-3d;
  perspective: 900px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover{
  box-shadow: 0 26px 65px rgba(16, 24, 40, 0.16);
  border-color: rgba(30,144,255,0.25);
}

.card .badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-weight:700;
  font-size:12px;
  margin-bottom: 10px;
}

.card h3{
  margin: 6px 0 8px;
  letter-spacing:-0.02em;
  font-size: 18px;
}

.card p{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}

/* Serviços */
.service-icon{
  width:42px; height:42px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,144,255,0.20), rgba(123,47,247,0.16));
  border: 1px solid rgba(30,144,255,0.22);
  display:grid;
  place-items:center;
  box-shadow: 0 14px 35px rgba(30,144,255,0.10);
  margin-bottom: 10px;
}
.service-icon svg{ opacity:0.95; }

/* Portfolio mockups */
.mock{
  height: 160px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(30,144,255,0.18), rgba(123,47,247,0.14));
  position:relative;
  overflow:hidden;
  margin-bottom: 12px;
}
.mock:before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.40), transparent 46%);
  transform: rotate(18deg);
}
.mock:after{
  content:"";
  position:absolute;
  left:18px; top:18px;
  width: 62%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 14px 0 rgba(255,255,255,0.22), 0 28px 0 rgba(255,255,255,0.14);
}

/* Depoimentos */
.slider{
  position:relative;
  overflow:hidden;
}
.slides{
  display:flex;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.slide{
  min-width: 100%;
  padding: 2px;
}

.quote{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.quote .stars{
  letter-spacing:2px;
  color: rgba(30,144,255,0.9);
  filter: drop-shadow(0 8px 18px rgba(30,144,255,0.18));
  font-weight:800;
}
.quote footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 8px;
  color: var(--muted);
  font-weight:600;
  font-size: 13px;
}

.slider-actions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

/* CTA */
.cta{
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(30,144,255,0.95), rgba(123,47,247,0.90));
  box-shadow: 0 30px 85px rgba(30,144,255,0.25);
  padding: 26px;
  color:white;
  position:relative;
  overflow:hidden;
}
.cta:before{
  content:"";
  position:absolute;
  inset:-60%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.32), transparent 46%);
  transform: rotate(18deg);
}
.cta-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.cta h3{
  margin:0;
  font-size: 22px;
  letter-spacing:-0.02em;
}
.cta p{
  margin:6px 0 0;
  opacity:0.92;
  max-width: 68ch;
  line-height:1.55;
  font-weight: 500;
}
.cta .btn{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
}
.cta .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(0,0,0,0.18);
}

/* Footer */
footer.site-footer{
  padding: 36px 0 52px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items:start;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 14px;
  justify-content:flex-end;
}
.footer-links a{
  color: var(--muted);
  text-decoration:none;
  font-weight:700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: 220ms ease;
}
.footer-links a:hover{
  color: var(--text);
  background: rgba(30,144,255,0.10);
}

/* Scroll animations */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: 600ms cubic-bezier(.2,.8,.2,1);
}
.reveal.show{
  opacity:1;
  transform: translateY(0);
}

/* Responsive */
.mobile-only{ display:none; }
.desktop-only{ display:flex; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media-frame img{ height: 320px; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-links{ justify-content:flex-start; }
  .desktop-only{ display:none; }
  .mobile-only{ display:flex; }
  .nav-links{ display:none; }
}

/* Mobile menu (simple) */
.menu{
  position:fixed;
  inset: 0;
  z-index:100;
  display:none;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.menu.open{ display:block; }
.menu-panel{
  position:absolute;
  right: 14px;
  top: 72px;
  width:min(360px, calc(100% - 28px));
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px;
}
.menu-panel a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none;
  color: var(--text);
  font-weight: 700;
  margin: 4px 0;
}
.menu-panel a:hover{ background: rgba(30,144,255,0.10); }