/* =========================================================
   NexProto — CSS puro (sem build)
   1. Tokens  2. Base  3. Componentes  4. Seções  5. Animações
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-950: #060f24;
  --navy-900: #0a1f44;
  --navy-800: #102a5c;
  --navy-700: #1b3a78;
  --mint-300: #7dfad7;
  --mint-400: #00f0b5;
  --mint-600: #1aaf8a;
  --mint-700: #148f71;
  --paper: #f6f8fb;
  --white: #fff;

  --text: var(--navy-900);
  --text-soft: color-mix(in srgb, var(--navy-900) 70%, transparent);
  --line: color-mix(in srgb, var(--navy-900) 10%, transparent);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-card: 0 1px 2px rgb(10 31 68 / 0.04), 0 8px 24px -8px rgb(10 31 68 / 0.12);
  --shadow-glow: 0 0 0 1px rgb(0 240 181 / 0.35), 0 10px 40px -10px rgb(0 240 181 / 0.45);

  --section-y: clamp(4rem, 8vw, 7rem);
  --header-h: 4rem;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--mint-400);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--mint-400); color: var(--navy-950);
  padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon--xl { width: 1.75rem; height: 1.75rem; }

/* ---------- 3. Componentes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn--primary { background: var(--mint-400); color: var(--navy-950); }
.btn--primary:hover { background: var(--mint-300); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn--ghost { color: var(--white); border-color: rgb(255 255 255 / 0.2); }
.btn--ghost:hover { border-color: rgb(0 240 181 / 0.6); background: rgb(255 255 255 / 0.05); }
.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn--sm { padding: 0.625rem 1rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mint-700);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--mint-400); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, border-color 0.3s;
}
.card--hover:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--mint-600) 40%, transparent); }

.chip {
  display: inline-block; background: var(--paper);
  border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.875rem;
}
.badge {
  display: inline-block; background: var(--mint-400); color: var(--navy-950);
  border-radius: 999px; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 600;
}

.icon-box {
  display: grid; place-items: center; flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--mint-400) 15%, transparent);
  color: var(--mint-700);
}
.icon-box--sm { width: 2.75rem; height: 2.75rem; background: var(--paper); }
.icon-box--dark { background: var(--navy-900); color: var(--mint-400); }
.icon-box--mint { background: var(--mint-400); color: var(--navy-950); }

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section__head { text-align: center; max-width: 42rem; margin-inline: auto; }
.section__head--wide { max-width: 48rem; }
.section__head h2 { margin-top: 1rem; font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
.section__head p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--text-soft); }

.split {
  display: grid; gap: 3.5rem; align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.only-desktop { display: none; }
@media (min-width: 1024px) { .only-desktop { display: block; } }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(120px);
}

/* ---------- 4. Seções ---------- */

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(6 15 36 / 0.6);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.nav {
  width: min(100% - 2.5rem, 72rem); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: height 0.3s;
}
.nav[data-shrink="true"] { height: 3.5rem; }
.nav__logo img { height: 2.25rem; width: auto; }
.nav__links { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: rgb(255 255 255 / 0.8); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--mint-400); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta { display: none; }
.nav__toggle {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem; color: var(--white);
}
.nav__toggle .icon { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  padding: 0.5rem 1.25rem 1.5rem;
  background: rgb(6 15 36 / 0.95);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.9); font-weight: 500;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { display: block; padding: 0.75rem 0; }
.mobile-menu .btn { margin-top: 0.75rem; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: var(--white);
  padding-block: clamp(8rem, 12vw, 10rem) clamp(5rem, 8vw, 7rem);
}
.hero .glow--a { left: -8rem; top: 2.5rem; width: 32rem; height: 32rem; background: rgb(0 240 181 / 0.15); }
.hero .glow--b { right: -6rem; bottom: 0; width: 26rem; height: 26rem; background: rgb(27 58 120 / 0.6); }
.hero__inner {
  position: relative;
  display: grid; gap: 3.5rem; align-items: center;
}
@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 7fr 5fr; }
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border-radius: 999px;
  border: 1px solid rgb(0 240 181 / 0.3); background: rgb(0 240 181 / 0.1);
  color: var(--mint-300); font-size: 0.75rem; font-weight: 500;
}
.pill::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--mint-400); }
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.4rem); line-height: 1.08;
}
.hero h1 span { color: var(--mint-400); }
.hero__lead {
  margin-top: 1.5rem; max-width: 36rem;
  font-size: 1.125rem; line-height: 1.7; color: rgb(255 255 255 / 0.7);
}
.hero__actions { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }
.hero__checks {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.875rem; color: rgb(255 255 255 / 0.6);
}
.hero__checks li { display: flex; align-items: center; gap: 0.5rem; }
.hero__checks .icon { color: var(--mint-400); stroke-width: 2.4; }

