/* =========================================================
   DGN Systems — estilos
   Tokens e regras vêm de specs/design.md
   ========================================================= */

:root {
  --bg: #05080F;
  --bg-elev: #0A1220;
  --surface: #0D1626;
  --border: rgba(46, 168, 255, .14);
  --border-hover: rgba(46, 168, 255, .45);
  --primary: #2EA8FF;
  --primary-strong: #1479E6;
  --navy-deep: #1B3352;
  --navy: #2C559C;
  --text: #EAF2FF;
  --text-muted: #8DA2BF;
  --text-dim: #5A6C86;
  --error: #FF8A9B;
  --whats: #25D366;

  --grad: linear-gradient(135deg, var(--primary-strong), var(--primary));
  --glow: rgba(46, 168, 255, .35);

  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 14px;
  --r-input: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: rgba(46, 168, 255, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--whats { color: var(--whats); width: 20px; height: 20px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tipografia ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 em, h2 em {
  font-style: normal;
  color: var(--primary);
  text-shadow: 0 0 28px rgba(46, 168, 255, .45);
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(46, 168, 255, .06);
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff;
  background: var(--grad);
  vertical-align: middle;
}

/* palavras divididas pelo JS para a animação de entrada */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .4s var(--ease), border-color .3s, background-color .3s, color .3s;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(46, 168, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover {
  box-shadow: 0 14px 44px -10px rgba(46, 168, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
/* brilho que atravessa o botão */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 60%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
  z-index: -1;
}
.btn--primary:hover::after { left: 150%; }

.btn--ghost {
  background: rgba(13, 22, 38, .55);
  border-color: var(--border-hover);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--primary);
  box-shadow: 0 0 24px -6px var(--glow);
}
.btn--sm { padding: .7rem 1.2rem; font-size: .875rem; }
.btn--lg { padding: 1.1rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary .icon--whats { color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(1100px, calc(100% - 32px));
  transform: translateX(-50%);
  transition: top .4s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 10px 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 22, 38, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: height .4s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-scrolled { top: 10px; }
.nav.is-scrolled .nav__inner {
  height: 56px;
  background: rgba(8, 13, 24, .85);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .8);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 0 10px rgba(46, 168, 255, .45)); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text);
}
.brand__name span { color: var(--primary); font-weight: 600; font-size: 11px; letter-spacing: .14em; }

.nav__links { display: flex; gap: 6px; margin: 0 auto; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color .3s, background-color .3s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(46, 168, 255, .1); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 92px;
  left: 16px;
  right: 16px;
  z-index: 49;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(8, 13, 24, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  gap: 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  padding: 14px 6px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 36px 36px;
  background: linear-gradient(180deg, var(--bg) 0%, #061024 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 168, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 168, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 45%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 65% 45%, #000 25%, transparent 75%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -260px;
  bottom: -420px;
  background: radial-gradient(circle, rgba(46, 168, 255, .32), rgba(20, 121, 230, .12) 40%, transparent 70%);
  pointer-events: none;
}
.sparks { position: absolute; inset: 0; pointer-events: none; }
.spark {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px #fff);
  opacity: .5;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.hero__content { display: grid; gap: 28px; justify-items: start; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 22, 38, .6);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color .3s, color .3s;
}
.badge:hover { border-color: var(--border-hover); color: var(--text); }
.badge__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.hero__title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
}
.hero__sub { font-size: 1.1rem; max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero__stats li { display: grid; gap: 4px; max-width: 150px; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }
.hero__stats span { font-size: 13px; line-height: 1.4; color: var(--text-dim); }

/* visual 3D */
.hero__visual {
  position: relative;
  height: 560px;
  perspective: 1000px;
}
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: var(--w);
  margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2);
  border: 1px solid rgba(46, 168, 255, .22);
  border-radius: 50%;
  transform: rotateX(72deg) rotateY(-14deg);
  box-shadow: 0 0 40px -10px rgba(46, 168, 255, .35), inset 0 0 40px -10px rgba(46, 168, 255, .25);
}
.ring--1 { --w: 300px; }
.ring--2 { --w: 440px; border-color: rgba(46, 168, 255, .14); transform: rotateX(72deg) rotateY(22deg); }
.ring--3 { --w: 560px; border-style: dashed; border-color: rgba(46, 168, 255, .1); }
.ring i {
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px 4px rgba(46, 168, 255, .8);
}

.hero__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
}
.hero__logo::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 168, 255, .35), transparent 70%);
  filter: blur(20px);
}
/* logo 3D em Three.js (js/logo3d.js). Até carregar, ou se o WebGL
   falhar, aparece o PNG da logo. */
.hero__3d {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .8s var(--ease);
  filter: drop-shadow(0 0 22px rgba(46, 168, 255, .35));
}
.hero__logo-fallback {
  position: absolute;
  left: 18%;
  top: 22%;
  width: 64%;
  filter: drop-shadow(0 0 30px rgba(46, 168, 255, .6));
  transition: opacity .6s var(--ease);
}
.hero__logo.is-3d .hero__3d { opacity: 1; }
.hero__logo.is-3d .hero__logo-fallback { opacity: 0; }

