:root {
  --navy-deep: #050b1a;
  --navy: #0a1630;
  --navy-2: #0f1f42;
  --blue: #2f6bff;
  --blue-bright: #4f8bff;
  --cyan: #3fe0ff;
  --white: #f4f7ff;
  --muted: #9fb0d0;
  --line: rgba(160, 190, 255, .14);
  --radius: 16px;
  --maxw: 1180px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: inherit;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100%;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
.disp {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -.02em
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px
}

section {
  position: relative;
  padding: 100px 0
}

@media (max-width:640px) {
  section {
    padding: 64px 0
  }
}

/* subtle circuit background */
.circuit-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 90%);
}

/* header */
header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 11, 26, .7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto
}

.logo {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.03em
}

.logo span {
  color: var(--cyan)
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: .92rem;
  color: var(--muted)
}

.nav-links a:hover {
  color: var(--white)
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 107, 255, .4)
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--white)
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--navy);
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted)
}

.mobile-menu.open {
  display: flex
}

@media (max-width:860px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .burger {
    display: flex
  }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #04101f
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(63, 224, 255, .25)
}

.btn-ghost {
  border-color: var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, .02)
}

.btn-ghost:hover {
  border-color: var(--blue-bright);
  background: rgba(79, 139, 255, .08)
}

/* hero */
.hero {
  padding: 170px 0 110px;
  position: relative
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1
}

@media (max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan)
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px
}

.hero p.sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 14px
}

.hero p.comp {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  font-size: .98rem
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.hero-visual {
  position: relative;
  height: 420px
}

@media (max-width:900px) {
  .hero-visual {
    height: 320px;
    margin-top: 20px
  }
}

.device {
  position: absolute;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5)
}

.device-laptop {
  width: 62%;
  height: 230px;
  left: 0;
  top: 40px;
  border-radius: 12px 12px 4px 4px
}

.device-laptop::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .25), rgba(63, 224, 255, .08))
}

.device-phone {
  width: 120px;
  height: 230px;
  right: 10%;
  top: 0;
  border-radius: 22px;
  border: 1px solid var(--line)
}

.device-phone::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(63, 224, 255, .2), rgba(47, 107, 255, .05))
}

.device-nfc {
  width: 110px;
  height: 70px;
  right: 0;
  bottom: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--cyan);
  letter-spacing: .05em
}

.device-nfc::after {
  content: '))) NFC';
  font-family: 'Space Grotesk'
}

/* espaço para foto real da plaquinha NFC no hero */
.nfc-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px dashed var(--line);
  background: linear-gradient(160deg, rgba(47, 107, 255, .14), rgba(63, 224, 255, .05));
}

.nfc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none
}

.nfc-photo.loaded {
  display: block
}

.nfc-photo-frame.has-photo {
  border-style: solid;
  border-color: var(--line)
}

.nfc-photo-frame.has-photo .nfc-photo-empty {
  display: none
}

.nfc-photo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.nfc-photo-empty .plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px dashed var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--cyan);
}

.nfc-photo-empty p {
  font-size: .92rem;
  color: var(--white)
}

.nfc-photo-empty small {
  font-size: .75rem;
  color: var(--muted);
  font-family: monospace
}

.pulse-line {
  position: absolute;
  border-top: 1px dashed var(--line)
}

.pl1 {
  width: 120px;
  top: 150px;
  left: 55%;
  transform: rotate(20deg)
}

.glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(47, 107, 255, .35), transparent 70%);
  filter: blur(10px);
  z-index: 0
}

.glow1 {
  top: -60px;
  right: -40px
}

/* section headers */
.sec-head {
  max-width: 640px;
  margin-bottom: 56px
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 14px
}

.sec-head p {
  color: var(--muted);
  font-size: 1.02rem
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center
}

/* cards grid generic */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

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

@media (max-width:860px) {

  .grid3,
  .grid2 {
    grid-template-columns: 1fr
  }
}