.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: -0.75rem; border-radius: 2rem;
  background: linear-gradient(135deg, rgb(0 240 181 / 0.4), transparent, rgb(27 58 120 / 0.6));
  filter: blur(32px);
}
.hero__photo {
  position: relative; padding: 0.5rem; overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1); border-radius: var(--radius-xl);
  background: var(--navy-900); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.hero__badge {
  position: absolute; left: -0.75rem; bottom: -1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-md);
  border: 1px solid rgb(255 255 255 / 0.1); background: rgb(10 31 68 / 0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  font-size: 0.875rem; line-height: 1.3;
}
.hero__badge strong { display: block; font-weight: 600; }
.hero__badge small { color: rgb(255 255 255 / 0.6); font-size: inherit; }
@media (min-width: 640px) { .hero__badge { left: -2rem; } }
.hero__badge .icon-box { width: 2.5rem; height: 2.5rem; }

/* Desafios */
.challenges h2 { margin-top: 1rem; font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
.challenges__list { margin-top: 2rem; display: grid; gap: 0.75rem; }
.challenges__list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); font-weight: 500;
}
.challenges__list .icon { margin-top: 0.15rem; color: var(--mint-700); }
.challenges__closing {
  margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.125rem; font-weight: 500;
}
.challenges__closing::before { content: ""; width: 2rem; height: 1px; background: var(--mint-600); flex-shrink: 0; }
.frame { position: relative; }
.frame::before {
  content: ""; position: absolute; inset: -1rem -1rem auto auto; width: 100%; height: 100%;
  border: 1px solid color-mix(in srgb, var(--mint-600) 30%, transparent); border-radius: var(--radius-xl);
}
.frame img {
  position: relative; width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
}
.frame--tall img { aspect-ratio: 4 / 5; }
.frame--tall::before { display: none; }

/* Soluções */
.solutions { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .solutions { grid-template-columns: repeat(3, 1fr); } }
.solution { display: flex; flex-direction: column; overflow: hidden; }
.solution img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.solution__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.solution h3 { font-size: 1.25rem; }
.solution p { margin-top: 0.5rem; color: var(--text-soft); }
.solution__for { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.solution__for h4 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint-700);
}
.solution__for ul { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Diferenciais */
.features h2 { margin-top: 1rem; font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
.features__intro { margin-top: 1.25rem; font-size: 1.125rem; color: var(--text-soft); }
.features__list { margin-top: 2.5rem; display: grid; gap: 1.75rem; }
.feature { display: flex; gap: 1rem; }
.feature h3 { font-size: 1.125rem; }
.feature p { margin-top: 0.25rem; color: var(--text-soft); }

/* Processo */
.steps { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 1.5rem; }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; line-height: 1;
  color: color-mix(in srgb, var(--navy-900) 10%, transparent);
}
.step h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.step p { margin-top: 0.5rem; color: var(--text-soft); }

/* Segmentos */
.segments { margin-top: 3.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .segments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .segments { grid-template-columns: repeat(3, 1fr); } }
.segment { padding: 1.5rem; }
.segment h3 { margin-top: 1rem; font-size: 1.125rem; }
.segment p { margin-top: 0.375rem; color: var(--text-soft); }
.callout {
  position: relative; overflow: hidden; max-width: 56rem; margin: 3rem auto 0;
  padding: clamp(2rem, 4vw, 2.5rem); text-align: center;
  background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg);
}
.callout::before {
  content: ""; position: absolute; right: -4rem; top: -4rem; width: 14rem; height: 14rem;
  border-radius: 50%; background: rgb(0 240 181 / 0.2); filter: blur(48px);
}
.callout > * { position: relative; }
.callout h3 { font-size: 1.5rem; }
.callout p { max-width: 42rem; margin: 0.75rem auto 0; color: rgb(255 255 255 / 0.7); }