.cube { position: absolute; width: var(--s); height: var(--s); }
.cube__float { width: 100%; height: 100%; perspective: 700px; }
.cube__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(38deg);
}
.cube__inner i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(46, 168, 255, .5);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(46, 168, 255, .3), rgba(20, 50, 100, .55) 45%, rgba(8, 14, 28, .92));
  box-shadow: inset 0 0 22px rgba(46, 168, 255, .25);
}
.cube__inner i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube__inner i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube__inner i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube__inner i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube__inner i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube__inner i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

/* ---------- Seções ---------- */
.section { position: relative; padding: 128px 0; }
.section__head {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__head p { font-size: 1.05rem; max-width: 560px; }

/* cards com glow que segue o cursor */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(13, 22, 38, .9), rgba(10, 18, 32, .7));
  overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.card::before,
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -30%), rgba(46, 168, 255, .16), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover { border-color: var(--border-hover); }
.card:hover::before,
.plan:hover::before { opacity: 1; }
.card p { font-size: .95rem; }
.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  color: var(--primary);
  background: rgba(46, 168, 255, .07);
  box-shadow: inset 0 0 16px rgba(46, 168, 255, .15);
}

/* ---------- Showcase ---------- */
.section--showcase { overflow: hidden; }
.showcase__glow {
  position: absolute;
  left: 50%;
  top: 280px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(46, 168, 255, .22), transparent 65%);
  pointer-events: none;
}
.mockup-wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto 88px;
  perspective: 1400px;
}
.mockup {
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  background: #07101E;
  overflow: hidden;
  transform-origin: 50% 0;
  box-shadow: 0 50px 140px -40px rgba(46, 168, 255, .5), 0 0 0 6px rgba(13, 22, 38, .6);
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a52; }
.dots i:first-child { background: #3d5a85; }
.mockup__url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(5, 8, 15, .7);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.mockup__body { padding: 20px 28px 32px; }
.demo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(46, 168, 255, .08);
}
.demo-logo { font-weight: 600; font-size: 15px; color: var(--text); }
.demo-logo b { color: var(--primary); }
.demo-links { display: flex; gap: 10px; }
.demo-links i { width: 46px; height: 7px; border-radius: 4px; background: rgba(141, 162, 191, .2); }

.demo-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.demo-hero { display: grid; gap: 14px; align-content: start; justify-items: start; }
.demo-tag {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}
.demo-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; color: var(--text); }
.demo-title b { color: var(--primary); }
.demo-text { font-size: .9rem; }
.demo-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.demo-map {
  position: relative;
  width: 100%;
  height: 120px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0A1424;
}
.demo-map__roads {
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(46, 168, 255, .16) 48% 52%, transparent 52%) 0 0 / 90px 90px,
    linear-gradient(0deg, transparent 47%, rgba(141, 162, 191, .12) 47% 53%, transparent 53%) 0 0 / 70px 70px,
    linear-gradient(35deg, transparent 49%, rgba(46, 168, 255, .25) 49% 51%, transparent 51%);
  transform: rotate(-8deg);
}
.demo-map__pin {
  position: absolute;
  left: 46%;
  top: 30%;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
}
.demo-map__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 26px;
  height: 8px;
  margin-left: -13px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pinPulse 2s ease-out infinite;
}
@keyframes pinPulse {
  from { transform: scale(.4); opacity: 1; }
  to { transform: scale(2.2); opacity: 0; }
}
.demo-map__label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 15, .8);
  font-size: 11px;
  color: var(--text-muted);
}

.budget {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}
.budget__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
}
.budget__title .icon { color: var(--primary); }
.budget__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.budget__chips legend,
.budget__range > span {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.budget__chips label { cursor: pointer; }
.budget__chips input { position: absolute; opacity: 0; pointer-events: none; }
.budget__chips span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.budget__chips input:checked + span {
  border-color: var(--primary);
  color: #fff;
  background: rgba(46, 168, 255, .14);
  box-shadow: 0 0 18px -6px var(--glow);
}
.budget__chips input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.budget__range { display: grid; }
.budget__range > span { display: flex; justify-content: space-between; }
.budget__range output { color: var(--text); font-weight: 600; }
.budget__range input { width: 100%; accent-color: var(--primary); cursor: pointer; }
.budget__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.budget__total strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  text-shadow: 0 0 20px rgba(46, 168, 255, .5);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
}
.features li { display: flex; gap: 16px; }
.features .icon { color: var(--primary); margin-top: 2px; }
.features h3 { font-size: 1rem; margin-bottom: 6px; }
.features p { font-size: .93rem; }

