﻿:root {
  --bg: #123a59;
  --ink: #e8eefc;
  --soft: #a6b5d4;
  --accent: #1d4ed8;
  --accent-2: #38bdf8;
  --card: #0e1424d9;
  --line: #5ea2ff3a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% -10%, #60a5fa66 0%, transparent 45%),
              radial-gradient(circle at 92% 4%, #22d3ee38 0%, transparent 40%),
              var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: url("background-assistemas.jpg") center center / cover no-repeat;
  opacity: 0.2;
  will-change: transform, background-position;
  animation: bgWaveDrift 16s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 22% 12%, #3b82f624 0%, transparent 42%),
              radial-gradient(circle at 88% 10%, #22d3ee1f 0%, transparent 40%),
              linear-gradient(180deg, #0a1c355e 0%, #0a1c3521 55%, #0a1c3548 100%);
}

.particle-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(circle at 20% 25%, #67e8f91c 0 1.5px, transparent 1.6px) 0 0 / 130px 130px,
    radial-gradient(circle at 80% 70%, #93c5fd2b 0 1.4px, transparent 1.5px) 0 0 / 160px 160px,
    radial-gradient(circle at 60% 35%, #38bdf827 0 1.2px, transparent 1.3px) 0 0 / 110px 110px;
  animation: particlesDrift 24s linear infinite;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.45;
  animation: floaty 9s ease-in-out infinite;
}

.bg-shape-a {
  width: 300px;
  height: 300px;
  background: #2563eb;
  top: -90px;
  right: -70px;
}

.bg-shape-b {
  width: 240px;
  height: 240px;
  background: #22d3ee;
  bottom: 12%;
  left: -110px;
  animation-delay: 1.5s;
}

.topbar {
  width: min(1120px, 92vw);
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a1020da;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 10px;
  z-index: 20;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand-text {
  color: var(--accent-2);
  white-space: nowrap;
}

.brand-digital {
  color: #ffffff;
  margin-left: 0.06rem;
}

nav {
  display: flex;
  gap: 1.1rem;
}

nav a {
  text-decoration: none;
  color: #d2ddf8;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--accent-2);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111723e6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #eef1f7;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-panel {
  display: none;
}

.topbar.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  width: min(1120px, 92vw);
  margin: 2rem auto 4rem;
}

section {
  margin-bottom: 4.5rem;
}

.hero h1,
h2,
h3 {
  font-family: "Inter", sans-serif;
  letter-spacing: -0.8px;
}

.hero {
  position: relative;
  padding: 2rem 0 1rem;
  overflow: visible;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: center;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.6px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  margin: 0.7rem 0;
  max-width: 16ch;
  color: var(--accent-2);
}

.hero h1 span {
  color: var(--accent-2);
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-title-focus {
  color: #f2f7ff;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 65ch;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-proof {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: #cfe5ff;
  font-size: 0.94rem;
}

.hero-proof li {
  position: relative;
  padding-left: 1.2rem;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8a6;
}

.hero-mockup {
  position: relative;
  justify-self: end;
  width: min(500px, 100%);
}

.mockup-window {
  position: relative;
  border: 1px solid #7dd3fc3b;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(170deg, #0a1428, #081126);
  box-shadow: 0 26px 50px #0206178c;
}

.mockup-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #5ea2ff2e;
  background: #0a1020;
}

.mockup-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38bdf8;
  opacity: 0.9;
}

.mockup-top p {
  margin: 0 0 0 0.4rem;
  font-size: 0.8rem;
  color: #c8dbff;
  font-weight: 600;
}

.mockup-screen {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #040b18;
}

.mockup-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, #050b1aab 100%);
  pointer-events: none;
}

.mockup-screen img,
.mockup-video {
  width: 100%;
  height: auto;
  min-height: 128%;
  object-fit: cover;
  object-position: top;
  display: block;
  animation: mockupPan 12s ease-in-out infinite alternate;
}

.mockup-glow {
  position: absolute;
  inset: auto -8% -12% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, #38bdf85e 0%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

.impact-bar {
  margin-top: -1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.impact-bar article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d1528b8;
  padding: 1rem;
}

.impact-bar strong {
  display: block;
  font-size: 1rem;
  color: #eaf2ff;
}

.impact-bar span {
  color: #abc1e3;
  font-size: 0.89rem;
}


.btn {
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  padding: 0.86rem 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 30px #1d4ed84f;
  filter: saturate(1.08);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.small {
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.topbar .btn.small {
  background: linear-gradient(135deg, #25d366, #1ea952);
  color: #ffffff;
}

.topbar .btn.small:hover {
  box-shadow: 0 12px 24px #1ea9524f;
}

.btn-icon {
  transition: transform 0.25s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-icon-wa svg {
  width: 17px;
  height: 17px;
  fill: #ffffff;
  display: block;
}

.btn-pulse {
  animation-duration: 2.2s;
  animation-iteration-count: infinite;
}

.btn-pulse-blue {
  animation-name: btnPulseBlue;
}

.btn-pulse-green {
  animation-name: btnPulseGreen;
}

.hero-metrics {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-metrics div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-metrics div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px #2563eb24;
}

.hero-metrics strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
}

.hero-metrics span {
  color: var(--soft);
  font-size: 0.92rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.services .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  background: linear-gradient(165deg, #10192d 10%, #0a1120 130%);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), #38bdf836 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 36px #1d4ed830;
  border-color: #1d4ed861;
}

.card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e284f, #193d7a);
  color: #8ec5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 22px #1d4ed840;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card p,
.cta p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.steps div {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d1528cc;
  font-weight: 600;
  transition: transform 0.25s ease;
}

.steps div:hover {
  transform: translateY(-4px);
}

.steps span {
  display: block;
  color: var(--accent-2);
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.projects {
  margin-top: -0.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, #10192d 10%, #0a1120 130%);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px #02061778;
  border-color: #7dd3fc5e;
}

.project-card + .project-card {
  margin-top: 1rem;
}

.project-thumb {
  display: block;
  min-height: 100%;
}

.project-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-thumb:hover img {
  transform: scale(1.03);
}

.project-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tag {
  margin: 0 0 0.7rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.project-content p {
  margin: 0 0 1rem;
  color: var(--soft);
  line-height: 1.65;
}

.project-content .project-tag {
  color: var(--accent-2);
}

.testimonials {
  margin-top: -0.2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.quote-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  background: linear-gradient(160deg, #0f1a32 10%, #0a1122 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.quote-card:hover {
  transform: translateY(-6px);
  border-color: #7dd3fc6e;
  box-shadow: 0 18px 34px #02061769;
}

.quote-card p {
  margin: 0 0 0.9rem;
  color: #d8e7ff;
  line-height: 1.6;
}

.quote-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.quote-card span {
  display: inline-block;
  margin-top: 0.26rem;
  color: #92b1dd;
  font-size: 0.86rem;
}

.projects-more {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.cta {
  text-align: center;
  padding: 2rem;
  border-radius: 18px;
  background: #0a1020da;
  border: 1px solid var(--line);
  color: #ffffff;
}

.cta p {
  color: #dbeafe;
  margin-bottom: 1rem;
}

.cta .btn {
  background: linear-gradient(135deg, #25d366, #1ea952);
  color: #ffffff;
}

footer {
  text-align: center;
  padding: 1.6rem 0 2.4rem;
  color: #8ea1c8;
  font-size: 0.93rem;
}

.footer-top,
.footer-bottom {
  display: inline;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1ea952);
  border: 2px solid #ffffff29;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px #00000052;
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse 2.2s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 30px #00000066;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
  will-change: opacity, transform, filter;
}

.scroll-reveal.reveal-left {
  transform: translateX(-36px);
}

.scroll-reveal.reveal-right {
  transform: translateX(36px);
}

.scroll-reveal.reveal-up {
  transform: translateY(-28px);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(14px);
  }
}

@keyframes particlesDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.4%, 0.9%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mockupPan {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-12%) scale(1.02);
  }
}

@keyframes bgWaveDrift {
  0% {
    transform: translate3d(-1.2%, 0.4%, 0) scale(1.04);
    background-position: 50% 50%;
  }
  50% {
    transform: translate3d(1.1%, -0.6%, 0) scale(1.07);
    background-position: 50% 48%;
  }
  100% {
    transform: translate3d(-1.2%, 0.4%, 0) scale(1.04);
    background-position: 50% 50%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 182, 93, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(31, 182, 93, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 182, 93, 0);
  }
}

@keyframes btnPulseBlue {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.42);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(56, 189, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

@keyframes btnPulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 182, 93, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(31, 182, 93, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 182, 93, 0);
  }
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-nav-panel {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    margin-top: 0.4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .topbar.mobile-nav-open .mobile-nav-panel {
    max-height: 220px;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-panel a {
    text-decoration: none;
    color: #d9e0ef;
    border: 0;
    border-bottom: 1px solid #5ea2ff30;
    border-radius: 0;
    background: transparent;
    padding: 0.62rem 0.1rem;
    font-weight: 600;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .mobile-nav-panel a:hover {
    color: #ffffff;
    padding-left: 0.32rem;
  }

  .mobile-nav-panel a:last-child {
    border-bottom: 0;
  }

  .services .grid,
  .hero-metrics,
  .steps,
  .testimonial-grid,
  .impact-bar {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-thumb img {
    min-height: 220px;
  }

  .topbar {
    margin-top: 0.7rem;
    padding: 0.72rem 0.75rem;
    gap: 0.5rem;
  }

  .brand {
    min-width: 0;
    gap: 0.42rem;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .brand-text {
    font-size: 0.8rem;
    letter-spacing: -0.15px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar .btn.small {
    display: none;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 12px;
    width: 54px;
    height: 54px;
  }

  .hero::before {
    content: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .hero-mockup {
    justify-self: stretch;
  }

}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

  .brand {
    flex: 1 1 auto;
    align-items: center;
  }

  .mobile-menu-toggle {
    order: 2;
    margin-left: auto;
    align-self: center;
  }

  .brand-text {
    line-height: 1;
  }

  .mobile-nav-panel {
    order: 3;
  }

  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.55rem);
    line-height: 1.03;
    max-width: none;
  }

  .services h2 {
    font-size: 1.42rem;
    line-height: 1.12;
  }

  .projects h2 {
    font-size: 1.2rem;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.2px;
  }

  .hero-proof {
    font-size: 0.9rem;
  }

  footer {
    padding-bottom: 5rem;
  }

  .footer-top,
  .footer-bottom {
    display: block;
  }

  .footer-bottom {
    margin-top: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .particle-layer {
    animation: none;
  }

  .mockup-screen img,
  .mockup-video {
    animation: none;
  }
}