/* CTA */
.cta { background: var(--mint-400); padding-block: 3.5rem; }
.cta__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center;
}
@media (min-width: 768px) {
  .cta__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); color: var(--navy-950); }
.cta p { margin-top: 0.5rem; color: color-mix(in srgb, var(--navy-900) 80%, transparent); }
.cta .btn { flex-shrink: 0; }

/* Portfólio (bento) */
.bento {
  margin-top: 3.5rem; display: grid; gap: 1rem;
  grid-auto-rows: 260px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; } }

.tile {
  position: relative; overflow: hidden; text-align: left;
  border-radius: var(--radius-lg); background: var(--navy-900);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(6 15 36 / 0.9), rgb(6 15 36 / 0.1) 60%, transparent);
}
.tile__info { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 1.25rem; color: var(--white); }
.tile h3 { margin-top: 0.5rem; font-size: 1.125rem; }
.tile p {
  margin-top: 0.25rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.75);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile p.tile__more { display: none; } /* texto completo só no detalhe */
.tile--feature .tile__info { padding: 1.5rem; }
.tile--feature h3 { font-size: 1.25rem; }
.tile--feature p { -webkit-line-clamp: 4; }
@media (min-width: 640px) {
  .tile--feature { grid-column: span 2; grid-row: span 2; }
  .tile--wide { grid-column: span 2; }
}
.bento-hint { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: color-mix(in srgb, var(--navy-900) 50%, transparent); }

/* Contato */
.contact {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: var(--white);
  padding-block: var(--section-y);
}
.contact .grid-bg { opacity: 0.6; }
.contact .glow { right: -6rem; top: 0; width: 26rem; height: 26rem; background: rgb(0 240 181 / 0.1); }
.contact__inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .contact__inner { grid-template-columns: 1fr 1fr; } }
.contact h2 { margin-top: 1rem; font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
.contact__lead { margin-top: 1rem; max-width: 28rem; font-size: 1.125rem; color: rgb(255 255 255 / 0.7); }
.contact .btn { margin-top: 2rem; }
.contact__list { display: grid; gap: 1rem; }
.contact__item {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 0.1); border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.05);
  transition: border-color 0.2s, background-color 0.2s;
}
.contact__item:hover { border-color: rgb(0 240 181 / 0.5); background: rgb(255 255 255 / 0.1); }
.contact__item .icon-box { background: rgb(0 240 181 / 0.15); color: var(--mint-400); }
.contact__item small { display: block; font-size: 0.875rem; color: rgb(255 255 255 / 0.5); }
.contact__item span span { font-weight: 500; }

/* Footer */
.footer {
  background: var(--navy-950); border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 2rem; text-align: center; font-size: 0.875rem; color: rgb(255 255 255 / 0.5);
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  border-radius: 50%; background: #25d366; color: var(--white);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.25);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float .icon { width: 1.75rem; height: 1.75rem; stroke: none; fill: currentColor; }
@media (min-width: 640px) { .whatsapp-float { right: 1.5rem; bottom: 1.5rem; } }

/* Detalhe do projeto (dialog) */
.lightbox {
  margin: auto; width: min(92vw, 56rem); padding: 0; overflow: hidden;
  border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.lightbox::backdrop { background: rgb(6 15 36 / 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__grid { display: grid; }
@media (min-width: 768px) { .lightbox__grid { grid-template-columns: 1fr 1fr; } }
.lightbox img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) { .lightbox img { aspect-ratio: auto; } }
.lightbox__body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
.lightbox__close {
  position: absolute; right: 1rem; top: 1rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--paper);
}
.lightbox h3 { padding-right: 2.5rem; font-size: 1.5rem; }
.lightbox__text { margin-top: 0.75rem; color: var(--text-soft); }
.lightbox .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ---------- 5. Animações ---------- */
/* A classe .js é colocada no <html> por um script inline; sem JS, tudo aparece normalmente. */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