/* ---------- Como funciona ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps__line {
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
}
.steps__progress {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 14px var(--primary);
  transform-origin: left center;
  transform: scaleX(var(--progress, 1));
}
.step { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; }
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  transition: all .6s var(--ease);
}
.step.is-active .step__num {
  border-color: var(--primary);
  color: #fff;
  background: var(--grad);
  box-shadow: 0 0 30px -4px var(--glow);
}
.step p { font-size: .93rem; max-width: 240px; }

/* ---------- Planos ---------- */
.section--plans { overflow: hidden; }
.hero__grid--soft {
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 60%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 60%, #000 20%, transparent 75%);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}
.plan {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 36px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 22, 38, .92), rgba(8, 14, 26, .92));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .4s;
}
.plan:hover { border-color: var(--border-hover); }
.plan--featured {
  padding: 52px 32px;
  border-color: rgba(46, 168, 255, .55);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(46, 168, 255, .16), transparent 70%),
    linear-gradient(180deg, rgba(13, 26, 46, .96), rgba(8, 14, 26, .96));
  box-shadow: 0 0 0 1px rgba(46, 168, 255, .15), 0 40px 100px -40px rgba(46, 168, 255, .6);
}
.plan__ribbon {
  position: absolute;
  top: 26px;
  right: -46px;
  width: 190px;
  padding: 6px 0;
  transform: rotate(45deg);
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px -6px var(--glow);
}
.plan header { display: grid; gap: 10px; }
.plan__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.plan__price span {
  font-size: 2.75rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.plan__price small { font-size: 1.25rem; color: var(--text); }
.plan__time { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.plan__time .icon { color: var(--primary); }
.plan__list { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--border); }
.plan__list li { display: flex; gap: 12px; font-size: .95rem; color: var(--text); line-height: 1.45; }
.plan__list .icon { color: var(--primary); margin-top: 3px; }
.plan__list .tag { margin-left: 2px; }

/* ---------- Contato ---------- */
.section--contact { padding-bottom: 140px; overflow: hidden; }
.contact__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 900px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(46, 168, 255, .2), transparent 65%);
  pointer-events: none;
}
.contact {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  padding: 56px;
  border: 1px solid var(--border-hover);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(13, 22, 38, .88), rgba(8, 14, 26, .9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 60px 140px -60px rgba(46, 168, 255, .55);
}
.contact__intro { display: grid; gap: 22px; align-content: start; justify-items: start; }
.contact__flow { display: grid; gap: 14px; margin-top: 8px; }
.contact__flow li { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--text-muted); }
.contact__flow span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--primary);
}

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label,
.field legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 0;
  margin-bottom: 0;
}
.field legend { margin-bottom: 8px; }
.optional { color: var(--text-dim); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: rgba(5, 8, 15, .65);
  color: var(--text);
  font-size: 16px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 168, 255, .14), 0 0 24px -8px var(--glow);
}
.field__error { min-height: 0; font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.field.has-error input,
.field.has-error .plan-opt { border-color: rgba(255, 107, 129, .55); }

.plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-opt {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5, 8, 15, .65);
  cursor: pointer;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.plan-opt:hover { border-color: var(--border-hover); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt__name { font-weight: 600; font-size: 15px; color: var(--text); }
.plan-opt__price { font-family: var(--font-display); font-size: 13px; color: var(--text-muted); }
.plan-opt:has(input:checked) {
  border-color: var(--primary);
  background: rgba(46, 168, 255, .1);
  box-shadow: 0 0 26px -8px var(--glow);
}
.plan-opt:has(input:checked) .plan-opt__price { color: var(--primary); }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Rodapé ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 56px 0 28px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer__brand { display: grid; gap: 14px; max-width: 280px; }
.footer__brand img { width: 120px; height: auto; }
.footer__brand p { font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--text-muted); }
.footer__links a:hover,
.footer__whats:hover { color: var(--text); }
.footer__whats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color .3s, border-color .3s;
}
.footer__whats:hover { border-color: var(--border-hover); }
.footer__social { display: flex; flex-wrap: wrap; gap: 12px; }
.icon--insta { width: 20px; height: 20px; color: var(--primary); }

.contact__insta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: .95rem;
  color: var(--text-muted);
  transition: color .3s;
}
.contact__insta strong { color: var(--primary); font-weight: 600; }
.contact__insta:hover { color: var(--text); }
.footer__copy {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 380px; margin-top: 12px; }
  .ring--1 { --w: 220px; }
  .ring--2 { --w: 320px; }
  .ring--3 { --w: 400px; }
  .hero__logo { width: 260px; height: 260px; margin: -130px 0 0 -130px; }

  .demo-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps__line {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps__progress { transform-origin: center top; transform: scaleY(var(--progress, 1)); }
  .step { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 20px; row-gap: 4px; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; }
  .step p { max-width: none; }

  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--featured { order: -1; }

  .contact { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { border-radius: 0 0 24px 24px; padding-bottom: 56px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero__stats strong { font-size: 1.1rem; }
  .hero__stats span { font-size: 12px; }
  .hero__visual { height: 320px; }
  .ring--3 { display: none; }
  .cube { scale: .65; }
  .cards--4,
  .features { grid-template-columns: 1fr; }
  .mockup__body { padding: 16px; }
  .demo-links { display: none; }
  .plan { padding: 30px 22px; }
  .plan--featured { padding: 44px 22px; }
  .contact { padding: 28px 18px; border-radius: 22px; }
  .plan-options { grid-template-columns: 1fr; }
  .plan-opt { grid-template-columns: 1fr auto; align-items: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