.card {
  background: linear-gradient(180deg, rgba(15, 31, 66, .6), rgba(10, 22, 48, .6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 139, 255, .4)
}

.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(63, 224, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 1.2rem
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px
}

.card p {
  color: var(--muted);
  font-size: .95rem
}

/* why section — soft fade in/out instead of a hard color edge */
.why {
  position: relative;
  isolation: isolate;
  background: transparent
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      transparent 0%,
      var(--navy) 18%,
      var(--navy) 82%,
      transparent 100%);
}

/* services */
.service-card {
  background: linear-gradient(180deg, rgba(15, 31, 66, .5), rgba(10, 22, 48, .5));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

.service-price {
  font-family: 'Space Grotesk';
  font-size: 1.4rem;
  color: var(--cyan);
  white-space: nowrap
}

.service-list {
  list-style: none;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px
}

.service-list li {
  font-size: .9rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan)
}

@media (max-width:600px) {
  .service-list {
    grid-template-columns: 1fr
  }
}

.note {
  font-size: .85rem;
  color: var(--muted);
  border-left: 2px solid var(--blue-bright);
  padding-left: 12px;
  margin-top: 16px
}

/* video packages */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px
}

@media (max-width:860px) {
  .pack-grid {
    grid-template-columns: 1fr
  }
}

.pack {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, .02)
}

.pack h4 {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500
}

.pack .num {
  font-family: 'Space Grotesk';
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 4px
}

.pack .price {
  color: var(--cyan);
  font-weight: 600
}

/* NFC hero section — fades in/out instead of a hard border line */
.nfc-section {
  position: relative;
  isolation: isolate
}

.nfc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      transparent 0%,
      var(--navy-2) 14%,
      var(--navy) 55%,
      transparent 100%);
}

.nfc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center
}

@media (max-width:900px) {
  .nfc-grid {
    grid-template-columns: 1fr
  }
}

.nfc-price {
  font-family: 'Space Grotesk';
  font-size: 3.2rem;
  color: var(--cyan);
  line-height: 1
}

.nfc-price small {
  display: block;
  font-size: 1rem;
  color: var(--muted);
  font-family: 'Inter';
  font-weight: 400;
  margin-top: 4px
}

.tick-list {
  list-style: none;
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.tick-list li {
  font-size: .92rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative
}

.tick-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan)
}

.flow {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  background: rgba(10, 22, 48, .5);
}

.flow-step {
  font-family: 'Space Grotesk';
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 auto;
  max-width: 260px;
  background: rgba(63, 224, 255, .06)
}

.flow-arrow {
  color: var(--cyan);
  font-size: 1.4rem;
  margin: 8px 0
}

.flow-alt {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .9rem
}

/* how it works timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative
}

@media (max-width:860px) {
  .timeline {
    grid-template-columns: 1fr
  }
}

.tl-step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: rgba(255, 255, 255, .02)
}

.tl-num {
  font-family: 'Space Grotesk';
  font-size: 1.6rem;
  color: var(--blue-bright);
  margin-bottom: 10px
}

.tl-step h3 {
  font-size: 1rem
}

/* plans */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

@media (max-width:900px) {
  .plan-grid {
    grid-template-columns: 1fr
  }
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(15, 31, 66, .5), rgba(10, 22, 48, .5));
  display: flex;
  flex-direction: column
}

.plan-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--cyan)
}

.plan-item {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--line)
}

.plan-desc {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 16px;
  flex: 1
}

/* credibility */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px
}

@media (max-width:760px) {
  .cred-grid {
    grid-template-columns: 1fr 1fr
  }
}

.cred-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  font-size: .9rem;
  text-align: center;
  color: var(--muted)
}

.cred-item span {
  display: block;
  color: var(--cyan);
  font-size: 1.3rem;
  margin-bottom: 8px
}

/* portfolio */
.port-card {
  aspect-ratio: 4/3;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(47, 107, 255, .15), rgba(63, 224, 255, .05));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden
}

.port-card span {
  font-family: 'Space Grotesk';
  font-weight: 600;
  position: relative;
  z-index: 2
}

.port-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 0
}

.port-img.loaded {
  display: block
}

.port-card:has(.port-img.loaded)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(5, 11, 26, .85), transparent 60%);
}

.port-card.port-empty {
  border-style: dashed
}

