/* ===== DevLm — estilos ===== */
:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --surface: #141c38;
  --surface-2: #1a2447;
  --border: rgba(148, 163, 255, .14);
  --text: #e8ecff;
  --muted: #9aa5c8;
  --primary: #6366f1;
  --primary-2: #22d3ee;
  --accent: #a78bfa;
  --success: #34d399;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(3, 6, 20, .55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.gradient-text {
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, .35);
}
.btn--primary:hover { box-shadow: 0 14px 36px rgba(99, 102, 241, .5); }
.btn--ghost { border-color: var(--border); background: rgba(255,255,255,.03); color: var(--text); }
.btn--ghost:hover { border-color: rgba(148,163,255,.4); }
.btn--small { padding: 9px 18px; font-size: 14px; background: var(--primary); color: #fff !important; }
.btn--block { width: 100%; }

/* ===== Cabeçalho ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
}
.logo__text { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.logo__text strong { font-weight: 700; color: var(--primary-2); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(500px 340px at 20% 30%, rgba(99,102,241,.28), transparent 70%),
    radial-gradient(460px 320px at 85% 20%, rgba(34,211,238,.18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  margin-bottom: 22px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52,211,153,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52,211,153,.05); } }

.hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 22px; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 36px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 26px; }
.hero__stats span { font-size: 13px; color: var(--muted); }

/* Mockup do painel */
.mock {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4570; }
.mock__bar i:nth-child(1) { background: #f87171; } .mock__bar i:nth-child(2) { background: #fbbf24; } .mock__bar i:nth-child(3) { background: #34d399; }
.mock__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock__body { padding: 18px; display: grid; gap: 16px; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.kpi small { display: block; font-size: 11px; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-size: 18px; }
.kpi em { display: block; font-style: normal; font-size: 11px; color: var(--success); }
.mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 10px; background: rgba(255,255,255,.03); border-radius: 12px; }
.mock__chart span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--primary-2), var(--primary)); opacity: .9; }
.mock__chat { display: grid; gap: 8px; }
.bubble { font-size: 13px; padding: 8px 12px; border-radius: 12px; max-width: 80%; }
.bubble--bot { background: rgba(99,102,241,.18); border: 1px solid rgba(99,102,241,.3); justify-self: start; border-bottom-left-radius: 4px; }
.bubble--user { background: rgba(34,211,238,.14); border: 1px solid rgba(34,211,238,.25); justify-self: end; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ===== Seções ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-2); margin-bottom: 12px;
}
.section h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 17px; }

/* ===== Serviços ===== */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-4px); border-color: rgba(148,163,255,.35); box-shadow: var(--shadow); }
.service--featured {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--primary), var(--primary-2)) border-box;
  border: 1.5px solid transparent;
}
.service__badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
}
.service__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 20px;
  background: rgba(99,102,241,.14); color: var(--primary-2);
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 22px; margin-bottom: 10px; padding-right: 110px; }
.service:not(.service--featured) h3 { padding-right: 0; }
.service > p { color: var(--muted); margin-bottom: 18px; }
.service ul { display: grid; gap: 9px; margin-bottom: 26px; }
.service li { position: relative; padding-left: 28px; font-size: 15px; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(52,211,153,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.service__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); }
.service__price small { display: block; font-size: 12px; color: var(--muted); }
.service__price b { font-family: var(--font-display); font-size: 19px; }

/* ===== Processo ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__num {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 34px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Sobre ===== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about__photo { position: relative; position: sticky; top: 100px; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(34,211,238,.25));
  border: 1px solid var(--border);
}
.photo-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo-frame__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 96px; font-weight: 700; color: rgba(255,255,255,.85);
}
.about__badge {
  position: absolute; z-index: 2; right: -18px; bottom: 28px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.about__badge strong { font-family: var(--font-display); font-size: 22px; color: var(--primary-2); }
.about__badge span { font-size: 13px; color: var(--muted); }
.about__content > p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.about__content strong { color: var(--text); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: 17px; margin-bottom: 14px; color: var(--primary-2); }
.info-card ul { display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.info-card b { color: var(--text); }
.timeline { position: relative; display: grid; gap: 12px; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 2px solid #4a5590; }
.timeline .is-current { color: var(--text); font-weight: 600; }
.timeline .is-current::before { background: var(--primary-2); border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(34,211,238,.18); }
.timeline em { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(34,211,238,.15); color: var(--primary-2); }
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skills span { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.03); }

/* ===== Portfólio ===== */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project__media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.project__media img, .project__media video { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project__cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-2); margin-bottom: 6px; }
.project h3 { font-size: 19px; margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.project__tags span { font-size: 12px; padding: 3px 10px; border-radius: 6px; background: rgba(99,102,241,.14); }
.project__link { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--primary-2); }
.project--soon { align-items: center; justify-content: center; text-align: center; padding: 48px 24px; border-style: dashed; min-height: 260px; }
.project--soon:hover { transform: none; box-shadow: none; }
.project--soon .soon__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(99,102,241,.14); color: var(--primary-2); margin-bottom: 16px; }
.project--soon .soon__icon svg { width: 24px; height: 24px; }
.project--soon h3 { font-size: 18px; }
.project--soon p { margin: 0; font-size: 14px; }

/* ===== Contato ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 28px; font-size: 17px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: rgba(148,163,255,.4); transform: translateX(4px); }
.contact-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(99,102,241,.15); color: var(--primary-2); flex-shrink: 0; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__icon--wa { background: rgba(37,211,102,.15); color: var(--wa); }
.contact-card__icon--wa svg { fill: currentColor; }
.contact-card small { display: block; font-size: 13px; color: var(--muted); }
.contact-card b { font-weight: 600; word-break: break-all; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.form h3 { font-size: 22px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,.2); }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* ===== Rodapé ===== */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: 14px; color: var(--muted); }
.footer__top { font-size: 14px; color: var(--muted); }
.footer__top:hover { color: var(--text); }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ===== Animação de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsivo ===== */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__photo { position: relative; top: 0; max-width: 360px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 20px;
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav a.btn { margin-top: 14px; border: 0; justify-content: center; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 80px; }
  .hero__stats { gap: 24px; }
  .section { padding: 72px 0; }
  .services, .steps, .portfolio, .about__grid { grid-template-columns: 1fr; }
  .service { padding: 24px; }
  .service h3 { padding-right: 0 !important; }
  .service__badge { position: static; align-self: flex-start; margin-bottom: 14px; }
  .about__badge { right: 12px; }
  .form { padding: 24px; }
  .mock { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