.port-card.port-empty::after {
  content: '+ imagem do projeto';
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-size: .72rem;
  color: var(--muted);
  font-family: monospace;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--navy-2), var(--blue) 160%);
  text-align: center;
  border-radius: 28px;
  margin: 0 24px;
  padding: 80px 24px
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 16px
}

.cta-section p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px
}

@media (max-width:860px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.field label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 6px
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--white);
  font-family: inherit;
  font-size: .95rem;
}

.field select {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--white);
  font-family: inherit;
  font-size: .95rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color-scheme: dark;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%233fe0ff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field select option {
  background: var(--navy);
  color: var(--white)
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: var(--navy)
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px
}

@media (max-width:700px) {
  .foot-grid {
    grid-template-columns: 1fr
  }
}

.foot-grid a {
  display: block;
  color: var(--muted);
  padding: 6px 0;
  font-size: .92rem
}

.foot-grid a:hover {
  color: var(--cyan)
}

.foot-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px
}

/* whatsapp float */
.wa-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  font-size: 1.6rem;
}

/* reveal animation - single orchestrated */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion:reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none
  }
}

@media (prefers-color-scheme:light) {
  :root:not([data-theme="dark"]) {}
}

/* ===== UPGRADE VISUAL: 3D, partículas e microinterações ===== */

/* fundo de partículas 3D (three.js) — fixo atrás de tudo */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: .32;
  pointer-events: none;
}

/* camada escura entre as partículas e o conteúdo — garante leitura do texto */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: rgba(5, 11, 26, .55);
}

/* brilho que segue o cursor, estilo "spotlight" tecnológico */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 224, 255, .10), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition: opacity .3s ease;
  will-change: transform;
}

@media (max-width:860px) {
  .cursor-glow {
    display: none
  }
}

/* barra de progresso de leitura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
  transition: width .08s linear;
}

/* título com gradiente animado */
.hero h1 {
  background: linear-gradient(100deg, var(--white) 30%, var(--cyan) 50%, var(--blue-bright) 65%, var(--white) 85%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}

@keyframes shine {
  to {
    background-position: 300% center
  }
}

/* flutuação suave dos dispositivos no hero + anel orbital */
.float-el {
  animation: floaty 5s ease-in-out infinite;
  transform-style: preserve-3d
}

.device-laptop.float-el {
  animation-delay: 0s
}

.device-phone.float-el {
  animation-delay: .6s
}

.device-nfc.float-el {
  animation-delay: 1.2s
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-14px)
  }
}

.orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  animation: spin 24s linear infinite;
  opacity: .5
}

.orbit-ring circle {
  fill: none;
  stroke: url(#none);
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 10
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* tilt 3D em cards ao passar o mouse */
.card,
.service-card,
.plan-card,
.port-card,
.pack {
  transform-style: preserve-3d;
  transition: transform .15s ease-out, border-color .25s ease;
  will-change: transform;
}

/* alto contraste extra em glow de cards ao hover para reforçar sensação 3D */
.card:hover,
.service-card:hover,
.plan-card:hover {
  box-shadow: 0 20px 50px -20px rgba(47, 107, 255, .5);
}

@media (prefers-reduced-motion:reduce) {
  .hero h1 {
    animation: none;
    -webkit-text-fill-color: var(--white)
  }

  .float-el,
  .orbit-ring {
    animation: none
  }

  #bgCanvas {
    display: none
  }
}

/* ===== DSenvolve refinements: loader, real portfolio media, responsive polish ===== */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(47, 107, 255, .13), transparent 36%), #050b1a;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.loader-content {
  width: min(300px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px
}

.loader-mark {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px
}

.loader-mark span {
  display: block;
  width: 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 15px rgba(63, 224, 255, .28);
  animation: loaderPulse .9s ease-in-out infinite alternate
}

.loader-mark span:nth-child(1) {
  height: 18px;
  animation-delay: 0s
}

.loader-mark span:nth-child(2) {
  height: 34px;
  animation-delay: .15s
}

.loader-mark span:nth-child(3) {
  height: 24px;
  animation-delay: .3s
}

.loader-logo {
  font: 700 2rem/1 'Space Grotesk', sans-serif;
  letter-spacing: -.05em
}

.loader-logo span {
  color: var(--cyan)
}

.loader-content p {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em
}

.loader-track {
  width: 180px;
  height: 3px;
  border-radius: 99px;
  background: rgba(160, 190, 255, .14);
  overflow: hidden;
  margin-top: 8px
}

.loader-track span {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: loaderProgress 1.25s ease-in-out infinite
}

@keyframes loaderPulse {
  to {
    transform: scaleY(.55);
    opacity: .65
  }
}

@keyframes loaderProgress {
  from {
    transform: translateX(-120%)
  }

  to {
    transform: translateX(400%)
  }
}

.nfc-showcase {
  padding-top: 35px
}

.nfc-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch
}

.nfc-gallery-photo,
.nfc-video-card {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(15, 31, 66, .7), rgba(10, 22, 48, .75));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18)
}

.nfc-gallery-photo {
  display: flex;
  flex-direction: column
}

.nfc-gallery-photo img {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 520px);
  object-fit: contain;
  background: #10172a;
  padding: 12px
}

.nfc-gallery-photo figcaption,
.nfc-video-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px
}

.nfc-gallery-photo figcaption strong,
.nfc-video-caption strong {
  font-family: 'Space Grotesk', sans-serif
}

.nfc-gallery-photo figcaption span,
.nfc-video-caption span {
  font-size: .85rem;
  color: var(--muted)
}

.nfc-video-card {
  display: flex;
  flex-direction: column;
  justify-content: center
}

.nfc-video-card video {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #050b1a
}

.nfc-custom-cta {
  margin-top: 24px;
  padding: 26px 30px;
  border: 1px solid rgba(63, 224, 255, .2);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(47, 107, 255, .12), rgba(63, 224, 255, .04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.nfc-custom-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 5px
}

.nfc-custom-cta p {
  font-size: .92rem;
  color: var(--muted);
  max-width: 650px
}

.port-real {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  min-width: 0
}

.port-real .port-img {
  display: block;
  object-fit: cover;
  transition: transform .35s ease
}

.port-real:first-child .port-img {
  object-position: top center
}

.port-real::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(5, 11, 26, .96), rgba(5, 11, 26, .08) 75%)
}

.port-real span {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px
}

.port-real span small {
  font: 500 .78rem/1.4 'Inter', sans-serif;
  color: #c8d6f1
}

.port-real:hover .port-img {
  transform: scale(1.035)
}

.portfolio-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: .85rem
}

.btn[data-service] {
  white-space: nowrap
}

@media(max-width:860px) {
  .nfc-gallery-grid {
    grid-template-columns: 1fr
  }

  .nfc-gallery-photo img {
    height: auto;
    max-height: 600px;
    object-fit: contain
  }

  .nfc-video-card video {
    max-height: 420px
  }

  .nfc-custom-cta {
    align-items: flex-start;
    flex-direction: column
  }

  .nfc-custom-cta .btn {
    width: 100%;
    justify-content: center
  }
}

@media(max-width:600px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px
  }

  .nav {
    padding: 13px 18px
  }

  .hero {
    padding: 130px 0 65px
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%
  }

  .service-card,
  .card,
  .plan-card {
    padding: 23px
  }

  .service-price {
    white-space: normal;
    font-size: 1.2rem
  }

  .tick-list {
    grid-template-columns: 1fr
  }

  .flow {
    padding: 22px
  }

  .cta-section {
    margin: 0 18px;
    padding: 52px 20px;
    border-radius: 22px
  }

  .cta-actions {
    flex-direction: column
  }

  .cta-actions .btn {
    justify-content: center;
    width: 100%
  }

  .wa-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px
  }

  .nfc-gallery-photo,
  .nfc-video-card {
    border-radius: 15px
  }

  .nfc-gallery-photo figcaption,
  .nfc-video-caption {
    padding: 15px
  }

  .nfc-custom-cta {
    padding: 21px
  }

  .plan-item {
    gap: 12px;
    align-items: flex-start
  }

  .plan-item span:last-child {
    text-align: right;
    overflow-wrap: anywhere
  }

  .foot-bottom {
    flex-direction: column
  }
}

@media(hover:none), (pointer:coarse) {

  .card,
  .service-card,
  .plan-card,
  .port-card,
  .pack {
    will-change: auto
  }

  .port-real:hover .port-img {
    transform: none
  }
}

@media(prefers-reduced-motion:reduce) {

  .site-loader,
  .site-loader * {
    animation: none !important;
    transition: none !important
  }

  .loader-track span {
    width: 100%;
    transform: none
  }

  .port-real .port-img {
    transition: none
  }
}


/* HERO — ilustração tecnológica da DSenvolve */
.hero-tech {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.tech-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(47, 107, 255, .20);
  filter: blur(65px);
  z-index: -2;
}

.tech-window {
  position: relative;
  width: min(100%, 390px);
  min-height: 290px;
  overflow: hidden;
  border: 1px solid rgba(100, 160, 255, .28);
  border-radius: 16px;
  background: linear-gradient(145deg, #101d38, #080f20);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35),
    0 0 40px rgba(47, 107, 255, .10);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
  z-index: 1;
}

.window-top {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #8fa5c8;
  font-size: .62rem;
  letter-spacing: .08em;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f8bff;
}

.window-dots span:nth-child(2) {
  background: #3fe0ff;
}

.window-dots span:nth-child(3) {
  background: #8293b4;
}

.window-content {
  padding: 35px 28px;
}

.window-label {
  color: #3fe0ff;
  font-size: .68rem;
  letter-spacing: .15em;
  margin-bottom: 17px;
}

.window-title {
  color: #f5f8ff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.window-title.accent {
  color: #3fe0ff;
}

.window-line {
  width: 85%;
  height: 1px;
  margin: 23px 0 17px;
  background: linear-gradient(90deg, #3fe0ff, transparent);
}

.window-button {
  display: inline-block;
  padding: 10px 13px;
  border: 1px solid rgba(63, 224, 255, .35);
  border-radius: 7px;
  color: #dceaff;
  font-size: .72rem;
}

.tech-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(116, 159, 255, .25);
  border-radius: 12px;
  background: rgba(11, 21, 42, .95);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
  animation: techFloat 5s ease-in-out infinite;
}

.tech-card strong,
.tech-card small {
  display: block;
}

.tech-card strong {
  color: #f5f8ff;
  font-size: .75rem;
}

.tech-card small {
  margin-top: 4px;
  color: #91a5c7;
  font-size: .65rem;
}

.tech-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: rgba(47, 107, 255, .18);
  color: #3fe0ff;
  font-size: 1.35rem;
}

.tech-card-site {
  top: 48px;
  left: -5px;
}

.tech-card-nfc {
  right: -5px;
  bottom: 38px;
  animation-delay: -2.5s;
}

.tech-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(63, 224, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 360px;
  height: 360px;
}

.orbit-two {
  width: 440px;
  height: 440px;
  border-color: rgba(47, 107, 255, .10);
}

@keyframes techFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero-tech {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    min-height: 350px;
  }

  .tech-window {
    width: 85%;
  }

  .tech-card-site {
    left: 0;
    top: 20px;
  }

  .tech-card-nfc {
    right: 0;
    bottom: 15px;
  }

  .orbit-one {
    width: 290px;
    height: 290px;
  }

  .orbit-two {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 420px) {
  .tech-card {
    padding: 10px;
    gap: 7px;
  }

  .tech-card strong {
    font-size: .66rem;
  }

  .tech-card small {
    font-size: .59rem;
  }

  .tech-icon {
    width: 29px;
    height: 29px;
  }

  .window-content {
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-card {
    animation: none;
  }
}


/* CORREÇÃO DE TRANSBORDAMENTO NO CELULAR */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

@media (max-width: 768px) {
  .container,
  .section,
  section,
  main,
  header,
  footer {
    max-width: 100%;
  }

  .hero-visual,
  .hero-tech {
    max-width: 100%;
  }

  .tech-window {
    max-width: 100%;
  }

  .tech-card-site {
    left: 4px;
  }

  .tech-card-nfc {
    right: 4px;
  }
}
